Streamer: Don't send unwanted DMs to list streams
This commit is contained in:
parent
41ff86ca1d
commit
87098d1676
2 changed files with 110 additions and 2 deletions
|
|
@ -73,7 +73,8 @@ defmodule Pleroma.Web.Streamer do
|
|||
Pleroma.List.get_lists_from_activity(item)
|
||||
|> Enum.filter(fn list ->
|
||||
owner = Repo.get(User, list.user_id)
|
||||
author.follower_address in owner.following
|
||||
|
||||
ActivityPub.visible_for_user?(item, owner)
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue