fix(jamagrams): moderators are not held to the Jam-a-Gram send limits

Moderators send follow-up cards while helping players. The server skips its
sends-per-ten-minutes limit for them, and the client's per-recipient
session cap (ECardXtCommManager, now in swf-src and built from there) is
skipped for userInfo.isModerator.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
SnipzilandClaude Opus 5.5 committed 2026-10-21 22:42:10 -04:00
1 parent 3423df10f8
commit e67fbe95e1
3 files changed
+321 -1

No files matched your search

+2 -1
View File
@@ -251,7 +251,8 @@ module.exports = ({findOnline, blocks}) => {
// silenced: no words of their own reach anyone, in a card either.
if (!to || to === account || !art.cards.includes(Number(card)) || !art.stamps.includes(Number(stamp))
|| !accounts.featureOn(account, "jamagrams") || (isSilenced(account) && clean(message || "") !== "")
|| !sendsPerTenMinutes.allow(account.id)) {
// The client also skips its per-recipient cap for moderators.
|| (!account.isModerator && !sendsPerTenMinutes.allow(account.id))) {
reply(FAILED);
return;
}