mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2375] [MERGED] Suppress mentions in Discord webhook mirror payloads #5563
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5563
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2375
Author: @Romuromylus
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/6/2026
Merged by: @Romuromylus
Base:
refactor← Head:fix/discord-allowed-mentions📝 Commits (1)
a7f6f02Suppress mentions in Discord webhook mirror payloads📊 Changes
1 file changed (+59 additions, -19 deletions)
View changed files
📝
src-tauri/src/commands/storage/integrations/discord.rs(+59 -19)📄 Description
Linked issue
Closes #2369
Why this change
The Discord mirror built its webhook payload with no
allowed_mentionsfield. Discord parses mentions incontentby default when the field is absent, so any@everyone/@here/ role / user mention in the mirrored model or card output fired real notifications on the target server.What changed
build_discord_payloadand always setallowed_mentionsto{ "parse": [] }, disabling all mention resolution while leaving the visible text intact (suppression at the API level, not by mangling content).Refactor impact
Primary owner: Rust integrations (
src-tauri/src/commands/storage/integrations/discord.rs)Impact areas reviewed:
Boundary notes:
Pressure points touched:
Validation
pnpm checkpasses before PR push/handoffManual verification notes
cargo clippy --workspace --all-targets -- -D warnings— cleancargo test --workspace— green, including newpayload_always_suppresses_mentionsandpayload_rejects_reserved_avatar_url.Feature Discoverability
Reason:
Docs and release impact
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.