don't mention OP - closes #4102

This commit is contained in:
Thibault Duplessis 2018-03-06 13:57:38 -05:00
parent 06727a4997
commit 3c192abba9

View file

@ -50,5 +50,5 @@ final class MentionNotifier(notifyApi: NotifyApi, relationApi: RelationApi) {
}
private def extractMentionedUsers(post: Post): Set[User.ID] =
lila.common.String.atUsernameRegex.findAllMatchIn(post.text).map(_ group 1).toSet
lila.common.String.atUsernameRegex.findAllMatchIn(post.text).map(_ group 1).toSet - ~post.author
}