[MastodonAPI] the tag field isn’t fixed to a static type in pleroma
This commit is contained in:
parent
83efaa3af6
commit
97e20d2932
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,9 @@ def stream_out(activity) do
|
|||
Pleroma.Web.Streamer.stream("public:local", activity)
|
||||
end
|
||||
|
||||
activity.data["object"]["tag"]
|
||||
activity.data["object"]
|
||||
|> Map.get("tag", [])
|
||||
|> Enum.filter(fn tag -> is_bitstring(tag) end)
|
||||
|> Enum.map(fn tag -> Pleroma.Web.Streamer.stream("hashtag:" <> tag, activity) end)
|
||||
|
||||
if activity.data["object"]["attachment"] != [] do
|
||||
|
|
Loading…
Reference in a new issue