logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 48aeacd5f985f2c61262686170db5776982dce19
parent: 7837afbb5fc57c5e1fa8d485a663858b977c41b6
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Fri, 18 Mar 2016 23:47:02 +0100

Fixed ANOTHER first_or_create bug. Seriously who came up with that API smh

Diffstat:

Mapp/services/process_feed_service.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb @@ -48,7 +48,7 @@ class ProcessFeedService < BaseService mentioned_account = Account.find_local(href.path.gsub('/users/', '')) unless mentioned_account.nil? - mentioned_account.mentions.first_or_create(status: status) + mentioned_account.mentions.where(status: status).first_or_create(status: status) end end end