Thomas Daniels 2020-07-20 10:02:34 +02:00
parent fb83c521c6
commit 04bb778bb3
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,8 @@ case class Modlog(
def isLichess = mod == lila.user.User.lichessId
def notable = !isLichess && action != Modlog.terminateTournament
def notable = action != Modlog.terminateTournament
def notableSlack = notable && !isLichess
def showAction =
action match {

View File

@ -244,7 +244,7 @@ final class ModlogApi(repo: ModlogRepo, userRepo: UserRepo, slackApi: lila.slack
lila.mon.mod.log.create.increment()
lila.log("mod").info(m.toString)
m.notable ?? {
coll.insert.one(m) >> slackMonitor(m)
coll.insert.one(m) >> (m.notableSlack ?? slackMonitor(m))
}
}