From: Kurtis Rainbolt-Greene Date: Wed, 5 Apr 2017 03:39:14 +0000 (-0700) Subject: Moving the queue_at into the worker X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=0069c01285d7fc6b97220fd678f6e5b82f301b1a;p=mastodon.git Moving the queue_at into the worker --- diff --git a/app/workers/push_update_worker.rb b/app/workers/push_update_worker.rb index 5b5e9f68a..6512e13ad 100644 --- a/app/workers/push_update_worker.rb +++ b/app/workers/push_update_worker.rb @@ -7,7 +7,7 @@ class PushUpdateWorker account = Account.find(account_id) status = Status.find(status_id) message = inline_render(account, 'api/v1/statuses/show', status) - + queue_at = (Time.now.to_f * 1000.0).to_i ActionCable.server.broadcast("timeline:#{account_id}", type: 'update', timeline: timeline, message: message) end end