]> Untitled Git - lemmy.git/commit
Separate logic for user and community inbox
authorFelix Ableitner <me@nutomic.com>
Wed, 28 Oct 2020 16:14:18 +0000 (17:14 +0100)
committerFelix Ableitner <me@nutomic.com>
Mon, 9 Nov 2020 12:42:08 +0000 (13:42 +0100)
commitb469b6d8d3d2bbeb81708ed80e575b2d62ea8743
treecb8ca6ebec09e1811aa1a3952df104ee8dc14e5f
parent7e13970a4f3d9ccd3c56225324596c55260aa637
Separate logic for user and community inbox

more refactoring with tons of changes:

- inbox functions return LemmyError instead of HttpResponse
- announce is done directly in community inbox
- reorganized functions for handling inbox activities
- additional checks for private messages
- moved inbox handler functions for post, comment, vote into separete file
- ensure that posts, comments etc are addressed to public (ref #1220)
- probably more
12 files changed:
lemmy_apub/src/activities/receive/comment.rs
lemmy_apub/src/activities/receive/comment_undo.rs
lemmy_apub/src/activities/receive/community.rs
lemmy_apub/src/activities/receive/mod.rs
lemmy_apub/src/activities/receive/post.rs
lemmy_apub/src/activities/receive/post_undo.rs
lemmy_apub/src/activities/receive/private_message.rs [new file with mode: 0644]
lemmy_apub/src/inbox/community_inbox.rs
lemmy_apub/src/inbox/mod.rs
lemmy_apub/src/inbox/receive_for_community.rs [new file with mode: 0644]
lemmy_apub/src/inbox/shared_inbox.rs
lemmy_apub/src/inbox/user_inbox.rs