mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
BUGFIX: new users not getting correct error messages
This commit is contained in:
parent
6fa51738a4
commit
78c844f8d8
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ class UserActionObserver < ActiveRecord::Observer
|
|||
UserAction::EDIT
|
||||
end
|
||||
|
||||
# like is skipped
|
||||
return unless action && post && user
|
||||
# skip any invalid items, eg failed to save post and so on
|
||||
return unless action && post && user && post.id
|
||||
|
||||
row = {
|
||||
action_type: action,
|
||||
|
|
Loading…
Reference in a new issue