Commit 77690b9d authored by rinpatch's avatar rinpatch

Merge branch 'fix/stream_out-normalize-only-creates' into 'develop'

Do not normalize objects in stream_out unless the activity type is Create

See merge request pleroma/pleroma!1109
parents 32a4501d ce4825c1
......@@ -168,7 +168,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
public = ""
if["type"] in ["Create", "Announce", "Delete"] do
object = Object.normalize(activity)"user", activity)"list", activity)
......@@ -180,6 +179,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
if["type"] in ["Create"] do
object = Object.normalize(activity)
|> Map.get("tag", [])
|> Enum.filter(fn tag -> is_bitstring(tag) end)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment