Commit 03529f6a authored by lain's avatar lain
Browse files

Transmogrifier: Don't modify attachments for chats.

parent d0bf8cfb
Pipeline #25513 passed with stages
in 13 minutes and 23 seconds
......@@ -1114,6 +1114,9 @@ def add_attributed_to(object) do
Map.put(object, "attributedTo", attributed_to)
# TODO: Revisit this
def prepare_attachments(%{"type" => "ChatMessage"} = object), do: object
def prepare_attachments(object) do
attachments =
......@@ -54,6 +54,8 @@ test "it posts a chat message" do
assert Chat.get(, recipient.ap_id)
assert Chat.get(, author.ap_id)
assert :ok == Pleroma.Web.Federator.perform(:publish, activity)
test "it reject messages over the local limit" do
Supports Markdown
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