1
0
Fork 0
forked from mirrors/akkoma

test: fix typos affecting remove factory

Apparently nothing used this factory until now
This commit is contained in:
Oneric 2024-02-10 01:46:10 +01:00
parent 755c75d8a4
commit 1ef8b967d2

View file

@ -307,7 +307,7 @@ def add_activity_factory(attrs \\ %{}) do
featured_collection_activity(attrs, "Add")
end
def remove_activity_factor(attrs \\ %{}) do
def remove_activity_factory(attrs \\ %{}) do
featured_collection_activity(attrs, "Remove")
end
@ -328,7 +328,7 @@ defp featured_collection_activity(attrs, type) do
"target" => user.featured_address,
"object" => note.data["object"],
"actor" => note.data["actor"],
"type" => "Add",
"type" => type,
"to" => [Pleroma.Constants.as_public()],
"cc" => [user.follower_address]
}