Add more checks in inbox, plus some refactoring #76

Merged
dessalines merged 6 commits from more-inbox-permissions into main 2020-08-04 14:39:56 +00:00

6 Commits

Author SHA1 Message Date
dessalines 3db2536a1f Merge branch 'main' into more-inbox-permissions 2020-08-04 14:39:24 +00:00
Felix Ableitner bdf6d7c629 Move check_community_ban() into helper function 2020-08-03 15:57:19 +02:00
Felix Ableitner 7d1dd78f86 Move slur check into helper functions 2020-08-03 15:15:44 +02:00
Felix Ableitner c75ee7bbfd 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
2020-08-03 14:51:02 +02:00
Felix Ableitner d0fc8f38e4 Rewrite user_inbox and community_inbox in the same way as shared_inbox 2020-08-03 13:47:50 +02:00
Felix Ableitner d845ea66fe Add check against instance allowlist etc in shared_inbox 2020-08-01 18:01:24 +02:00