You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/server/src/api
nutomic 76cd6ac6bc 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
4 years ago
..
claims.rs Remove extra jwt claims (for user settings) (#1025) 4 years ago
comment.rs Add more checks in inbox, plus some refactoring (#76) 4 years ago
community.rs Add more checks in inbox, plus some refactoring (#76) 4 years ago
mod.rs Add more checks in inbox, plus some refactoring (#76) 4 years ago
post.rs Add more checks in inbox, plus some refactoring (#76) 4 years ago
site.rs Add more checks in inbox, plus some refactoring (#76) 4 years ago
user.rs Add more checks in inbox, plus some refactoring (#76) 4 years ago