Skip to content
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

Fix duplicate reports being sent when reporting some remote posts #27355

Merged
merged 1 commit into from Oct 10, 2023

Conversation

ClearlyClaire
Copy link
Contributor

Whenever a remote post in reply to the same server is replied to, Mastodon may send two copies of the Flag activity: one for the reported user, and one for people being replied to.

This is because the report is sent to the reported account's personal inbox (not changed, in case other software rely on this) and reports to replied-to users are sent using shared inbox, with the existing deduplication logic not accounting for this discrepancy.

Whenever a remote post in reply to the same server is replied to, Mastodon may
send two copies of the `Flag` payload: one for the reported user, and one for
people being replied to.
@ClearlyClaire ClearlyClaire added bug Something isn't working to backport PR needed to be backported labels Oct 10, 2023
@ClearlyClaire ClearlyClaire merged commit 27e84c0 into main Oct 10, 2023
66 checks passed
@ClearlyClaire ClearlyClaire deleted the fixes/remote-report-reply branch October 10, 2023 14:00
@ClearlyClaire ClearlyClaire removed the to backport PR needed to be backported label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants