initial the post processed value back to false.

This commit is contained in:
2015-12-02 23:13:05 +08:00
parent efad557faf
commit 70fbb688dd
+1 -1
View File
@@ -4,7 +4,7 @@ class ProcessPostWorker
sidekiq_options queue: :post, retry: 3
def perform url
post = Post.find_by url: url
post = Post.unscoped.find_by url: url
begin
page = MetaInspector.new post.url
post.title = page.title.try(:strip)