logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: a82f2e4b824ee09419871d6cbb5284368dd83f24
parent: a289c1d52fa3330ecdfdaeeefdfbddb4b47c9be0
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Sun,  4 Sep 2016 19:22:27 +0200

Fix timelines for users whose user id and account_id are not the same

Diffstat:

Mapp/channels/timeline_channel.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/channels/timeline_channel.rb b/app/channels/timeline_channel.rb @@ -1,7 +1,7 @@ # Be sure to restart your server when you modify this file. Action Cable runs in a loop that does not support auto reloading. class TimelineChannel < ApplicationCable::Channel def subscribed - stream_from "timeline:#{current_user.id}" + stream_from "timeline:#{current_user.account_id}" end def unsubscribed