aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-11-20 18:47:12 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-11-20 18:47:12 +0000
commitece86567335ece6325ebde05995b53735319fbe0 (patch)
tree6c339020d086b4aaffb00d9d245180be7d4cca70 /lib
parent3356c7d1e9c0abd7573768e63e004d51aa0e52b9 (diff)
downloadpleroma-ece86567335ece6325ebde05995b53735319fbe0.tar.gz
streamer: fix fetching the user's block list
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/streamer.ex4
1 files changed, 2 insertions, 2 deletions
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)})