From 78c844f8d83c5565b0bed9480648a70d1ab63a0e Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 4 Apr 2014 11:08:54 +1100 Subject: [PATCH] BUGFIX: new users not getting correct error messages --- app/models/user_action_observer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user_action_observer.rb b/app/models/user_action_observer.rb index 76ea7b8b3c6..84afb7049a6 100644 --- a/app/models/user_action_observer.rb +++ b/app/models/user_action_observer.rb @@ -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,