From: William Pitcock Date: Tue, 20 Nov 2018 18:47:12 +0000 (+0000) Subject: streamer: fix fetching the user's block list X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ece86567335ece6325ebde05995b53735319fbe0;p=akkoma streamer: fix fetching the user's block list --- diff --git a/lib/pleroma/web/streamer.ex b/lib/pleroma/web/streamer.ex index 6b6d40346..209450383 100644 --- a/lib/pleroma/web/streamer.ex +++ b/lib/pleroma/web/streamer.ex @@ -173,7 +173,7 @@ defmodule Pleroma.Web.Streamer do Enum.each(topics[topic] || [], fn socket -> # Get the current user so we have up-to-date blocks etc. user = User.get_cached_by_ap_id(socket.assigns[:user].ap_id) - blocks = user.info["blocks"] || [] + blocks = user.info.blocks || [] parent = Object.normalize(item.data["object"]) @@ -187,7 +187,7 @@ defmodule Pleroma.Web.Streamer do Enum.each(topics[topic] || [], fn socket -> # Get the current user so we have up-to-date blocks etc. user = User.get_cached_by_ap_id(socket.assigns[:user].ap_id) - blocks = user.info["blocks"] || [] + blocks = user.info.blocks || [] unless item.actor in blocks do send(socket.transport_pid, {:text, represent_update(item, user)})