logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 8530f9413b86e0734ed9e0be93f0168a070f9ac8
parent: f8a5ff95ec4825d47cdf0fb2551dcd058fddab29
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Wed,  5 Apr 2017 13:28:46 +0200

Replace ActionCable broadcast call with simple redis publish

Diffstat:

Mapp/lib/feed_manager.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb @@ -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)