Skip to content

fix(moderation): ban mateapp.it links - #160

Merged
Diubii merged 2 commits into
mainfrom
fix/ban-mateapp-domain
Nov 2, 2026
Merged

Diubii merged 2 commits into
mainfrom
fix/ban-mateapp-domain

Conversation

@toto04

@toto04 toto04 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Adds mateapp.it to BANNED_DOMAINS in the auto-moderation stack, since the app is being spammed in our groups.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 53 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5ddae119-bb95-4a22-a640-9cdae433ebff
Commits

Reviewing files that changed from the base of the PR and between 88ae4b5 and 8bdfac1.

Files selected for processing: 3
  • src/middlewares/auto-moderation-stack/functions.ts
  • src/middlewares/auto-moderation-stack/hostnames.ts
  • tests/banned-domains.test.ts
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b3d081c5-809f-49ae-8a43-c7eef72eaa3f
Commits

Reviewing files that changed from the base of the PR and between c46b6a1 and 88ae4b5.

Files selected for processing: 1
  • src/middlewares/auto-moderation-stack/constants.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The auto-moderation banned domain list now includes mateapp.it.

Changes

Auto-moderation

Layer / File(s) Summary
Add a banned domain
src/middlewares/auto-moderation-stack/constants.ts
BANNED_DOMAINS now includes mateapp.it.

Change: Bug fix

Merge Risk: Low · previous review 88ae4

Uppercase mateapp.it links can still evade moderation; normalize hostnames before merging.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: banning mateapp.it links in moderation.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Extract and normalize hostnames from text_link entities and raw message text,
and match a banned domain as the bare host or a dot-delimited suffix. Path-based
entries and the existing invite checks are unchanged.
@Diubii
Diubii merged commit 8ef2f5c into main Nov 2, 2026
2 checks passed
@Diubii
Diubii deleted the fix/ban-mateapp-domain branch November 2, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants