mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: ProcessPost job failed for posts that have no user
This commit is contained in:
@@ -38,7 +38,7 @@ module Jobs
|
||||
end
|
||||
end
|
||||
|
||||
if !post.user.staff? && !post.user.staged
|
||||
if !post.user&.staff? && !post.user&.staged?
|
||||
s = post.cooked
|
||||
s << " #{post.topic.title}" if post.post_number == 1
|
||||
if !args[:bypass_bump] && WordWatcher.new(s).should_flag?
|
||||
|
||||
Reference in New Issue
Block a user