Merge branch 'validate-user-info' of git.pleroma.social:pleroma/pleroma into validate-user-info
This commit is contained in:
commit
0bea0308f1
4 changed files with 6 additions and 6 deletions
|
|
@ -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)})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue