From 23d08c6749eb142b24f22045f643d0591af579ff Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 29 Feb 2016 20:06:39 +0100 Subject: Changing the use of config constants to the Rails configuration object --- app/services/post_status_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/post_status_service.rb') diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index aa25de4dc..388639175 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -7,7 +7,7 @@ class PostStatusService < BaseService def call(account, text, in_reply_to = nil) status = account.statuses.create!(text: text, thread: in_reply_to) process_mentions_service.(status) - account.ping!(account_url(account, format: 'atom'), [HUB_URL]) + account.ping!(account_url(account, format: 'atom'), [Rails.configuration.x.hub_url]) status end -- cgit