prune_objects can prune orphaned activities
authorilja <git@ilja.space>
Sat, 7 Jan 2023 19:52:02 +0000 (20:52 +0100)
committerilja <git@ilja.space>
Sun, 26 Feb 2023 13:41:50 +0000 (14:41 +0100)
commita7ec6e039cdc9ca5a0cc744fbd51511c5ede9f29
tree8837ed547813f4f42e0ac71929d6276e13bdf70b
parent9f34294332bf4d433bd76f4e8a767f1828f1df45
prune_objects can prune orphaned activities

We add an option to also prune remote activities who don't have existing objects any more they reference.
Rn, we only check for activities who only reference one object, not an array or embeded object.
lib/mix/tasks/pleroma/database.ex
test/mix/tasks/pleroma/database_test.exs