Changing the use of config constants to the Rails configuration object
This commit is contained in:
parent
0e8f59c16f
commit
23d08c6749
11 changed files with 17 additions and 17 deletions
|
@ -38,7 +38,7 @@ class ProcessFeedService < BaseService
|
|||
|
||||
href = Addressable::URI.parse(mention_link.attribute('href').value)
|
||||
|
||||
if href.host == LOCAL_DOMAIN
|
||||
if href.host == Rails.configuration.x.local_domain
|
||||
mentioned_account = Account.find_by(username: href.path.gsub('/users/', ''), domain: nil)
|
||||
|
||||
unless mentioned_account.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue