diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-25 03:22:26 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-25 03:22:26 +0100 |
commit | 8eeec389c11298ad1be163dd65c5ae79e06867ca (patch) | |
tree | 2e0e2ba68cbc25c003c6b55ef2a392666b90a8df /app/services/post_status_service.rb | |
parent | 42dcb0d4cb119ecaac824fb1cace1fb011075b5e (diff) |
Add link to github project to footer, move FanOutOnWriteService calls to
DistributionWorker. That isn't the heaviest service, yet, but gotta start somewhere
Diffstat (limited to 'app/services/post_status_service.rb')
-rw-r--r-- | app/services/post_status_service.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index e8335639c..69e39c1a6 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) - fan_out_on_write_service.(status) + DistributionWorker.perform_async(status.id) account.ping!(account_url(account, format: 'atom'), [Rails.configuration.x.hub_url]) status end @@ -17,8 +17,4 @@ class PostStatusService < BaseService def process_mentions_service @process_mentions_service ||= ProcessMentionsService.new end - - def fan_out_on_write_service - @fan_out_on_write_service ||= FanOutOnWriteService.new - end end |