]> Untitled Git - lemmy.git/commit
Add more checks in inbox, plus some refactoring (#76)
authornutomic <nutomic@noreply.yerbamate.dev>
Tue, 4 Aug 2020 14:39:55 +0000 (14:39 +0000)
committerdessalines <dessalines@noreply.yerbamate.dev>
Tue, 4 Aug 2020 14:39:55 +0000 (14:39 +0000)
commit76cd6ac6bc7e286e6b15363b5c3904523bc326a9
treeed2d167515856b93df72714f32ec12d1090c26af
parentce874e183b7df1522d2d88c05af0c8a27d415703
Add more checks in inbox, plus some refactoring (#76)

Merge branch 'main' into more-inbox-permissions

Move check_community_ban() into helper function

Move slur check into helper functions

Move Claims::decode and site ban check into helper function

Note: this changes behaviour in that site ban is checked in more
places now. we could easily add a boolean parameter
check_for_site_ban to get the previous behaviour back

Rewrite user_inbox and community_inbox in the same way as shared_inbox

Add check against instance allowlist etc in shared_inbox

Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/76
13 files changed:
server/src/api/comment.rs
server/src/api/community.rs
server/src/api/mod.rs
server/src/api/post.rs
server/src/api/site.rs
server/src/api/user.rs
server/src/apub/activities.rs
server/src/apub/fetcher.rs
server/src/apub/inbox/activities/create.rs
server/src/apub/inbox/community_inbox.rs
server/src/apub/inbox/shared_inbox.rs
server/src/apub/inbox/user_inbox.rs
server/src/apub/mod.rs