forked from AkkomaGang/akkoma
ActivityPub: Implement outgoing likes.
This commit is contained in:
parent
e1b12a7782
commit
32b995fbb6
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,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"] do
|
def prepare_outgoing(%{"type" => type} = data) when type in ["Follow", "Accept", "Like"] 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