mirror of
https://github.com/discourse/discourse.git
synced 2025-06-13 18:04:35 +08:00
FIX: Sometimes posts can't be created. Don't raise errors in that case.
This commit is contained in:
@ -238,7 +238,7 @@ SQL
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
PostCreator.new(user, opts).create.id
|
PostCreator.new(user, opts).create.try(:id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.act(user, post, post_action_type_id, opts = {})
|
def self.act(user, post, post_action_type_id, opts = {})
|
||||||
|
Reference in New Issue
Block a user