Adding embedded PuSH server
This commit is contained in:
parent
26287b6e7d
commit
2d2c81765b
21 changed files with 262 additions and 8 deletions
|
@ -7,8 +7,10 @@ class ReblogService < BaseService
|
|||
# @return [Status]
|
||||
def call(account, reblogged_status)
|
||||
reblog = account.statuses.create!(reblog: reblogged_status, text: '')
|
||||
|
||||
DistributionWorker.perform_async(reblog.id)
|
||||
HubPingWorker.perform_async(account.id)
|
||||
Pubsubhubbub::DistributionWorker.perform_async(reblog.stream_entry.id)
|
||||
|
||||
if reblogged_status.local?
|
||||
NotifyService.new.call(reblogged_status.account, reblog)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue