diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-18 23:47:02 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-18 23:47:02 +0100 |
commit | 48aeacd5f985f2c61262686170db5776982dce19 (patch) | |
tree | fd2413e861234b1e4b4f8b1e610c971400bf4989 /app/services | |
parent | 7837afbb5fc57c5e1fa8d485a663858b977c41b6 (diff) |
Fixed ANOTHER first_or_create bug. Seriously who came up with that API smh
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/process_feed_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb index 8fd0b3e68..9b342499d 100644 --- 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 |