mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-07 04:24:35 -04:00
FIX: Sometimes posts can't be created. Don't raise errors in that case.
This commit is contained in:
parent
40934e595a
commit
d062d64278
1 changed files with 1 additions and 1 deletions
|
@ -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 = {})
|
||||
|
|
Loading…
Add table
Reference in a new issue