-
-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Was there ever code to send to subscribed instances when a comment is end-user-deleted or mod-removed? #3625
Comments
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
The sending of deleted comments is handled here. So the logic for local or remote community is the same as for other outgoing activities including edit comment (using send_activity_in_community). RawAnnouncableActivities is only used for receiving, not for sending. Its true that the code is unclear or confusing in many ways, I appreciate that you are digging into it. It would also be useful if you add code comments so that its easier for others to understand. And writing federation tests which you are already doing. One possibility is that this delete problem is caused by wrong routing on the receiving side, which is done in activity_lists. Basically incoming activities are deserialized with serde to the |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
…of comment deletes (#3657) * more robust test of unlike a comment, confirm replication to instance downstream from community home * more robust 'delete a comment' test, confirm replication * Far more robust "Report a comment" test. Many comments about situation, this is currently failing because gamma does not get the report * typo and actually have Gamma comment check use gamma, not alpha * prepare-drone-federation-test.sh has some more echo output and note about the LEMMY_DATABASE_URL format (#3651) * Add http cache for webfingers (#3317) * Add http cache for webfingers * Remove the outgoing cache middleware & adjust the cache headers directive * Use 1h & 3day cache header * Update routes and adjust the cache headers location * revert apub caching --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com> Co-authored-by: Felix Ableitner <me@nutomic.com> * Rewrite activity lists to fix delete federation (fixes #3625) * Revert "typo and actually have Gamma comment check use gamma, not alpha" This reverts commit 7dfb6ee. * Revert "Far more robust "Report a comment" test. Many comments about situation, this is currently failing because gamma does not get the report" This reverts commit 7bd3b20. * prettier TypeScript * revised comments, as ResolveObject isn't using routine replication * fmt * fix api tests * remove comment --------- Co-authored-by: cetra3 <cetra3@hotmail.com> Co-authored-by: Dessalines <dessalines@users.noreply.github.com> Co-authored-by: Felix Ableitner <me@nutomic.com>
…of comment deletes (#3657) * more robust test of unlike a comment, confirm replication to instance downstream from community home * more robust 'delete a comment' test, confirm replication * Far more robust "Report a comment" test. Many comments about situation, this is currently failing because gamma does not get the report * typo and actually have Gamma comment check use gamma, not alpha * prepare-drone-federation-test.sh has some more echo output and note about the LEMMY_DATABASE_URL format (#3651) * Add http cache for webfingers (#3317) * Add http cache for webfingers * Remove the outgoing cache middleware & adjust the cache headers directive * Use 1h & 3day cache header * Update routes and adjust the cache headers location * revert apub caching --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com> Co-authored-by: Felix Ableitner <me@nutomic.com> * Rewrite activity lists to fix delete federation (fixes #3625) * Revert "typo and actually have Gamma comment check use gamma, not alpha" This reverts commit 7dfb6ee. * Revert "Far more robust "Report a comment" test. Many comments about situation, this is currently failing because gamma does not get the report" This reverts commit 7bd3b20. * prettier TypeScript * revised comments, as ResolveObject isn't using routine replication * fmt * fix api tests * remove comment --------- Co-authored-by: cetra3 <cetra3@hotmail.com> Co-authored-by: Dessalines <dessalines@users.noreply.github.com> Co-authored-by: Felix Ableitner <me@nutomic.com>
Question
For this situation, you have to have at least 3 servers. ServerA being the home for a community, and a user on ServerB deleting their own comment, which will delete local, federate to ServerA and be deleted on 2 of the servers. However, there seems to be no code to deliver the delete to ServerC (or any more than the first 2 servers).
In contrast, editing of a comment works with 3 or more servers fine. A comment edit comes in to RawAnnouncableActivities function receive and hits this code,
lemmy/crates/apub/src/activities/community/announce.rs
Line 60 in e9e7654
But deletes are not RawAnnouncableActivities and instead go directly into ActivityHandler for Delete function receive, which has no logic to send to community followers.
lemmy/crates/apub/src/activities/deletion/delete.rs
Line 52 in e9e7654
NOTE: For end-users on the home instance of a community, federation does work to delete on all servers. The client API of Lemmy does have code to distribute to subscribed instances. The problem happens when your end-user who comments then deletes-comment is on a server other than the one that is home for the community. To coin a term, federation-incoming-repeater to federation peers.
Questions:
If I've made some kind of big mistake here, I apologize up front. @WayneSheppard called attention to the problem and I confirmed it today in 0.18.2 live servers in #3588 - but I felt that we needed some project archaeology of past behavior. Thank you.
The text was updated successfully, but these errors were encountered: