mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-19 11:29:17 +00:00
ActivityPub: Fallback for unhandled outgoing activities.
This commit is contained in:
parent
2997fe1ba9
commit
44586f2967
|
@ -114,7 +114,7 @@ def prepare_outgoing(%{"type" => "Create", "object" => %{"type" => "Note"} = obj
|
||||||
{:ok, data}
|
{:ok, data}
|
||||||
end
|
end
|
||||||
|
|
||||||
def prepare_outgoing(%{"type" => type} = data) when type in ["Follow", "Accept", "Like", "Announce"] do
|
def prepare_outgoing(%{"type" => type} = data) do
|
||||||
data = data
|
data = data
|
||||||
|> Map.put("@context", "https://www.w3.org/ns/activitystreams")
|
|> Map.put("@context", "https://www.w3.org/ns/activitystreams")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue