Fix federation of community removal/deletion, added docs #125
Loading…
Reference in New Issue
No description provided.
Delete Branch "community-deletion-federate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Here we go, community deletion and removal are working fine now. There was a problem because Lemmy on the receiving side would refetch the community to confirm the signature etc, but this would fail because the community was already deleted. I worked around this by returning the community from the database if the fetch failed. This obviously causes some errors to be logged.
Also I noticed that
/c/main/followers
and/c/main/outbox
are still served even after the community is deleted. Havent changed that yet because I dont want to break another thing.I'll try to write a test for this now.
edit: looks like I had one, the tests were just commented out.