Skip to content

Commit

Permalink
increase superban comment tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSaltyy committed Feb 7, 2025
1 parent e5aead8 commit 3bda7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/lib/supabase/super-ban-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ async function superBanUser(userId: string) {

const comments = await api('comments', { userId })

if (comments.length > 15) {
commentsStatus = 'not hidden (>15)'
if (comments.length > 30) {
commentsStatus = 'not hidden (>30)'
} else {
if (comments.length > 0) {
const commentsToHide = comments.filter((comment) => !comment.hidden)
Expand Down

0 comments on commit 3bda7f9

Please sign in to comment.