don't trigger shutup if opponent follows you
This commit is contained in:
parent
55d6bbb371
commit
c01f6daedc
|
@ -40,7 +40,7 @@ final class ShutupApi(
|
|||
private def record(userId: String, text: String, textType: TextType, source: Option[PublicSource] = None, toUserId: Option[String] = None): Funit =
|
||||
UserRepo isTroll userId flatMap {
|
||||
case true => funit
|
||||
case false => toUserId ?? { follows(userId, _) } flatMap {
|
||||
case false => toUserId ?? { follows(_, userId) } flatMap {
|
||||
case true => funit
|
||||
case false =>
|
||||
val analysed = Analyser(text)
|
||||
|
|
Loading…
Reference in a new issue