Skip to content

Commit

Permalink
Bug 1905292 - Hide spam content to discourage spammers
Browse files Browse the repository at this point in the history
  • Loading branch information
dklawren authored Jul 15, 2024
1 parent 3f8b70f commit feb14a3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@

FOREACH change_set IN bug.activity_stream;
NEXT IF change_set.cc_only;

# Hide the comment if marked as spam from users without editbugs
NEXT IF change_set.comment && change_set.comment.tags.contains('spam') && !user.in_group('editbugs');

extra_class = change_set.comment.collapsed ? " ca-" _ change_set.comment.author.id : "";
'<div class="change-set' _ extra_class _ '" id="' _ change_set.id _ '">';

Expand Down

0 comments on commit feb14a3

Please sign in to comment.