Skip to content
Snippets Groups Projects
Commit 48aeacd5 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

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

parent 7837afbb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment