BUGFIX: new users not getting correct error messages
This commit is contained in:
parent
6fa51738a4
commit
78c844f8d8
|
@ -46,8 +46,8 @@ class UserActionObserver < ActiveRecord::Observer
|
||||||
UserAction::EDIT
|
UserAction::EDIT
|
||||||
end
|
end
|
||||||
|
|
||||||
# like is skipped
|
# skip any invalid items, eg failed to save post and so on
|
||||||
return unless action && post && user
|
return unless action && post && user && post.id
|
||||||
|
|
||||||
row = {
|
row = {
|
||||||
action_type: action,
|
action_type: action,
|
||||||
|
|
Loading…
Reference in New Issue