From 530624d438b863c4830936f091637370ce3dde8a Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 26 Oct 2017 14:41:11 -0400 Subject: [PATCH] FIX: Couldn't agree with a custom flag type --- app/models/post_action.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post_action.rb b/app/models/post_action.rb index c6ab249ff89..f6760a3a3bd 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -590,7 +590,7 @@ SQL end def self.post_action_type_for_post(post_id) - post_action = PostAction.find_by(deferred_at: nil, post_id: post_id, post_action_type_id: PostActionType.flag_types_without_custom.values, deleted_at: nil) + post_action = PostAction.find_by(deferred_at: nil, post_id: post_id, post_action_type_id: PostActionType.notify_flag_types.values, deleted_at: nil) PostActionType.types[post_action.post_action_type_id] end