diff --git a/app/models/post_action.rb b/app/models/post_action.rb index d1875b6e95c..abbe3c5df2c 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -238,7 +238,7 @@ SQL end end - PostCreator.new(user, opts).create.id + PostCreator.new(user, opts).create.try(:id) end def self.act(user, post, post_action_type_id, opts = {})