Prune old Update activities #683

Merged
floatingghost merged 2 commits from Oneric/akkoma:db-prune-old-updates into develop 2024-02-19 13:59:34 +00:00
Showing only changes of commit 1ef8b967d2 - Show all commits

View file

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