ActivityPub: Implement outgoing likes.

This commit is contained in:
lain 2018-02-17 20:22:14 +01:00
parent e1b12a7782
commit 32b995fbb6

View File

@ -96,7 +96,7 @@ def prepare_outgoing(%{"type" => "Create", "object" => %{"type" => "Note"} = obj
{:ok, data}
end
def prepare_outgoing(%{"type" => type} = data) when type in ["Follow", "Accept"] do
def prepare_outgoing(%{"type" => type} = data) when type in ["Follow", "Accept", "Like"] do
data = data
|> Map.put("@context", "https://www.w3.org/ns/activitystreams")