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
2020-08-04 14:39:55 +00:00
..
claims.rs Remove extra jwt claims (for user settings) (#1025) 2020-07-27 09:23:08 -04:00
comment.rs Add more checks in inbox, plus some refactoring (#76) 2020-08-04 14:39:55 +00:00
community.rs Add more checks in inbox, plus some refactoring (#76) 2020-08-04 14:39:55 +00:00
mod.rs Add more checks in inbox, plus some refactoring (#76) 2020-08-04 14:39:55 +00:00
post.rs Add more checks in inbox, plus some refactoring (#76) 2020-08-04 14:39:55 +00:00
site.rs Add more checks in inbox, plus some refactoring (#76) 2020-08-04 14:39:55 +00:00
user.rs Add more checks in inbox, plus some refactoring (#76) 2020-08-04 14:39:55 +00:00