FIX: Don't create user first records on private posts

This commit is contained in:
Robin Ward
2016-04-05 16:13:10 -04:00
parent 50fbda1ab7
commit 64a1a44c4b
2 changed files with 15 additions and 0 deletions

View File

@ -33,6 +33,8 @@ class CookedPostProcessor
end
def create_firsts
return unless Guardian.new.can_see?(@post)
created = false
if @doc.css("img.emoji").size > 0