Transmogrifier: Don't modify attachments for chats.

This commit is contained in:
lain 2020-05-08 18:26:35 +02:00
commit 03529f6a05
2 changed files with 5 additions and 0 deletions

View file

@ -1114,6 +1114,9 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
Map.put(object, "attributedTo", attributed_to)
end
# TODO: Revisit this
def prepare_attachments(%{"type" => "ChatMessage"} = object), do: object
def prepare_attachments(object) do
attachments =
object