blob: 3d398b5ac379d4b3a71554f3c0cfda0452e3fc83 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# frozen_string_literal: true
class PushUpdateWorker
include Sidekiq::Worker
def perform(timeline, account_id, status_id)
account = Account.find(account_id)
status = Status.find(status_id)
message = inline_render(account, 'api/v1/statuses/show', status)
broadcast(account_id, type: 'update', timeline: timeline, message: message)
end
end
|