Skip to content

Commit

Permalink
filter out appeal reports in mod timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 29, 2024
1 parent 3dab318 commit ff14823
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/api/src/main/ModTimeline.scala
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ final class ModTimelineApi(
else if note.text.startsWith("Appeal reply:") then false
else true

private def filterReport(r: Report): Boolean = !r.isSpontaneous
private def filterReport(r: Report): Boolean =
!r.isSpontaneous && !r.isAppeal

private object modsList:
var all: Set[ModId] = Set(UserId.lichess.into(ModId))
Expand Down

0 comments on commit ff14823

Please sign in to comment.