MastodonAPI: Add streaming to media tabs of federated and local TLs
This commit is contained in:
parent
25946f772d
commit
b670d4d683
2 changed files with 18 additions and 2 deletions
|
|
@ -65,6 +65,14 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
if activity.local do
|
||||
Pleroma.Web.Streamer.stream("public:local", activity)
|
||||
end
|
||||
|
||||
if activity.data["object"]["attachment"] != [] do
|
||||
Pleroma.Web.Streamer.stream("public:media", activity)
|
||||
|
||||
if activity.local do
|
||||
Pleroma.Web.Streamer.stream("public:local:media", activity)
|
||||
end
|
||||
end
|
||||
else
|
||||
if !Enum.member?(activity.data["cc"] || [], public) &&
|
||||
!Enum.member?(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue