From 9ba8b29e98be9c87935396a4be427a08a40d3548 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 18 Aug 2014 12:03:46 +1000 Subject: [PATCH] FIX: API should return post_action or nil, true is wrong --- 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 fb0e33eb3d5..e8a78aa6395 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -238,7 +238,7 @@ class PostAction < ActiveRecord::Base rescue ActiveRecord::RecordNotUnique # can happen despite being .create # since already bookmarked - true + PostAction.where(where_attrs).first end def self.remove_act(user, post, post_action_type_id)