From 9a7485d03407b8177a51d900ac9aabbca893a2c1 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 18 Mar 2016 23:23:19 +0100 Subject: Fix typo on /api/accounts/:id/statuses, fix potential case-sensitivity issue when registering incoming status mentions, add Travis CI file --- app/services/process_feed_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/process_feed_service.rb') diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb index 8962603cf..8fd0b3e68 100644 --- a/app/services/process_feed_service.rb +++ b/app/services/process_feed_service.rb @@ -45,7 +45,7 @@ class ProcessFeedService < BaseService href = Addressable::URI.parse(mention_link.attribute('href').value) if href.host == Rails.configuration.x.local_domain - mentioned_account = Account.find_by(username: href.path.gsub('/users/', ''), domain: nil) + mentioned_account = Account.find_local(href.path.gsub('/users/', '')) unless mentioned_account.nil? mentioned_account.mentions.first_or_create(status: status) -- cgit