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

announce likes #420

Merged
merged 12 commits into from
Jan 21, 2024
Merged

announce likes #420

merged 12 commits into from
Jan 21, 2024

Conversation

BentiGorlich
Copy link
Member

if a local magazine receives a like from a remote user it will announce it to all the followers of the magazine

I started a thread about it if anyone wants more context: https://gehirneimer.de/m/Mdev@kbin.run/t/151312/Your-thoughts-on-federating-likes-upvotes

@BentiGorlich BentiGorlich added enhancement New feature or request activitypub ActivityPub related issues backend Backend related issues and pull requests labels Jan 10, 2024
@BentiGorlich BentiGorlich self-assigned this Jan 10, 2024
@BentiGorlich BentiGorlich force-pushed the ap-announce-likes branch 2 times, most recently from 7180ae8 to 9f8884d Compare January 15, 2024 20:02
if a local magazine receives a like from a remote user it will announce it to all the followers of the magazine

- create the `DeliverManager` to avoid code duplicates
- also avoid sending a message twice to the same inbox
In an edge case the like message did not get sent to the remote instance which is hosting the magazine. This case is: Instance A is hosting Magazine M, instance B has users C and D. C creates an entry in M and D likes the post. Because the author of the post is local the like would not get sent to the remote instance which is supposed to get it and then announce it
nobodyatroot
nobodyatroot previously approved these changes Jan 16, 2024
Copy link
Member

@nobodyatroot nobodyatroot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, nothing obvious in the code stands out either. Testing live for the past day or so, no issues.

@BentiGorlich BentiGorlich merged commit 9fd725e into main Jan 21, 2024
7 checks passed
@BentiGorlich BentiGorlich deleted the ap-announce-likes branch January 21, 2024 12:42
andrewmoise pushed a commit to andrewmoise/mbin that referenced this pull request Jan 24, 2024
Co-authored-by: debounced <35878315+nobodyatroot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
activitypub ActivityPub related issues backend Backend related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants