Fix sbed-sbed communication

Private messages communication between shadow-banned users was still possible (received notifications, messages weren't hidden in inbox).
pull/9791/head
kraktus 2021-09-13 13:54:45 +02:00
parent 75436fa831
commit b72c76d68a
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ final private class MsgSecurity(
spam.detect(text) ?? fuccess(Spam.some)
private def isTroll(contacts: User.Contacts): Fu[Option[Verdict]] =
(contacts.orig.isTroll && !contacts.dest.isTroll) ?? fuccess(Troll.some)
contacts.orig.isTroll ?? fuccess(Troll.some)
private def isDirt(user: User.Contact, text: String, isNew: Boolean): Fu[Option[Verdict]] =
(isNew && Analyser(text).dirty) ??