Fix delayed jobs failing

This commit is contained in:
Toks
2013-12-07 21:38:07 -05:00
parent 6b766a6e76
commit 926a317bc2

View File

@@ -755,7 +755,7 @@ class Post < ActiveRecord::Base
if CurrentUser.safe_mode?
tags = "#{tags} rating:s".strip
end
if CurrentUser.hide_deleted_posts?
if CurrentUser.user && CurrentUser.hide_deleted_posts?
tags = "#{tags} -status:deleted".strip
end