feat: limit Discord sharing and support community allowlists
This commit is contained in:
@@ -335,3 +335,11 @@ It excludes session tokens and credentials. `DELETE /api/account` requires match
|
||||
Origin and `{ "confirmation": "DELETE" }`; it atomically removes owned records and
|
||||
revokes every session. Discord posts and retained operator backups are not erased
|
||||
by this action.
|
||||
|
||||
Discord sharing reserves persistent quotas before posting: one new delivery per
|
||||
Discord user per 60 seconds, and ten per channel per 60 seconds. Rechecking an
|
||||
existing delivery does not consume quota. Rejected attempts consume quota too;
|
||||
429 responses include `Retry-After`. Optional `DISCORD_SHARING_ALLOWED_USER_IDS`
|
||||
(comma-separated Discord IDs) restricts posting to community members you approve.
|
||||
An empty list permits all signed-in accounts. Restricted users can still preview
|
||||
and download PNGs. Quota rows expire and are pruned after 24 hours.
|
||||
|
||||
Reference in New Issue
Block a user