ActivityPub: Add conversation id.
This commit is contained in:
parent
912ca56e59
commit
8ca66b5961
2 changed files with 7 additions and 1 deletions
|
|
@ -104,6 +104,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
|||
|> add_mention_tags
|
||||
|> add_attributed_to
|
||||
|> prepare_attachments
|
||||
|> set_conversation
|
||||
|
||||
data = data
|
||||
|> Map.put("object", object)
|
||||
|
|
@ -139,6 +140,10 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
|||
|> Map.put("tag", tags ++ mentions)
|
||||
end
|
||||
|
||||
def set_conversation(object) do
|
||||
Map.put(object, "conversation", object["context"])
|
||||
end
|
||||
|
||||
def add_attributed_to(object) do
|
||||
attributedTo = object["attributedTo"] || object["actor"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue