mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Replace ActionCable broadcast call with simple redis publish
This commit is contained in:
parent
f8a5ff95ec
commit
8530f9413b
@ -39,7 +39,7 @@ class FeedManager
|
||||
|
||||
def broadcast(timeline_id, options = {})
|
||||
options[:queued_at] = (Time.now.to_f * 1000.0).to_i
|
||||
ActionCable.server.broadcast("timeline:#{timeline_id}", options)
|
||||
redis.publish("timeline:#{timeline_id}", Oj.dump(options))
|
||||
end
|
||||
|
||||
def trim(type, account_id)
|
||||
|
Loading…
Reference in New Issue
Block a user