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