Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

feat(enforcement): record decisions and send notices (#3492)

Hampusf5c30fdf8fc2
diff --git a/fluxer_admin/openapi-admin.json b/fluxer_admin/openapi-admin.json
index ae9d42f0e..026a3bb61 100644
--- a/fluxer_admin/openapi-admin.json
+++ b/fluxer_admin/openapi-admin.json
@@ -1251,7 +1251,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Add a value to a blocklist. The request body is the shape the blocklist named by list_type accepts, and the value is validated and canonicalized for that blocklist. Adding an IP address that is on the instance exemption list is refused with 400 IP_BAN_DECLINED and recorded in the audit log.",
+ "description": "Add a value to a blocklist. The request body is the shape the blocklist named by list_type accepts, and the value is validated and canonicalized for that blocklist. Adding an IP address that is on the instance exemption list is refused with 400 IP_BAN_DECLINED and recorded in the audit log. An IP address blocked by an enforcement decision returns 409 IP_BAN_LINKED_TO_DECISION with the decision ID, because only an account decision creates or changes such a block.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -1600,7 +1600,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Remove an entry from a blocklist. The value is percent-encoded in the path and is canonicalized the same way it was on add, so an IP covered only by a broader CIDR entry cannot be removed through the narrower address. The profile-substring blocklist requires a scope.",
+ "description": "Remove an entry from a blocklist. The value is percent-encoded in the path and is canonicalized the same way it was on add, so an IP covered only by a broader CIDR entry cannot be removed through the narrower address. An IP block that belongs to an enforcement decision returns 409 IP_BAN_LINKED_TO_DECISION with the decision ID, and is removed by ending that decision. The profile-substring blocklist requires a scope.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -1983,7 +1983,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Deletes a single message permanently and purges its attachments. Used for removing inappropriate or harmful content. Logged to audit log. Requires MESSAGE_DELETE permission.",
+ "description": "Deletes a single message permanently and purges its attachments. The basis is holder_request or housekeeping, such as cleanup of webhook or system messages. To remove a message for breaking a rule, shred it with an enforcement basis so a decision records it. Logged to audit log with the basis. Requires MESSAGE_DELETE permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -2006,7 +2006,11 @@
},
"description": "The ID of the message"
}
- ]
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminMessageDeleteRequest"}}}
+ }
}
},
"/admin/discovery/applications": {
@@ -2526,6 +2530,317 @@
}
}
},
+ "/admin/enforcement-decisions": {
+ "get": {
+ "operationId": "list_admin_enforcement_decisions",
+ "summary": "List enforcement decisions",
+ "tags": ["Admin"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionListResponse"}}
+ }
+ },
+ "400": {
+ "description": "Bad Request - The request was malformed or contained invalid data",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "401": {
+ "description": "Unauthorized - Authentication is required or the token is invalid",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "403": {
+ "description": "Forbidden - You do not have permission to perform this action",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "429": {
+ "description": "Too Many Requests - You are being rate limited",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
+ "headers": {
+ "Retry-After": {
+ "description": "Number of seconds to wait before retrying (only on 429)",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Limit": {
+ "description": "The number of requests that can be made in the current window",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Remaining": {
+ "description": "The number of remaining requests that can be made",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Reset": {
+ "description": "Unix timestamp when the rate limit resets",
+ "schema": {"type": "integer"}
+ }
+ }
+ },
+ "500": {
+ "description": "Internal Server Error - An unexpected error occurred",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ }
+ },
+ "description": "Lists the enforcement decisions about one user or community, newest first, without notes or evidence. With review_queue=true it lists the automated decisions waiting for a person instead, such as purchase limits after a chargeback. A person takes one out of the queue by ending it or by recording a warning, suspension or closure on the same account. Report IDs are empty without REPORT_VIEW. Requires ENFORCEMENT_VIEW permission.",
+ "security": [{"adminApiKey": []}],
+ "parameters": [
+ {
+ "name": "review_queue",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "List the automated decisions waiting for a person to review them instead of one subject",
+ "default": "false",
+ "type": "string"
+ },
+ "description": "List the automated decisions waiting for a person to review them instead of one subject"
+ },
+ {
+ "name": "subject_type",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Kind of subject whose decisions to list",
+ "type": "string",
+ "enum": ["user", "guild"]
+ },
+ "description": "Kind of subject whose decisions to list"
+ },
+ {
+ "name": "subject_id",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "ID of the user or community whose decisions to list",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
+ },
+ "description": "ID of the user or community whose decisions to list"
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "required": false,
+ "schema": {"description": "Maximum number of decisions to return", "default": "50", "type": "string"},
+ "description": "Maximum number of decisions to return"
+ },
+ {
+ "name": "before",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Return decisions with IDs lower than this decision ID",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
+ },
+ "description": "Return decisions with IDs lower than this decision ID"
+ }
+ ]
+ }
+ },
+ "/admin/enforcement-decisions/{decision_id}": {
+ "get": {
+ "operationId": "get_admin_enforcement_decision",
+ "summary": "Get enforcement decision",
+ "tags": ["Admin"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionResponse"}}}
+ },
+ "400": {
+ "description": "Bad Request - The request was malformed or contained invalid data",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "401": {
+ "description": "Unauthorized - Authentication is required or the token is invalid",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "403": {
+ "description": "Forbidden - You do not have permission to perform this action",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "429": {
+ "description": "Too Many Requests - You are being rate limited",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
+ "headers": {
+ "Retry-After": {
+ "description": "Number of seconds to wait before retrying (only on 429)",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Limit": {
+ "description": "The number of requests that can be made in the current window",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Remaining": {
+ "description": "The number of remaining requests that can be made",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Reset": {
+ "description": "Unix timestamp when the rate limit resets",
+ "schema": {"type": "integer"}
+ }
+ }
+ },
+ "500": {
+ "description": "Internal Server Error - An unexpected error occurred",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ }
+ },
+ "description": "Returns one enforcement decision with its notes, evidence and the notice the holder sees now. Evidence content and profile values are null without MESSAGE_LOOKUP, and report IDs are empty without REPORT_VIEW. Requires ENFORCEMENT_VIEW permission.",
+ "security": [{"adminApiKey": []}],
+ "parameters": [
+ {
+ "name": "decision_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "description": "The ID of the enforcement decision",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
+ },
+ "description": "The ID of the enforcement decision"
+ }
+ ]
+ }
+ },
+ "/admin/enforcement-decisions/{decision_id}/end": {
+ "post": {
+ "operationId": "end_admin_enforcement_decision",
+ "summary": "End an enforcement decision",
+ "tags": ["Admin"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionResponse"}}}
+ },
+ "400": {
+ "description": "Bad Request - The request was malformed or contained invalid data",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "401": {
+ "description": "Unauthorized - Authentication is required or the token is invalid",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "403": {
+ "description": "Forbidden - You do not have permission to perform this action",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "429": {
+ "description": "Too Many Requests - You are being rate limited",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
+ "headers": {
+ "Retry-After": {
+ "description": "Number of seconds to wait before retrying (only on 429)",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Limit": {
+ "description": "The number of requests that can be made in the current window",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Remaining": {
+ "description": "The number of remaining requests that can be made",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Reset": {
+ "description": "Unix timestamp when the rate limit resets",
+ "schema": {"type": "integer"}
+ }
+ }
+ },
+ "500": {
+ "description": "Internal Server Error - An unexpected error occurred",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ }
+ },
+ "description": "Ends an active decision as lifted or reversed, undoes what can be undone and emails the holder. Ending a suspension lifts it, and returns 409 when a later decision replaced it. Warnings, removals and suspensions that ended as expired can only be reversed. Creates audit log entry. Requires ENFORCEMENT_VIEW permission plus the permission of the route that made the decision, such as USER_TEMP_BAN for a suspension or USER_UPDATE_FLAGS for a warning.",
+ "security": [{"adminApiKey": []}],
+ "parameters": [
+ {
+ "name": "decision_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "description": "The ID of the enforcement decision",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
+ },
+ "description": "The ID of the enforcement decision"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionEndRequest"}}}
+ }
+ }
+ },
+ "/admin/enforcement-decisions/{decision_id}/notes": {
+ "post": {
+ "operationId": "annotate_admin_enforcement_decision",
+ "summary": "Add a note to an enforcement decision",
+ "tags": ["Admin"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionNoteResponse"}}
+ }
+ },
+ "400": {
+ "description": "Bad Request - The request was malformed or contained invalid data",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "401": {
+ "description": "Unauthorized - Authentication is required or the token is invalid",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "403": {
+ "description": "Forbidden - You do not have permission to perform this action",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "429": {
+ "description": "Too Many Requests - You are being rate limited",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
+ "headers": {
+ "Retry-After": {
+ "description": "Number of seconds to wait before retrying (only on 429)",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Limit": {
+ "description": "The number of requests that can be made in the current window",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Remaining": {
+ "description": "The number of remaining requests that can be made",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Reset": {
+ "description": "Unix timestamp when the rate limit resets",
+ "schema": {"type": "integer"}
+ }
+ }
+ },
+ "500": {
+ "description": "Internal Server Error - An unexpected error occurred",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ }
+ },
+ "description": "Appends an internal note to an enforcement decision. Notes are staff only, never change and expire with the evidence after a year. Creates audit log entry. Requires ENFORCEMENT_ANNOTATE permission.",
+ "security": [{"adminApiKey": []}],
+ "parameters": [
+ {
+ "name": "decision_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "description": "The ID of the enforcement decision",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
+ },
+ "description": "The ID of the enforcement decision"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionNoteRequest"}}}
+ }
+ }
+ },
"/admin/gateway/memory-stats": {
"get": {
"operationId": "get_admin_gateway_memory_stats",
@@ -3074,7 +3389,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Permanently deletes a guild. The guild becomes unavailable at once, and a background job deletes all channels, messages, and settings. Irreversible operation with no recovery window. Logged to audit log. Requires GUILD_DELETE permission.",
+ "description": "Permanently deletes a guild. The guild becomes unavailable at once, and a background job deletes all channels, messages, and settings. Irreversible operation with no recovery window. The basis is enforcement or holder_request. An enforcement basis records a community removal decision and sends its notice to the owner, and is refused for child safety and violent extremism reasons. Logged to audit log. Requires GUILD_DELETE permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -3084,7 +3399,11 @@
"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
"description": "The ID of the guild"
}
- ]
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminGuildDeleteRequest"}}}
+ }
}
},
"/admin/guilds/{guild_id}/archives": {
@@ -5399,7 +5718,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Moves a report to the resolved status. The reporter is always told the report was reviewed: an account reporter by system DM and email, a Digital Services Act notifier by email. notify_reporter false leaves the public comment out of that notice. Nothing is sent when the reporter account is deleted or barred from reporting. Creates an audit log entry. Requires REPORT_RESOLVE permission.",
+ "description": "Moves a report to the resolved status. resolution is required. actioned also needs the outcome for the reported item, and no_violation sets the outcome no_violation. duplicate needs duplicate_of and takes the outcome stored on that report. The reporter is told the outcome: an account reporter by system DM and email, a Digital Services Act notifier by email. A duplicate of a report with no outcome yet is resolved without telling the reporter. notify_reporter false leaves the public comment out of that notice. Nothing is sent when the reporter account is deleted, or barred from reporting when the report was filed. Creates an audit log entry. Requires REPORT_RESOLVE permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -6273,12 +6592,12 @@
"/admin/users/{user_id}/ban": {
"put": {
"operationId": "ban_admin_user",
- "summary": "Ban user",
+ "summary": "Suspend user",
"tags": ["Admin"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserRestrictionResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -6319,7 +6638,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Apply temporary ban to user account for specified duration, or permanently with a duration of zero. Prevents login and guild operations. Automatically lifts after expiry. Creates audit log entry. Requires USER_TEMP_BAN permission. Emails the user for temporary bans unless notify_user is false. Permanent bans are never emailed.",
+ "description": "Suspend the account for duration_hours, or permanently with a duration of zero, and record the enforcement decision behind it. The decision is written first, then the suspension, then linked reports are resolved and the notice is sent. The X-Audit-Log-Reason header is required and becomes the first note. remove_evidence queues removal of the evidence messages after they are snapshotted. block_networks blocks addresses the account used in the last 30 days, for 90 days unless days says otherwise, and only with a permanent suspension. Exempt and special-purpose addresses, and addresses already blocked permanently or by another decision, are skipped and listed in skipped_ips. An address on which another account that is not suspended or closed was last active is refused with ENFORCEMENT_NETWORK_SHARED. Returns 409 when the account is closed. Requires USER_TEMP_BAN permission, plus MESSAGE_LOOKUP for evidence, REPORT_VIEW and REPORT_RESOLVE for reports, MESSAGE_SHRED for remove_evidence, and BAN_IP_ADD and USER_VIEW_IP for block_networks.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -6337,7 +6656,7 @@
},
"delete": {
"operationId": "unban_admin_user",
- "summary": "Unban user",
+ "summary": "Lift a suspension without a decision",
"tags": ["Admin"],
"responses": {
"200": {
@@ -6383,70 +6702,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Immediately remove the ban from the user account. Emails the user only when notify_user is true, the ban was still in force and the account is not closed or pending deletion. The email shows public_reason and never the audit log reason. Creates audit log entry. Requires USER_TEMP_BAN permission.",
- "security": [{"adminApiKey": []}],
- "parameters": [
- {
- "name": "user_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
- "description": "The ID of the user"
- }
- ],
- "requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserUnbanRequest"}}}
- }
- }
- },
- "/admin/users/{user_id}/ban/notes": {
- "post": {
- "operationId": "annotate_admin_user_ban",
- "summary": "Add a note to a user ban",
- "tags": ["Admin"],
- "responses": {
- "204": {"description": "No Content"},
- "400": {
- "description": "Bad Request - The request was malformed or contained invalid data",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
- },
- "401": {
- "description": "Unauthorized - Authentication is required or the token is invalid",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
- },
- "403": {
- "description": "Forbidden - You do not have permission to perform this action",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
- },
- "429": {
- "description": "Too Many Requests - You are being rate limited",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
- "headers": {
- "Retry-After": {
- "description": "Number of seconds to wait before retrying (only on 429)",
- "schema": {"type": "integer"}
- },
- "X-RateLimit-Limit": {
- "description": "The number of requests that can be made in the current window",
- "schema": {"type": "integer"}
- },
- "X-RateLimit-Remaining": {
- "description": "The number of remaining requests that can be made",
- "schema": {"type": "integer"}
- },
- "X-RateLimit-Reset": {
- "description": "Unix timestamp when the rate limit resets",
- "schema": {"type": "integer"}
- }
- }
- },
- "500": {
- "description": "Internal Server Error - An unexpected error occurred",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
- }
- },
- "description": "Append a note to the current ban of a user. The note is recorded as the reason of a new annotate_ban audit log entry whose metadata names the ban audit log entry. Earlier entries are never changed. Requires USER_TEMP_BAN permission.",
+ "description": "Lift a suspension that no enforcement decision owns, such as one from before decisions existed. Returns 409 with the decision ID when a decision owns the suspension, which is then ended through its end route. Emails the user that the restriction ended when the suspension was still in force. Creates audit log entry. Requires USER_TEMP_BAN permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -6456,11 +6712,7 @@
"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
"description": "The ID of the user"
}
- ],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserBanNoteRequest"}}}
- }
+ ]
}
},
"/admin/users/{user_id}/bot-status": {
@@ -6681,7 +6933,7 @@
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserRestrictionResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -6722,7 +6974,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Schedule user account for deletion after grace period. Account will be fully deleted with all content unless cancellation is executed. When a deletion is already scheduled, the request must name it in replace_pending_deletion_at or it returns 409. Records who scheduled the deletion. Creates audit log entry. Requires USER_DELETE permission. Emails the user unless notify_user is false. The email depends on reason_code: user requested and inactivity get neutral wording, other codes get enforcement wording with an appeal path.",
+ "description": "Close the account and schedule its deletion. The basis says why. A broken rule records an enforcement decision kind closure, keeps the account for at least 74 days so an appeal can be reviewed first (14 days on a self-hosted instance, which has no appeals), sends the notice and, when the rule bars new accounts, bans the account email. The X-Audit-Log-Reason header is then required and becomes the first note. A holder request or housekeeping keeps the account for at least 14 days, sends a neutral email, and is cancelled when the holder signs in. Those two return 409 while an enforcement decision owns the account state. When a deletion is already scheduled, the request must name it in replace_pending_deletion_at or it returns 409. block_networks works as on the suspend route and is refused for the other bases. Executing the deletion removes the blocks. Creates audit log entry. Requires USER_DELETE permission, plus MESSAGE_LOOKUP for evidence, REPORT_VIEW and REPORT_RESOLVE for reports, MESSAGE_SHRED for remove_evidence, and BAN_IP_ADD and USER_VIEW_IP for block_networks.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -6786,7 +7038,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Cancel the scheduled account deletion named by expected_pending_deletion_at. Returns 409 when a different deletion is pending and 400 when none is. The user is emailed only when notify_user is true, and the email never includes the audit log reason. Creates audit log entry recording the cancelled deletion. Requires USER_DELETE permission.",
+ "description": "Cancel a scheduled deletion that no enforcement decision owns, named by expected_pending_deletion_at, such as one the holder asked for, an inactivity deletion or a closure from before decisions existed. Returns 409 with the decision ID when a decision owns the deletion, which is then ended through its end route, 409 when a different deletion is pending and 400 when none is. Emails the user that the deletion was cancelled, or that the restriction ended for a closure from before decisions existed. Creates audit log entry recording the cancelled deletion. Requires USER_DELETE permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -7031,6 +7283,72 @@
]
}
},
+ "/admin/users/{user_id}/feature-limits": {
+ "put": {
+ "operationId": "limit_admin_user_features",
+ "summary": "Limit user features",
+ "tags": ["Admin"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
+ },
+ "400": {
+ "description": "Bad Request - The request was malformed or contained invalid data",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "401": {
+ "description": "Unauthorized - Authentication is required or the token is invalid",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "403": {
+ "description": "Forbidden - You do not have permission to perform this action",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "429": {
+ "description": "Too Many Requests - You are being rate limited",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
+ "headers": {
+ "Retry-After": {
+ "description": "Number of seconds to wait before retrying (only on 429)",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Limit": {
+ "description": "The number of requests that can be made in the current window",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Remaining": {
+ "description": "The number of remaining requests that can be made",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Reset": {
+ "description": "Unix timestamp when the rate limit resets",
+ "schema": {"type": "integer"}
+ }
+ }
+ },
+ "500": {
+ "description": "Internal Server Error - An unexpected error occurred",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ }
+ },
+ "description": "Record an enforcement decision that limits one feature and send its notice by email and system DM. Direct messages set SPAMMER and are allowed for spam, automation, fraud and malware reasons only. Reports set REPORT_BANNED until ends_at, 90 days by default and at most 365, and expire on their own. Purchases set PURCHASE_DISABLED for payment reasons. The X-Audit-Log-Reason header is required and becomes the first note. Requires USER_UPDATE_FLAGS permission, plus MESSAGE_LOOKUP for evidence and REPORT_VIEW and REPORT_RESOLVE for reports.",
+ "security": [{"adminApiKey": []}],
+ "parameters": [
+ {
+ "name": "user_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
+ "description": "The ID of the user"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserFeatureLimitRequest"}}}
+ }
+ }
+ },
"/admin/users/{user_id}/flags": {
"patch": {
"operationId": "update_admin_user_flags",
@@ -7080,7 +7398,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Add or remove user flags to control account features and restrictions. Flags determine verification status and special properties. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.",
+ "description": "Add or remove user flags. Flags that record a restriction go through their own routes: adding DISABLED, DELETED, SPAMMER or REPORT_BANNED and removing DELETED return 400, removing DISABLED while a suspension is set returns 400, and removing SPAMMER or REPORT_BANNED while an enforcement decision holds it returns 409 with the decision ID. A self-disabled account can still have DISABLED removed. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -7308,7 +7626,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Queues bulk shredding of the given messages of a user, with attachment deletion. Returns a job ID to track progress asynchronously. Used for large-scale content removal. Requires MESSAGE_SHRED permission.",
+ "description": "Queues bulk shredding of the given messages of a user, with attachment deletion. Returns a job ID to track progress asynchronously. With an enforcement basis the first 50 entries are snapshotted as the evidence of a content removal decision before the job is queued, every entry for child safety and violent extremism reasons, and the user is sent its notice. Requires MESSAGE_SHRED permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -7374,7 +7692,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Deletes all messages from a specific user across all channels. Permanent operation used for account suspension or policy violation. Pass dry_run=false to delete; the default counts without deleting. Requires MESSAGE_DELETE_ALL permission.",
+ "description": "Deletes all messages from a specific user across all channels. Pass dry_run=false to delete, with a basis in the body. The default counts without deleting and records nothing. An enforcement basis records a content removal decision and sends its notice, and is refused for child safety and violent extremism reasons, which must shred explicit entries instead. Requires MESSAGE_DELETE_ALL permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -7395,7 +7713,11 @@
},
"description": "Count the messages that would be deleted without deleting anything (default true)"
}
- ]
+ ],
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserMessageDeleteRequest"}}}
+ }
}
},
"/admin/users/{user_id}/mfa": {
@@ -7457,6 +7779,68 @@
]
}
},
+ "/admin/users/{user_id}/network-block-candidates": {
+ "get": {
+ "operationId": "list_admin_user_network_block_candidates",
+ "summary": "List networks a suspension or closure can block",
+ "tags": ["Admin"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NetworkBlockCandidatesResponse"}}}
+ },
+ "400": {
+ "description": "Bad Request - The request was malformed or contained invalid data",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "401": {
+ "description": "Unauthorized - Authentication is required or the token is invalid",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "403": {
+ "description": "Forbidden - You do not have permission to perform this action",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "429": {
+ "description": "Too Many Requests - You are being rate limited",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
+ "headers": {
+ "Retry-After": {
+ "description": "Number of seconds to wait before retrying (only on 429)",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Limit": {
+ "description": "The number of requests that can be made in the current window",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Remaining": {
+ "description": "The number of remaining requests that can be made",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Reset": {
+ "description": "Unix timestamp when the rate limit resets",
+ "schema": {"type": "integer"}
+ }
+ }
+ },
+ "500": {
+ "description": "Internal Server Error - An unexpected error occurred",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ }
+ },
+ "description": "Lists the addresses the account used in the last 30 days, most recent first, with how many other accounts that are not suspended or closed were last active on each. These are the addresses block_networks accepts on the suspend and close routes. Requires USER_VIEW_IP permission.",
+ "security": [{"adminApiKey": []}],
+ "parameters": [
+ {
+ "name": "user_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
+ "description": "The ID of the user"
+ }
+ ]
+ }
+ },
"/admin/users/{user_id}/password-reset": {
"post": {
"operationId": "send_admin_user_password_reset",
@@ -7627,7 +8011,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Add or remove premium-related flags on a user account (badge visibility, override, purchase block, etc). Creates audit log entry. Requires USER_UPDATE_FLAGS permission.",
+ "description": "Add or remove premium-related flags on a user account (badge visibility, override, purchase block, etc). Adding PURCHASE_DISABLED returns 400, because a purchase limit is recorded through the feature limits route, and removing it while an enforcement decision holds it returns 409 with the decision ID. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -7695,7 +8079,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Clear or reset user profile fields such as bio, avatar, or status. Creates audit log entry. Requires USER_UPDATE_PROFILE permission.",
+ "description": "Clears profile fields such as the bio, avatar or display name. An enforcement basis saves the old values as evidence, records a profile reset decision and sends its notice by system DM and email. Creates audit log entry. Requires USER_UPDATE_PROFILE permission.",
"security": [{"adminApiKey": []}],
"parameters": [
{
@@ -8487,6 +8871,72 @@
]
}
},
+ "/admin/users/{user_id}/warnings": {
+ "post": {
+ "operationId": "warn_admin_user",
+ "summary": "Warn user",
+ "tags": ["Admin"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserWarningResponse"}}}
+ },
+ "400": {
+ "description": "Bad Request - The request was malformed or contained invalid data",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "401": {
+ "description": "Unauthorized - Authentication is required or the token is invalid",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "403": {
+ "description": "Forbidden - You do not have permission to perform this action",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ },
+ "429": {
+ "description": "Too Many Requests - You are being rate limited",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
+ "headers": {
+ "Retry-After": {
+ "description": "Number of seconds to wait before retrying (only on 429)",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Limit": {
+ "description": "The number of requests that can be made in the current window",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Remaining": {
+ "description": "The number of remaining requests that can be made",
+ "schema": {"type": "integer"}
+ },
+ "X-RateLimit-Reset": {
+ "description": "Unix timestamp when the rate limit resets",
+ "schema": {"type": "integer"}
+ }
+ }
+ },
+ "500": {
+ "description": "Internal Server Error - An unexpected error occurred",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ }
+ },
+ "description": "Record a warning decision and send its notice by email and system DM. Nothing about the account changes. The X-Audit-Log-Reason header is required and becomes the first note. Refused for reasons that only allow a suspension or content removal. Requires USER_UPDATE_FLAGS permission, plus MESSAGE_LOOKUP for evidence and REPORT_VIEW and REPORT_RESOLVE for reports.",
+ "security": [{"adminApiKey": []}],
+ "parameters": [
+ {
+ "name": "user_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
+ "description": "The ID of the user"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserWarningRequest"}}}
+ }
+ }
+ },
"/admin/users/{user_id}/webauthn-credentials": {
"get": {
"operationId": "list_admin_user_webauthn_credentials",
@@ -9716,6 +10166,22 @@
"type": "array",
"items": {"$ref": "#/components/schemas/WebAuthnCredentialResponse"}
},
+ "AdminUserWarningRequest": {
+ "type": "object",
+ "properties": {"decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]}},
+ "required": ["decision"]
+ },
+ "AdminUserWarningResponse": {
+ "type": "object",
+ "properties": {
+ "decision_id": {
+ "description": "The warning decision",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
+ }
+ },
+ "required": ["decision_id"],
+ "additionalProperties": false
+ },
"AdminUserUsernameUpdateRequest": {
"type": "object",
"properties": {
@@ -9864,6 +10330,7 @@
"type": "object",
"properties": {
"fields": {
+ "minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
@@ -9880,9 +10347,10 @@
"type": "string"
},
"description": "List of profile fields to clear"
- }
+ },
+ "basis": {"allOf": [{"$ref": "#/components/schemas/ModerationBasis"}]}
},
- "required": ["fields"]
+ "required": ["fields", "basis"]
},
"AdminUserPremiumFlagsUpdateRequest": {
"type": "object",
@@ -9923,6 +10391,45 @@
"required": ["url", "expires_at"],
"additionalProperties": false
},
+ "NetworkBlockCandidatesResponse": {
+ "type": "object",
+ "properties": {
+ "networks": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "ip": {"type": "string"},
+ "last_seen_at": {"type": "string", "description": "When the account last used this address"},
+ "skip_reason": {
+ "nullable": true,
+ "description": "Why this address would be skipped. Null when it can be blocked",
+ "type": "string",
+ "enum": ["exempt", "special_purpose"]
+ },
+ "other_unrestricted_accounts": {
+ "description": "Other accounts that are not suspended or closed and were last active on this address. Blocking is refused when this is above zero",
+ "allOf": [{"$ref": "#/components/schemas/Int32Type"}]
+ }
+ },
+ "required": ["ip", "last_seen_at", "skip_reason", "other_unrestricted_accounts"],
+ "additionalProperties": false
+ },
+ "description": "Addresses the account used in the last 30 days, most recent first"
+ }
+ },
+ "required": ["networks"],
+ "additionalProperties": false
+ },
+ "AdminUserMessageDeleteRequest": {
+ "type": "object",
+ "properties": {
+ "basis": {
+ "description": "Why the messages are removed. Required unless dry_run is true. An enforcement basis refuses child safety and violent extremism reasons",
+ "allOf": [{"$ref": "#/components/schemas/ModerationBasis"}]
+ }
+ }
+ },
"DeleteAllUserMessagesResponse": {
"type": "object",
"properties": {
@@ -9930,7 +10437,11 @@
"dry_run": {"type": "boolean"},
"channel_count": {"$ref": "#/components/schemas/Int32Type"},
"message_count": {"$ref": "#/components/schemas/Int32Type"},
- "job_id": {"type": "string"}
+ "job_id": {"type": "string"},
+ "decision_id": {
+ "description": "The content removal decision, for an enforcement basis",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
+ }
},
"required": ["success", "dry_run", "channel_count", "message_count"],
"additionalProperties": false
@@ -9950,16 +10461,21 @@
},
"required": ["channel_id", "message_id"]
}
- }
+ },
+ "basis": {"allOf": [{"$ref": "#/components/schemas/ModerationBasis"}]}
},
- "required": ["entries"]
+ "required": ["entries", "basis"]
},
"MessageShredResponse": {
"type": "object",
"properties": {
"success": {"type": "boolean", "enum": [true]},
"job_id": {"type": "string"},
- "requested": {"type": "integer", "minimum": 0, "maximum": 9007199254740991}
+ "requested": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
+ "decision_id": {
+ "description": "The content removal decision, for an enforcement basis",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
+ }
},
"required": ["success", "job_id"],
"additionalProperties": false
@@ -9995,6 +10511,24 @@
}
}
},
+ "AdminUserFeatureLimitRequest": {
+ "type": "object",
+ "properties": {
+ "limit": {
+ "type": "string",
+ "enum": ["direct_messages", "reports", "purchases"],
+ "description": "The one feature this decision limits. Direct messages are for spam, automation, fraud and malware reasons only, reports for misuse of reporting, purchases for payment reasons"
+ },
+ "ends_at": {
+ "description": "When a reports limit ends, at most 365 days away. Defaults to 90 days. Refused for other limits",
+ "type": "string",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
+ },
+ "decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]}
+ },
+ "required": ["limit", "decision"]
+ },
"AdminUserEmailUpdateRequest": {
"type": "object",
"properties": {
@@ -10150,11 +10684,6 @@
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "pending_deletion_at of the deletion being cancelled, as shown on the account"
- },
- "notify_user": {
- "default": false,
- "description": "Whether to email the user that the deletion was cancelled",
- "type": "boolean"
}
},
"required": ["expected_pending_deletion_at"]
@@ -10162,17 +10691,11 @@
"AdminUserDeletionScheduleRequest": {
"type": "object",
"properties": {
- "reason_code": {
- "description": "Code indicating the reason for deletion",
- "allOf": [{"$ref": "#/components/schemas/DeletionReasonCode"}]
- },
- "public_reason": {"description": "Public-facing reason for the deletion", "type": "string"},
"days_until_deletion": {
- "default": 60,
- "description": "Number of days until the account is deleted",
"type": "integer",
"minimum": 1,
- "maximum": 365
+ "maximum": 365,
+ "description": "Days until the account is deleted. Raised to 14, or to 74 when a rule was broken so an appeal can be reviewed first. Self-hosted instances have no appeals and raise every basis to 14"
},
"replace_pending_deletion_at": {
"description": "pending_deletion_at of the deletion this request replaces. Required when a deletion is already scheduled for the account",
@@ -10180,13 +10703,27 @@
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
- "notify_user": {
- "default": true,
- "description": "Whether to email the user about the scheduled deletion",
+ "basis": {"allOf": [{"$ref": "#/components/schemas/ModerationBasis"}]},
+ "remove_evidence": {
+ "description": "Remove the evidence messages after they are snapshotted into the decision. Enforcement basis only",
"type": "boolean"
+ },
+ "block_networks": {"allOf": [{"$ref": "#/components/schemas/NetworkBlockRequest"}]}
+ },
+ "required": ["days_until_deletion", "basis"]
+ },
+ "UserRestrictionResponse": {
+ "type": "object",
+ "properties": {
+ "user": {"$ref": "#/components/schemas/UserAdminResponseSchema"},
+ "skipped_ips": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/SkippedNetworkBlock"},
+ "description": "Requested network blocks that were not written, with the reason"
}
},
- "required": ["reason_code"]
+ "required": ["user", "skipped_ips"],
+ "additionalProperties": false
},
"AdminUserDobUpdateRequest": {
"type": "object",
@@ -10224,34 +10761,6 @@
"properties": {"bot": {"type": "boolean", "description": "Whether the user should be marked as a bot"}},
"required": ["bot"]
},
- "AdminUserBanNoteRequest": {
- "type": "object",
- "properties": {
- "ban_audit_log_id": {
- "description": "Audit log entry of the current ban that the note refers to",
- "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
- },
- "note": {
- "description": "Note to append to the ban. Recorded as the reason of a new audit log entry",
- "type": "string"
- }
- },
- "required": ["ban_audit_log_id", "note"]
- },
- "AdminUserUnbanRequest": {
- "type": "object",
- "properties": {
- "notify_user": {
- "default": true,
- "description": "Whether to email the user that the suspension was lifted",
- "type": "boolean"
- },
- "public_reason": {
- "description": "Reason shown to the user in the unban email. The audit log reason is never emailed",
- "type": "string"
- }
- }
- },
"AdminUserBanRequest": {
"type": "object",
"properties": {
@@ -10259,16 +10768,16 @@
"type": "integer",
"minimum": 0,
"maximum": 8760,
- "description": "Duration of the ban in hours. Use 0 for a permanent ban (until manually unbanned)."
+ "description": "Duration of the suspension in hours. Use 0 for a permanent suspension"
},
- "reason": {"description": "Reason shown to the user in the ban email", "type": "string"},
- "notify_user": {
- "default": true,
- "description": "Whether to email the user about a temporary ban. Permanent bans (duration_hours 0) are never emailed",
+ "decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]},
+ "remove_evidence": {
+ "description": "Remove the evidence messages after they are snapshotted into the decision",
"type": "boolean"
- }
+ },
+ "block_networks": {"allOf": [{"$ref": "#/components/schemas/NetworkBlockRequest"}]}
},
- "required": ["duration_hours"]
+ "required": ["duration_hours", "decision"]
},
"BanUserAvatarRequest": {
"type": "object",
@@ -10338,7 +10847,7 @@
"type": "object",
"properties": {
"acls": {
- "maxItems": 107,
+ "maxItems": 109,
"type": "array",
"items": {"$ref": "#/components/schemas/AdminAclType"},
"description": "List of access control permissions to assign"
@@ -10515,9 +11024,25 @@
],
"enum": ["actioned", "no_violation", "duplicate"],
"type": "string"
+ },
+ "outcome": {
+ "description": "What happened to the reported content or account. Required for actioned, where no_violation is refused. Optional for no_violation, where it can only be no_violation. Refused for duplicate. The reporter is told it",
+ "x-enumNames": ["removed", "restricted", "action_taken", "no_violation"],
+ "x-enumDescriptions": [
+ "The reported content, profile field or community was removed",
+ "The reported account was restricted and the content was left up",
+ "Action was taken under the rules, and the reporter is not told which",
+ "The reported content or account does not break the rules and was left as it is"
+ ],
+ "enum": ["removed", "restricted", "action_taken", "no_violation"],
+ "type": "string"
+ },
+ "duplicate_of": {
+ "description": "The report this one repeats. Required for duplicate and refused otherwise. The reporter is told the outcome of that report, or nothing while it has none",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
}
},
- "required": ["status"]
+ "required": ["status", "resolution"]
},
"ResolveReportResponse": {
"type": "object",
@@ -12354,6 +12879,11 @@
"required": ["processed", "errors"],
"additionalProperties": false
},
+ "AdminGuildDeleteRequest": {
+ "type": "object",
+ "properties": {"basis": {"allOf": [{"$ref": "#/components/schemas/CommunityRemovalBasis"}]}},
+ "required": ["basis"]
+ },
"UpdateGuildRequest": {
"type": "object",
"properties": {
@@ -12827,6 +13357,382 @@
"required": ["guilds"],
"additionalProperties": false
},
+ "EnforcementDecisionNoteRequest": {
+ "type": "object",
+ "properties": {"body": {"description": "The internal note. Staff only", "type": "string"}},
+ "required": ["body"]
+ },
+ "EnforcementDecisionNoteResponse": {
+ "type": "object",
+ "properties": {
+ "note_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "author_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "body": {"type": "string"},
+ "created_at": {"type": "string"}
+ },
+ "required": ["note_id", "author_id", "body", "created_at"],
+ "additionalProperties": false
+ },
+ "EnforcementDecisionEndRequest": {
+ "type": "object",
+ "properties": {
+ "outcome": {
+ "type": "string",
+ "enum": ["lifted", "reversed"],
+ "description": "Lifted ends a restriction that was correct. Reversed says the decision was wrong"
+ },
+ "statement": {"description": "Note to the user, shown in the email", "type": "string"}
+ },
+ "required": ["outcome"]
+ },
+ "EnforcementDecisionResponse": {
+ "type": "object",
+ "properties": {
+ "decision_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "subject_type": {"type": "string", "enum": ["user", "guild"]},
+ "subject_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "subject_name": {
+ "nullable": true,
+ "description": "Community name or bot username when the decision was made",
+ "type": "string"
+ },
+ "recipient_user_id": {
+ "nullable": true,
+ "description": "Who receives the notice",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
+ },
+ "kind": {"allOf": [{"$ref": "#/components/schemas/EnforcementKindType"}]},
+ "reason_code": {"$ref": "#/components/schemas/Int32Type"},
+ "source": {"type": "string", "enum": ["report", "own_review"]},
+ "automation": {"type": "string", "enum": ["none", "flagged", "automated"]},
+ "statement": {"nullable": true, "type": "string"},
+ "rights_holder": {"nullable": true, "type": "string"},
+ "ends_at": {"nullable": true, "type": "string"},
+ "deletion_at": {"nullable": true, "type": "string"},
+ "limit": {"nullable": true, "type": "string", "enum": ["direct_messages", "reports", "purchases"]},
+ "profile_fields": {"type": "array", "items": {"type": "string"}},
+ "removed_message_count": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
+ "removed_all_messages": {"type": "boolean"},
+ "payment_at": {"nullable": true, "type": "string"},
+ "report_ids": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "description": "Empty without the report view permission"
+ },
+ "decided_by": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "created_at": {"type": "string"},
+ "status": {"type": "string", "enum": ["active", "ended"]},
+ "end_outcome": {
+ "nullable": true,
+ "description": "Expired is recorded by Fluxer when a temporary suspension runs out",
+ "type": "string",
+ "enum": ["lifted", "reversed", "expired"]
+ },
+ "ended_at": {"nullable": true, "type": "string"},
+ "ended_by": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
+ "end_statement": {"nullable": true, "type": "string"},
+ "notice_status": {"type": "string", "enum": ["pending", "sent", "undelivered"]},
+ "notice_channels": {"type": "array", "items": {"type": "string", "enum": ["email", "system_dm", "sign_in"]}},
+ "notice_locale": {"nullable": true, "type": "string"},
+ "notice_text": {"nullable": true, "description": "The plain text that was sent", "type": "string"},
+ "notice_sent_at": {"nullable": true, "type": "string"},
+ "expired": {"type": "boolean", "description": "An active suspension or feature limit whose end has passed"},
+ "replaced": {
+ "type": "boolean",
+ "description": "An active suspension or closure that a later decision replaced"
+ },
+ "notes": {"type": "array", "items": {"$ref": "#/components/schemas/EnforcementDecisionNoteResponse"}},
+ "evidence": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "message_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "channel_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
+ "timestamp": {"type": "string"},
+ "content": {
+ "nullable": true,
+ "description": "Null without the message lookup permission, and for restricted decisions",
+ "type": "string"
+ },
+ "attachments": {
+ "nullable": true,
+ "description": "Attachment details without the files. Null without the message lookup permission",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "filename": {"type": "string"},
+ "size": {"nullable": true, "type": "string"},
+ "content_type": {"nullable": true, "type": "string"}
+ },
+ "required": ["filename", "size", "content_type"],
+ "additionalProperties": false
+ }
+ },
+ "attachment_count": {"$ref": "#/components/schemas/Int32Type"}
+ },
+ "required": ["message_id", "channel_id", "timestamp", "content", "attachments", "attachment_count"],
+ "additionalProperties": false
+ },
+ "description": "Empty once the evidence has expired"
+ },
+ "profile_values": {
+ "nullable": true,
+ "description": "Profile values before a reset. Null without the message lookup permission",
+ "type": "object",
+ "additionalProperties": {"type": "string"}
+ },
+ "network_blocks": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "ip": {"type": "string", "description": "Masked without the IP view permission"},
+ "expires_at": {"nullable": true, "type": "string"}
+ },
+ "required": ["ip", "expires_at"],
+ "additionalProperties": false
+ },
+ "description": "Network blocks that belong to this decision and have not expired"
+ },
+ "notice": {
+ "properties": {
+ "decision_id": {
+ "nullable": true,
+ "description": "The decision reference. Null for restrictions from before decisions",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
+ },
+ "kind": {"allOf": [{"$ref": "#/components/schemas/EnforcementKindType"}]},
+ "permanent": {"type": "boolean", "description": "Whether this is a suspension with no end"},
+ "issued_at": {
+ "nullable": true,
+ "description": "When the decision was made, as an ISO 8601 timestamp",
+ "type": "string"
+ },
+ "ends_at": {
+ "nullable": true,
+ "description": "When a suspension or feature limit ends, as an ISO 8601 timestamp",
+ "type": "string"
+ },
+ "deletion_at": {
+ "nullable": true,
+ "description": "When a closed account or bot is deleted, as an ISO 8601 timestamp",
+ "type": "string"
+ },
+ "summary": {"type": "string", "description": "One sentence saying what happened"},
+ "effects": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "What the decision means for the holder, one sentence each"
+ },
+ "rule": {
+ "nullable": true,
+ "description": "The rule the decision relies on, null when none was recorded",
+ "type": "object",
+ "properties": {
+ "title": {"type": "string", "description": "Title of the rule that was broken"},
+ "url": {
+ "nullable": true,
+ "description": "Link to the rule, null when the instance publishes none",
+ "type": "string"
+ }
+ },
+ "required": ["title", "url"],
+ "additionalProperties": false
+ },
+ "facts": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "The finding first, then where and when it happened"
+ },
+ "statement": {"nullable": true, "description": "Note to the holder from the team", "type": "string"},
+ "how_we_decided": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "How the case reached the team and who decided it"
+ },
+ "appeal": {
+ "nullable": true,
+ "description": "How to appeal, null when the instance offers no appeal route",
+ "type": "object",
+ "properties": {
+ "email": {"type": "string", "description": "Address that takes appeals"},
+ "deadline": {
+ "nullable": true,
+ "description": "Last day to appeal, already formatted for the reader",
+ "type": "string"
+ },
+ "account_has_email": {
+ "type": "boolean",
+ "description": "Whether the account has an email address to write from"
+ }
+ },
+ "required": ["email", "deadline", "account_has_email"],
+ "additionalProperties": false
+ },
+ "redress": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "Other ways to challenge the decision"
+ }
+ },
+ "description": "What the holder sees now, rendered in English",
+ "allOf": [{"$ref": "#/components/schemas/EnforcementNotice"}]
+ }
+ },
+ "required": [
+ "decision_id",
+ "subject_type",
+ "subject_id",
+ "subject_name",
+ "recipient_user_id",
+ "kind",
+ "reason_code",
+ "source",
+ "automation",
+ "statement",
+ "rights_holder",
+ "ends_at",
+ "deletion_at",
+ "limit",
+ "profile_fields",
+ "removed_message_count",
+ "removed_all_messages",
+ "payment_at",
+ "report_ids",
+ "decided_by",
+ "created_at",
+ "status",
+ "end_outcome",
+ "ended_at",
+ "ended_by",
+ "end_statement",
+ "notice_status",
+ "notice_channels",
+ "notice_locale",
+ "notice_text",
+ "notice_sent_at",
+ "expired",
+ "replaced",
+ "notes",
+ "evidence",
+ "profile_values",
+ "network_blocks",
+ "notice"
+ ],
+ "additionalProperties": false
+ },
+ "EnforcementDecisionListResponse": {
+ "type": "object",
+ "properties": {
+ "decisions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "decision_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "subject_type": {"type": "string", "enum": ["user", "guild"]},
+ "subject_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "subject_name": {
+ "nullable": true,
+ "description": "Community name or bot username when the decision was made",
+ "type": "string"
+ },
+ "recipient_user_id": {
+ "nullable": true,
+ "description": "Who receives the notice",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
+ },
+ "kind": {"allOf": [{"$ref": "#/components/schemas/EnforcementKindType"}]},
+ "reason_code": {"$ref": "#/components/schemas/Int32Type"},
+ "source": {"type": "string", "enum": ["report", "own_review"]},
+ "automation": {"type": "string", "enum": ["none", "flagged", "automated"]},
+ "statement": {"nullable": true, "type": "string"},
+ "rights_holder": {"nullable": true, "type": "string"},
+ "ends_at": {"nullable": true, "type": "string"},
+ "deletion_at": {"nullable": true, "type": "string"},
+ "limit": {"nullable": true, "type": "string", "enum": ["direct_messages", "reports", "purchases"]},
+ "profile_fields": {"type": "array", "items": {"type": "string"}},
+ "removed_message_count": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
+ "removed_all_messages": {"type": "boolean"},
+ "payment_at": {"nullable": true, "type": "string"},
+ "report_ids": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "description": "Empty without the report view permission"
+ },
+ "decided_by": {"$ref": "#/components/schemas/SnowflakeStringType"},
+ "created_at": {"type": "string"},
+ "status": {"type": "string", "enum": ["active", "ended"]},
+ "end_outcome": {
+ "nullable": true,
+ "description": "Expired is recorded by Fluxer when a temporary suspension runs out",
+ "type": "string",
+ "enum": ["lifted", "reversed", "expired"]
+ },
+ "ended_at": {"nullable": true, "type": "string"},
+ "ended_by": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
+ "end_statement": {"nullable": true, "type": "string"},
+ "notice_status": {"type": "string", "enum": ["pending", "sent", "undelivered"]},
+ "notice_channels": {
+ "type": "array",
+ "items": {"type": "string", "enum": ["email", "system_dm", "sign_in"]}
+ },
+ "notice_locale": {"nullable": true, "type": "string"},
+ "notice_text": {"nullable": true, "description": "The plain text that was sent", "type": "string"},
+ "notice_sent_at": {"nullable": true, "type": "string"},
+ "expired": {
+ "type": "boolean",
+ "description": "An active suspension or feature limit whose end has passed"
+ },
+ "replaced": {
+ "type": "boolean",
+ "description": "An active suspension or closure that a later decision replaced"
+ }
+ },
+ "required": [
+ "decision_id",
+ "subject_type",
+ "subject_id",
+ "subject_name",
+ "recipient_user_id",
+ "kind",
+ "reason_code",
+ "source",
+ "automation",
+ "statement",
+ "rights_holder",
+ "ends_at",
+ "deletion_at",
+ "limit",
+ "profile_fields",
+ "removed_message_count",
+ "removed_all_messages",
+ "payment_at",
+ "report_ids",
+ "decided_by",
+ "created_at",
+ "status",
+ "end_outcome",
+ "ended_at",
+ "ended_by",
+ "end_statement",
+ "notice_status",
+ "notice_channels",
+ "notice_locale",
+ "notice_text",
+ "notice_sent_at",
+ "expired",
+ "replaced"
+ ],
+ "additionalProperties": false
+ }
+ }
+ },
+ "required": ["decisions"],
+ "additionalProperties": false
+ },
"DiscoveryAdminRemoveRequest": {
"type": "object",
"properties": {"reason": {"type": "string", "minLength": 1, "maxLength": 500, "description": "Removal reason"}},
@@ -12943,6 +13849,11 @@
"type": "array",
"items": {"$ref": "#/components/schemas/DiscoveryAdminPendingApplicationResponse"}
},
+ "AdminMessageDeleteRequest": {
+ "type": "object",
+ "properties": {"basis": {"allOf": [{"$ref": "#/components/schemas/MessageDeletionBasis"}]}},
+ "required": ["basis"]
+ },
"DeleteMessageResponse": {
"type": "object",
"properties": {"success": {"type": "boolean", "enum": [true]}},
@@ -13071,36 +13982,26 @@
{
"type": "object",
"properties": {
- "reason_code": {
- "description": "Code indicating the reason for deletion",
- "allOf": [{"$ref": "#/components/schemas/DeletionReasonCode"}]
- },
- "public_reason": {"description": "Public-facing reason for the deletion", "type": "string"},
- "days_until_deletion": {
- "default": 60,
- "description": "Number of days until the accounts are deleted",
- "type": "integer",
- "minimum": 1,
- "maximum": 365
- },
- "notify_user": {
- "default": true,
- "description": "Whether to email the user about the scheduled deletion",
- "type": "boolean"
- },
"user_ids": {
"maxItems": 1000,
"type": "array",
"items": {"$ref": "#/components/schemas/SnowflakeType"},
"description": "List of user IDs to schedule deletion for"
},
+ "days_until_deletion": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 365,
+ "description": "Days until the account is deleted. Raised to 14, or to 74 when a rule was broken so an appeal can be reviewed first. Self-hosted instances have no appeals and raise every basis to 14"
+ },
+ "basis": {"allOf": [{"$ref": "#/components/schemas/BulkModerationBasis"}]},
"task": {
"type": "string",
"enum": ["schedule_user_deletion"],
"description": "Schedules account deletion for every targeted user"
}
},
- "required": ["reason_code", "user_ids", "task"]
+ "required": ["user_ids", "days_until_deletion", "basis", "task"]
},
{
"type": "object",
@@ -13111,13 +14012,14 @@
"items": {"$ref": "#/components/schemas/SnowflakeType"},
"description": "List of user IDs whose messages will be deleted"
},
+ "basis": {"allOf": [{"$ref": "#/components/schemas/BulkModerationBasis"}]},
"task": {
"type": "string",
"enum": ["delete_user_messages"],
"description": "Deletes every message authored by each targeted user, across all channels"
}
},
- "required": ["user_ids", "task"]
+ "required": ["user_ids", "basis", "task"]
}
]
},
@@ -13150,9 +14052,14 @@
"nullable": true,
"description": "ISO 8601 timestamp when the matching ban expires. Null when the ban is permanent, when nothing matches, and on every blocklist other than ip.",
"type": "string"
+ },
+ "decision_id": {
+ "nullable": true,
+ "description": "Enforcement decision the matching ip block belongs to. Null for a block added through the blocklist, when nothing matches, and on every blocklist other than ip.",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
}
},
- "required": ["banned", "expires_at"],
+ "required": ["banned", "expires_at", "decision_id"],
"additionalProperties": false
},
"AdminBlocklistBulkDeleteRequest": {
@@ -13555,7 +14462,7 @@
},
"acls": {
"description": "Replacement list of access control permissions for the key",
- "maxItems": 107,
+ "maxItems": 109,
"type": "array",
"items": {"$ref": "#/components/schemas/AdminAclType"}
}
@@ -13573,7 +14480,7 @@
"type": "string"
},
"acls": {
- "maxItems": 107,
+ "maxItems": 109,
"type": "array",
"items": {"type": "string"},
"description": "List of access control permissions for the key"
@@ -13603,7 +14510,7 @@
"maximum": 365
},
"acls": {
- "maxItems": 107,
+ "maxItems": 109,
"type": "array",
"items": {"$ref": "#/components/schemas/AdminAclType"},
"description": "List of access control permissions for the key"
@@ -13624,7 +14531,7 @@
"type": "string"
},
"acls": {
- "maxItems": 107,
+ "maxItems": 109,
"type": "array",
"items": {"type": "string"},
"description": "List of access control permissions for the key"
@@ -13637,7 +14544,7 @@
"type": "object",
"properties": {
"acls": {
- "maxItems": 107,
+ "maxItems": 109,
"type": "array",
"items": {"type": "string", "minLength": 1, "maxLength": 64},
"description": "Every admin access control permission the admin API recognises"
@@ -13694,6 +14601,8 @@
"bulk:update:user_flags",
"discovery:remove",
"discovery:review",
+ "enforcement:annotate",
+ "enforcement:view",
"gateway:memory_stats",
"gateway:reload_all",
"gift_codes:generate",
@@ -14103,37 +15012,31 @@
"notes": {"description": "Internal notes for audit trail", "type": "string"}
}
},
- "DeletionReasonCode": {
- "description": "Reason the account was scheduled for deletion",
- "type": "integer",
- "minimum": 0,
- "maximum": 2147483647,
- "format": "int32",
- "x-enumNames": [
- "USER_REQUESTED",
- "OTHER",
- "SPAM",
- "CHEATING_OR_EXPLOITATION",
- "COORDINATED_RAIDING",
- "AUTOMATION_OR_SELFBOT",
- "NONCONSENSUAL_SEXUAL_CONTENT",
- "SCAM_OR_SOCIAL_ENGINEERING",
- "CHILD_SEXUAL_CONTENT",
- "PRIVACY_VIOLATION_OR_DOXXING",
- "HARASSMENT_OR_BULLYING",
- "PAYMENT_FRAUD",
- "CHILD_SAFETY_VIOLATION",
- "BILLING_DISPUTE_OR_ABUSE",
- "UNSOLICITED_EXPLICIT_CONTENT",
- "GRAPHIC_VIOLENCE",
- "BAN_EVASION",
- "TOKEN_OR_CREDENTIAL_SCAM",
- "INACTIVITY",
- "HATE_SPEECH_OR_EXTREMIST_CONTENT",
- "MALICIOUS_LINKS_OR_MALWARE",
- "IMPERSONATION_OR_FAKE_IDENTITY"
+ "BulkModerationBasis": {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "type": {"type": "string", "enum": ["enforcement"]},
+ "decision": {"allOf": [{"$ref": "#/components/schemas/BulkEnforcementDecisionInput"}]}
+ },
+ "required": ["type", "decision"],
+ "description": "A rule was broken. Records an enforcement decision and sends its notice"
+ },
+ {
+ "type": "object",
+ "properties": {"type": {"type": "string", "enum": ["holder_request"]}},
+ "required": ["type"],
+ "description": "The account holder or community owner asked"
+ },
+ {
+ "type": "object",
+ "properties": {"type": {"type": "string", "enum": ["housekeeping"]}},
+ "required": ["type"],
+ "description": "Nobody's conduct is involved, such as inactivity or cleanup"
+ }
],
- "enum": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
+ "description": "Why the action is taken"
},
"GuildFeatureSchema": {
"description": "A guild feature flag Known values: ANIMATED_ICON, ANIMATED_BANNER, AUDIO_BITRATE_128_KBPS, AUDIO_BITRATE_256_KBPS, AUDIO_BITRATE_384_KBPS, BANNER, CLONE_EMOJI_DISABLED, CLONE_EMOJI_ENABLED, CLONE_STICKER_DISABLED, CLONE_STICKER_ENABLED, DETACHED_BANNER, INVITE_SPLASH, INVITES_DISABLED, RAID_DETECTED, TEXT_CHANNEL_FLEXIBLE_NAMES, HIDE_OWNER_CROWN, MORE_EMOJI, MORE_STICKERS, UNLIMITED_EMOJI, UNLIMITED_STICKERS, EXPRESSION_PURGE_ALLOWED, VANITY_URL, DISCOVERABLE, PARTNERED, VERIFIED, VIP_VOICE, VOICE_E2EE, UNAVAILABLE_FOR_EVERYONE, UNAVAILABLE_FOR_EVERYONE_BUT_STAFF, UNAVAILABLE_HIDDEN, VISIONARY, LARGE_GUILD_OVERRIDE, VERY_LARGE_GUILD, ANNOUNCEMENT_CHANNELS_DISABLED (other values allowed)",
@@ -14268,6 +15171,69 @@
}
]
},
+ "BulkEnforcementDecisionInput": {
+ "type": "object",
+ "properties": {
+ "reason_code": {"allOf": [{"$ref": "#/components/schemas/EnforcementReasonCodeType"}]},
+ "source": {
+ "type": "string",
+ "enum": ["own_review"],
+ "description": "Bulk decisions cannot link reports, so the team always found them in its own review"
+ },
+ "automation": {
+ "type": "string",
+ "enum": ["none", "flagged"],
+ "description": "Whether automated tools flagged this before a person on the team decided"
+ },
+ "statement": {
+ "description": "Note to the user, shown in every notice. It is the only fact a bulk decision can give",
+ "type": "string"
+ }
+ },
+ "required": ["reason_code", "source", "automation", "statement"],
+ "additionalProperties": false,
+ "description": "Why every account in the job is restricted. Reports and evidence messages are refused in bulk"
+ },
+ "EnforcementReasonCodeType": {
+ "description": "Reason code of an enforcement decision",
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 2147483647,
+ "format": "int32",
+ "x-enumNames": [
+ "SPAM",
+ "CHEATING_OR_EXPLOITATION",
+ "COORDINATED_RAIDING",
+ "AUTOMATION_OR_SELFBOT",
+ "NONCONSENSUAL_SEXUAL_CONTENT",
+ "SCAM_OR_SOCIAL_ENGINEERING",
+ "CHILD_SEXUAL_CONTENT",
+ "PRIVACY_VIOLATION_OR_DOXXING",
+ "HARASSMENT_OR_BULLYING",
+ "PAYMENT_FRAUD",
+ "CHILD_SAFETY_VIOLATION",
+ "BILLING_DISPUTE_OR_ABUSE",
+ "UNSOLICITED_EXPLICIT_CONTENT",
+ "GRAPHIC_VIOLENCE",
+ "BAN_EVASION",
+ "TOKEN_OR_CREDENTIAL_SCAM",
+ "HATE_SPEECH_OR_EXTREMIST_CONTENT",
+ "MALICIOUS_LINKS_OR_MALWARE",
+ "IMPERSONATION_OR_FAKE_IDENTITY",
+ "THREATS_OR_VIOLENT_SPEECH",
+ "VIOLENT_EXTREMISM",
+ "SELF_HARM_PROMOTION",
+ "SEXUAL_CONTENT_PLACEMENT",
+ "ILLEGAL_GOODS_OR_ACTIVITY",
+ "HARMFUL_DECEPTION",
+ "REPORTING_ABUSE",
+ "UNDERAGE_ACCOUNT",
+ "COPYRIGHT"
+ ],
+ "enum": [
+ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
+ ]
+ },
"MessageResponseSchema": {
"type": "object",
"properties": {
@@ -15765,6 +16731,23 @@
{"name": "BANNER_UNSET", "value": "2", "description": "Guild member banner is unset"}
]
},
+ "MessageDeletionBasis": {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {"type": {"type": "string", "enum": ["holder_request"]}},
+ "required": ["type"],
+ "description": "The account holder or community owner asked"
+ },
+ {
+ "type": "object",
+ "properties": {"type": {"type": "string", "enum": ["housekeeping"]}},
+ "required": ["type"],
+ "description": "Nobody's conduct is involved, such as inactivity or cleanup"
+ }
+ ],
+ "description": "Why the message is deleted. To remove a message for breaking a rule, shred it with an enforcement basis instead"
+ },
"DiscoveryAdminPendingApplicationResponse": {
"type": "object",
"properties": {
@@ -15873,6 +16856,119 @@
],
"additionalProperties": false
},
+ "EnforcementKindType": {
+ "type": "string",
+ "enum": [
+ "warning",
+ "suspension",
+ "closure",
+ "feature_limit",
+ "content_removal",
+ "profile_reset",
+ "community_removal"
+ ],
+ "description": "What the decision did"
+ },
+ "EnforcementNotice": {
+ "type": "object",
+ "properties": {
+ "decision_id": {
+ "nullable": true,
+ "description": "The decision reference. Null for restrictions from before decisions",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
+ },
+ "kind": {"allOf": [{"$ref": "#/components/schemas/EnforcementKindType"}]},
+ "permanent": {"type": "boolean", "description": "Whether this is a suspension with no end"},
+ "issued_at": {
+ "nullable": true,
+ "description": "When the decision was made, as an ISO 8601 timestamp",
+ "type": "string"
+ },
+ "ends_at": {
+ "nullable": true,
+ "description": "When a suspension or feature limit ends, as an ISO 8601 timestamp",
+ "type": "string"
+ },
+ "deletion_at": {
+ "nullable": true,
+ "description": "When a closed account or bot is deleted, as an ISO 8601 timestamp",
+ "type": "string"
+ },
+ "summary": {"type": "string", "description": "One sentence saying what happened"},
+ "effects": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "What the decision means for the holder, one sentence each"
+ },
+ "rule": {
+ "nullable": true,
+ "description": "The rule the decision relies on, null when none was recorded",
+ "type": "object",
+ "properties": {
+ "title": {"type": "string", "description": "Title of the rule that was broken"},
+ "url": {
+ "nullable": true,
+ "description": "Link to the rule, null when the instance publishes none",
+ "type": "string"
+ }
+ },
+ "required": ["title", "url"],
+ "additionalProperties": false
+ },
+ "facts": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "The finding first, then where and when it happened"
+ },
+ "statement": {"nullable": true, "description": "Note to the holder from the team", "type": "string"},
+ "how_we_decided": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "How the case reached the team and who decided it"
+ },
+ "appeal": {
+ "nullable": true,
+ "description": "How to appeal, null when the instance offers no appeal route",
+ "type": "object",
+ "properties": {
+ "email": {"type": "string", "description": "Address that takes appeals"},
+ "deadline": {
+ "nullable": true,
+ "description": "Last day to appeal, already formatted for the reader",
+ "type": "string"
+ },
+ "account_has_email": {
+ "type": "boolean",
+ "description": "Whether the account has an email address to write from"
+ }
+ },
+ "required": ["email", "deadline", "account_has_email"],
+ "additionalProperties": false
+ },
+ "redress": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "Other ways to challenge the decision"
+ }
+ },
+ "required": [
+ "decision_id",
+ "kind",
+ "permanent",
+ "issued_at",
+ "ends_at",
+ "deletion_at",
+ "summary",
+ "effects",
+ "rule",
+ "facts",
+ "statement",
+ "how_we_decided",
+ "appeal",
+ "redress"
+ ],
+ "additionalProperties": false
+ },
"Int64StringType": {"type": "string", "pattern": "^-?\\d+$", "format": "int64"},
"GiftCodeDurationTypeSchema": {
"description": "Gift code duration unit",
@@ -16099,6 +17195,77 @@
],
"enum": [0, 1, 2, 3]
},
+ "CommunityRemovalBasis": {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "type": {"type": "string", "enum": ["enforcement"]},
+ "decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]}
+ },
+ "required": ["type", "decision"],
+ "description": "A rule was broken. Records an enforcement decision and sends its notice"
+ },
+ {
+ "type": "object",
+ "properties": {"type": {"type": "string", "enum": ["holder_request"]}},
+ "required": ["type"],
+ "description": "The account holder or community owner asked"
+ }
+ ],
+ "description": "Why the community is removed"
+ },
+ "EnforcementDecisionInput": {
+ "type": "object",
+ "properties": {
+ "reason_code": {"allOf": [{"$ref": "#/components/schemas/EnforcementReasonCodeType"}]},
+ "source": {
+ "type": "string",
+ "enum": ["report", "own_review"],
+ "description": "Whether the team reviewed this after a report or found it in its own review"
+ },
+ "automation": {
+ "type": "string",
+ "enum": ["none", "flagged"],
+ "description": "Whether automated tools flagged this before a person on the team decided"
+ },
+ "report_ids": {
+ "description": "Reports about the subject that this decision resolves. Required when the source is a report",
+ "maxItems": 20,
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/SnowflakeType"}
+ },
+ "evidence": {
+ "description": "Messages from the subject that the decision relies on. They are snapshotted when the decision is made",
+ "maxItems": 50,
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "channel_id": {"$ref": "#/components/schemas/SnowflakeType"},
+ "message_id": {"$ref": "#/components/schemas/SnowflakeType"}
+ },
+ "required": ["channel_id", "message_id"]
+ }
+ },
+ "statement": {
+ "description": "Note to the user, shown in the notice. Never name or describe other people",
+ "type": "string"
+ },
+ "rights_holder": {
+ "description": "The rights holder or the right concerned. Required for copyright decisions and refused otherwise",
+ "type": "string"
+ },
+ "confirmations": {
+ "description": "Required for child safety and violent extremism decisions",
+ "maxItems": 2,
+ "type": "array",
+ "items": {"type": "string", "enum": ["evidence_preserved", "reports_filed_or_not_required"]}
+ }
+ },
+ "required": ["reason_code", "source", "automation"],
+ "description": "Why the restriction is applied. The X-Audit-Log-Reason header is required and becomes the first note"
+ },
"PurgeGuildAssetErrorSchema": {
"type": "object",
"properties": {
@@ -16893,8 +18060,12 @@
"temp_banned_until": {"nullable": true, "type": "string"},
"pending_deletion_at": {"nullable": true, "type": "string"},
"pending_bulk_message_deletion_at": {"nullable": true, "type": "string"},
- "deletion_reason_code": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
- "deletion_public_reason": {"nullable": true, "type": "string"},
+ "deletion_reason_code": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/DeletionReasonCode"}]},
+ "deletion_public_reason": {
+ "nullable": true,
+ "description": "Public reason of a deletion scheduled before enforcement decisions existed. No longer written",
+ "type": "string"
+ },
"deletion_audit_log_reason": {
"nullable": true,
"description": "Private reason recorded with the pending deletion, null without the audit log view permission",
@@ -16910,7 +18081,12 @@
"description": "ISO 8601 timestamp when the pending deletion was scheduled",
"type": "string"
},
- "acls": {"maxItems": 107, "type": "array", "items": {"type": "string"}},
+ "enforcement_decision_id": {
+ "nullable": true,
+ "description": "The enforcement decision behind the current suspension or closure, null when none owns it",
+ "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
+ },
+ "acls": {"maxItems": 109, "type": "array", "items": {"type": "string"}},
"traits": {"maxItems": 100, "type": "array", "items": {"type": "string"}},
"has_totp": {"type": "boolean"},
"authenticator_types": {"maxItems": 10, "type": "array", "items": {"$ref": "#/components/schemas/Int32Type"}},
@@ -16951,6 +18127,7 @@
"deletion_audit_log_reason",
"deletion_scheduled_by",
"deletion_scheduled_at",
+ "enforcement_decision_id",
"acls",
"traits",
"has_totp",
@@ -16962,6 +18139,48 @@
],
"additionalProperties": false
},
+ "DeletionReasonCode": {
+ "description": "Reason the account was scheduled for deletion",
+ "type": "integer",
+ "enum": [
+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
+ 31
+ ],
+ "format": "int32",
+ "x-enumNames": [
+ "USER_REQUESTED",
+ "OTHER",
+ "SPAM",
+ "CHEATING_OR_EXPLOITATION",
+ "COORDINATED_RAIDING",
+ "AUTOMATION_OR_SELFBOT",
+ "NONCONSENSUAL_SEXUAL_CONTENT",
+ "SCAM_OR_SOCIAL_ENGINEERING",
+ "CHILD_SEXUAL_CONTENT",
+ "PRIVACY_VIOLATION_OR_DOXXING",
+ "HARASSMENT_OR_BULLYING",
+ "PAYMENT_FRAUD",
+ "CHILD_SAFETY_VIOLATION",
+ "BILLING_DISPUTE_OR_ABUSE",
+ "UNSOLICITED_EXPLICIT_CONTENT",
+ "GRAPHIC_VIOLENCE",
+ "BAN_EVASION",
+ "TOKEN_OR_CREDENTIAL_SCAM",
+ "INACTIVITY",
+ "HATE_SPEECH_OR_EXTREMIST_CONTENT",
+ "MALICIOUS_LINKS_OR_MALWARE",
+ "IMPERSONATION_OR_FAKE_IDENTITY",
+ "THREATS_OR_VIOLENT_SPEECH",
+ "VIOLENT_EXTREMISM",
+ "SELF_HARM_PROMOTION",
+ "SEXUAL_CONTENT_PLACEMENT",
+ "ILLEGAL_GOODS_OR_ACTIVITY",
+ "HARMFUL_DECEPTION",
+ "REPORTING_ABUSE",
+ "UNDERAGE_ACCOUNT",
+ "COPYRIGHT"
+ ]
+ },
"PremiumFlags": {
"type": "integer",
"minimum": 0,
@@ -16988,6 +18207,66 @@
{"name": "PERKS_DISABLED", "value": "256", "description": "User has temporarily disabled premium perks"}
]
},
+ "NetworkBlockRequest": {
+ "type": "object",
+ "properties": {
+ "ips": {
+ "minItems": 1,
+ "maxItems": 20,
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "Addresses the account used in the last 30 days. An address on which another account that is not suspended or closed was last active is refused"
+ },
+ "days": {
+ "default": 90,
+ "description": "How many days the blocks last. Ending the decision or deleting the account removes them sooner. Defaults to 90",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 365
+ }
+ },
+ "required": ["ips"],
+ "description": "Block networks the account used. Only with a permanent suspension or a closure for a broken rule. Requires BAN_IP_ADD and USER_VIEW_IP"
+ },
+ "SkippedNetworkBlock": {
+ "type": "object",
+ "properties": {
+ "ip": {"type": "string"},
+ "reason": {
+ "type": "string",
+ "enum": ["exempt", "special_purpose", "already_blocked"],
+ "description": "Exempt addresses and special-purpose ranges such as private, shared carrier and documentation ranges are never blocked. An address that is already blocked permanently or by another decision is left as it is"
+ }
+ },
+ "required": ["ip", "reason"],
+ "additionalProperties": false
+ },
+ "ModerationBasis": {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "type": {"type": "string", "enum": ["enforcement"]},
+ "decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]}
+ },
+ "required": ["type", "decision"],
+ "description": "A rule was broken. Records an enforcement decision and sends its notice"
+ },
+ {
+ "type": "object",
+ "properties": {"type": {"type": "string", "enum": ["holder_request"]}},
+ "required": ["type"],
+ "description": "The account holder or community owner asked"
+ },
+ {
+ "type": "object",
+ "properties": {"type": {"type": "string", "enum": ["housekeeping"]}},
+ "required": ["type"],
+ "description": "Nobody's conduct is involved, such as inactivity or cleanup"
+ }
+ ],
+ "description": "Why the action is taken"
+ },
"EmailType": {"type": "string"},
"AdminRelationshipEntrySchema": {
"type": "object",
@@ -17394,6 +18673,11 @@
"EMAIL_UNAVAILABLE_ON_INSTANCE",
"EMAIL_VERIFICATION_REQUIRED",
"DIRECT_MESSAGE_EMAIL_VERIFICATION_REQUIRED",
+ "ENFORCEMENT_ACCOUNT_CLOSED",
+ "ENFORCEMENT_DECISION_ENDED",
+ "ENFORCEMENT_DECISION_OWNS_STATE",
+ "ENFORCEMENT_DECISION_REPLACED",
+ "ENFORCEMENT_DELETION_STARTED",
"FOLLOW_TARGET_CONTENT_WARNING_REQUIRED",
"FOLLOW_TARGET_NOT_AGE_RESTRICTED",
"FRIEND_REQUEST_EMAIL_VERIFICATION_REQUIRED",
@@ -17471,6 +18755,7 @@
"GLOBAL_IP_BANNED",
"GLOBAL_IP_TEMPORARILY_BANNED",
"IP_BAN_DECLINED",
+ "IP_BAN_LINKED_TO_DECISION",
"MAX_APPLICATIONS",
"MAX_BOOKMARKS",
"MAX_ACTIVE_THREADS",
@@ -17585,6 +18870,7 @@
"UNCLAIMED_ACCOUNT_CANNOT_SUBMIT_REPORTS",
"UNKNOWN_CHANNEL",
"UNKNOWN_EMOJI",
+ "UNKNOWN_ENFORCEMENT_DECISION",
"UNKNOWN_FAVORITE_MEME",
"UNKNOWN_FORUM_TAG",
"UNKNOWN_GIFT_CODE",
@@ -17690,6 +18976,11 @@
"This instance doesn't use email.",
"Email verification is required for this action.",
"Email verification is required for this action.",
+ "This account is closed, so it can't be suspended.",
+ "This decision has already ended.",
+ "An enforcement decision owns this restriction. End the decision instead.",
+ "A later decision replaced this one, so it can no longer be ended.",
+ "The deletion of this account has already started, so the decision can no longer be ended.",
"Updates from a channel with a content warning can only go to a channel with a content warning or an age restriction.",
"Updates from an age-restricted channel can only go to an age-restricted channel.",
"Email verification is required for this action.",
@@ -17764,9 +19055,10 @@
"IP authorization is required.",
"IP authorization resend is on cooldown.",
"IP authorization resend limit exceeded.",
- "Your IP address {ipAddress} has been permanently blocked from the {product_name} API by platform administrators. {appealEmail, select, null {If you believe this is a mistake, contact the administrators of this instance to appeal.} other {If you believe this is a mistake, contact {appealEmail} to appeal.}} Include this IP address in your appeal.",
- "Your IP address {ipAddress} has been temporarily blocked from the {product_name} API. The block lifts on its own when it expires. {appealEmail, select, null {If you think this is a mistake, contact the administrators of this instance and include this IP address.} other {If you think this is a mistake, contact {appealEmail} and include this IP address.}}",
+ "{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}",
+ "{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} The block ends on {expiresAt}. If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}",
"This IP address cannot be added to the blocklist.",
+ "This network block belongs to an enforcement decision. End the decision to remove it.",
"You've reached the maximum of {limit, plural, one {# application} other {# applications}}.",
"You've reached the maximum of {count, plural, one {# bookmark} other {# bookmarks}}.",
"This community has reached its active thread limit of {count}.",
@@ -17881,6 +19173,7 @@
"You need to complete your account setup before you can submit reports.",
"Channel wasn't found.",
"Unknown emoji.",
+ "Unknown enforcement decision.",
"Unknown saved media.",
"Tag wasn't found.",
"Unknown gift code.",
diff --git a/fluxer_admin/src/acl.rs b/fluxer_admin/src/acl.rs
index d5978868d..d2735065d 100644
--- a/fluxer_admin/src/acl.rs
+++ b/fluxer_admin/src/acl.rs
@@ -45,6 +45,8 @@ pub const BULK_UPDATE_GUILD_FEATURES: &str = "bulk:update:guild_features";
pub const BULK_UPDATE_USER_FLAGS: &str = "bulk:update:user_flags";
pub const DISCOVERY_REMOVE: &str = "discovery:remove";
pub const DISCOVERY_REVIEW: &str = "discovery:review";
+pub const ENFORCEMENT_ANNOTATE: &str = "enforcement:annotate";
+pub const ENFORCEMENT_VIEW: &str = "enforcement:view";
pub const GATEWAY_MEMORY_STATS: &str = "gateway:memory_stats";
pub const GATEWAY_RELOAD_ALL: &str = "gateway:reload_all";
pub const GIFT_CODES_GENERATE: &str = "gift_codes:generate";
@@ -153,6 +155,8 @@ pub const ALL_ACLS: &[&str] = &[
BULK_UPDATE_USER_FLAGS,
DISCOVERY_REMOVE,
DISCOVERY_REVIEW,
+ ENFORCEMENT_ANNOTATE,
+ ENFORCEMENT_VIEW,
GATEWAY_MEMORY_STATS,
GATEWAY_RELOAD_ALL,
GIFT_CODES_GENERATE,
diff --git a/fluxer_admin/src/admin_flags.rs b/fluxer_admin/src/admin_flags.rs
index ce52f586c..f17962667 100644
--- a/fluxer_admin/src/admin_flags.rs
+++ b/fluxer_admin/src/admin_flags.rs
@@ -1,5 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+use crate::api::generated::types::EnforcementKindType;
+
pub struct U64Flag {
pub name: &'static str,
pub value: u64,
@@ -121,6 +123,21 @@ pub const USER_FLAGS: &[U64Flag] = &[
},
];
+const RESTRICTION_USER_FLAGS: u64 = user_flag_bits::DISABLED
+ | user_flag_bits::DELETED
+ | user_flag_bits::SPAMMER
+ | user_flag_bits::REPORT_BANNED;
+const PURCHASE_DISABLED: i32 = 1 << 6;
+
+pub fn user_flag_is_editable(flag: u64, current_flags: u64, suspended: bool) -> bool {
+ let self_disabled = flag == user_flag_bits::DISABLED && current_flags & flag != 0 && !suspended;
+ flag & RESTRICTION_USER_FLAGS == 0 || self_disabled
+}
+
+pub fn premium_flag_is_editable(flag: i32) -> bool {
+ flag & PURCHASE_DISABLED == 0
+}
+
pub const PREMIUM_FLAGS: &[I32Flag] = &[
I32Flag {
name: "DISCRIMINATOR",
@@ -148,7 +165,7 @@ pub const PREMIUM_FLAGS: &[I32Flag] = &[
},
I32Flag {
name: "PURCHASE_DISABLED",
- value: 1 << 6,
+ value: PURCHASE_DISABLED,
},
I32Flag {
name: "ENABLED_OVERRIDE",
@@ -166,7 +183,7 @@ pub const DELETION_REASONS: &[(&str, &str)] = &[
("3", "Spam"),
("4", "Cheating or exploitation"),
("5", "Coordinated raiding or manipulation"),
- ("6", "Automation or self-bot usage"),
+ ("6", "Disruptive automation"),
("7", "Nonconsensual sexual content"),
("8", "Scam or social engineering"),
("9", "Child sexual content"),
@@ -183,8 +200,157 @@ pub const DELETION_REASONS: &[(&str, &str)] = &[
("20", "Hate speech or extremist content"),
("21", "Malicious links or malware distribution"),
("22", "Impersonation or fake identity"),
+ ("23", "Threats or violent speech"),
+ ("24", "Violent extremism"),
+ ("25", "Self-harm promotion"),
+ ("26", "Sexual content outside 18+ spaces"),
+ ("27", "Illegal goods or activity"),
+ ("28", "Harmful deception"),
+ ("29", "Reporting abuse"),
+ ("30", "Under the minimum age"),
+ ("31", "Copyright"),
+];
+
+pub fn deletion_reason_label(code: i32) -> String {
+ let value = code.to_string();
+ DELETION_REASONS
+ .iter()
+ .find(|(candidate, _)| *candidate == value)
+ .map_or_else(
+ || format!("Reason {code}"),
+ |(_, label)| (*label).to_owned(),
+ )
+}
+
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+pub enum EnforcementHandling {
+ Standard,
+ Protected,
+ Restricted,
+}
+
+pub struct EnforcementReason {
+ pub code: i32,
+ pub handling: EnforcementHandling,
+ pub kinds: Option<&'static [EnforcementKindType]>,
+}
+
+impl EnforcementReason {
+ pub fn allows(&self, kind: EnforcementKindType) -> bool {
+ self.kinds.is_none_or(|kinds| kinds.contains(&kind))
+ && (kind != EnforcementKindType::FeatureLimit
+ || ENFORCEMENT_LIMITS
+ .iter()
+ .any(|limit| limit.codes.contains(&self.code)))
+ }
+}
+
+pub struct EnforcementLimitOption {
+ pub value: &'static str,
+ pub label: &'static str,
+ pub codes: &'static [i32],
+}
+
+pub const ENFORCEMENT_LIMITS: &[EnforcementLimitOption] = &[
+ EnforcementLimitOption {
+ value: "direct_messages",
+ label: "Direct messages",
+ codes: &[3, 6, 8, 18, 21],
+ },
+ EnforcementLimitOption {
+ value: "reports",
+ label: "Reports",
+ codes: &[29],
+ },
+ EnforcementLimitOption {
+ value: "purchases",
+ label: "Purchases",
+ codes: &[12, 14],
+ },
+];
+
+pub const COPYRIGHT_REASON_CODE: i32 = 31;
+
+const RESTRICTED_KINDS: &[EnforcementKindType] = &[
+ EnforcementKindType::Suspension,
+ EnforcementKindType::ContentRemoval,
+];
+const PAYMENT_KINDS: &[EnforcementKindType] = &[
+ EnforcementKindType::Warning,
+ EnforcementKindType::Suspension,
+ EnforcementKindType::Closure,
+ EnforcementKindType::FeatureLimit,
];
+const fn reason(
+ code: i32,
+ handling: EnforcementHandling,
+ kinds: Option<&'static [EnforcementKindType]>,
+) -> EnforcementReason {
+ EnforcementReason {
+ code,
+ handling,
+ kinds,
+ }
+}
+
+pub const ENFORCEMENT_REASONS: &[EnforcementReason] = {
+ use EnforcementHandling::{Protected, Restricted, Standard};
+ use EnforcementKindType::{
+ Closure, CommunityRemoval, ContentRemoval, FeatureLimit, ProfileReset, Suspension, Warning,
+ };
+ &[
+ reason(3, Standard, None),
+ reason(4, Standard, None),
+ reason(5, Standard, None),
+ reason(6, Standard, None),
+ reason(7, Protected, None),
+ reason(8, Standard, None),
+ reason(9, Restricted, Some(RESTRICTED_KINDS)),
+ reason(10, Protected, None),
+ reason(11, Protected, None),
+ reason(12, Standard, Some(PAYMENT_KINDS)),
+ reason(13, Restricted, Some(RESTRICTED_KINDS)),
+ reason(14, Standard, Some(PAYMENT_KINDS)),
+ reason(15, Protected, None),
+ reason(16, Standard, None),
+ reason(17, Standard, Some(&[Warning, Suspension, Closure])),
+ reason(18, Standard, None),
+ reason(20, Standard, None),
+ reason(21, Standard, None),
+ reason(22, Standard, None),
+ reason(23, Protected, None),
+ reason(24, Restricted, Some(RESTRICTED_KINDS)),
+ reason(
+ 25,
+ Standard,
+ Some(&[
+ Warning,
+ Suspension,
+ ContentRemoval,
+ ProfileReset,
+ CommunityRemoval,
+ ]),
+ ),
+ reason(26, Standard, None),
+ reason(27, Standard, None),
+ reason(28, Standard, None),
+ reason(29, Standard, Some(&[Warning, FeatureLimit, Suspension])),
+ reason(30, Standard, Some(&[Closure])),
+ reason(
+ 31,
+ Standard,
+ Some(&[Warning, ContentRemoval, ProfileReset, CommunityRemoval]),
+ ),
+ ]
+};
+
+pub fn enforcement_reason(code: i32) -> Option<&'static EnforcementReason> {
+ ENFORCEMENT_REASONS
+ .iter()
+ .find(|reason| reason.code == code)
+}
+
pub const GUILD_FEATURES: &[&str] = &[
"ANIMATED_ICON",
"ANIMATED_BANNER",
@@ -226,7 +392,196 @@ pub const DEPRECATED_GUILD_FEATURES: &[&str] = &["CLONE_EMOJI_DISABLED", "CLONE_
#[cfg(test)]
mod tests {
- use super::USER_FLAGS;
+ use super::{
+ DELETION_REASONS, ENFORCEMENT_LIMITS, ENFORCEMENT_REASONS, EnforcementHandling, USER_FLAGS,
+ };
+ use crate::api::generated::types::DeletionReasonCode;
+ use std::collections::HashMap;
+
+ const CORE_TS: &str = include_str!("../../packages/constants/src/Core.ts");
+ const ENFORCEMENT_REASONS_TS: &str =
+ include_str!("../../packages/constants/src/EnforcementReasons.ts");
+
+ fn quoted_values(list: &str) -> Vec<String> {
+ list.split('\'')
+ .skip(1)
+ .step_by(2)
+ .map(ToOwned::to_owned)
+ .collect()
+ }
+
+ fn deletion_reason_codes() -> HashMap<String, i32> {
+ let block = CORE_TS
+ .split("export const DeletionReasons = {")
+ .nth(1)
+ .and_then(|rest| rest.split('}').next())
+ .expect("DeletionReasons block");
+ block
+ .lines()
+ .filter_map(|line| {
+ let (name, code) = line.trim().trim_end_matches(',').split_once(": ")?;
+ Some((name.to_owned(), code.parse().ok()?))
+ })
+ .collect()
+ }
+
+ fn kind_lists() -> HashMap<String, Vec<String>> {
+ ENFORCEMENT_REASONS_TS
+ .lines()
+ .filter_map(|line| {
+ let rest = line.strip_prefix("const ")?;
+ let (name, value) = rest.split_once(": ReadonlyArray<EnforcementKind> = ")?;
+ Some((name.to_owned(), quoted_values(value)))
+ })
+ .collect()
+ }
+
+ fn typescript_reasons() -> Vec<(i32, String, Option<Vec<String>>)> {
+ let codes = deletion_reason_codes();
+ let lists = kind_lists();
+ let block = ENFORCEMENT_REASONS_TS
+ .split("export const ENFORCEMENT_REASONS")
+ .nth(1)
+ .and_then(|rest| rest.split("\n};").next())
+ .expect("ENFORCEMENT_REASONS block");
+ block
+ .split("[DeletionReasons.")
+ .skip(1)
+ .map(|entry| {
+ let name = entry.split(']').next().expect("reason name");
+ let handling = entry
+ .split("handling: '")
+ .nth(1)
+ .and_then(|rest| rest.split('\'').next())
+ .expect("handling");
+ let kinds = entry.split("kinds: ").nth(1).expect("kinds").trim_start();
+ let kinds = if kinds.starts_with("'any'") {
+ None
+ } else if kinds.starts_with('[') {
+ Some(quoted_values(kinds.split(']').next().expect("kind list")))
+ } else {
+ let list = kinds
+ .split(|c: char| !c.is_ascii_alphanumeric() && c != '_')
+ .next()
+ .expect("kind list name");
+ Some(lists.get(list).expect("named kind list").clone())
+ };
+ (
+ *codes.get(name).expect("reason code"),
+ handling.to_owned(),
+ kinds,
+ )
+ })
+ .collect()
+ }
+
+ fn typescript_reason_rules() -> HashMap<String, Vec<i32>> {
+ let codes = deletion_reason_codes();
+ let block = ENFORCEMENT_REASONS_TS
+ .split("export const ENFORCEMENT_REASONS")
+ .nth(1)
+ .and_then(|rest| rest.split("\n};").next())
+ .expect("ENFORCEMENT_REASONS block");
+ let mut rules: HashMap<String, Vec<i32>> = HashMap::new();
+ for entry in block.split("[DeletionReasons.").skip(1) {
+ let name = entry.split(']').next().expect("reason name");
+ let rule = entry
+ .split("rule: '")
+ .nth(1)
+ .and_then(|rest| rest.split('\'').next())
+ .expect("rule");
+ rules
+ .entry(rule.to_owned())
+ .or_default()
+ .push(*codes.get(name).expect("reason code"));
+ }
+ rules
+ }
+
+ fn typescript_limit_rules(limit: &str) -> Vec<String> {
+ let block = ENFORCEMENT_REASONS_TS
+ .split("const ENFORCEMENT_LIMIT_RULES")
+ .nth(1)
+ .and_then(|rest| rest.split("\n};").next())
+ .expect("ENFORCEMENT_LIMIT_RULES block");
+ let value = block
+ .split(&format!("{limit}: "))
+ .nth(1)
+ .and_then(|rest| rest.split(",\n").next())
+ .expect("limit rules");
+ if value.starts_with("ENFORCEMENT_SPAMMER_LIMIT_RULES") {
+ let spammer = ENFORCEMENT_REASONS_TS
+ .split("const ENFORCEMENT_SPAMMER_LIMIT_RULES: ")
+ .nth(1)
+ .and_then(|rest| rest.split("]);").next())
+ .expect("spammer rules");
+ return quoted_values(spammer);
+ }
+ quoted_values(value)
+ }
+
+ #[test]
+ fn enforcement_limits_match_the_shared_constants() {
+ let rules = typescript_reason_rules();
+ assert_eq!(ENFORCEMENT_LIMITS.len(), 3);
+ for limit in ENFORCEMENT_LIMITS {
+ let mut expected: Vec<i32> = typescript_limit_rules(limit.value)
+ .iter()
+ .flat_map(|rule| rules.get(rule).cloned().unwrap_or_default())
+ .collect();
+ expected.sort_unstable();
+ let mut actual = limit.codes.to_vec();
+ actual.sort_unstable();
+ assert_eq!(actual, expected, "codes of the {} limit", limit.value);
+ }
+ }
+
+ #[test]
+ fn feature_limits_are_offered_only_for_reasons_with_a_limit() {
+ use crate::api::generated::types::EnforcementKindType::FeatureLimit;
+ let offered: Vec<i32> = ENFORCEMENT_REASONS
+ .iter()
+ .filter(|reason| reason.allows(FeatureLimit))
+ .map(|reason| reason.code)
+ .collect();
+ assert_eq!(offered, vec![3, 6, 8, 12, 14, 18, 21, 29]);
+ }
+
+ #[test]
+ fn restriction_flags_are_read_only_except_a_self_disabled_account() {
+ use super::{premium_flag_is_editable, user_flag_bits as bits, user_flag_is_editable};
+ for flag in [bits::DELETED, bits::SPAMMER, bits::REPORT_BANNED] {
+ assert!(!user_flag_is_editable(flag, 0, false));
+ assert!(!user_flag_is_editable(flag, flag, false));
+ }
+ assert!(!user_flag_is_editable(bits::DISABLED, 0, false));
+ assert!(!user_flag_is_editable(bits::DISABLED, bits::DISABLED, true));
+ assert!(user_flag_is_editable(bits::DISABLED, bits::DISABLED, false));
+ assert!(user_flag_is_editable(bits::ACCOUNT_LIMITED, 0, true));
+ assert!(user_flag_is_editable(bits::STAFF, bits::STAFF, false));
+ assert!(!premium_flag_is_editable(1 << 6));
+ assert!(premium_flag_is_editable(1 << 0));
+ }
+
+ #[test]
+ fn enforcement_reasons_match_the_shared_constants() {
+ let expected = typescript_reasons();
+ assert_eq!(expected.len(), ENFORCEMENT_REASONS.len());
+ for (code, handling, kinds) in expected {
+ let reason = super::enforcement_reason(code)
+ .unwrap_or_else(|| panic!("{code} is missing from ENFORCEMENT_REASONS"));
+ let rust_handling = match reason.handling {
+ EnforcementHandling::Standard => "standard",
+ EnforcementHandling::Protected => "protected",
+ EnforcementHandling::Restricted => "restricted",
+ };
+ assert_eq!(rust_handling, handling, "handling of {code}");
+ let rust_kinds = reason
+ .kinds
+ .map(|kinds| kinds.iter().map(ToString::to_string).collect::<Vec<_>>());
+ assert_eq!(rust_kinds, kinds, "kinds of {code}");
+ }
+ }
#[test]
fn user_flags_cover_every_flag_in_the_admin_spec() {
@@ -251,4 +606,31 @@ mod tests {
);
}
}
+
+ #[test]
+ fn deletion_reasons_match_the_generated_reason_codes() {
+ let spec: serde_json::Value =
+ serde_json::from_str(include_str!("../openapi-admin.json")).expect("admin spec");
+ let mut spec_codes: Vec<i32> = spec["components"]["schemas"]["DeletionReasonCode"]["enum"]
+ .as_array()
+ .expect("DeletionReasonCode values")
+ .iter()
+ .map(|value| {
+ i32::try_from(value.as_i64().expect("numeric reason code")).expect("i32 code")
+ })
+ .collect();
+ spec_codes.sort_unstable();
+ let mut label_codes: Vec<i32> = DELETION_REASONS
+ .iter()
+ .map(|(code, _)| code.parse().expect("numeric reason code"))
+ .collect();
+ label_codes.sort_unstable();
+ assert_eq!(label_codes, spec_codes);
+ for code in label_codes {
+ assert!(
+ DeletionReasonCode::try_from(code).is_ok(),
+ "{code} is not a generated DeletionReasonCode"
+ );
+ }
+ }
}
diff --git a/fluxer_admin/src/api/bulk.rs b/fluxer_admin/src/api/bulk.rs
index 141280881..767a4f709 100644
--- a/fluxer_admin/src/api/bulk.rs
+++ b/fluxer_admin/src/api/bulk.rs
@@ -74,9 +74,11 @@ impl AdminApiClient {
pub async fn bulk_delete_user_messages(
&self,
user_ids: &[String],
+ basis: generated_types::BulkModerationBasis,
audit_log_reason: Option<&str>,
) -> ApiResult<BulkJobResponse> {
let body = generated_types::AdminBulkJobCreateRequest::DeleteUserMessages {
+ basis,
user_ids: snowflakes(user_ids),
};
self.send(
@@ -91,26 +93,18 @@ impl AdminApiClient {
pub async fn bulk_schedule_user_deletion(
&self,
user_ids: &[String],
- reason_code: u32,
days_until_deletion: u32,
- public_reason: Option<&str>,
- notify_user: bool,
+ basis: generated_types::BulkModerationBasis,
audit_log_reason: Option<&str>,
) -> ApiResult<BulkJobResponse> {
let body = generated_types::AdminBulkJobCreateRequest::ScheduleUserDeletion {
+ basis,
days_until_deletion: crate::api::generated::nonzero_u32(
days_until_deletion,
"days_until_deletion",
)
.map_err(ApiError::Parse)?
.into(),
- notify_user,
- public_reason: public_reason.map(std::borrow::ToOwned::to_owned),
- reason_code: crate::api::generated::deletion_reason_code(
- i32::try_from(reason_code).map_err(|e| ApiError::Parse(e.to_string()))?,
- "reason_code",
- )
- .map_err(ApiError::Parse)?,
user_ids: snowflakes(user_ids),
};
self.send(
diff --git a/fluxer_admin/src/api/enforcement.rs b/fluxer_admin/src/api/enforcement.rs
new file mode 100644
index 000000000..eb549f405
--- /dev/null
+++ b/fluxer_admin/src/api/enforcement.rs
@@ -0,0 +1,264 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+use reqwest::Method;
+use serde::Deserialize;
+
+use crate::api::generated::types as generated_types;
+
+use super::client::{AdminApiClient, ApiError, ApiResult};
+use super::types::{AdminUser, UserMutationResponse};
+
+#[derive(Debug, Deserialize)]
+pub struct RestrictionResponse {
+ pub user: AdminUser,
+ pub skipped_ips: Vec<generated_types::SkippedNetworkBlock>,
+}
+
+pub struct DecisionSubmission {
+ pub decision: generated_types::EnforcementDecisionInput,
+ pub internal_note: String,
+}
+
+pub struct ClosureRequest {
+ pub basis: generated_types::ModerationBasis,
+ pub days_until_deletion: u32,
+ pub remove_evidence: bool,
+ pub block_networks: Option<generated_types::NetworkBlockRequest>,
+ pub replace_pending_deletion_at: Option<chrono::DateTime<chrono::Utc>>,
+ pub internal_note: Option<String>,
+}
+
+impl AdminApiClient {
+ pub async fn suspend_user(
+ &self,
+ user_id: &str,
+ duration_hours: u32,
+ remove_evidence: bool,
+ block_networks: Option<generated_types::NetworkBlockRequest>,
+ submission: &DecisionSubmission,
+ ) -> ApiResult<RestrictionResponse> {
+ let body = generated_types::AdminUserBanRequest {
+ block_networks,
+ decision: submission.decision.clone(),
+ duration_hours: i64::from(duration_hours),
+ remove_evidence: remove_evidence.then_some(true),
+ };
+ self.send(
+ Method::PUT,
+ &format!("/admin/users/{}/ban", urlencoding::encode(user_id)),
+ Some(&body),
+ Some(&submission.internal_note),
+ )
+ .await
+ }
+
+ pub async fn list_network_block_candidates(
+ &self,
+ user_id: &str,
+ ) -> ApiResult<generated_types::NetworkBlockCandidatesResponse> {
+ self.get(
+ &format!(
+ "/admin/users/{}/network-block-candidates",
+ urlencoding::encode(user_id)
+ ),
+ None,
+ )
+ .await
+ }
+
+ pub async fn warn_user(
+ &self,
+ user_id: &str,
+ submission: &DecisionSubmission,
+ ) -> ApiResult<generated_types::AdminUserWarningResponse> {
+ let body = generated_types::AdminUserWarningRequest {
+ decision: submission.decision.clone(),
+ };
+ self.send(
+ Method::POST,
+ &format!("/admin/users/{}/warnings", urlencoding::encode(user_id)),
+ Some(&body),
+ Some(&submission.internal_note),
+ )
+ .await
+ }
+
+ pub async fn close_account(
+ &self,
+ user_id: &str,
+ request: &ClosureRequest,
+ ) -> ApiResult<RestrictionResponse> {
+ let body = generated_types::AdminUserDeletionScheduleRequest {
+ basis: request.basis.clone(),
+ block_networks: request.block_networks.clone(),
+ days_until_deletion: crate::api::generated::nonzero_u32(
+ request.days_until_deletion,
+ "days_until_deletion",
+ )
+ .map_err(ApiError::Parse)?
+ .into(),
+ remove_evidence: request.remove_evidence.then_some(true),
+ replace_pending_deletion_at: request.replace_pending_deletion_at,
+ };
+ self.send(
+ Method::PUT,
+ &format!("/admin/users/{}/deletion", urlencoding::encode(user_id)),
+ Some(&body),
+ request.internal_note.as_deref(),
+ )
+ .await
+ }
+
+ pub async fn limit_features(
+ &self,
+ user_id: &str,
+ limit: generated_types::AdminUserFeatureLimitRequestLimit,
+ ends_at: Option<chrono::DateTime<chrono::Utc>>,
+ submission: &DecisionSubmission,
+ ) -> ApiResult<AdminUser> {
+ let body = generated_types::AdminUserFeatureLimitRequest {
+ decision: submission.decision.clone(),
+ ends_at,
+ limit,
+ };
+ let response: UserMutationResponse = self
+ .send(
+ Method::PUT,
+ &format!(
+ "/admin/users/{}/feature-limits",
+ urlencoding::encode(user_id)
+ ),
+ Some(&body),
+ Some(&submission.internal_note),
+ )
+ .await?;
+ Ok(response.user)
+ }
+
+ pub async fn list_review_queue(
+ &self,
+ ) -> ApiResult<generated_types::EnforcementDecisionListResponse> {
+ self.get(
+ "/admin/enforcement-decisions",
+ Some(&[("review_queue", "true")]),
+ )
+ .await
+ }
+
+ pub async fn list_user_decisions(
+ &self,
+ user_id: &str,
+ ) -> ApiResult<generated_types::EnforcementDecisionListResponse> {
+ self.get(
+ "/admin/enforcement-decisions",
+ Some(&[("subject_type", "user"), ("subject_id", user_id)]),
+ )
+ .await
+ }
+
+ pub async fn get_decision(
+ &self,
+ decision_id: &str,
+ ) -> ApiResult<generated_types::EnforcementDecisionResponse> {
+ self.get(
+ &format!(
+ "/admin/enforcement-decisions/{}",
+ urlencoding::encode(decision_id)
+ ),
+ None,
+ )
+ .await
+ }
+
+ pub async fn end_decision(
+ &self,
+ decision_id: &str,
+ outcome: generated_types::EnforcementDecisionEndRequestOutcome,
+ statement: Option<String>,
+ internal_note: &str,
+ ) -> ApiResult<generated_types::EnforcementDecisionResponse> {
+ let body = generated_types::EnforcementDecisionEndRequest { outcome, statement };
+ self.send(
+ Method::POST,
+ &format!(
+ "/admin/enforcement-decisions/{}/end",
+ urlencoding::encode(decision_id)
+ ),
+ Some(&body),
+ Some(internal_note),
+ )
+ .await
+ }
+
+ pub async fn annotate_decision(
+ &self,
+ decision_id: &str,
+ body: String,
+ ) -> ApiResult<generated_types::EnforcementDecisionNoteResponse> {
+ let body = generated_types::EnforcementDecisionNoteRequest { body };
+ self.send(
+ Method::POST,
+ &format!(
+ "/admin/enforcement-decisions/{}/notes",
+ urlencoding::encode(decision_id)
+ ),
+ Some(&body),
+ None,
+ )
+ .await
+ }
+}
+
+pub fn api_error_message(error: &ApiError) -> Option<String> {
+ let ApiError::Http { status, message } = error else {
+ return None;
+ };
+ if !matches!(status, 400 | 403 | 404 | 409) {
+ return None;
+ }
+ let body: serde_json::Value = serde_json::from_str(message).ok()?;
+ let detail = body["errors"]
+ .as_array()
+ .and_then(|errors| errors.first())
+ .and_then(|error| error["message"].as_str());
+ detail
+ .or_else(|| body["message"].as_str())
+ .map(str::to_owned)
+}
+
+#[cfg(test)]
+mod tests {
+ use super::api_error_message;
+ use crate::api::client::ApiError;
+
+ fn http(status: u16, body: &str) -> ApiError {
+ ApiError::Http {
+ status,
+ message: body.to_owned(),
+ }
+ }
+
+ #[test]
+ fn api_error_message_prefers_the_first_field_error() {
+ let body = r#"{"code":"INVALID_FORM_BODY","message":"Invalid form body","errors":[{"path":"decision.statement","code":"ENFORCEMENT_STATEMENT_NOT_ALLOWED","message":"A note to the user is not allowed for this reason"}]}"#;
+ assert_eq!(
+ api_error_message(&http(400, body)).as_deref(),
+ Some("A note to the user is not allowed for this reason")
+ );
+ }
+
+ #[test]
+ fn api_error_message_reads_conflicts_and_ignores_server_errors() {
+ let body = r#"{"code":"ENFORCEMENT_DECISION_REPLACED","message":"A later decision replaced this one"}"#;
+ assert_eq!(
+ api_error_message(&http(409, body)).as_deref(),
+ Some("A later decision replaced this one")
+ );
+ assert_eq!(api_error_message(&http(500, body)), None);
+ assert_eq!(api_error_message(&http(409, "not json")), None);
+ assert_eq!(
+ api_error_message(&ApiError::Network("down".to_owned())),
+ None
+ );
+ }
+}
diff --git a/fluxer_admin/src/api/generated.rs b/fluxer_admin/src/api/generated.rs
index aad0482cf..01af9dd7b 100644
--- a/fluxer_admin/src/api/generated.rs
+++ b/fluxer_admin/src/api/generated.rs
@@ -56,14 +56,6 @@ pub(crate) fn nonzero_u32(value: u32, field: &str) -> Result<std::num::NonZeroU3
std::num::NonZeroU32::new(value).ok_or_else(|| format!("{field} must be greater than zero"))
}
-pub(crate) fn deletion_reason_code(
- value: i32,
- field: &str,
-) -> Result<types::DeletionReasonCode, String> {
- types::DeletionReasonCode::try_from(value)
- .map_err(|_| format!("{field} is not a deletion reason code: {value}"))
-}
-
pub(crate) fn user_flags(values: &[String]) -> ApiResult<Vec<generated_types::UserFlags>> {
values
.iter()
diff --git a/fluxer_admin/src/api/guilds.rs b/fluxer_admin/src/api/guilds.rs
index 51b964bcb..43f7b0f70 100644
--- a/fluxer_admin/src/api/guilds.rs
+++ b/fluxer_admin/src/api/guilds.rs
@@ -69,13 +69,20 @@ impl AdminApiClient {
Ok(())
}
- pub async fn delete_guild(&self, guild_id: &str) -> ApiResult<SuccessResponse> {
- let response = self
- .generated()
- .delete_admin_guild(&snowflake(guild_id))
- .await
- .map_err(|e| self.generated_error(e))?;
- self.generated_value(response.into_inner())
+ pub async fn delete_guild(
+ &self,
+ guild_id: &str,
+ basis: generated_types::CommunityRemovalBasis,
+ internal_note: Option<&str>,
+ ) -> ApiResult<SuccessResponse> {
+ let body = generated_types::AdminGuildDeleteRequest { basis };
+ self.send(
+ Method::DELETE,
+ &format!("/admin/guilds/{}", urlencoding::encode(guild_id)),
+ Some(&body),
+ internal_note,
+ )
+ .await
}
pub async fn transfer_guild_ownership(
diff --git a/fluxer_admin/src/api/messages.rs b/fluxer_admin/src/api/messages.rs
index 0bcab9188..641efdac5 100644
--- a/fluxer_admin/src/api/messages.rs
+++ b/fluxer_admin/src/api/messages.rs
@@ -4,10 +4,12 @@ use reqwest::Method;
use crate::api::generated::{snowflake, types as generated_types};
+use crate::templates::components::enforcement_fields::BasisSubmission;
+
use super::client::{AdminApiClient, ApiError, ApiResult};
use super::types::{
- BrowseChannelResponse, DeleteAllUserMessagesResponse, LookupMessageResponse,
- MessageShredResponse, MessageShredStatusResponse, SearchChannelMessagesResponse,
+ BrowseChannelResponse, LookupMessageResponse, MessageShredStatusResponse,
+ SearchChannelMessagesResponse,
};
impl AdminApiClient {
@@ -15,8 +17,10 @@ impl AdminApiClient {
&self,
channel_id: &str,
message_id: &str,
+ basis: generated_types::MessageDeletionBasis,
audit_log_reason: Option<&str>,
) -> ApiResult<()> {
+ let body = generated_types::AdminMessageDeleteRequest { basis };
let _: serde_json::Value = self
.send(
Method::DELETE,
@@ -25,7 +29,7 @@ impl AdminApiClient {
urlencoding::encode(channel_id),
urlencoding::encode(message_id)
),
- None::<&serde_json::Value>,
+ Some(&body),
audit_log_reason,
)
.await?;
@@ -54,35 +58,44 @@ impl AdminApiClient {
pub async fn queue_message_shred(
&self,
user_id: &str,
- entries: &[serde_json::Value],
- ) -> ApiResult<MessageShredResponse> {
- let entries = entries
- .iter()
- .cloned()
- .map(serde_json::from_value::<generated_types::AdminUserMessageShredRequestEntriesItem>)
- .collect::<Result<Vec<_>, _>>()
- .map_err(|e| ApiError::Parse(e.to_string()))?;
- let body = generated_types::AdminUserMessageShredRequest { entries };
- let response = self
- .generated()
- .shred_admin_user_messages(&snowflake(user_id), &body)
- .await
- .map_err(|e| self.generated_error(e))?;
- self.generated_value(response.into_inner())
+ entries: Vec<generated_types::AdminUserMessageShredRequestEntriesItem>,
+ basis: &BasisSubmission,
+ ) -> ApiResult<generated_types::MessageShredResponse> {
+ let body = generated_types::AdminUserMessageShredRequest {
+ basis: basis.moderation_basis(),
+ entries,
+ };
+ self.send(
+ Method::POST,
+ &format!(
+ "/admin/users/{}/message-shreds",
+ urlencoding::encode(user_id)
+ ),
+ Some(&body),
+ basis.internal_note(),
+ )
+ .await
}
pub async fn delete_all_user_messages(
&self,
user_id: &str,
- dry_run: bool,
- ) -> ApiResult<DeleteAllUserMessagesResponse> {
- let dry_run = if dry_run { "true" } else { "false" };
- let response = self
- .generated()
- .delete_admin_user_messages(&snowflake(user_id), Some(dry_run))
- .await
- .map_err(|e| self.generated_error(e))?;
- self.generated_value(response.into_inner())
+ basis: Option<&BasisSubmission>,
+ ) -> ApiResult<generated_types::DeleteAllUserMessagesResponse> {
+ let body = generated_types::AdminUserMessageDeleteRequest {
+ basis: basis.map(BasisSubmission::moderation_basis),
+ };
+ let dry_run = if basis.is_some() { "false" } else { "true" };
+ self.send(
+ Method::DELETE,
+ &format!(
+ "/admin/users/{}/messages?dry_run={dry_run}",
+ urlencoding::encode(user_id)
+ ),
+ Some(&body),
+ basis.and_then(BasisSubmission::internal_note),
+ )
+ .await
}
pub async fn get_message_shred_status(
diff --git a/fluxer_admin/src/api/mod.rs b/fluxer_admin/src/api/mod.rs
index 9f007718d..887f6b4ca 100644
--- a/fluxer_admin/src/api/mod.rs
+++ b/fluxer_admin/src/api/mod.rs
@@ -12,6 +12,7 @@ pub mod bulk;
pub mod client;
pub mod codes;
pub mod discovery;
+pub mod enforcement;
pub mod guild_assets;
pub mod guild_threads;
pub mod guilds;
diff --git a/fluxer_admin/src/api/reports.rs b/fluxer_admin/src/api/reports.rs
index 96a212e0d..74348299c 100644
--- a/fluxer_admin/src/api/reports.rs
+++ b/fluxer_admin/src/api/reports.rs
@@ -2,7 +2,13 @@
use reqwest::Method;
-use crate::api::generated::{snowflake, types::UpdateReportRequestResolution};
+use crate::api::generated::{
+ snowflake,
+ types::{
+ UpdateReportRequest, UpdateReportRequestOutcome, UpdateReportRequestResolution,
+ UpdateReportRequestStatus,
+ },
+};
use super::client::{AdminApiClient, ApiError, ApiResult};
use super::types::{
@@ -44,20 +50,24 @@ impl AdminApiClient {
&self,
report_id: &str,
resolution: UpdateReportRequestResolution,
+ outcome: Option<UpdateReportRequestOutcome>,
+ duplicate_of: Option<&str>,
public_comment: Option<&str>,
notify_reporter: bool,
- audit_log_reason: Option<&str>,
) -> ApiResult<ResolveReportResponse> {
- let mut body = serde_json::json!({"status": "resolved", "resolution": resolution});
- if let Some(public_comment) = public_comment {
- body["public_comment"] = serde_json::Value::from(public_comment);
- }
- body["notify_reporter"] = serde_json::Value::from(notify_reporter);
+ let body = UpdateReportRequest {
+ duplicate_of: duplicate_of.map(snowflake),
+ notify_reporter,
+ outcome,
+ public_comment: public_comment.map(str::to_owned),
+ resolution,
+ status: UpdateReportRequestStatus::Resolved,
+ };
self.send(
Method::PATCH,
&format!("/admin/reports/{}", urlencoding::encode(report_id)),
Some(&body),
- audit_log_reason,
+ None,
)
.await
}
diff --git a/fluxer_admin/src/api/types/common.rs b/fluxer_admin/src/api/types/common.rs
index b9d2a9495..53824e8ba 100644
--- a/fluxer_admin/src/api/types/common.rs
+++ b/fluxer_admin/src/api/types/common.rs
@@ -118,6 +118,8 @@ pub struct AdminUser {
pub deletion_scheduled_by: Option<String>,
#[serde(default)]
pub deletion_scheduled_at: Option<String>,
+ #[serde(default)]
+ pub enforcement_decision_id: Option<String>,
pub last_active_at: Option<String>,
pub last_active_ip: Option<String>,
pub last_active_ip_reverse: Option<String>,
@@ -253,6 +255,8 @@ pub struct BanCheckResult {
#[serde(default)]
pub expires_at: Option<String>,
#[serde(default)]
+ pub decision_id: Option<String>,
+ #[serde(default)]
pub entries: Vec<serde_json::Value>,
}
diff --git a/fluxer_admin/src/api/types/messages.rs b/fluxer_admin/src/api/types/messages.rs
index 8b2bb5965..80c9cada5 100644
--- a/fluxer_admin/src/api/types/messages.rs
+++ b/fluxer_admin/src/api/types/messages.rs
@@ -8,32 +8,12 @@ pub struct LookupMessageResponse {
pub data: serde_json::Value,
}
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct MessageShredResponse {
- pub success: Option<bool>,
- pub job_id: Option<String>,
- pub requested: Option<u64>,
- #[serde(flatten)]
- pub extra: serde_json::Value,
-}
-
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct MessageShredStatusResponse {
#[serde(flatten)]
pub data: serde_json::Value,
}
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct DeleteAllUserMessagesResponse {
- pub success: Option<bool>,
- pub dry_run: bool,
- pub channel_count: u64,
- pub message_count: u64,
- pub job_id: Option<String>,
- #[serde(flatten)]
- pub extra: serde_json::Value,
-}
-
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct BrowseChannelResponse {
#[serde(flatten)]
diff --git a/fluxer_admin/src/api/users.rs b/fluxer_admin/src/api/users.rs
index 308bd9868..34edba11e 100644
--- a/fluxer_admin/src/api/users.rs
+++ b/fluxer_admin/src/api/users.rs
@@ -6,6 +6,8 @@ use reqwest::Method;
use crate::api::generated::{snowflake, types as generated_types};
+use crate::templates::components::enforcement_fields::BasisSubmission;
+
use super::client::{AdminApiClient, ApiError, ApiResult};
use super::types::{
AdminUser, AdminUserMeResponse, GuildInfo, ListUserGuildsResponse, LookupUserResponse,
@@ -282,6 +284,7 @@ impl AdminApiClient {
&self,
user_id: &str,
fields: &[String],
+ basis: &BasisSubmission,
) -> ApiResult<AdminUser> {
let fields = fields
.iter()
@@ -290,14 +293,22 @@ impl AdminApiClient {
})
.collect::<Result<Vec<_>, _>>()
.map_err(|e| ApiError::Parse(e.to_string()))?;
- let body = generated_types::AdminUserClearFieldsRequest { fields };
- let response = self
- .generated()
- .clear_admin_user_profile_fields(&snowflake(user_id), &body)
- .await
- .map_err(|e| self.generated_error(e))?;
- let resp: UserMutationResponse = self.generated_value(response.into_inner())?;
- Ok(resp.user)
+ let body = generated_types::AdminUserClearFieldsRequest {
+ basis: basis.moderation_basis(),
+ fields,
+ };
+ let response: UserMutationResponse = self
+ .send(
+ Method::DELETE,
+ &format!(
+ "/admin/users/{}/profile-fields",
+ urlencoding::encode(user_id)
+ ),
+ Some(&body),
+ basis.internal_note(),
+ )
+ .await?;
+ Ok(response.user)
}
pub async fn set_bot_status(&self, user_id: &str, is_bot: bool) -> ApiResult<AdminUser> {
@@ -355,93 +366,28 @@ impl AdminApiClient {
Ok(resp.user)
}
- pub async fn temp_ban_user(
- &self,
- user_id: &str,
- duration_hours: u32,
- reason: Option<&str>,
- notify_user: bool,
- private_reason: Option<&str>,
- ) -> ApiResult<AdminUser> {
- let body = generated_types::AdminUserBanRequest {
- duration_hours: i32::try_from(duration_hours)
- .map_err(|e| ApiError::Parse(e.to_string()))?
- .into(),
- notify_user,
- reason: reason.map(std::borrow::ToOwned::to_owned),
- };
- let resp: UserMutationResponse = self
- .send(
- Method::PUT,
- &format!("/admin/users/{}/ban", urlencoding::encode(user_id)),
- Some(&body),
- private_reason,
- )
- .await?;
- Ok(resp.user)
- }
-
pub async fn unban_user(
&self,
user_id: &str,
- public_reason: Option<&str>,
- notify_user: bool,
private_reason: Option<&str>,
) -> ApiResult<AdminUser> {
- let body = generated_types::AdminUserUnbanRequest {
- notify_user,
- public_reason: public_reason.map(std::borrow::ToOwned::to_owned),
- };
let response = self
.generated_with_reason(private_reason)?
- .unban_admin_user(&snowflake(user_id), &body)
+ .unban_admin_user(&snowflake(user_id))
.await
.map_err(|e| self.generated_error(e))?;
let resp: UserMutationResponse = self.generated_value(response.into_inner())?;
Ok(resp.user)
}
- pub async fn schedule_deletion(
- &self,
- user_id: &str,
- reason_code: i32,
- public_reason: Option<&str>,
- days_until_deletion: u32,
- notify_user: bool,
- audit_log_reason: Option<&str>,
- ) -> ApiResult<AdminUser> {
- let body = generated_types::AdminUserDeletionScheduleRequest {
- days_until_deletion: crate::api::generated::nonzero_u32(
- days_until_deletion,
- "days_until_deletion",
- )
- .map_err(ApiError::Parse)?
- .into(),
- notify_user,
- public_reason: public_reason.map(std::borrow::ToOwned::to_owned),
- reason_code: crate::api::generated::deletion_reason_code(reason_code, "reason_code")
- .map_err(ApiError::Parse)?,
- replace_pending_deletion_at: None,
- };
- let response = self
- .generated_with_reason(audit_log_reason)?
- .schedule_admin_user_deletion(&snowflake(user_id), &body)
- .await
- .map_err(|error| self.generated_error(error))?;
- let resp: UserMutationResponse = self.generated_value(response.into_inner())?;
- Ok(resp.user)
- }
-
pub async fn cancel_deletion(
&self,
user_id: &str,
expected_pending_deletion_at: &str,
- notify_user: bool,
audit_log_reason: Option<&str>,
) -> ApiResult<AdminUser> {
let body = serde_json::json!({
"expected_pending_deletion_at": expected_pending_deletion_at,
- "notify_user": notify_user,
});
let resp: UserMutationResponse = self
.send(
@@ -454,25 +400,6 @@ impl AdminApiClient {
Ok(resp.user)
}
- pub async fn annotate_ban(
- &self,
- user_id: &str,
- ban_audit_log_id: &str,
- note: &str,
- ) -> ApiResult<()> {
- let body = serde_json::json!({
- "ban_audit_log_id": ban_audit_log_id,
- "note": note,
- });
- self.send_void(
- Method::POST,
- &format!("/admin/users/{}/ban/notes", urlencoding::encode(user_id)),
- Some(&body),
- None,
- )
- .await
- }
-
pub async fn change_dob(&self, user_id: &str, dob: &str) -> ApiResult<AdminUser> {
let body = generated_types::AdminUserDobUpdateRequest {
date_of_birth: dob.to_owned(),
diff --git a/fluxer_admin/src/routes/bans_actions.rs b/fluxer_admin/src/routes/bans_actions.rs
index 018c1ba79..06c40461b 100644
--- a/fluxer_admin/src/routes/bans_actions.rs
+++ b/fluxer_admin/src/routes/bans_actions.rs
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-use crate::api::client::{AdminApiClient, ApiResult};
+use crate::api::client::{AdminApiClient, ApiError, ApiResult};
use crate::api::types::{FlashLevel, FlashMessage};
use crate::middleware::auth::AuthContext;
use crate::templates;
@@ -201,6 +201,16 @@ async fn execute_check(
_ => return ("error", "Unknown ban type".into()),
};
match result {
+ Ok(r) if r.banned && r.decision_id.is_some() => (
+ "info",
+ format!(
+ "{value} is blocked by decision {}{}. End that decision to remove the block.",
+ r.decision_id.unwrap_or_default(),
+ r.expires_at
+ .map(|expires_at| format!(" until {}", format_admin_timestamp(&expires_at)))
+ .unwrap_or_default()
+ ),
+ ),
Ok(r) if r.banned => match r.expires_at {
Some(expires_at) => (
"info",
@@ -226,6 +236,12 @@ fn ban_action_result(
) -> (&'static str, String) {
match result {
Ok(()) => ("success", success_message),
+ Err(ApiError::Http { status: 409, .. }) => (
+ "error",
+ format!(
+ "{error_message}. It belongs to an enforcement decision, so end that decision instead."
+ ),
+ ),
Err(error) => {
tracing::warn!(%error, "admin API request failed: ban action");
("error", error_message)
diff --git a/fluxer_admin/src/routes/enforcement.rs b/fluxer_admin/src/routes/enforcement.rs
new file mode 100644
index 000000000..e94ce93d4
--- /dev/null
+++ b/fluxer_admin/src/routes/enforcement.rs
@@ -0,0 +1,196 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+use crate::{
+ acl,
+ api::{
+ client::{AdminApiClient, ApiResultExt},
+ enforcement::api_error_message,
+ generated::types::EnforcementDecisionEndRequestOutcome,
+ },
+ middleware::{
+ auth::AuthContext,
+ csrf::CsrfToken,
+ flash::{self, FlashData},
+ htmx,
+ },
+ state::AppState,
+ templates::pages::enforcement_decision,
+ utils::forms::MultiValueForm,
+};
+use axum::{
+ Router,
+ extract::{Path, Query, Request, State},
+ http::HeaderMap,
+ response::{Html, IntoResponse, Redirect, Response},
+ routing::get,
+};
+use serde::Deserialize;
+
+#[derive(Deserialize)]
+struct DecisionsQuery {
+ id: Option<String>,
+}
+
+#[derive(Deserialize)]
+struct DecisionActionQuery {
+ action: Option<String>,
+}
+
+pub fn router() -> Router<AppState> {
+ Router::new().route("/decisions", get(decisions)).route(
+ "/decisions/{decision_id}",
+ get(decision_detail).post(decision_post),
+ )
+}
+
+fn is_decision_id(value: &str) -> bool {
+ (1..=20).contains(&value.len()) && value.bytes().all(|byte| byte.is_ascii_digit())
+}
+
+async fn decisions(
+ State(state): State<AppState>,
+ auth: axum::Extension<AuthContext>,
+ Query(query): Query<DecisionsQuery>,
+) -> Response {
+ let config = state.config();
+ let lookup = query
+ .id
+ .as_deref()
+ .map(str::trim)
+ .filter(|id| !id.is_empty());
+ if let Some(id) = lookup.filter(|id| is_decision_id(id)) {
+ return Redirect::to(&format!("{}/decisions/{id}", config.base_path)).into_response();
+ }
+ let error = lookup.map(|_| "A decision ID is a number.");
+ let admin_acls = auth
+ .0
+ .admin_user
+ .as_ref()
+ .map(|user| user.acls.as_slice())
+ .unwrap_or_default();
+ let review_queue = if acl::has_permission(admin_acls, acl::ENFORCEMENT_VIEW) {
+ let client = AdminApiClient::new(state.http_client(), config, &auth.0.session);
+ let result = client.list_review_queue().await;
+ if let Err(error) = &result {
+ tracing::warn!(%error, "admin API request failed: list the review queue");
+ }
+ Some(result)
+ } else {
+ None
+ };
+ let markup =
+ enforcement_decision::decisions_page(config, &auth.0, error, review_queue.as_ref());
+ Html(markup.into_string()).into_response()
+}
+
+async fn decision_detail(
+ State(state): State<AppState>,
+ headers: HeaderMap,
+ auth: axum::Extension<AuthContext>,
+ csrf: axum::Extension<CsrfToken>,
+ Path(decision_id): Path<String>,
+) -> Response {
+ let config = state.config();
+ let client = AdminApiClient::new(state.http_client(), config, &auth.0.session);
+ let decision = if is_decision_id(&decision_id) {
+ client
+ .get_decision(&decision_id)
+ .await
+ .log_error("load enforcement decision")
+ } else {
+ None
+ };
+ let users = match &decision {
+ Some(decision) => client
+ .lookup_users_by_ids(&enforcement_decision::decision_user_ids(decision))
+ .await
+ .log_error("load users named by an enforcement decision")
+ .unwrap_or_default(),
+ None => Vec::new(),
+ };
+ let markup = enforcement_decision::enforcement_decision_page(
+ config,
+ &auth.0,
+ &decision_id,
+ decision.as_ref(),
+ &users,
+ &csrf.0.0,
+ htmx::targets(&headers, "main-content"),
+ );
+ Html(markup.into_string()).into_response()
+}
+
+async fn decision_post(
+ State(state): State<AppState>,
+ headers: HeaderMap,
+ auth: axum::Extension<AuthContext>,
+ Path(decision_id): Path<String>,
+ Query(query): Query<DecisionActionQuery>,
+ request: Request,
+) -> Response {
+ let config = state.config();
+ let redirect = format!("{}/decisions/{decision_id}", config.base_path);
+ let flash = match MultiValueForm::from_request(request).await {
+ Some(form) if is_decision_id(&decision_id) => {
+ let client = AdminApiClient::new(state.http_client(), config, &auth.0.session);
+ dispatch(&client, &decision_id, query.action.as_deref(), &form).await
+ }
+ Some(_) => FlashData::error("A decision ID is a number."),
+ None => FlashData::error("Invalid form data"),
+ };
+ if htmx::is_htmx_request(&headers) && htmx::targets(&headers, "flash-container") {
+ return htmx::toast_response(&flash);
+ }
+ flash::redirect_with_flash(&redirect, flash, config.secure_cookies())
+}
+
+fn failure(context: &str, error: &crate::api::client::ApiError) -> FlashData {
+ tracing::warn!(%error, "admin API request failed: {context}");
+ match api_error_message(error) {
+ Some(message) => FlashData::error(format!("{context}: {message}")),
+ None => FlashData::error(context.to_owned()),
+ }
+}
+
+async fn dispatch(
+ client: &AdminApiClient,
+ decision_id: &str,
+ action: Option<&str>,
+ form: &MultiValueForm,
+) -> FlashData {
+ match action {
+ Some("end") => {
+ let Some(outcome) = form
+ .first("outcome")
+ .and_then(|value| EnforcementDecisionEndRequestOutcome::try_from(value).ok())
+ else {
+ return FlashData::error("Choose an outcome");
+ };
+ let Some(internal_note) = form.clean("internal_note") else {
+ return FlashData::error("Add an internal note");
+ };
+ match client
+ .end_decision(
+ decision_id,
+ outcome,
+ form.clean("statement"),
+ &internal_note,
+ )
+ .await
+ {
+ Ok(_) => FlashData::success("Decision ended"),
+ Err(error) => failure("Failed to end the decision", &error),
+ }
+ }
+ Some("add_note") => {
+ let Some(body) = form.clean("body") else {
+ return FlashData::error("Write a note first");
+ };
+ match client.annotate_decision(decision_id, body).await {
+ Ok(_) => FlashData::success("Note added"),
+ Err(error) => failure("Failed to add the note", &error),
+ }
+ }
+ _ => FlashData::error("Unknown decision action"),
+ }
+}
diff --git a/fluxer_admin/src/routes/guilds.rs b/fluxer_admin/src/routes/guilds.rs
index 9656058d6..dcf000321 100644
--- a/fluxer_admin/src/routes/guilds.rs
+++ b/fluxer_admin/src/routes/guilds.rs
@@ -1,7 +1,11 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
use crate::{
- api::client::{AdminApiClient, ApiResultExt},
+ api::{
+ client::{AdminApiClient, ApiResultExt},
+ enforcement::api_error_message,
+ generated::types::CommunityRemovalBasis,
+ },
middleware::{
auth::AuthContext,
csrf,
@@ -10,7 +14,10 @@ use crate::{
},
routes::guild_tabs,
state::AppState,
- templates,
+ templates::{
+ self,
+ components::enforcement_fields::{BasisSubmission, basis_from_form},
+ },
utils::forms::MultiValueForm,
};
use axum::{
@@ -308,11 +315,7 @@ async fn dispatch_guild_action(
"Guild shutdown requested",
"Failed to shut down guild",
),
- "delete_guild" => action_result(
- client.delete_guild(guild_id).await,
- "Guild deleted",
- "Failed to delete guild",
- ),
+ "delete_guild" => remove_community(client, guild_id, form).await,
"update_settings" => {
let mut settings = serde_json::Map::new();
for key in &[
@@ -455,6 +458,37 @@ async fn dispatch_guild_action(
}
}
+async fn remove_community(
+ client: &AdminApiClient,
+ guild_id: &str,
+ form: &MultiValueForm,
+) -> FlashData {
+ let basis = match basis_from_form(form) {
+ Ok(basis) => basis,
+ Err(message) => return FlashData::error(message),
+ };
+ let community_basis = match &basis {
+ BasisSubmission::Enforcement(submission) => {
+ CommunityRemovalBasis::Enforcement(submission.decision.clone())
+ }
+ BasisSubmission::HolderRequest(_) => CommunityRemovalBasis::HolderRequest,
+ BasisSubmission::Housekeeping(_) => return FlashData::error("Choose a basis"),
+ };
+ match client
+ .delete_guild(guild_id, community_basis, basis.internal_note())
+ .await
+ {
+ Ok(_) => FlashData::success("Community removed"),
+ Err(error) => {
+ tracing::warn!(%error, guild_id, "admin API request failed: remove community");
+ FlashData::error(api_error_message(&error).map_or_else(
+ || "Failed to remove the community".to_owned(),
+ |message| format!("Failed to remove the community: {message}"),
+ ))
+ }
+ }
+}
+
fn action_result<T, E: std::fmt::Display>(
result: Result<T, E>,
success_message: &'static str,
diff --git a/fluxer_admin/src/routes/message_actions.rs b/fluxer_admin/src/routes/message_actions.rs
index 91f52fcd2..3b051eebb 100644
--- a/fluxer_admin/src/routes/message_actions.rs
+++ b/fluxer_admin/src/routes/message_actions.rs
@@ -2,16 +2,23 @@
use crate::{
acl,
- api::client::AdminApiClient,
+ api::{
+ client::AdminApiClient,
+ enforcement::api_error_message,
+ generated::types::{BulkModerationBasis, MessageDeletionBasis},
+ },
middleware::{
auth::AuthContext,
flash::{self, FlashData},
},
state::AppState,
+ templates::{
+ components::enforcement_fields::{bulk_decision_from_form, can_take_action},
+ pages::messages_page::MessageActions,
+ },
utils::forms::MultiValueForm,
};
use axum::{
- Json,
extract::{Query, Request, State},
http::StatusCode,
response::{Html, IntoResponse, Redirect, Response},
@@ -93,17 +100,31 @@ pub(crate) async fn messages_post(
.into_response()
}
"delete" => {
- let (Some(cid), Some(mid)) = (&channel_id, &message_id) else {
- return json_error(StatusCode::BAD_REQUEST, "Missing channel_id or message_id");
+ let back = format!("{base}/messages?channel_id={}", encode_opt(&channel_id));
+ let basis = form
+ .first("basis")
+ .and_then(|value| MessageDeletionBasis::try_from(value).ok());
+ let flash = match (&channel_id, &message_id, basis) {
+ (Some(cid), Some(mid), Some(basis)) => {
+ let internal_note = form.clean("internal_note");
+ match client
+ .delete_message(cid, mid, basis, internal_note.as_deref())
+ .await
+ {
+ Ok(()) => FlashData::success("Message deleted"),
+ Err(error) => {
+ tracing::warn!(%error, "admin API request failed: delete message");
+ FlashData::error(api_error_message(&error).map_or_else(
+ || "Failed to delete the message".to_owned(),
+ |message| format!("Failed to delete the message: {message}"),
+ ))
+ }
+ }
+ }
+ (Some(_), Some(_), None) => FlashData::error("Choose a basis"),
+ _ => FlashData::error("Enter the channel ID and message ID"),
};
- let audit_log_reason = form.clean("audit_log_reason");
- match client
- .delete_message(cid, mid, audit_log_reason.as_deref())
- .await
- {
- Ok(()) => Json(serde_json::json!({"success": true})).into_response(),
- Err(e) => json_error(StatusCode::BAD_REQUEST, &format!("{e}")),
- }
+ flash::redirect_with_flash(&back, flash, config.secure_cookies())
}
_ => Redirect::to(&format!("{base}/messages")).into_response(),
}
@@ -150,6 +171,15 @@ pub(crate) async fn system_dms_post(
)
}
+fn bulk_basis(form: &MultiValueForm) -> Result<BulkModerationBasis, String> {
+ match form.first("basis") {
+ Some("enforcement") => bulk_decision_from_form(form).map(BulkModerationBasis::Enforcement),
+ Some("holder_request") => Ok(BulkModerationBasis::HolderRequest),
+ Some("housekeeping") => Ok(BulkModerationBasis::Housekeeping),
+ _ => Err("Choose a basis".to_owned()),
+ }
+}
+
pub(crate) async fn bulk_actions_post(
State(state): State<AppState>,
auth: axum::Extension<AuthContext>,
@@ -197,35 +227,48 @@ pub(crate) async fn bulk_actions_post(
.bulk_add_guild_members(&guild_id, &user_ids, audit_log_reason.as_deref())
.await
}
- "bulk-schedule-user-deletion" | "bulk_delete_users" => {
+ "bulk-schedule-user-deletion" => {
let user_ids = form.list_values_any(&["user_ids[]", "user_ids"]);
- let (Ok(reason_code), Ok(days)) = (
- form.parse_value::<u32>("reason_code"),
- form.parse_value::<u32>("days_until_deletion"),
- ) else {
+ let basis = match bulk_basis(&form) {
+ Ok(basis) => basis,
+ Err(message) => {
+ return flash::redirect_with_flash(
+ &format!("{base}/bulk-actions"),
+ FlashData::error(message),
+ config.secure_cookies(),
+ );
+ }
+ };
+ let Ok(Some(days)) = form.parse_value::<u32>("days_until_deletion") else {
return flash::redirect_with_flash(
&format!("{base}/bulk-actions"),
- FlashData::error("Invalid deletion reason code or delay"),
+ FlashData::error("Enter the days until deletion"),
config.secure_cookies(),
);
};
- let public_reason = form.clean("public_reason");
- let notify_user = form.opt_out_value("notify_user");
client
.bulk_schedule_user_deletion(
&user_ids,
- reason_code.unwrap_or(2),
- days.unwrap_or(14),
- public_reason.as_deref(),
- notify_user,
- audit_log_reason.as_deref(),
+ days,
+ basis,
+ form.clean("internal_note").as_deref(),
)
.await
}
"bulk-delete-user-messages" => {
let user_ids = form.list_values_any(&["user_ids[]", "user_ids"]);
+ let basis = match bulk_basis(&form) {
+ Ok(basis) => basis,
+ Err(message) => {
+ return flash::redirect_with_flash(
+ &format!("{base}/bulk-actions"),
+ FlashData::error(message),
+ config.secure_cookies(),
+ );
+ }
+ };
client
- .bulk_delete_user_messages(&user_ids, audit_log_reason.as_deref())
+ .bulk_delete_user_messages(&user_ids, basis, form.clean("internal_note").as_deref())
.await
}
_ => {
@@ -295,7 +338,13 @@ pub(crate) async fn messages_browse_fragment(
match result {
Ok(resp) => {
let markup = crate::templates::pages::messages_page::browse_messages_fragment(
- config, &resp.data, can_delete, None,
+ config,
+ &resp.data,
+ MessageActions {
+ delete: can_delete,
+ take_action: can_take_action(admin_acls),
+ },
+ None,
);
Html(markup.into_string()).into_response()
}
@@ -325,14 +374,6 @@ fn encode_opt(value: &Option<String>) -> String {
urlencoding::encode(value.as_deref().unwrap_or("")).into_owned()
}
-fn json_error(status: StatusCode, message: &str) -> Response {
- (
- status,
- Json(serde_json::json!({"success": false, "error": message})),
- )
- .into_response()
-}
-
pub(crate) async fn archives_download(
State(state): State<AppState>,
auth: axum::Extension<AuthContext>,
diff --git a/fluxer_admin/src/routes/messages.rs b/fluxer_admin/src/routes/messages.rs
index 0e1159e37..372120697 100644
--- a/fluxer_admin/src/routes/messages.rs
+++ b/fluxer_admin/src/routes/messages.rs
@@ -5,7 +5,7 @@ use crate::{
api::client::{AdminApiClient, ApiResultExt},
middleware::{auth::AuthContext, csrf::CsrfToken},
state::AppState,
- templates,
+ templates::{self, components::enforcement_fields::can_take_action},
};
use axum::{
Router,
@@ -137,6 +137,7 @@ async fn messages_page(
prefill_channel_id: channel_id,
can_lookup,
can_delete,
+ can_take_action: can_take_action(admin_acls),
lookup_result: lookup_result.as_ref(),
browse_result: browse_result.as_ref(),
search_result: search_result.as_ref(),
@@ -201,13 +202,6 @@ async fn bulk_actions_page(
csrf: axum::Extension<CsrfToken>,
) -> Response {
let config = state.config();
- let client = AdminApiClient::new(state.http_client(), config, &auth.0.session);
- let account_identity = state.account_identity(&client).await;
- let markup = templates::pages::bulk_actions::bulk_actions_page(
- config,
- &auth.0,
- &csrf.0.0,
- account_identity.is_username(),
- );
+ let markup = templates::pages::bulk_actions::bulk_actions_page(config, &auth.0, &csrf.0.0);
Html(markup.into_string()).into_response()
}
diff --git a/fluxer_admin/src/routes/mod.rs b/fluxer_admin/src/routes/mod.rs
index b9d1802de..71a346c2c 100644
--- a/fluxer_admin/src/routes/mod.rs
+++ b/fluxer_admin/src/routes/mod.rs
@@ -8,6 +8,7 @@ mod bans_actions;
mod billing_actions;
pub mod codes;
pub mod discovery;
+pub mod enforcement;
mod guild_tabs;
pub mod guilds;
pub mod jobs;
@@ -64,6 +65,7 @@ pub fn build_router(config: AdminConfig) -> Router {
.merge(applications::router())
.merge(codes::router())
.merge(discovery::router())
+ .merge(enforcement::router())
.merge(registrations::router())
.merge(jobs::router())
.merge(messages::router())
diff --git a/fluxer_admin/src/routes/reports.rs b/fluxer_admin/src/routes/reports.rs
index c8afc9edb..4ccbc68c2 100644
--- a/fluxer_admin/src/routes/reports.rs
+++ b/fluxer_admin/src/routes/reports.rs
@@ -4,6 +4,7 @@ use crate::{
acl,
api::{
client::{AdminApiClient, ApiError, ApiResultExt},
+ generated::types::{UpdateReportRequestOutcome, UpdateReportRequestResolution},
reports::SearchReportsParams,
types::ReportEntry,
},
@@ -15,7 +16,7 @@ use crate::{
htmx,
},
state::AppState,
- templates,
+ templates::{self, components::enforcement_fields::is_snowflake},
utils::{forms::clean_string, timestamps::format_admin_timestamp},
};
use axum::{
@@ -78,6 +79,10 @@ struct ResolveForm {
#[serde(default)]
resolution: Option<String>,
#[serde(default)]
+ outcome: Option<String>,
+ #[serde(default)]
+ duplicate_of: Option<String>,
+ #[serde(default)]
public_comment: Option<String>,
#[serde(default)]
notify_reporter: Option<String>,
@@ -323,6 +328,35 @@ async fn report_resolve(
config.secure_cookies(),
);
};
+ let outcome = match resolution {
+ UpdateReportRequestResolution::NoViolation => Some(UpdateReportRequestOutcome::NoViolation),
+ UpdateReportRequestResolution::Actioned => form
+ .outcome
+ .as_deref()
+ .and_then(|value| UpdateReportRequestOutcome::try_from(value).ok())
+ .filter(|outcome| *outcome != UpdateReportRequestOutcome::NoViolation),
+ UpdateReportRequestResolution::Duplicate => None,
+ };
+ let duplicate_of = form
+ .duplicate_of
+ .as_deref()
+ .map(str::trim)
+ .filter(|value| is_snowflake(value))
+ .map(str::to_owned);
+ let missing = match resolution {
+ UpdateReportRequestResolution::Actioned if outcome.is_none() => Some(OUTCOME_REQUIRED),
+ UpdateReportRequestResolution::Duplicate if duplicate_of.is_none() => {
+ Some(DUPLICATE_OF_REQUIRED)
+ }
+ _ => None,
+ };
+ if let Some(message) = missing {
+ return flash::redirect_with_flash(
+ &back,
+ FlashData::error(message),
+ config.secure_cookies(),
+ );
+ }
let client = AdminApiClient::new(state.http_client(), config, &auth.0.session);
let public_comment = clean_string(form.public_comment.as_deref().unwrap_or(""));
let notify_reporter =
@@ -331,9 +365,10 @@ async fn report_resolve(
.resolve_report(
&report_id,
resolution,
+ outcome,
+ duplicate_of.as_deref(),
public_comment.as_deref(),
notify_reporter,
- None,
)
.await
{
@@ -347,6 +382,8 @@ async fn report_resolve(
}
const RESOLUTION_REQUIRED: &str = "Choose a resolution";
+const OUTCOME_REQUIRED: &str = "Choose what happened to the reported content or account";
+const DUPLICATE_OF_REQUIRED: &str = "Enter the ID of the report this one repeats";
async fn report_legal_hold(
State(state): State<AppState>,
diff --git a/fluxer_admin/src/routes/user_actions.rs b/fluxer_admin/src/routes/user_actions.rs
index 05a4a8298..d205aac51 100644
--- a/fluxer_admin/src/routes/user_actions.rs
+++ b/fluxer_admin/src/routes/user_actions.rs
@@ -3,8 +3,19 @@
use crate::utils::plural::count_noun;
use crate::{
admin_flags,
- api::client::{AdminApiClient, ApiError},
+ api::{
+ client::{AdminApiClient, ApiError},
+ enforcement::{ClosureRequest, api_error_message},
+ generated::{
+ snowflake,
+ types::{AdminUserFeatureLimitRequestLimit, AdminUserMessageShredRequestEntriesItem},
+ },
+ },
middleware::flash::FlashData,
+ templates::components::enforcement_fields::{
+ BasisSubmission, basis_from_form, decision_from_form, network_blocks_from_form,
+ skipped_networks_summary,
+ },
utils::forms::MultiValueForm,
};
use std::collections::HashSet;
@@ -74,16 +85,21 @@ pub async fn dispatch(
return DispatchOutcome::error("User not found");
}
};
+ let suspended = user.temp_banned_until.is_some();
+ let editable =
+ |flag: &u64| admin_flags::user_flag_is_editable(*flag, user.flags, suspended);
let add = submitted
.iter()
.copied()
- .filter(|flag| user.flags & *flag == 0)
+ .filter(|flag| user.flags & *flag == 0 && editable(flag))
.map(|flag| flag.to_string())
.collect::<Vec<_>>();
let remove = admin_flags::USER_FLAGS
.iter()
.map(|flag| flag.value)
- .filter(|flag| user.flags & *flag != 0 && !selected.contains(flag))
+ .filter(|flag| {
+ user.flags & *flag != 0 && !selected.contains(flag) && editable(flag)
+ })
.map(|flag| flag.to_string())
.collect::<Vec<_>>();
DispatchOutcome::from_result(
@@ -122,12 +138,18 @@ pub async fn dispatch(
let add = submitted
.iter()
.copied()
- .filter(|flag| current & *flag != *flag)
+ .filter(|flag| {
+ current & *flag != *flag && admin_flags::premium_flag_is_editable(*flag)
+ })
.collect::<Vec<_>>();
let remove = admin_flags::PREMIUM_FLAGS
.iter()
.map(|flag| flag.value)
- .filter(|flag| current & *flag == *flag && !selected.contains(flag))
+ .filter(|flag| {
+ current & *flag == *flag
+ && !selected.contains(flag)
+ && admin_flags::premium_flag_is_editable(*flag)
+ })
.collect::<Vec<_>>();
DispatchOutcome::from_result(
client.update_premium_flags(user_id, &add, &remove).await,
@@ -172,12 +194,20 @@ pub async fn dispatch(
"Failed to terminate user sessions",
),
"clear_fields" => {
- let f = form.list_values_any(&["fields[]", "fields"]);
- DispatchOutcome::from_result(
- client.clear_user_fields(user_id, &f).await,
- "User fields cleared successfully",
- "Failed to clear user fields",
- )
+ let fields = form.list_values_any(&["fields[]", "fields"]);
+ if fields.is_empty() {
+ return DispatchOutcome::error("Choose at least one field");
+ }
+ let basis = match basis_from_form(form) {
+ Ok(basis) => basis,
+ Err(message) => return DispatchOutcome::error(message),
+ };
+ match client.clear_user_fields(user_id, &fields, &basis).await {
+ Ok(_) => DispatchOutcome::success("Profile fields cleared"),
+ Err(error) => {
+ decision_failure("Failed to clear the profile fields", user_id, &error)
+ }
+ }
}
"set_bot_status" => {
let val = form.bool_value("bot");
@@ -218,43 +248,61 @@ pub async fn dispatch(
"Failed to change email",
)
}
- "temp_ban" => {
- let Ok(duration) = form.parse_value_any::<u32>(&["duration_hours", "duration"]) else {
- return DispatchOutcome::error("Invalid ban duration");
+ "suspend" => {
+ let Ok(Some(duration_hours)) = form.parse_value::<u32>("duration_hours") else {
+ return DispatchOutcome::error("Choose a duration");
};
- let reason = get("reason");
- let private = get("private_reason");
- let notify_user = form.opt_out_value("notify_user");
- DispatchOutcome::from_result(
- client
- .temp_ban_user(
- user_id,
- duration.unwrap_or(24),
- reason.as_deref(),
- notify_user,
- private.as_deref(),
- )
- .await,
- "User temporarily banned successfully",
- "Failed to temporarily ban user",
- )
+ let submission = match decision_from_form(form) {
+ Ok(submission) => submission,
+ Err(message) => return DispatchOutcome::error(message),
+ };
+ let block_networks = match network_blocks_from_form(form) {
+ Ok(block_networks) => block_networks,
+ Err(message) => return DispatchOutcome::error(message),
+ };
+ let remove_evidence = form.bool_value("remove_evidence");
+ match client
+ .suspend_user(
+ user_id,
+ duration_hours,
+ remove_evidence,
+ block_networks,
+ &submission,
+ )
+ .await
+ {
+ Ok(response) => {
+ let done = if duration_hours == 0 {
+ "Account banned."
+ } else {
+ "Account suspended."
+ };
+ DispatchOutcome::success(with_skipped(done, &response.skipped_ips))
+ }
+ Err(error) => decision_failure("Failed to suspend the account", user_id, &error),
+ }
+ }
+ "warn" => {
+ let submission = match decision_from_form(form) {
+ Ok(submission) => submission,
+ Err(message) => return DispatchOutcome::error(message),
+ };
+ match client.warn_user(user_id, &submission).await {
+ Ok(response) => DispatchOutcome::success(format!(
+ "Warning sent as decision {}",
+ response.decision_id.as_str()
+ )),
+ Err(error) => decision_failure("Failed to send the warning", user_id, &error),
+ }
}
"unban" => {
- let public_reason = get("public_reason");
- let private_reason = get("private_reason");
- let notify_user = form.opt_out_value("notify_user");
- DispatchOutcome::from_result(
- client
- .unban_user(
- user_id,
- public_reason.as_deref(),
- notify_user,
- private_reason.as_deref(),
- )
- .await,
- "User unbanned successfully",
- "Failed to unban user",
- )
+ let Some(internal_note) = get("internal_note") else {
+ return DispatchOutcome::error("Add an internal note");
+ };
+ match client.unban_user(user_id, Some(&internal_note)).await {
+ Ok(_) => DispatchOutcome::success("Suspension lifted"),
+ Err(error) => decision_failure("Failed to lift the suspension", user_id, &error),
+ }
}
"ban_ip" => {
let Some(ip) = get("ip") else {
@@ -279,30 +327,33 @@ pub async fn dispatch(
"Failed to ban avatar hash",
)
}
- "schedule_deletion" => {
- let Ok(reason_code) = form.parse_value::<i32>("reason_code") else {
- return DispatchOutcome::error("Invalid deletion reason code");
+ "close" => close_account(client, user_id, form).await,
+ "limit_features" => {
+ let Some(limit) = form
+ .first("limit")
+ .and_then(|value| AdminUserFeatureLimitRequestLimit::try_from(value).ok())
+ else {
+ return DispatchOutcome::error("Choose a limit");
};
- let public_reason = get("public_reason");
- let private_reason = get("private_reason");
- let Ok(days) = form.parse_value_any::<u32>(&["days_until_deletion", "days"]) else {
- return DispatchOutcome::error("Invalid deletion delay");
+ let ends_at = match (limit, form.first("ends_on")) {
+ (AdminUserFeatureLimitRequestLimit::Reports, Some(value)) => match parse_day(value)
+ {
+ Some(ends_at) => Some(ends_at),
+ None => return DispatchOutcome::error("Enter the end date as a date"),
+ },
+ _ => None,
};
- let notify_user = form.opt_out_value("notify_user");
- DispatchOutcome::from_result(
- client
- .schedule_deletion(
- user_id,
- reason_code.unwrap_or(0),
- public_reason.as_deref(),
- days.unwrap_or(60),
- notify_user,
- private_reason.as_deref(),
- )
- .await,
- "User deletion scheduled successfully",
- "Failed to schedule user deletion",
- )
+ let submission = match decision_from_form(form) {
+ Ok(submission) => submission,
+ Err(message) => return DispatchOutcome::error(message),
+ };
+ match client
+ .limit_features(user_id, limit, ends_at, &submission)
+ .await
+ {
+ Ok(_) => DispatchOutcome::success("Feature limited"),
+ Err(error) => decision_failure("Failed to limit the feature", user_id, &error),
+ }
}
"cancel_deletion" => {
let Some(expected) = get("expected_pending_deletion_at") else {
@@ -315,40 +366,15 @@ pub async fn dispatch(
"Confirm whose deletion you are canceling before submitting",
);
}
- let Some(private_reason) = get("private_reason") else {
- return DispatchOutcome::error("A private reason is required to cancel a deletion");
+ let Some(internal_note) = get("internal_note") else {
+ return DispatchOutcome::error("Add an internal note");
};
- let notify_user = form.bool_value("notify_user");
match client
- .cancel_deletion(user_id, &expected, notify_user, Some(&private_reason))
+ .cancel_deletion(user_id, &expected, Some(&internal_note))
.await
{
- Ok(_) => DispatchOutcome::success("User deletion canceled successfully"),
- Err(ApiError::Http { status: 409, .. }) => DispatchOutcome::error(
- "The pending deletion changed since this page loaded. Reload and review.",
- ),
- Err(error) => {
- tracing::warn!(%error, user_id, "admin API request failed: cancel user deletion");
- DispatchOutcome::error("Failed to cancel user deletion")
- }
- }
- }
- "annotate_ban" => {
- let Some(ban_audit_log_id) = get("ban_audit_log_id") else {
- return DispatchOutcome::error("The ban audit log entry is missing from the form");
- };
- let Some(note) = get("note") else {
- return DispatchOutcome::error("Note is required");
- };
- match client.annotate_ban(user_id, &ban_audit_log_id, &note).await {
- Ok(()) => DispatchOutcome::success("Note added to the ban"),
- Err(ApiError::Http { status: 409, .. }) => DispatchOutcome::error(
- "The ban changed since this page loaded. Reload and review.",
- ),
- Err(error) => {
- tracing::warn!(%error, user_id, "admin API request failed: annotate ban");
- DispatchOutcome::error("Failed to add the note to the ban")
- }
+ Ok(_) => DispatchOutcome::success("Deletion cancelled"),
+ Err(error) => decision_failure("Failed to cancel the deletion", user_id, &error),
}
}
"change_dob" => {
@@ -431,79 +457,172 @@ pub async fn dispatch(
}
}
}
- "delete_all_messages" => {
- let dry_run = parse_dry_run(form.first("dry_run"));
- match client.delete_all_user_messages(user_id, dry_run).await {
- Ok(response) if dry_run => DispatchOutcome {
- flash: FlashData::success(format!(
- "Dry run found {} across {}. Confirm to delete them permanently.",
- count_noun(response.message_count, "message", "messages"),
- count_noun(response.channel_count, "channel", "channels")
- )),
- redirect_params: vec![
- ("delete_all_messages_dry_run".to_owned(), "true".to_owned()),
- (
- "delete_all_messages_channel_count".to_owned(),
- response.channel_count.to_string(),
- ),
- (
- "delete_all_messages_message_count".to_owned(),
- response.message_count.to_string(),
- ),
- ],
- },
- Ok(response) => {
- if let Some(job_id) = response.job_id {
- DispatchOutcome {
- flash: FlashData::success(
- "Delete job queued. Monitor progress in the status panel.",
- ),
- redirect_params: vec![("message_shred_job_id".to_owned(), job_id)],
- }
- } else {
- DispatchOutcome::success("No messages found for deletion.")
- }
- }
- Err(error) => {
- tracing::warn!(%error, user_id, "admin API request failed: delete all user messages");
- DispatchOutcome::error("Failed to delete all user messages")
- }
- }
- }
+ "delete_all_messages" => delete_all_messages(client, user_id, form).await,
"cancel_bulk_message_deletion" => DispatchOutcome::from_result(
client.cancel_bulk_message_deletion(user_id).await,
"Bulk message deletion canceled successfully",
"Failed to cancel bulk message deletion",
),
"message_shred" => {
- let csv = form.first("csv_data").unwrap_or_default();
- match parse_message_shred_csv(csv) {
- Ok(entries) if entries.is_empty() => DispatchOutcome::error(
- "CSV did not contain any valid channel_id,message_id pairs.",
- ),
- Ok(entries) => match client.queue_message_shred(user_id, &entries).await {
- Ok(response) => {
- if let Some(job_id) = response.job_id {
- DispatchOutcome {
- flash: FlashData::success("Message shred job queued"),
- redirect_params: vec![("message_shred_job_id".to_owned(), job_id)],
- }
- } else {
- DispatchOutcome::success("Message shred job queued")
- }
- }
- Err(error) => {
- tracing::warn!(%error, user_id, "admin API request failed: queue message shred job");
- DispatchOutcome::error("Failed to queue message shred job")
- }
+ let entries = match parse_message_shred_csv(form.first("csv_data").unwrap_or_default())
+ {
+ Ok(entries) if entries.is_empty() => {
+ return DispatchOutcome::error("The CSV has no channel_id,message_id rows.");
+ }
+ Ok(entries) => entries,
+ Err(error) => return DispatchOutcome::error(error),
+ };
+ let basis = match basis_from_form(form) {
+ Ok(basis) => basis,
+ Err(message) => return DispatchOutcome::error(message),
+ };
+ match client.queue_message_shred(user_id, entries, &basis).await {
+ Ok(response) => DispatchOutcome {
+ flash: FlashData::success(removal_message(
+ "Message shred queued",
+ response.decision_id.as_ref().map(|id| id.as_str()),
+ )),
+ redirect_params: vec![("message_shred_job_id".to_owned(), response.job_id)],
},
- Err(error) => DispatchOutcome::error(error),
+ Err(error) => {
+ decision_failure("Failed to queue the message shred", user_id, &error)
+ }
}
}
_ => DispatchOutcome::error(format!("Unknown user action: {action}")),
}
}
+fn with_skipped(
+ done: &str,
+ skipped: &[crate::api::generated::types::SkippedNetworkBlock],
+) -> String {
+ match skipped_networks_summary(skipped) {
+ Some(summary) => format!("{done} {summary}"),
+ None => done.to_owned(),
+ }
+}
+
+async fn close_account(
+ client: &AdminApiClient,
+ user_id: &str,
+ form: &MultiValueForm,
+) -> DispatchOutcome {
+ let Ok(Some(days_until_deletion)) = form.parse_value::<u32>("days_until_deletion") else {
+ return DispatchOutcome::error("Enter the days until deletion");
+ };
+ let replace_pending_deletion_at = match form.clean("replace_pending_deletion_at") {
+ Some(value) => match chrono::DateTime::parse_from_rfc3339(&value) {
+ Ok(at) => Some(at.with_timezone(&chrono::Utc)),
+ Err(_) => {
+ return DispatchOutcome::error(
+ "The pending deletion is missing from the form. Reload and review.",
+ );
+ }
+ },
+ None => None,
+ };
+ let basis = match basis_from_form(form) {
+ Ok(basis) => basis,
+ Err(message) => return DispatchOutcome::error(message),
+ };
+ let enforcement = matches!(basis, BasisSubmission::Enforcement(_));
+ let block_networks = match network_blocks_from_form(form) {
+ Ok(block_networks) => block_networks.filter(|_| enforcement),
+ Err(message) => return DispatchOutcome::error(message),
+ };
+ let request = ClosureRequest {
+ basis: basis.moderation_basis(),
+ days_until_deletion,
+ remove_evidence: enforcement && form.bool_value("remove_evidence"),
+ block_networks,
+ replace_pending_deletion_at,
+ internal_note: basis.internal_note().map(str::to_owned),
+ };
+ match client.close_account(user_id, &request).await {
+ Ok(response) => {
+ DispatchOutcome::success(with_skipped("Account closed.", &response.skipped_ips))
+ }
+ Err(error) => decision_failure("Failed to close the account", user_id, &error),
+ }
+}
+
+async fn delete_all_messages(
+ client: &AdminApiClient,
+ user_id: &str,
+ form: &MultiValueForm,
+) -> DispatchOutcome {
+ let basis = if parse_dry_run(form.first("dry_run")) {
+ None
+ } else {
+ match basis_from_form(form) {
+ Ok(basis) => Some(basis),
+ Err(message) => return DispatchOutcome::error(message),
+ }
+ };
+ let response = match client
+ .delete_all_user_messages(user_id, basis.as_ref())
+ .await
+ {
+ Ok(response) => response,
+ Err(error) => return decision_failure("Failed to delete the messages", user_id, &error),
+ };
+ let message_count = u64::try_from(*response.message_count).unwrap_or_default();
+ let channel_count = u64::try_from(*response.channel_count).unwrap_or_default();
+ if basis.is_none() {
+ return DispatchOutcome {
+ flash: FlashData::success(format!(
+ "Found {} in {}. Choose a basis to delete them.",
+ count_noun(message_count, "message", "messages"),
+ count_noun(channel_count, "channel", "channels")
+ )),
+ redirect_params: vec![
+ ("delete_all_messages_dry_run".to_owned(), "true".to_owned()),
+ (
+ "delete_all_messages_channel_count".to_owned(),
+ channel_count.to_string(),
+ ),
+ (
+ "delete_all_messages_message_count".to_owned(),
+ message_count.to_string(),
+ ),
+ ],
+ };
+ }
+ match response.job_id {
+ Some(job_id) => DispatchOutcome {
+ flash: FlashData::success(removal_message(
+ "Delete job queued",
+ response.decision_id.as_ref().map(|id| id.as_str()),
+ )),
+ redirect_params: vec![("message_shred_job_id".to_owned(), job_id)],
+ },
+ None => DispatchOutcome::success("No messages to delete"),
+ }
+}
+
+fn removal_message(queued: &str, decision_id: Option<&str>) -> String {
+ match decision_id {
+ Some(decision_id) => format!("{queued} as decision {decision_id}"),
+ None => queued.to_owned(),
+ }
+}
+
+fn parse_day(value: &str) -> Option<chrono::DateTime<chrono::Utc>> {
+ chrono::NaiveDate::parse_from_str(value.trim(), "%Y-%m-%d")
+ .ok()?
+ .and_hms_opt(0, 0, 0)
+ .map(|at| at.and_utc())
+}
+
+fn decision_failure(context: &str, user_id: &str, error: &ApiError) -> DispatchOutcome {
+ tracing::warn!(%error, user_id, "admin API request failed: {context}");
+ match api_error_message(error) {
+ Some(message) => DispatchOutcome::error(format!("{context}: {message}")),
+ None => DispatchOutcome::error(context.to_owned()),
+ }
+}
+
fn has_legacy_flag_delta_fields(form: &MultiValueForm) -> bool {
["add_flags[]", "add_flags", "remove_flags[]", "remove_flags"]
.iter()
@@ -521,7 +640,9 @@ fn parse_dry_run(value: Option<&str>) -> bool {
!matches!(value.map(|value| value.trim().to_ascii_lowercase()), Some(value) if value == "false" || value == "0")
}
-fn parse_message_shred_csv(csv: &str) -> Result<Vec<serde_json::Value>, String> {
+fn parse_message_shred_csv(
+ csv: &str,
+) -> Result<Vec<AdminUserMessageShredRequestEntriesItem>, String> {
let mut entries = Vec::new();
for line in csv.trim().lines() {
let trimmed = line.trim();
@@ -534,12 +655,10 @@ fn parse_message_shred_csv(csv: &str) -> Result<Vec<serde_json::Value>, String>
"Each row must contain channel_id and message_id separated by a comma".to_owned(),
);
}
- let channel_id = parse_csv_snowflake(parts[0], "channel_id", trimmed)?;
- let message_id = parse_csv_snowflake(parts[1], "message_id", trimmed)?;
- entries.push(serde_json::json!({
- "channel_id": channel_id,
- "message_id": message_id,
- }));
+ entries.push(AdminUserMessageShredRequestEntriesItem {
+ channel_id: snowflake(&parse_csv_snowflake(parts[0], "channel_id", trimmed)?),
+ message_id: snowflake(&parse_csv_snowflake(parts[1], "message_id", trimmed)?),
+ });
}
Ok(entries)
}
@@ -572,8 +691,10 @@ mod tests {
let entries = parse_message_shred_csv("channel_id,message_id\n123,456\n789,101112")
.expect("valid csv");
assert_eq!(entries.len(), 2);
- assert_eq!(entries[0]["channel_id"], "123");
- assert_eq!(entries[0]["message_id"], "456");
+ assert_eq!(
+ serde_json::to_value(&entries[0]).expect("serializable entry"),
+ serde_json::json!({"channel_id": "123", "message_id": "456"})
+ );
}
#[test]
diff --git a/fluxer_admin/src/routes/user_tabs.rs b/fluxer_admin/src/routes/user_tabs.rs
index 1278c4bb3..5f6721563 100644
--- a/fluxer_admin/src/routes/user_tabs.rs
+++ b/fluxer_admin/src/routes/user_tabs.rs
@@ -25,6 +25,8 @@ pub struct TabQuery {
pub delete_all_messages_dry_run: Option<String>,
pub delete_all_messages_channel_count: Option<u64>,
pub delete_all_messages_message_count: Option<u64>,
+ pub report_id: Option<String>,
+ pub message: Option<String>,
}
#[allow(clippy::too_many_arguments)]
@@ -114,7 +116,8 @@ pub async fn render(
}
_ => None,
};
- let ban_logs = if u.temp_banned_until.is_some()
+ let legacy_logs = if u.temp_banned_until.is_some()
+ && u.enforcement_decision_id.is_none()
&& acl::has_permission(admin_acls, acl::AUDIT_LOG_VIEW)
{
client
@@ -130,16 +133,41 @@ pub async fn render(
offset: 0,
})
.await
- .log_error("load ban audit logs")
+ .log_error("load suspension audit logs")
.map(|response| response.logs)
.unwrap_or_default()
} else {
Vec::new()
};
+ let decisions = if acl::has_permission(admin_acls, acl::ENFORCEMENT_VIEW) {
+ Some(client.list_user_decisions(user_id).await)
+ } else {
+ None
+ };
+ if let Some(Err(error)) = &decisions {
+ tracing::warn!(%error, user_id, "admin API request failed: list user decisions");
+ }
+ let can_block_networks = acl::has_permission(admin_acls, acl::USER_VIEW_IP)
+ && acl::has_permission(admin_acls, acl::BAN_IP_ADD)
+ && (acl::has_permission(admin_acls, acl::USER_TEMP_BAN)
+ || acl::has_permission(admin_acls, acl::USER_DELETE));
+ let network_candidates = if can_block_networks {
+ Some(client.list_network_block_candidates(user_id).await)
+ } else {
+ None
+ };
+ if let Some(Err(error)) = &network_candidates {
+ tracing::warn!(%error, user_id, "admin API request failed: list network block candidates");
+ }
let context = tabs::moderation::ModerationContext {
deletion_scheduler: deletion_scheduler.as_ref(),
- current_ban: tabs::moderation::find_current_ban(&u, &ban_logs),
- username_sign_in: account_identity.is_username(),
+ legacy_suspension: tabs::moderation::find_legacy_suspension(&u, &legacy_logs),
+ decisions: decisions.as_ref(),
+ network_candidates: network_candidates.as_ref(),
+ prefill: tabs::moderation::DecisionPrefill {
+ report_ids: query.report_id.iter().cloned().collect(),
+ messages: query.message.iter().cloned().collect(),
+ },
};
Some(tabs::moderation::moderation_tab(
config,
diff --git a/fluxer_admin/src/routes/users.rs b/fluxer_admin/src/routes/users.rs
index 245a7ccf8..c31a89c9a 100644
--- a/fluxer_admin/src/routes/users.rs
+++ b/fluxer_admin/src/routes/users.rs
@@ -53,6 +53,8 @@ struct UserDetailQuery {
delete_all_messages_dry_run: Option<String>,
delete_all_messages_channel_count: Option<u64>,
delete_all_messages_message_count: Option<u64>,
+ report_id: Option<String>,
+ message: Option<String>,
}
#[derive(Deserialize)]
@@ -380,6 +382,8 @@ async fn user_tab(
delete_all_messages_dry_run: None,
delete_all_messages_channel_count: None,
delete_all_messages_message_count: None,
+ report_id: None,
+ message: None,
};
let admin_acls = auth
.0
@@ -458,6 +462,8 @@ fn to_tab_query(q: &UserDetailQuery) -> user_tabs::TabQuery {
delete_all_messages_dry_run: q.delete_all_messages_dry_run.clone(),
delete_all_messages_channel_count: q.delete_all_messages_channel_count,
delete_all_messages_message_count: q.delete_all_messages_message_count,
+ report_id: q.report_id.clone(),
+ message: q.message.clone(),
}
}
diff --git a/fluxer_admin/src/templates/components/enforcement_fields.rs b/fluxer_admin/src/templates/components/enforcement_fields.rs
new file mode 100644
index 000000000..abaa9c61f
--- /dev/null
+++ b/fluxer_admin/src/templates/components/enforcement_fields.rs
@@ -0,0 +1,854 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+use crate::{
+ acl,
+ admin_flags::{
+ self, COPYRIGHT_REASON_CODE, ENFORCEMENT_REASONS, EnforcementHandling, user_flag_bits,
+ },
+ api::{
+ client::ApiResult,
+ enforcement::DecisionSubmission,
+ generated::{snowflake, types as generated_types},
+ },
+ templates::components::form::checkbox,
+ utils::{forms::MultiValueForm, plural::count_noun, timestamps::format_admin_timestamp},
+};
+use maud::{Markup, html};
+
+pub const FIELD_LABEL_CLASS: &str = "block text-sm font-medium text-neutral-700";
+pub const FIELD_HELP_CLASS: &str = "text-xs text-neutral-500";
+pub const FIELD_INPUT_CLASS: &str = "block w-full rounded-md border border-neutral-300 \
+ px-3 py-2 text-sm shadow-sm focus:border-brand-primary focus:outline-none \
+ focus:ring-1 focus:ring-brand-primary";
+pub const INTERNAL_NOTE_MAX_CHARS: usize = 512;
+const STATEMENT_MAX_CHARS: usize = 500;
+const ACCOUNT_DELETION_MIN_DAYS: u32 = 14;
+const ENFORCEMENT_CLOSURE_MIN_DAYS: u32 = 74;
+const RIGHTS_HOLDER_MAX_CHARS: usize = 200;
+
+const AUTOMATED_LIMIT_FLAGS: &[(u64, &str)] = &[
+ (user_flag_bits::ACCOUNT_LIMITED, "Account limited"),
+ (user_flag_bits::PROFILE_HIDDEN, "Profile hidden"),
+];
+
+const HANDLING_GROUPS: &[(EnforcementHandling, &str)] = &[
+ (EnforcementHandling::Standard, "Standard"),
+ (
+ EnforcementHandling::Protected,
+ "Protected: fewer details in the notice",
+ ),
+ (
+ EnforcementHandling::Restricted,
+ "Restricted: no details in the notice",
+ ),
+];
+
+pub struct DecisionFields<'a> {
+ pub id_prefix: &'a str,
+ pub kind: generated_types::EnforcementKindType,
+ pub report_ids: &'a [String],
+ pub messages: Option<&'a [String]>,
+ pub user_flags: Option<u64>,
+ pub allow_restricted: bool,
+}
+
+pub struct BasisFields<'a> {
+ pub decision: DecisionFields<'a>,
+ pub choices: &'a [(&'a str, &'a str)],
+ pub plain_note_help: &'a str,
+ pub enforcement_extra: Markup,
+}
+
+pub enum BasisSubmission {
+ Enforcement(DecisionSubmission),
+ HolderRequest(Option<String>),
+ Housekeeping(Option<String>),
+}
+
+impl BasisSubmission {
+ pub fn internal_note(&self) -> Option<&str> {
+ match self {
+ Self::Enforcement(submission) => Some(&submission.internal_note),
+ Self::HolderRequest(note) | Self::Housekeeping(note) => note.as_deref(),
+ }
+ }
+
+ pub fn moderation_basis(&self) -> generated_types::ModerationBasis {
+ match self {
+ Self::Enforcement(submission) => {
+ generated_types::ModerationBasis::Enforcement(submission.decision.clone())
+ }
+ Self::HolderRequest(_) => generated_types::ModerationBasis::HolderRequest,
+ Self::Housekeeping(_) => generated_types::ModerationBasis::Housekeeping,
+ }
+ }
+}
+
+pub fn automated_limits(flags: u64) -> Vec<&'static str> {
+ AUTOMATED_LIMIT_FLAGS
+ .iter()
+ .filter(|(bit, _)| flags & bit != 0)
+ .map(|(_, label)| *label)
+ .collect()
+}
+
+pub fn field_label(for_id: &str, text: &str) -> Markup {
+ html! {
+ label for=(for_id) class=(FIELD_LABEL_CLASS) { (text) }
+ }
+}
+
+pub fn internal_note_field(id_prefix: &str, help: &str) -> Markup {
+ let id = format!("{id_prefix}-internal-note");
+ html! {
+ div class="space-y-1" {
+ (field_label(&id, "Internal note"))
+ input type="text" id=(id) name="internal_note" required
+ maxlength=(INTERNAL_NOTE_MAX_CHARS) class=(FIELD_INPUT_CLASS);
+ p class=(FIELD_HELP_CLASS) { (help) }
+ }
+ }
+}
+
+pub fn deletion_days_field(id: &str, self_hosted: bool) -> Markup {
+ let (days, help) = if self_hosted {
+ (
+ ACCOUNT_DELETION_MIN_DAYS,
+ format!("At least {ACCOUNT_DELETION_MIN_DAYS} days."),
+ )
+ } else {
+ (
+ ENFORCEMENT_CLOSURE_MIN_DAYS,
+ format!(
+ "At least {ENFORCEMENT_CLOSURE_MIN_DAYS} days when a rule was broken. At least {ACCOUNT_DELETION_MIN_DAYS} days otherwise."
+ ),
+ )
+ };
+ html! {
+ div class="space-y-1" {
+ (field_label(id, "Days until deletion"))
+ input type="number" id=(id) name="days_until_deletion"
+ value=(days) min="1" max="365" required class=(FIELD_INPUT_CLASS);
+ p class=(FIELD_HELP_CLASS) { (help) }
+ }
+ }
+}
+
+pub fn statement_field(id_prefix: &str, help: &str) -> Markup {
+ let id = format!("{id_prefix}-statement");
+ html! {
+ div class="space-y-1" {
+ (field_label(&id, "Note to the user"))
+ textarea id=(id) name="statement" rows="2" maxlength=(STATEMENT_MAX_CHARS)
+ class=(FIELD_INPUT_CLASS) {}
+ p class=(FIELD_HELP_CLASS) { (help) }
+ }
+ }
+}
+
+pub fn radio_group(legend: &str, name: &str, id_prefix: &str, options: &[(&str, &str)]) -> Markup {
+ html! {
+ fieldset class="space-y-1" {
+ legend class=(FIELD_LABEL_CLASS) { (legend) }
+ div class="flex flex-wrap gap-x-4 gap-y-1" {
+ @for (value, label) in options {
+ @let id = format!("{id_prefix}-{name}-{value}");
+ div class="flex items-center gap-2" {
+ input type="radio" id=(id) name=(name) value=(value) required
+ class="h-4 w-4 accent-neutral-900";
+ label for=(id) class="text-sm text-neutral-900" { (label) }
+ }
+ }
+ }
+ }
+ }
+}
+
+fn codes_attribute(handling: EnforcementHandling) -> String {
+ ENFORCEMENT_REASONS
+ .iter()
+ .filter(|reason| reason.handling == handling)
+ .map(|reason| reason.code.to_string())
+ .collect::<Vec<_>>()
+ .join(" ")
+}
+
+pub fn reason_select(
+ id_prefix: &str,
+ kind: generated_types::EnforcementKindType,
+ allow_restricted: bool,
+) -> Markup {
+ let id = format!("{id_prefix}-reason");
+ html! {
+ div class="space-y-1" {
+ (field_label(&id, "Reason"))
+ select id=(id) name="reason_code" required class=(FIELD_INPUT_CLASS) {
+ option value="" disabled selected { "Choose a reason" }
+ @for (handling, group) in HANDLING_GROUPS
+ .iter()
+ .filter(|(handling, _)| allow_restricted || *handling != EnforcementHandling::Restricted)
+ {
+ @let reasons = ENFORCEMENT_REASONS
+ .iter()
+ .filter(|reason| reason.handling == *handling && reason.allows(kind))
+ .collect::<Vec<_>>();
+ @if !reasons.is_empty() {
+ optgroup label=(group) {
+ @for reason in reasons {
+ option value=(reason.code) {
+ (admin_flags::deletion_reason_label(reason.code))
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
+fn automated_limits_hint(flags: u64) -> Markup {
+ let limits = automated_limits(flags);
+ html! {
+ p class=(FIELD_HELP_CLASS) data-automated-limits="" {
+ @if limits.is_empty() {
+ "No automated limits on this account now."
+ } @else {
+ "Automated limits on this account now: " (limits.join(", ")) "."
+ }
+ }
+ }
+}
+
+pub fn enforcement_fields(fields: &DecisionFields<'_>) -> Markup {
+ let prefix = fields.id_prefix;
+ let restricted_codes = codes_attribute(EnforcementHandling::Restricted);
+ let reports_id = format!("{prefix}-report-ids");
+ let messages_id = format!("{prefix}-evidence");
+ let rights_holder_id = format!("{prefix}-rights-holder");
+ html! {
+ div class="space-y-4" data-enforcement-fields="" {
+ (reason_select(prefix, fields.kind, fields.allow_restricted))
+ (radio_group("How did we find this?", "source", prefix, &[
+ ("report", "A report"),
+ ("own_review", "Our own review"),
+ ]))
+ div class="space-y-1" {
+ (radio_group("Automated tools", "automation", prefix, &[
+ ("none", "Not involved"),
+ ("flagged", "Flagged this for review"),
+ ]))
+ @if let Some(flags) = fields.user_flags {
+ (automated_limits_hint(flags))
+ }
+ }
+ div class="space-y-1" {
+ (field_label(&reports_id, "Reports"))
+ textarea id=(reports_id) name="report_ids" rows="2"
+ placeholder="One report ID per line" class=(FIELD_INPUT_CLASS) {
+ (fields.report_ids.join("\n"))
+ }
+ }
+ @if let Some(messages) = fields.messages {
+ div class="space-y-1" {
+ (field_label(&messages_id, "Messages"))
+ textarea id=(messages_id) name="evidence" rows="3"
+ placeholder="One message link or channel_id/message_id per line"
+ class=(FIELD_INPUT_CLASS) {
+ (messages.join("\n"))
+ }
+ }
+ }
+ div data-hide-for-codes=(restricted_codes) {
+ (statement_field(prefix, "Shown to the user. Never name or describe other people. Not sent for child safety or violent extremism decisions."))
+ }
+ div class="space-y-1" data-show-for-codes=(COPYRIGHT_REASON_CODE) hidden {
+ (field_label(&rights_holder_id, "Rights holder or right concerned"))
+ input type="text" id=(rights_holder_id) name="rights_holder" required disabled
+ maxlength=(RIGHTS_HOLDER_MAX_CHARS) class=(FIELD_INPUT_CLASS);
+ p class=(FIELD_HELP_CLASS) {
+ "For example Example Records, or trademark. This is the one place a name is shown to the user."
+ }
+ }
+ div class="space-y-2" data-show-for-codes=(restricted_codes) hidden {
+ (checkbox("confirmations", "evidence_preserved", "Evidence is preserved", false, true))
+ (checkbox("confirmations", "reports_filed_or_not_required", "Any required report is filed, or none is required", false, true))
+ }
+ (internal_note_field(prefix, "Staff only. Saved as the first note on the decision."))
+ }
+ }
+}
+
+const NETWORK_BLOCK_DEFAULT_DAYS: u64 = 90;
+
+fn network_note(network: &generated_types::NetworkBlockCandidatesResponseNetworksItem) -> String {
+ use generated_types::NetworkBlockCandidatesResponseNetworksItemSkipReason as SkipReason;
+ match network.skip_reason {
+ Some(SkipReason::Exempt) => "Exempt, never blocked".to_owned(),
+ Some(SkipReason::SpecialPurpose) => {
+ "Private or special-purpose range, never blocked".to_owned()
+ }
+ None => {
+ let others = u64::try_from(*network.other_unrestricted_accounts).unwrap_or(0);
+ format!(
+ "{} last active here",
+ count_noun(
+ others,
+ "other unrestricted account",
+ "other unrestricted accounts"
+ )
+ )
+ }
+ }
+}
+
+fn is_blockable(network: &generated_types::NetworkBlockCandidatesResponseNetworksItem) -> bool {
+ network.skip_reason.is_none() && *network.other_unrestricted_accounts == 0
+}
+
+pub fn network_block_fields(
+ id_prefix: &str,
+ candidates: &ApiResult<generated_types::NetworkBlockCandidatesResponse>,
+) -> Markup {
+ let days_id = format!("{id_prefix}-network-block-days");
+ html! {
+ fieldset class="space-y-2" data-network-blocks="" {
+ legend class=(FIELD_LABEL_CLASS) { "Block networks this account used" }
+ @match candidates {
+ Err(_) => {
+ p class="text-sm text-red-700" { "Failed to load the networks this account used." }
+ }
+ Ok(response) if response.networks.is_empty() => {
+ p class=(FIELD_HELP_CLASS) { "This account used no networks in the last 30 days." }
+ }
+ Ok(response) => {
+ p class=(FIELD_HELP_CLASS) {
+ "Networks from the last 30 days. A network other unrestricted accounts use can't be blocked."
+ }
+ @for network in &response.networks {
+ div {
+ (checkbox("block_networks", &network.ip, &network.ip, false, is_blockable(network)))
+ p class={(FIELD_HELP_CLASS) " pl-7"} {
+ "Last used " (format_admin_timestamp(&network.last_seen_at)) ". " (network_note(network)) "."
+ }
+ }
+ }
+ div class="space-y-1" {
+ (field_label(&days_id, "Block length in days"))
+ input type="number" id=(days_id) name="network_block_days"
+ value=(NETWORK_BLOCK_DEFAULT_DAYS) min="1" max="365" class=(FIELD_INPUT_CLASS);
+ p class=(FIELD_HELP_CLASS) { "Ending the decision or deleting the account removes the blocks sooner." }
+ }
+ }
+ }
+ }
+ }
+}
+
+pub fn network_blocks_from_form(
+ form: &MultiValueForm,
+) -> Result<Option<generated_types::NetworkBlockRequest>, String> {
+ let ips = form
+ .values("block_networks")
+ .iter()
+ .map(|ip| ip.trim().to_owned())
+ .filter(|ip| !ip.is_empty())
+ .collect::<Vec<_>>();
+ if ips.is_empty() {
+ return Ok(None);
+ }
+ let days = match form.parse_value::<u64>("network_block_days") {
+ Ok(Some(days)) => days,
+ Ok(None) => NETWORK_BLOCK_DEFAULT_DAYS,
+ Err(_) => return Err("Enter the block length as a number of days".to_owned()),
+ };
+ let days =
+ std::num::NonZeroU64::new(days).ok_or("The block length must be at least one day")?;
+ Ok(Some(generated_types::NetworkBlockRequest { days, ips }))
+}
+
+pub fn skipped_networks_summary(
+ skipped: &[generated_types::SkippedNetworkBlock],
+) -> Option<String> {
+ use generated_types::SkippedNetworkBlockReason as Reason;
+ if skipped.is_empty() {
+ return None;
+ }
+ let entries = skipped
+ .iter()
+ .map(|entry| {
+ let reason = match entry.reason {
+ Reason::Exempt => "exempt",
+ Reason::SpecialPurpose => "special-purpose range",
+ Reason::AlreadyBlocked => "already blocked",
+ };
+ format!("{} ({reason})", entry.ip)
+ })
+ .collect::<Vec<_>>();
+ Some(format!("Not blocked: {}.", entries.join(", ")))
+}
+
+pub fn basis_fields(fields: &BasisFields<'_>) -> Markup {
+ let prefix = fields.decision.id_prefix;
+ let plain = fields
+ .choices
+ .iter()
+ .map(|(value, _)| *value)
+ .filter(|value| *value != "enforcement")
+ .collect::<Vec<_>>()
+ .join(" ");
+ html! {
+ (radio_group("Basis", "basis", prefix, fields.choices))
+ fieldset class="space-y-4" data-show-for-basis="enforcement" hidden disabled {
+ (enforcement_fields(&fields.decision))
+ (fields.enforcement_extra)
+ }
+ fieldset data-show-for-basis=(plain) hidden disabled {
+ (internal_note_field(&format!("{prefix}-plain"), fields.plain_note_help))
+ }
+ }
+}
+
+pub fn basis_from_form(form: &MultiValueForm) -> Result<BasisSubmission, String> {
+ match form.first("basis") {
+ Some("enforcement") => decision_from_form(form).map(BasisSubmission::Enforcement),
+ Some("holder_request") => Ok(BasisSubmission::HolderRequest(form.clean("internal_note"))),
+ Some("housekeeping") => Ok(BasisSubmission::Housekeeping(form.clean("internal_note"))),
+ _ => Err("Choose a basis".to_owned()),
+ }
+}
+
+pub fn decision_from_form(form: &MultiValueForm) -> Result<DecisionSubmission, String> {
+ let reason_code = form
+ .first("reason_code")
+ .and_then(|value| value.trim().parse::<i32>().ok())
+ .and_then(|code| generated_types::EnforcementReasonCodeType::try_from(code).ok())
+ .ok_or("Choose a reason")?;
+ let source = form
+ .first("source")
+ .and_then(|value| generated_types::EnforcementDecisionInputSource::try_from(value).ok())
+ .ok_or("Choose how we found this")?;
+ let automation = form
+ .first("automation")
+ .and_then(|value| generated_types::EnforcementDecisionInputAutomation::try_from(value).ok())
+ .ok_or("Choose whether automated tools were involved")?;
+ let report_ids = lines(form.first("report_ids"))
+ .map(|line| {
+ is_snowflake(line)
+ .then(|| snowflake(line))
+ .ok_or_else(|| format!("Not a report ID: {line}"))
+ })
+ .collect::<Result<Vec<_>, _>>()?;
+ let evidence = lines(form.first("evidence"))
+ .map(|line| {
+ parse_message_reference(line)
+ .map(|(channel_id, message_id)| {
+ generated_types::EnforcementDecisionInputEvidenceItem {
+ channel_id: snowflake(&channel_id),
+ message_id: snowflake(&message_id),
+ }
+ })
+ .ok_or_else(|| format!("Not a message link or channel_id/message_id: {line}"))
+ })
+ .collect::<Result<Vec<_>, _>>()?;
+ let confirmations = form
+ .values("confirmations")
+ .iter()
+ .map(|value| {
+ generated_types::EnforcementDecisionInputConfirmationsItem::try_from(value.as_str())
+ .map_err(|_| format!("Unknown confirmation: {value}"))
+ })
+ .collect::<Result<Vec<_>, _>>()?;
+ let internal_note = form.clean("internal_note").ok_or("Add an internal note")?;
+ Ok(DecisionSubmission {
+ decision: generated_types::EnforcementDecisionInput {
+ automation,
+ confirmations,
+ evidence,
+ reason_code,
+ report_ids,
+ rights_holder: form.clean("rights_holder"),
+ source,
+ statement: form.clean("statement"),
+ },
+ internal_note,
+ })
+}
+
+pub fn bulk_decision_from_form(
+ form: &MultiValueForm,
+) -> Result<generated_types::BulkEnforcementDecisionInput, String> {
+ let reason_code = form
+ .first("reason_code")
+ .and_then(|value| value.trim().parse::<i32>().ok())
+ .and_then(|code| generated_types::EnforcementReasonCodeType::try_from(code).ok())
+ .ok_or("Choose a reason")?;
+ let automation = form
+ .first("automation")
+ .and_then(|value| {
+ generated_types::BulkEnforcementDecisionInputAutomation::try_from(value).ok()
+ })
+ .ok_or("Choose whether automated tools were involved")?;
+ let statement = form.clean("statement").ok_or("Add a note to the user")?;
+ Ok(generated_types::BulkEnforcementDecisionInput {
+ automation,
+ reason_code,
+ source: generated_types::BulkEnforcementDecisionInputSource::OwnReview,
+ statement,
+ })
+}
+
+fn lines(value: Option<&str>) -> impl Iterator<Item = &str> {
+ value
+ .unwrap_or_default()
+ .lines()
+ .map(str::trim)
+ .filter(|line| !line.is_empty())
+}
+
+pub(crate) fn is_snowflake(value: &str) -> bool {
+ (1..=20).contains(&value.len()) && value.bytes().all(|byte| byte.is_ascii_digit())
+}
+
+fn snowflake_pair(channel_id: &str, message_id: &str) -> Option<(String, String)> {
+ (is_snowflake(channel_id) && is_snowflake(message_id))
+ .then(|| (channel_id.to_owned(), message_id.to_owned()))
+}
+
+pub fn parse_message_reference(line: &str) -> Option<(String, String)> {
+ let line = line.trim();
+ if let Some((channel_id, message_id)) = line.split_once(['/', ','])
+ && let Some(pair) = snowflake_pair(channel_id.trim(), message_id.trim())
+ {
+ return Some(pair);
+ }
+ let url = url::Url::parse(line)
+ .or_else(|_| url::Url::parse("https://admin.invalid/")?.join(line))
+ .ok()?;
+ let query_value = |key: &str| {
+ url.query_pairs()
+ .find(|(name, _)| name == key)
+ .map(|(_, value)| value.into_owned())
+ };
+ if let (Some(channel_id), Some(message_id)) =
+ (query_value("channel_id"), query_value("message_id"))
+ {
+ return snowflake_pair(&channel_id, &message_id);
+ }
+ let segments: Vec<&str> = url.path_segments()?.filter(|s| !s.is_empty()).collect();
+ match segments.as_slice() {
+ [.., "channels", _, channel_id, message_id] => snowflake_pair(channel_id, message_id),
+ _ => None,
+ }
+}
+
+pub struct TakeAction<'a> {
+ pub author_id: Option<&'a str>,
+ pub report_id: Option<&'a str>,
+}
+
+pub fn can_take_action(admin_acls: &[String]) -> bool {
+ acl::has_any_permission(admin_acls, &[acl::USER_TEMP_BAN, acl::USER_UPDATE_FLAGS])
+}
+
+pub fn take_action_href(
+ base: &str,
+ user_id: &str,
+ report_id: Option<&str>,
+ message: Option<(&str, &str)>,
+) -> String {
+ let mut href = format!("{base}/users/{user_id}?tab=moderation");
+ if let Some(report_id) = report_id {
+ href.push_str("&report_id=");
+ href.push_str(&urlencoding::encode(report_id));
+ }
+ if let Some((channel_id, message_id)) = message {
+ href.push_str("&message=");
+ href.push_str(&urlencoding::encode(&format!("{channel_id}/{message_id}")));
+ }
+ href
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use crate::api::generated::types::EnforcementKindType;
+
+ fn form(body: &str) -> MultiValueForm {
+ MultiValueForm::parse(body.as_bytes())
+ }
+
+ fn render(kind: EnforcementKindType, flags: u64) -> String {
+ enforcement_fields(&DecisionFields {
+ id_prefix: "suspend",
+ kind,
+ report_ids: &["1600000000000000001".to_owned()],
+ messages: Some(&["1700000000000000001/1700000000000000002".to_owned()]),
+ user_flags: Some(flags),
+ allow_restricted: true,
+ })
+ .into_string()
+ }
+
+ #[test]
+ fn deletion_days_default_to_the_closure_floor_of_each_mode() {
+ let hosted = deletion_days_field("close-days", false).into_string();
+ assert!(hosted.contains(r#"name="days_until_deletion" value="74""#));
+ assert!(
+ hosted.contains("At least 74 days when a rule was broken. At least 14 days otherwise.")
+ );
+ let self_hosted = deletion_days_field("close-days", true).into_string();
+ assert!(self_hosted.contains(r#"name="days_until_deletion" value="14""#));
+ assert!(self_hosted.contains(">At least 14 days.</p>"));
+ assert!(!self_hosted.contains("74"));
+ }
+
+ #[test]
+ fn fieldset_renders_every_input_with_prefills() {
+ let html = render(EnforcementKindType::Suspension, 0);
+ for marker in [
+ r#"name="reason_code""#,
+ r#"name="source" value="report""#,
+ r#"name="source" value="own_review""#,
+ r#"name="automation" value="none""#,
+ r#"name="automation" value="flagged""#,
+ r#"name="report_ids""#,
+ r#"name="evidence""#,
+ r#"name="statement""#,
+ r#"name="rights_holder""#,
+ r#"name="confirmations" value="evidence_preserved""#,
+ r#"name="confirmations" value="reports_filed_or_not_required""#,
+ r#"name="internal_note""#,
+ ">1600000000000000001</textarea>",
+ ">1700000000000000001/1700000000000000002</textarea>",
+ "No automated limits on this account now.",
+ ] {
+ assert!(html.contains(marker), "missing {marker}\n{html}");
+ }
+ assert!(!html.contains(r#"name="automation" value="automated""#));
+ assert!(!html.contains(r#"checked"#));
+ }
+
+ #[test]
+ fn rights_holder_and_confirmations_start_hidden_and_follow_their_codes() {
+ let html = render(EnforcementKindType::Suspension, 0);
+ assert!(html.contains(r#"data-show-for-codes="31" hidden"#));
+ assert!(html.contains(r#"data-show-for-codes="9 13 24" hidden"#));
+ assert!(html.contains(r#"data-hide-for-codes="9 13 24""#));
+ assert!(html.contains(r#"name="rights_holder" required disabled"#));
+ }
+
+ #[test]
+ fn reasons_are_grouped_by_handling_and_filtered_by_kind() {
+ let suspend = render(EnforcementKindType::Suspension, 0);
+ assert!(suspend.contains(
+ r#"<optgroup label="Restricted: no details in the notice"><option value="9">"#
+ ));
+ assert!(suspend.contains(
+ r#"<optgroup label="Protected: fewer details in the notice"><option value="7">"#
+ ));
+ for omitted in [1, 2, 19, 30, 31] {
+ assert!(
+ !suspend.contains(&format!(r#"<option value="{omitted}">"#)),
+ "suspension offers {omitted}"
+ );
+ }
+ let warn = render(EnforcementKindType::Warning, 0);
+ assert!(!warn.contains("Restricted: no details"));
+ assert!(warn.contains(r#"<option value="31">Copyright</option>"#));
+ assert!(warn.contains(r#"<option value="29">"#));
+ assert!(!warn.contains(r#"<option value="30">"#));
+ }
+
+ #[test]
+ fn automated_limits_list_the_neutral_hook_flags() {
+ let html = render(
+ EnforcementKindType::Warning,
+ user_flag_bits::ACCOUNT_LIMITED
+ | user_flag_bits::PROFILE_HIDDEN
+ | user_flag_bits::SPAMMER,
+ );
+ assert!(
+ html.contains("Automated limits on this account now: Account limited, Profile hidden.")
+ );
+ }
+
+ #[test]
+ fn decision_from_form_builds_the_request() {
+ let submission = decision_from_form(&form(
+ "reason_code=31&source=report&automation=flagged\
+ &report_ids=1600000000000000001%0D%0A%0D%0A1600000000000000002\
+ &evidence=1700000000000000001%2F1700000000000000002%0Ahttps%3A%2F%2Fweb.example%2Fchannels%2F%40me%2F1700000000000000003%2F1700000000000000004\
+ &statement=+Please+stop+&rights_holder=Example+Records\
+ &internal_note=Ticket+42",
+ ))
+ .expect("valid form");
+ assert_eq!(submission.internal_note, "Ticket 42");
+ let body = serde_json::to_value(&submission.decision).expect("serializable decision");
+ assert_eq!(
+ body,
+ serde_json::json!({
+ "reason_code": 31,
+ "source": "report",
+ "automation": "flagged",
+ "report_ids": ["1600000000000000001", "1600000000000000002"],
+ "evidence": [
+ {"channel_id": "1700000000000000001", "message_id": "1700000000000000002"},
+ {"channel_id": "1700000000000000003", "message_id": "1700000000000000004"}
+ ],
+ "statement": "Please stop",
+ "rights_holder": "Example Records"
+ })
+ );
+ }
+
+ #[test]
+ fn decision_from_form_sends_restricted_confirmations_and_omits_empty_fields() {
+ let submission = decision_from_form(&form(
+ "reason_code=13&source=own_review&automation=none&report_ids=&evidence=1%2F2\
+ &statement=&confirmations=evidence_preserved\
+ &confirmations=reports_filed_or_not_required&internal_note=Filed",
+ ))
+ .expect("valid form");
+ let body = serde_json::to_value(&submission.decision).expect("serializable decision");
+ assert_eq!(
+ body,
+ serde_json::json!({
+ "reason_code": 13,
+ "source": "own_review",
+ "automation": "none",
+ "evidence": [{"channel_id": "1", "message_id": "2"}],
+ "confirmations": ["evidence_preserved", "reports_filed_or_not_required"]
+ })
+ );
+ }
+
+ #[test]
+ fn decision_from_form_refuses_incomplete_input() {
+ let cases = [
+ (
+ "source=report&automation=none&internal_note=x",
+ "Choose a reason",
+ ),
+ (
+ "reason_code=2&source=report&automation=none&internal_note=x",
+ "Choose a reason",
+ ),
+ (
+ "reason_code=3&automation=none&internal_note=x",
+ "Choose how we found this",
+ ),
+ (
+ "reason_code=3&source=report&automation=automated&internal_note=x",
+ "Choose whether automated tools were involved",
+ ),
+ (
+ "reason_code=3&source=report&automation=none&internal_note=+",
+ "Add an internal note",
+ ),
+ (
+ "reason_code=3&source=report&automation=none&internal_note=x&report_ids=abc",
+ "Not a report ID: abc",
+ ),
+ (
+ "reason_code=3&source=report&automation=none&internal_note=x&evidence=hello",
+ "Not a message link or channel_id/message_id: hello",
+ ),
+ ];
+ for (body, expected) in cases {
+ let error = decision_from_form(&form(body)).err();
+ assert_eq!(error.as_deref(), Some(expected), "{body}");
+ }
+ }
+
+ #[test]
+ fn basis_fields_hide_the_decision_until_a_rule_was_broken() {
+ let html = basis_fields(&BasisFields {
+ decision: DecisionFields {
+ id_prefix: "shred",
+ kind: EnforcementKindType::ContentRemoval,
+ report_ids: &[],
+ messages: None,
+ user_flags: None,
+ allow_restricted: false,
+ },
+ choices: &[
+ ("enforcement", "A rule was broken"),
+ ("holder_request", "The account holder asked"),
+ ("housekeeping", "Housekeeping"),
+ ],
+ plain_note_help: "Staff only.",
+ enforcement_extra: html! {},
+ })
+ .into_string();
+ assert!(html.contains(r#"data-show-for-basis="enforcement" hidden disabled"#));
+ assert!(
+ html.contains(r#"data-show-for-basis="holder_request housekeeping" hidden disabled"#)
+ );
+ assert!(!html.contains(r#"name="evidence""#));
+ assert!(!html.contains("Restricted: no details"));
+ assert!(!html.contains("data-automated-limits"));
+ }
+
+ #[test]
+ fn basis_from_form_reads_each_basis() {
+ assert!(matches!(
+ basis_from_form(&form("basis=holder_request&internal_note=Asked+by+email")),
+ Ok(BasisSubmission::HolderRequest(Some(note))) if note == "Asked by email"
+ ));
+ assert!(matches!(
+ basis_from_form(&form("basis=housekeeping")),
+ Ok(BasisSubmission::Housekeeping(None))
+ ));
+ let enforcement = basis_from_form(&form(
+ "basis=enforcement&reason_code=3&source=own_review&automation=none&internal_note=x",
+ ))
+ .expect("valid enforcement basis");
+ assert_eq!(enforcement.internal_note(), Some("x"));
+ assert!(matches!(
+ enforcement.moderation_basis(),
+ generated_types::ModerationBasis::Enforcement(_)
+ ));
+ assert_eq!(
+ basis_from_form(&form("internal_note=x")).err().as_deref(),
+ Some("Choose a basis")
+ );
+ }
+
+ #[test]
+ fn message_references_accept_ids_admin_links_and_app_links() {
+ let expected = Some(("111".to_owned(), "222".to_owned()));
+ for line in [
+ "111/222",
+ " 111 / 222 ",
+ "111,222",
+ "https://admin.example/messages?channel_id=111&message_id=222&context_limit=50",
+ "/messages?channel_id=111&message_id=222",
+ "https://web.example/channels/@me/111/222",
+ "https://web.example/channels/999/111/222",
+ ] {
+ assert_eq!(parse_message_reference(line), expected, "{line}");
+ }
+ for line in [
+ "111",
+ "abc/222",
+ "https://web.example/channels/999/111",
+ "https://web.example/invite/111/222",
+ "/messages?channel_id=111",
+ ] {
+ assert_eq!(parse_message_reference(line), None, "{line}");
+ }
+ }
+
+ #[test]
+ fn take_action_links_open_the_moderation_tab_with_prefills() {
+ assert_eq!(
+ take_action_href("/admin", "1", Some("2"), Some(("3", "4"))),
+ "/admin/users/1?tab=moderation&report_id=2&message=3%2F4"
+ );
+ assert_eq!(
+ take_action_href("", "1", None, None),
+ "/users/1?tab=moderation"
+ );
+ }
+}
diff --git a/fluxer_admin/src/templates/components/message_list.rs b/fluxer_admin/src/templates/components/message_list.rs
index 59b2fca44..d2558c0c0 100644
--- a/fluxer_admin/src/templates/components/message_list.rs
+++ b/fluxer_admin/src/templates/components/message_list.rs
@@ -3,12 +3,12 @@
use maud::{Markup, PreEscaped, html};
use super::badge::{BadgeVariant, badge};
+use super::enforcement_fields::{TakeAction, take_action_href};
use super::icons::paperclip_icon;
use super::media::user_avatar_url;
use super::nsfw_indicators::{attachment_nsfw_badge, channel_nsfw_state_badge};
use super::user_display::format_user_display;
use crate::config::AdminConfig;
-use crate::routes::auth::json_string;
use crate::utils::timestamps::format_admin_timestamp;
use super::message_data::{Attachment, Message};
@@ -117,6 +117,7 @@ fn message_row(
include_delete: bool,
is_highlighted: bool,
is_grouped: bool,
+ take_action: Option<&str>,
) -> Markup {
let hover = if is_highlighted {
" hover:bg-amber-100"
@@ -152,6 +153,9 @@ fn message_row(
(render_missing_attachments(msg))
div class="mt-1 text-neutral-400 text-xs" {
span class="" { (msg.id) }
+ @if let Some(href) = take_action {
+ a href=(href) class="ml-2 text-blue-600 hover:underline" { "Take action" }
+ }
}
@if include_delete && !has_images {
div class="absolute top-0 right-2 hidden group-hover:block" {
@@ -235,6 +239,9 @@ fn message_row(
(render_missing_attachments(msg))
div class="mt-1 text-neutral-400 text-xs" {
span class="" { (msg.id) }
+ @if let Some(href) = take_action {
+ a href=(href) class="ml-2 text-blue-600 hover:underline" { "Take action" }
+ }
}
}
@if include_delete && !has_images {
@@ -257,6 +264,7 @@ pub fn message_list(
messages: &[Message],
include_delete: bool,
highlight_message_id: Option<&str>,
+ take_action: Option<&TakeAction<'_>>,
) -> Markup {
html! {
div class="divide-y-0" {
@@ -268,68 +276,46 @@ pub fn message_list(
@let avatar_url = user_avatar_url(
config, &msg.author_id, msg.author_avatar.as_deref(), 160, true,
);
+ @let take_action_href = take_action
+ .filter(|action| {
+ msg.webhook_id.is_none()
+ && action.author_id.is_none_or(|author_id| author_id == msg.author_id)
+ })
+ .map(|action| take_action_href(
+ base_path,
+ &msg.author_id,
+ action.report_id,
+ Some((&msg.channel_id, &msg.id)),
+ ));
(message_row(
base_path, &avatar_url, msg,
include_delete, is_highlighted, is_grouped,
+ take_action_href.as_deref(),
))
}
}
}
}
-pub fn message_deletion_script(csrf_token: &str) -> Markup {
- let csrf = json_string(csrf_token);
- let script = r#"(function() {
- var csrf = __CSRF__;
- function bp() {
- return document.documentElement.dataset.basePath || '';
- }
- function toast(level, message) {
- document.body.dispatchEvent(new CustomEvent('showFlash', {detail: {level: level, message: message}}));
- }
- function post(action, fields) {
- fields.append('_csrf', csrf);
- return fetch(bp() + '/messages?action=' + action, {
- method: 'POST',
- body: fields,
- credentials: 'same-origin',
- headers: {'x-csrf-token': csrf}
- });
- }
- function deleteMessage(b) {
- var fields = new URLSearchParams();
- fields.append('channel_id', b.dataset.channelId || '');
- fields.append('message_id', b.dataset.messageId || '');
- b.disabled = true;
- b.textContent = 'Deleting...';
- toast('info', 'Deleting message...');
- post('delete', fields).then(function(r) {
- if (!r.ok) throw new Error('Failed');
- var row = b.closest('[data-message-id]');
- if (row) {
- row.style.opacity = '0.5';
- row.style.pointerEvents = 'none';
- }
- b.textContent = 'Deleted';
- toast('success', 'Message deleted.');
- }).catch(function() {
- b.disabled = false;
- b.textContent = 'Delete';
- toast('error', 'Failed to delete message.');
- });
+pub fn message_delete_prefill_script() -> Markup {
+ html! {
+ script defer { (PreEscaped(MESSAGE_DELETE_PREFILL_SCRIPT)) }
}
+}
+
+const MESSAGE_DELETE_PREFILL_SCRIPT: &str = r#"(function() {
+ if (window.__fluxerMessageDeletePrefill) return;
+ window.__fluxerMessageDeletePrefill = true;
document.addEventListener('click', function(e) {
var t = e.target;
if (!(t instanceof HTMLElement)) return;
- var d = t.closest('.delete-message-btn');
- if (d instanceof HTMLButtonElement) {
- e.preventDefault();
- deleteMessage(d);
- }
+ var button = t.closest('.delete-message-btn');
+ var form = document.getElementById('delete-message-form');
+ if (!(button instanceof HTMLButtonElement) || !form) return;
+ e.preventDefault();
+ form.querySelector('[name="channel_id"]').value = button.dataset.channelId || '';
+ form.querySelector('[name="message_id"]').value = button.dataset.messageId || '';
+ form.scrollIntoView({behavior: 'smooth', block: 'center'});
+ form.querySelector('[name="basis"]').focus({preventScroll: true});
});
-})();"#
- .replace("__CSRF__", &csrf);
- html! {
- script defer { (PreEscaped(script)) }
- }
-}
+})();"#;
diff --git a/fluxer_admin/src/templates/components/mod.rs b/fluxer_admin/src/templates/components/mod.rs
index dd68255c6..ee5325e2f 100644
--- a/fluxer_admin/src/templates/components/mod.rs
+++ b/fluxer_admin/src/templates/components/mod.rs
@@ -9,6 +9,7 @@ pub mod data_field;
pub mod detail_tabs;
pub mod drawer;
pub mod empty_state;
+pub mod enforcement_fields;
pub mod error_display;
pub mod form;
pub mod icons;
diff --git a/fluxer_admin/src/templates/layout.rs b/fluxer_admin/src/templates/layout.rs
index 262b3330a..4f46fa096 100644
--- a/fluxer_admin/src/templates/layout.rs
+++ b/fluxer_admin/src/templates/layout.rs
@@ -10,8 +10,8 @@ use maud::{DOCTYPE, Markup, PreEscaped, html};
use super::components::drawer::drawer_controller_script;
use super::layout_header::render_header;
use super::layout_scripts::{
- ADMIN_ACTION_FORM_SCRIPT, COPY_TO_CLIPBOARD_SCRIPT, HTMX_FLASH_SCRIPT,
- HTMX_SCROLL_PRESERVER_SCRIPT, SH_LINK_REWRITE_SCRIPT, SIDEBAR_SCRIPT,
+ ADMIN_ACTION_FORM_SCRIPT, COPY_TO_CLIPBOARD_SCRIPT, ENFORCEMENT_FIELDS_SCRIPT,
+ HTMX_FLASH_SCRIPT, HTMX_SCROLL_PRESERVER_SCRIPT, SH_LINK_REWRITE_SCRIPT, SIDEBAR_SCRIPT,
};
use super::layout_sidebar::render_sidebar;
@@ -128,6 +128,7 @@ pub fn admin_layout_ext(
script defer { (PreEscaped(HTMX_SCROLL_PRESERVER_SCRIPT)) }
script defer { (PreEscaped(HTMX_FLASH_SCRIPT)) }
script defer { (PreEscaped(COPY_TO_CLIPBOARD_SCRIPT)) }
+ script defer { (PreEscaped(ENFORCEMENT_FIELDS_SCRIPT)) }
(drawer_controller_script())
@if let Some(extra) = options.extra_scripts {
script defer { (PreEscaped(extra)) }
diff --git a/fluxer_admin/src/templates/layout_scripts.rs b/fluxer_admin/src/templates/layout_scripts.rs
index 1578935f2..1e7f883b2 100644
--- a/fluxer_admin/src/templates/layout_scripts.rs
+++ b/fluxer_admin/src/templates/layout_scripts.rs
@@ -628,3 +628,44 @@ pub const SH_LINK_REWRITE_SCRIPT: &str = r#"
})();
"#;
+
+pub const ENFORCEMENT_FIELDS_SCRIPT: &str = r#"
+(function () {
+ if (window.__fluxerEnforcementFields) return;
+ window.__fluxerEnforcementFields = true;
+ function codes(section, name) {
+ var value = section.getAttribute(name);
+ return value === null ? null : value.split(' ');
+ }
+ function syncReason(form, code) {
+ form.querySelectorAll('[data-show-for-codes], [data-hide-for-codes]').forEach(function (section) {
+ var showFor = codes(section, 'data-show-for-codes');
+ var hideFor = codes(section, 'data-hide-for-codes');
+ var shown = showFor ? showFor.indexOf(code) >= 0 : hideFor.indexOf(code) < 0;
+ section.hidden = !shown;
+ section.querySelectorAll('input, textarea, select').forEach(function (control) {
+ control.disabled = !shown;
+ });
+ });
+ }
+ function syncChoice(form, name, value) {
+ form.querySelectorAll('[data-show-for-' + name + ']').forEach(function (section) {
+ var shown = codes(section, 'data-show-for-' + name).indexOf(value) >= 0;
+ section.hidden = !shown;
+ section.disabled = !shown;
+ });
+ }
+ document.addEventListener('change', function (event) {
+ var control = event.target;
+ var form = control instanceof Element ? control.closest('form') : null;
+ if (!form) return;
+ if (control instanceof HTMLSelectElement && control.name === 'reason_code') {
+ syncReason(form, control.value);
+ } else if (control instanceof HTMLSelectElement && (control.name === 'resolution' || control.name === 'duration_hours')) {
+ syncChoice(form, control.name, control.value);
+ } else if (control instanceof HTMLInputElement && control.type === 'radio' && (control.name === 'basis' || control.name === 'limit')) {
+ syncChoice(form, control.name, control.value);
+ }
+ });
+})();
+"#;
diff --git a/fluxer_admin/src/templates/layout_sidebar_nav.rs b/fluxer_admin/src/templates/layout_sidebar_nav.rs
index 4fc1005e6..0e605ace8 100644
--- a/fluxer_admin/src/templates/layout_sidebar_nav.rs
+++ b/fluxer_admin/src/templates/layout_sidebar_nav.rs
@@ -40,6 +40,12 @@ pub const NAV_SECTIONS: &[NavSection] = &[
title: "Moderation",
items: &[
item!("Reports", "/reports", "reports", [acl::REPORT_VIEW]),
+ item!(
+ "Decisions",
+ "/decisions",
+ "decisions",
+ [acl::ENFORCEMENT_VIEW]
+ ),
item!(
"Discovery Review",
"/discovery",
diff --git a/fluxer_admin/src/templates/pages/audit_logs_table.rs b/fluxer_admin/src/templates/pages/audit_logs_table.rs
index ffcdd3fa3..2d14486a4 100644
--- a/fluxer_admin/src/templates/pages/audit_logs_table.rs
+++ b/fluxer_admin/src/templates/pages/audit_logs_table.rs
@@ -21,11 +21,16 @@ pub fn format_action(action: &str) -> String {
pub fn action_badge_variant(action: &str) -> BadgeVariant {
match action {
"temp_ban" | "schedule_deletion" | "ban_ip" | "ban_email" => BadgeVariant::Danger,
- "unban" | "cancel_deletion" | "unban_ip" | "unban_email" => BadgeVariant::Success,
- "update_flags" | "update_features" | "set_acls" | "update_settings" | "annotate_ban" => {
- BadgeVariant::Info
+ "unban" | "cancel_deletion" | "unban_ip" | "unban_email" | "end_enforcement_decision" => {
+ BadgeVariant::Success
}
- "delete_message" => BadgeVariant::Warning,
+ "update_flags"
+ | "update_features"
+ | "set_acls"
+ | "update_settings"
+ | "annotate_ban"
+ | "annotate_enforcement_decision" => BadgeVariant::Info,
+ "delete_message" | "warn_user" => BadgeVariant::Warning,
_ => BadgeVariant::Default,
}
}
@@ -126,6 +131,15 @@ pub fn target_cell(base: &str, entry: &AuditLogEntry) -> Markup {
}
}))
},
+ "enforcement_decision" => html! {
+ a href={(base) "/decisions/" (entry.target_id)}
+ class="text-neutral-900 underline decoration-neutral-300 hover:text-neutral-600 hover:decoration-neutral-500 text-sm" {
+ div class="flex flex-col" {
+ span class="text-sm font-medium" { "Decision" }
+ span class="text-xs text-neutral-500 break-all" { "ID: " (&entry.target_id) }
+ }
+ }
+ },
"message" => html! {
div class="flex flex-col" {
span class="text-sm font-medium" { "Message" }
diff --git a/fluxer_admin/src/templates/pages/bans.rs b/fluxer_admin/src/templates/pages/bans.rs
index 3f59482c0..13ab70b74 100644
--- a/fluxer_admin/src/templates/pages/bans.rs
+++ b/fluxer_admin/src/templates/pages/bans.rs
@@ -22,6 +22,8 @@ pub struct BanConfig {
pub active_page: &'static str,
pub show_bulk_tools: bool,
pub show_duration: bool,
+ pub add_title: Option<&'static str>,
+ pub add_help: Option<&'static str>,
}
const IP_BAN_DURATIONS: &[(u32, &str)] = &[
@@ -53,6 +55,10 @@ pub const BAN_CONFIGS: &[BanConfig] = &[
active_page: "ip-bans",
show_bulk_tools: false,
show_duration: true,
+ add_title: Some("Block a network"),
+ add_help: Some(
+ "For accounts, block networks from the account's suspension or closure instead.",
+ ),
},
BanConfig {
title: "Email Bans",
@@ -65,6 +71,8 @@ pub const BAN_CONFIGS: &[BanConfig] = &[
active_page: "email-bans",
show_bulk_tools: false,
show_duration: false,
+ add_title: None,
+ add_help: None,
},
BanConfig {
title: "Phrase Bans",
@@ -77,6 +85,8 @@ pub const BAN_CONFIGS: &[BanConfig] = &[
active_page: "phrase-bans",
show_bulk_tools: false,
show_duration: false,
+ add_title: None,
+ add_help: None,
},
BanConfig {
title: "URL Blocklist",
@@ -89,6 +99,8 @@ pub const BAN_CONFIGS: &[BanConfig] = &[
active_page: "url-bans",
show_bulk_tools: false,
show_duration: false,
+ add_title: None,
+ add_help: None,
},
BanConfig {
title: "File SHA Blocklist",
@@ -101,6 +113,8 @@ pub const BAN_CONFIGS: &[BanConfig] = &[
active_page: "file-sha-bans",
show_bulk_tools: true,
show_duration: false,
+ add_title: None,
+ add_help: None,
},
BanConfig {
title: "Avatar Hash Blocklist",
@@ -113,6 +127,8 @@ pub const BAN_CONFIGS: &[BanConfig] = &[
active_page: "avatar-hash-bans",
show_bulk_tools: false,
show_duration: false,
+ add_title: None,
+ add_help: None,
},
BanConfig {
title: "URL Domain Blocklist",
@@ -125,6 +141,8 @@ pub const BAN_CONFIGS: &[BanConfig] = &[
active_page: "url-domain-bans",
show_bulk_tools: false,
show_duration: false,
+ add_title: None,
+ add_help: None,
},
BanConfig {
title: "Profile Substring Blocklist",
@@ -137,6 +155,8 @@ pub const BAN_CONFIGS: &[BanConfig] = &[
active_page: "profile-substring-bans",
show_bulk_tools: false,
show_duration: false,
+ add_title: None,
+ add_help: None,
},
];
@@ -187,7 +207,14 @@ fn ban_card(base: &str, cfg: &BanConfig, csrf_token: &str) -> Markup {
html! {
div class="rounded-lg border border-neutral-200 bg-white p-4 shadow-sm sm:p-6" {
h3 class="text-base font-medium text-neutral-900 mb-4" {
- "Ban " (cfg.input_label)
+ @if let Some(title) = cfg.add_title {
+ (title)
+ } @else {
+ "Ban " (cfg.input_label)
+ }
+ }
+ @if let Some(help) = cfg.add_help {
+ p class="text-sm text-neutral-500 mb-4" { (help) }
}
form method="post" action={(base) (cfg.route) "?action=ban&_csrf=" (csrf_token)}
hx-post={(base) (cfg.route) "?action=ban&_csrf=" (csrf_token)}
diff --git a/fluxer_admin/src/templates/pages/bulk_actions.rs b/fluxer_admin/src/templates/pages/bulk_actions.rs
index c4c45ae35..444557e41 100644
--- a/fluxer_admin/src/templates/pages/bulk_actions.rs
+++ b/fluxer_admin/src/templates/pages/bulk_actions.rs
@@ -1,16 +1,20 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-use crate::admin_flags::{DELETION_REASONS, DEPRECATED_GUILD_FEATURES, GUILD_FEATURES};
+use crate::admin_flags::{DEPRECATED_GUILD_FEATURES, GUILD_FEATURES};
use crate::{
acl,
+ api::generated::types::EnforcementKindType,
config::AdminConfig,
middleware::auth::AuthContext,
templates::{
components::{
+ enforcement_fields::{
+ FIELD_HELP_CLASS, FIELD_INPUT_CLASS, deletion_days_field, field_label,
+ internal_note_field, radio_group, reason_select,
+ },
form::{
- FORM_SELECT_CLASS, checkbox, csrf_input, danger_button, form_actions,
- form_field_group, opt_out_checkbox, select_chevron, submit_button, text_input,
- textarea_input,
+ checkbox, csrf_input, danger_button, form_actions, form_field_group, submit_button,
+ text_input, textarea_input,
},
page_container::page_header,
section_card::section_card_simple,
@@ -28,12 +32,7 @@ fn guild_feature_label(feature: &str) -> String {
}
}
-pub fn bulk_actions_page(
- config: &AdminConfig,
- auth: &AuthContext,
- csrf_token: &str,
- username_sign_in: bool,
-) -> Markup {
+pub fn bulk_actions_page(config: &AdminConfig, auth: &AuthContext, csrf_token: &str) -> Markup {
let base = &config.base_path;
let admin_acls = auth
.admin_user
@@ -54,7 +53,7 @@ pub fn bulk_actions_page(
(bulk_add_guild_members_section(base, csrf_token))
}
@if acl::has_permission(admin_acls, acl::BULK_DELETE_USERS) {
- (bulk_schedule_deletion_section(base, csrf_token, username_sign_in))
+ (bulk_close_accounts_section(base, config.self_hosted, csrf_token))
}
@if acl::has_permission(admin_acls, acl::BULK_DELETE_USER_MESSAGES) {
(bulk_delete_user_messages_section(base, csrf_token))
@@ -187,53 +186,53 @@ fn bulk_add_guild_members_section(base: &str, csrf_token: &str) -> Markup {
)
}
-fn bulk_schedule_deletion_section(base: &str, csrf_token: &str, username_sign_in: bool) -> Markup {
+fn bulk_decision_fields(
+ id_prefix: &str,
+ kind: EnforcementKindType,
+ statement_help: &str,
+) -> Markup {
+ let statement_id = format!("{id_prefix}-statement");
+ html! {
+ fieldset class="space-y-4" data-show-for-basis="enforcement" hidden disabled {
+ (reason_select(id_prefix, kind, false))
+ (radio_group("Automated tools", "automation", id_prefix, &[
+ ("none", "Not involved"),
+ ("flagged", "Flagged this for review"),
+ ]))
+ div class="space-y-1" {
+ (field_label(&statement_id, "Note to the user"))
+ textarea id=(statement_id) name="statement" rows="2" maxlength="500" required
+ class=(FIELD_INPUT_CLASS) {}
+ p class=(FIELD_HELP_CLASS) { (statement_help) }
+ }
+ }
+ }
+}
+
+fn bulk_close_accounts_section(base: &str, self_hosted: bool, csrf_token: &str) -> Markup {
section_card_simple(
- "Bulk Schedule User Deletion",
+ "Close accounts",
html! {
form method="post" action={(base) "/bulk-actions?action=bulk-schedule-user-deletion"} {
(csrf_input(csrf_token))
div class="space-y-4" {
(textarea_input("user_ids", "User IDs (one per line)", "123456789\n987654321", "", 5, true))
- (form_field_group("Deletion Reason", "reason_code", true, None,
- Some("User requested skips identifier bans and pending report resolution. Every other reason applies them."),
- html! {
- div class="relative" {
- select id="reason_code" name="reason_code" required
- class=(FORM_SELECT_CLASS) {
- option value="" selected { "Select a reason" }
- @for &(value, label) in DELETION_REASONS {
- option value=(value) { (label) }
- }
- }
- (select_chevron())
- }
- },
- ))
- p class="text-neutral-500 text-sm" {
- "Users that already have a pending deletion are skipped and listed as failed with the reason already scheduled. Cancel those from the user page first to schedule them again."
- }
- (text_input("public_reason", "Public Reason (optional)", "", "Terms of service violation"))
- (form_field_group("Days Until Deletion", "days_until_deletion", true, None,
- Some("Moderation reasons are held for at least 60 days. Only User requested allows 14."),
- html! {
- input type="number" id="days_until_deletion" name="days_until_deletion"
- value="60" min="14" max="365" required
- class="w-full rounded-lg border border-neutral-300 bg-white \
- text-neutral-900 text-sm h-8 px-3 py-1.5 \
- focus:border-brand-primary focus:outline-none \
- focus:ring-2 focus:ring-brand-primary/20";
- },
+ (radio_group("Basis", "basis", "bulk-close", &[
+ ("enforcement", "A rule was broken"),
+ ("holder_request", "The account holders asked"),
+ ("housekeeping", "Inactivity"),
+ ]))
+ (deletion_days_field("bulk-close-days", self_hosted))
+ (bulk_decision_fields(
+ "bulk-close",
+ EnforcementKindType::Closure,
+ "Shown to every account in the job. It is the only fact a bulk closure can give, because messages and reports cannot be attached in bulk. Never name or describe other people.",
))
- (text_input("audit_log_reason", "Audit Log Reason (optional)", "", "Reason for this bulk operation"))
- @if username_sign_in {
- input type="hidden" name="notify_user_present" value="1";
- } @else {
- (opt_out_checkbox("notify_user", "Email each user about the scheduled deletion"))
+ (internal_note_field("bulk-close", "Staff only. Saved as the first note on each decision and in the audit log."))
+ p class=(FIELD_HELP_CLASS) {
+ "Accounts that already have a pending deletion are skipped and listed as failed. Each account closed for a broken rule gets its own decision and notice."
}
- (form_actions(html! {
- (danger_button("Schedule Deletion"))
- }))
+ (form_actions(danger_button("Close accounts")))
}
}
},
@@ -242,19 +241,30 @@ fn bulk_schedule_deletion_section(base: &str, csrf_token: &str, username_sign_in
fn bulk_delete_user_messages_section(base: &str, csrf_token: &str) -> Markup {
section_card_simple(
- "Bulk Delete User Messages",
+ "Delete all messages",
html! {
form method="post" action={(base) "/bulk-actions?action=bulk-delete-user-messages"} {
(csrf_input(csrf_token))
div class="space-y-4" {
p class="text-neutral-500 text-sm" {
- "Deletes every message authored by each user across all channels. This cannot be undone."
+ "Deletes every message each account wrote, in every channel. This cannot be undone."
}
(textarea_input("user_ids", "User IDs (one per line)", "123456789\n987654321", "", 5, true))
- (text_input("audit_log_reason", "Audit Log Reason (optional)", "", "Reason for this bulk operation"))
- (form_actions(html! {
- (danger_button("Delete All Messages"))
- }))
+ (radio_group("Basis", "basis", "bulk-delete-messages", &[
+ ("enforcement", "A rule was broken"),
+ ("holder_request", "The account holders asked"),
+ ("housekeeping", "Housekeeping"),
+ ]))
+ (bulk_decision_fields(
+ "bulk-delete-messages",
+ EnforcementKindType::ContentRemoval,
+ "Shown to every account in the job. It is the only fact a bulk removal can give, because messages and reports cannot be attached in bulk. Never name or describe other people.",
+ ))
+ (internal_note_field("bulk-delete-messages", "Staff only. Saved as the first note on each decision and in the audit log."))
+ p class=(FIELD_HELP_CLASS) {
+ "Each account whose messages are removed for a broken rule gets its own decision and notice."
+ }
+ (form_actions(danger_button("Delete all messages")))
}
}
},
diff --git a/fluxer_admin/src/templates/pages/enforcement_decision.rs b/fluxer_admin/src/templates/pages/enforcement_decision.rs
new file mode 100644
index 000000000..da905063a
--- /dev/null
+++ b/fluxer_admin/src/templates/pages/enforcement_decision.rs
@@ -0,0 +1,791 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+use crate::{
+ acl,
+ admin_flags::{self, EnforcementHandling},
+ api::{
+ client::ApiResult,
+ generated::types::{
+ EnforcementDecisionListResponse, EnforcementDecisionListResponseDecisionsItem,
+ EnforcementDecisionResponse, EnforcementDecisionResponseEvidenceItem,
+ EnforcementDecisionResponseNotice, EnforcementKindType,
+ },
+ types::AdminUser,
+ },
+ config::AdminConfig,
+ middleware::auth::AuthContext,
+ templates::{
+ components::{
+ enforcement_fields::{
+ FIELD_HELP_CLASS, FIELD_INPUT_CLASS, FIELD_LABEL_CLASS, field_label,
+ internal_note_field, statement_field,
+ },
+ form::{csrf_input, form_actions, submit_button},
+ page_container::{page_header, page_header_with_back},
+ section_card::section_card_simple,
+ user_display::format_user_display,
+ },
+ layout::admin_layout,
+ },
+ utils::timestamps::format_admin_timestamp,
+};
+use maud::{Markup, html};
+
+const SYSTEM_USER_ID: &str = "0";
+const NOTE_MAX_CHARS: usize = 2000;
+const CORRECTION_LINE: &str = "If this decision was reported to an authority, file a correction.";
+const DECISIONS_PAGE_KEY: &str = "decisions";
+const PERMANENT_SUSPENSION_THRESHOLD_YEARS: i32 = 50;
+
+pub fn kind_label(kind: EnforcementKindType) -> &'static str {
+ match kind {
+ EnforcementKindType::Warning => "Warning",
+ EnforcementKindType::Suspension => "Suspension",
+ EnforcementKindType::Closure => "Closure",
+ EnforcementKindType::FeatureLimit => "Feature limit",
+ EnforcementKindType::ContentRemoval => "Content removal",
+ EnforcementKindType::ProfileReset => "Profile reset",
+ EnforcementKindType::CommunityRemoval => "Community removal",
+ }
+}
+
+pub fn state_label(
+ status: &str,
+ end_outcome: Option<&str>,
+ replaced: bool,
+ expired: bool,
+) -> &'static str {
+ match (status, end_outcome) {
+ ("ended", Some("lifted")) => "Lifted",
+ ("ended", Some("reversed")) => "Reversed",
+ ("ended", Some("expired")) => "Expired",
+ ("ended", _) => "Ended",
+ _ if replaced => "Replaced",
+ _ if expired => "Expired",
+ _ => "Active",
+ }
+}
+
+fn source_label(source: &str) -> &'static str {
+ match source {
+ "report" => "A report",
+ _ => "Our own review",
+ }
+}
+
+fn automation_label(automation: &str) -> &'static str {
+ match automation {
+ "flagged" => "Flagged this for review",
+ "automated" => "Decided by automated tools, waiting for a person",
+ _ => "Not involved",
+ }
+}
+
+fn notice_status_label(status: &str) -> &'static str {
+ match status {
+ "sent" => "Sent",
+ "undelivered" => "Not delivered. The user sees it when they sign in",
+ _ => "Pending",
+ }
+}
+
+fn notice_channel_label(channel: &str) -> &'static str {
+ match channel {
+ "email" => "Email",
+ "system_dm" => "System DM",
+ _ => "Sign-in screen",
+ }
+}
+
+fn limit_label(limit: &str) -> &'static str {
+ match limit {
+ "direct_messages" => "Direct messages",
+ "reports" => "Reports",
+ _ => "Purchases",
+ }
+}
+
+fn end_acl(kind: EnforcementKindType, removed_all_messages: bool) -> &'static str {
+ match kind {
+ EnforcementKindType::Suspension => acl::USER_TEMP_BAN,
+ EnforcementKindType::Closure => acl::USER_DELETE,
+ EnforcementKindType::Warning | EnforcementKindType::FeatureLimit => acl::USER_UPDATE_FLAGS,
+ EnforcementKindType::ContentRemoval if removed_all_messages => acl::MESSAGE_DELETE_ALL,
+ EnforcementKindType::ContentRemoval => acl::MESSAGE_SHRED,
+ EnforcementKindType::ProfileReset => acl::USER_UPDATE_PROFILE,
+ EnforcementKindType::CommunityRemoval => acl::GUILD_DELETE,
+ }
+}
+
+pub fn can_end(
+ admin_acls: &[String],
+ kind: EnforcementKindType,
+ removed_all_messages: bool,
+) -> bool {
+ acl::has_permission(admin_acls, acl::ENFORCEMENT_VIEW)
+ && acl::has_permission(admin_acls, end_acl(kind, removed_all_messages))
+}
+
+pub fn can_lift(kind: EnforcementKindType) -> bool {
+ matches!(
+ kind,
+ EnforcementKindType::Suspension
+ | EnforcementKindType::Closure
+ | EnforcementKindType::FeatureLimit
+ )
+}
+
+fn is_restricted(reason_code: i32) -> bool {
+ admin_flags::enforcement_reason(reason_code)
+ .is_some_and(|reason| reason.handling == EnforcementHandling::Restricted)
+}
+
+pub fn ends_label(
+ kind: EnforcementKindType,
+ ends_at: Option<&str>,
+ deletion_at: Option<&str>,
+) -> String {
+ match (kind, ends_at, deletion_at) {
+ (EnforcementKindType::Closure, _, Some(at)) => {
+ format!("Deleted on {}", format_admin_timestamp(at))
+ }
+ (_, Some(at), _) => format!("Until {}", format_admin_timestamp(at)),
+ (EnforcementKindType::Suspension, None, _) => "Permanent".to_owned(),
+ (EnforcementKindType::FeatureLimit, None, _) => "No end date".to_owned(),
+ _ => String::new(),
+ }
+}
+
+pub fn suspension_label(until: &str) -> String {
+ let permanent =
+ time::OffsetDateTime::parse(until, &time::format_description::well_known::Rfc3339)
+ .is_ok_and(|until| {
+ until.year() - time::OffsetDateTime::now_utc().year()
+ >= PERMANENT_SUSPENSION_THRESHOLD_YEARS
+ });
+ if permanent {
+ "Banned permanently".to_owned()
+ } else {
+ format!("Suspended until {}", format_admin_timestamp(until))
+ }
+}
+
+pub struct EndDecisionForm<'a> {
+ pub base: &'a str,
+ pub decision_id: &'a str,
+ pub can_lift: bool,
+ pub reason_code: i32,
+ pub csrf_token: &'a str,
+ pub refresh_target: &'a str,
+}
+
+pub fn end_decision_form(form: &EndDecisionForm<'_>) -> Markup {
+ let prefix = format!("end-{}", form.decision_id);
+ let restricted = is_restricted(form.reason_code);
+ let lifted_id = format!("{prefix}-outcome-lifted");
+ let reversed_id = format!("{prefix}-outcome-reversed");
+ html! {
+ form method="post"
+ action={(form.base) "/decisions/" (form.decision_id) "?action=end"}
+ data-admin-refresh-on-success=(form.refresh_target)
+ data-end-decision-form="" {
+ (csrf_input(form.csrf_token))
+ div class="space-y-4" {
+ fieldset class="space-y-1" {
+ legend class=(FIELD_LABEL_CLASS) { "Outcome" }
+ @if form.can_lift {
+ div class="flex items-center gap-2" {
+ input type="radio" id=(lifted_id) name="outcome" value="lifted" required
+ class="h-4 w-4 accent-neutral-900";
+ label for=(lifted_id) class="text-sm text-neutral-900" { "Lifted" }
+ }
+ }
+ div class="flex flex-wrap items-center gap-2" {
+ input type="radio" id=(reversed_id) name="outcome" value="reversed" required
+ class="peer h-4 w-4 accent-neutral-900";
+ label for=(reversed_id) class="text-sm text-neutral-900" { "Reversed" }
+ @if restricted {
+ p class="hidden w-full text-sm text-amber-800 peer-checked:block" data-correction-line="" {
+ (CORRECTION_LINE)
+ }
+ }
+ }
+ p class=(FIELD_HELP_CLASS) {
+ @if form.can_lift { "Lifted ends a correct decision early. " }
+ "Reversed says the decision was wrong."
+ }
+ }
+ (statement_field(&prefix, "Shown to the user in the email. Never name or describe other people."))
+ (internal_note_field(&prefix, "Staff only. Saved in the audit log."))
+ (form_actions(submit_button("End decision")))
+ }
+ }
+ }
+}
+
+fn user_name(users: &[AdminUser], id: &str) -> String {
+ if id == SYSTEM_USER_ID {
+ return "System".to_owned();
+ }
+ users.iter().find(|user| user.id == id).map_or_else(
+ || id.to_owned(),
+ |user| {
+ format_user_display(
+ user.global_name.as_deref(),
+ Some(&user.username),
+ Some(&user.discriminator),
+ user.bot,
+ )
+ },
+ )
+}
+
+fn user_link(base: &str, users: &[AdminUser], id: &str) -> Markup {
+ if id == SYSTEM_USER_ID {
+ return html! { "System" };
+ }
+ html! {
+ a href={(base) "/users/" (id)} class="text-blue-600 hover:underline" { (user_name(users, id)) }
+ }
+}
+
+fn field(label: &str, value: Markup) -> Markup {
+ html! {
+ div class="flex min-w-0 flex-col gap-1" {
+ dt class="text-xs text-neutral-500" { (label) }
+ dd class="break-words text-sm text-neutral-900" { (value) }
+ }
+ }
+}
+
+fn subject_link(base: &str, decision: &EnforcementDecisionResponse, users: &[AdminUser]) -> Markup {
+ let id = decision.subject_id.as_str();
+ if decision.subject_type.to_string() == "guild" {
+ return html! {
+ a href={(base) "/guilds/" (id)} class="text-blue-600 hover:underline" {
+ (decision.subject_name.as_deref().unwrap_or(id))
+ }
+ };
+ }
+ user_link(base, users, id)
+}
+
+fn summary_section(
+ base: &str,
+ decision: &EnforcementDecisionResponse,
+ users: &[AdminUser],
+) -> Markup {
+ let ends = ends_label(
+ decision.kind,
+ decision.ends_at.as_deref(),
+ decision.deletion_at.as_deref(),
+ );
+ let end_outcome = decision.end_outcome.map(|outcome| outcome.to_string());
+ html! {
+ (section_card_simple("Decision", html! {
+ dl class="grid grid-cols-1 gap-4 sm:grid-cols-2" {
+ (field("Status", html! {
+ (state_label(&decision.status.to_string(), end_outcome.as_deref(), decision.replaced, decision.expired))
+ }))
+ (field("Kind", html! { (kind_label(decision.kind)) }))
+ (field("Subject", subject_link(base, decision, users)))
+ @if let Some(recipient) = decision.recipient_user_id.as_deref().filter(|id| *id != decision.subject_id.as_str()) {
+ (field("Notice goes to", user_link(base, users, recipient)))
+ }
+ (field("Reason", html! {
+ (admin_flags::deletion_reason_label(*decision.reason_code))
+ @if let Some(rule) = &decision.notice.rule {
+ " ("
+ @if let Some(url) = &rule.url {
+ a href=(url) target="_blank" rel="noopener noreferrer" class="text-blue-600 hover:underline" { (rule.title) }
+ } @else {
+ (rule.title)
+ }
+ ")"
+ }
+ }))
+ (field("Decided", html! { (format_admin_timestamp(&decision.created_at)) }))
+ (field("Decided by", user_link(base, users, &decision.decided_by)))
+ @if !ends.is_empty() {
+ (field("Ends", html! { (ends) }))
+ }
+ (field("How we found this", html! { (source_label(&decision.source.to_string())) }))
+ (field("Automated tools", html! { (automation_label(&decision.automation.to_string())) }))
+ @if let Some(limit) = decision.limit {
+ (field("Limit", html! { (limit_label(&limit.to_string())) }))
+ }
+ @if !decision.profile_fields.is_empty() {
+ (field("Profile fields", html! { (decision.profile_fields.join(", ")) }))
+ }
+ @if decision.removed_all_messages {
+ (field("Removed messages", html! { "All messages" }))
+ } @else if let Some(count) = &decision.removed_message_count {
+ (field("Removed messages", html! { (**count) }))
+ }
+ @if let Some(at) = &decision.payment_at {
+ (field("Charge date", html! { (format_admin_timestamp(at)) }))
+ }
+ @if let Some(rights_holder) = &decision.rights_holder {
+ (field("Rights holder or right concerned", html! { (rights_holder) }))
+ }
+ @if let Some(statement) = &decision.statement {
+ (field("Note to the user", html! { span class="whitespace-pre-wrap" { (statement) } }))
+ }
+ @if let Some(at) = &decision.ended_at {
+ (field("Ended", html! {
+ (format_admin_timestamp(at))
+ @if let Some(by) = &decision.ended_by {
+ " by " (user_link(base, users, by))
+ }
+ }))
+ }
+ @if let Some(statement) = &decision.end_statement {
+ (field("Note to the user on ending", html! { span class="whitespace-pre-wrap" { (statement) } }))
+ }
+ }
+ }))
+ }
+}
+
+fn text_list(items: &[String]) -> Markup {
+ html! {
+ @if !items.is_empty() {
+ ul class="list-disc space-y-1 pl-5" {
+ @for item in items { li { (item) } }
+ }
+ }
+ }
+}
+
+fn current_notice(notice: &EnforcementDecisionResponseNotice) -> Markup {
+ html! {
+ div class="space-y-3 rounded-lg border border-neutral-200 bg-neutral-50 p-4 text-sm text-neutral-800" data-current-notice="" {
+ p class="font-medium" { (notice.summary) }
+ (text_list(&notice.effects))
+ @if let Some(rule) = &notice.rule {
+ p { "Rule: " (rule.title) }
+ }
+ (text_list(&notice.facts))
+ @if let Some(statement) = &notice.statement {
+ p class="whitespace-pre-wrap" { (statement) }
+ }
+ (text_list(&notice.how_we_decided))
+ @if let Some(appeal) = &notice.appeal {
+ p {
+ "Appeals: " (appeal.email)
+ @if let Some(deadline) = &appeal.deadline {
+ " by " (deadline)
+ }
+ }
+ }
+ (text_list(&notice.redress))
+ }
+ }
+}
+
+fn notice_section(decision: &EnforcementDecisionResponse) -> Markup {
+ let channels = decision
+ .notice_channels
+ .iter()
+ .map(|channel| notice_channel_label(&channel.to_string()))
+ .collect::<Vec<_>>();
+ html! {
+ (section_card_simple("Notice", html! {
+ div class="space-y-4" {
+ dl class="grid grid-cols-1 gap-4 sm:grid-cols-2" {
+ (field("Status", html! { (notice_status_label(&decision.notice_status.to_string())) }))
+ (field("Channels", html! {
+ @if channels.is_empty() { "None" } @else { (channels.join(", ")) }
+ }))
+ @if let Some(locale) = &decision.notice_locale {
+ (field("Locale", html! { (locale) }))
+ }
+ @if let Some(at) = &decision.notice_sent_at {
+ (field("Received", html! { (format_admin_timestamp(at)) }))
+ }
+ }
+ div class="space-y-1" {
+ p class=(FIELD_LABEL_CLASS) { "Text as sent" }
+ @if let Some(text) = &decision.notice_text {
+ pre class="whitespace-pre-wrap break-words rounded-lg bg-neutral-50 p-4 font-sans text-sm text-neutral-800" data-notice-text="" { (text) }
+ } @else {
+ p class="text-sm text-neutral-500" { "Nothing was sent yet." }
+ }
+ }
+ div class="space-y-1" {
+ p class=(FIELD_LABEL_CLASS) { "What the user sees now" }
+ (current_notice(&decision.notice))
+ }
+ }
+ }))
+ }
+}
+
+fn evidence_row(
+ base: &str,
+ item: &EnforcementDecisionResponseEvidenceItem,
+ restricted: bool,
+) -> Markup {
+ html! {
+ li class="space-y-1 py-3" data-evidence-message=(item.message_id.as_str()) {
+ div class="flex flex-wrap items-baseline gap-x-3 text-xs text-neutral-500" {
+ span { (format_admin_timestamp(&item.timestamp)) }
+ span { "Message " (item.message_id.as_str()) }
+ @if let Some(channel_id) = &item.channel_id {
+ a href={(base) "/messages?channel_id=" (channel_id.as_str()) "&message_id=" (item.message_id.as_str()) "&context_limit=50"}
+ class="text-blue-600 hover:underline" { "Open in message tools" }
+ }
+ }
+ @if let Some(content) = &item.content {
+ p class="whitespace-pre-wrap break-words text-sm text-neutral-900" { (content) }
+ } @else if restricted {
+ p class="text-sm text-neutral-500" { "Content is not stored for this reason." }
+ } @else {
+ p class="text-sm text-neutral-500" { "Content is hidden. Needs the message:lookup permission." }
+ }
+ @if let Some(attachments) = &item.attachments {
+ @for attachment in attachments {
+ p class="text-xs text-neutral-600" { "Attachment: " (attachment.filename) }
+ }
+ } @else if *item.attachment_count > 0 {
+ p class="text-xs text-neutral-600" { "Attachments: " (*item.attachment_count) }
+ }
+ }
+ }
+}
+
+fn evidence_section(base: &str, decision: &EnforcementDecisionResponse) -> Markup {
+ let restricted = is_restricted(*decision.reason_code);
+ html! {
+ (section_card_simple("Evidence", html! {
+ @if decision.evidence.is_empty() {
+ p class="text-sm text-neutral-500" { "No messages were recorded." }
+ } @else {
+ ul class="divide-y divide-neutral-100" {
+ @for item in &decision.evidence {
+ (evidence_row(base, item, restricted))
+ }
+ }
+ }
+ @if let Some(values) = &decision.profile_values {
+ @if !values.is_empty() {
+ dl class="mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2" {
+ @for (name, value) in values {
+ (field(&format!("Previous {name}"), html! { (value) }))
+ }
+ }
+ }
+ }
+ }))
+ }
+}
+
+fn reports_section(base: &str, decision: &EnforcementDecisionResponse) -> Markup {
+ html! {
+ @if !decision.report_ids.is_empty() {
+ (section_card_simple("Reports", html! {
+ ul class="space-y-1 text-sm" {
+ @for report_id in &decision.report_ids {
+ li {
+ a href={(base) "/reports/" (report_id.as_str())} class="text-blue-600 hover:underline" {
+ (report_id.as_str())
+ }
+ }
+ }
+ }
+ }))
+ }
+ }
+}
+
+fn network_blocks_section(decision: &EnforcementDecisionResponse) -> Markup {
+ html! {
+ @if !decision.network_blocks.is_empty() {
+ (section_card_simple("Network blocks", html! {
+ ul class="space-y-1 text-sm text-neutral-900" {
+ @for block in &decision.network_blocks {
+ li {
+ span class="font-mono" { (block.ip) }
+ @if let Some(expires_at) = &block.expires_at {
+ span class="text-neutral-500" { ", until " (format_admin_timestamp(expires_at)) }
+ }
+ }
+ }
+ }
+ p class="mt-2 text-xs text-neutral-500" {
+ "Ending the decision removes these blocks. Deleting the account removes them too."
+ }
+ }))
+ }
+ }
+}
+
+fn notes_section(
+ base: &str,
+ decision: &EnforcementDecisionResponse,
+ users: &[AdminUser],
+ can_annotate: bool,
+ csrf_token: &str,
+) -> Markup {
+ let note_id = format!("note-{}", decision.decision_id.as_str());
+ html! {
+ (section_card_simple("Notes", html! {
+ div class="space-y-4" {
+ @if decision.notes.is_empty() {
+ p class="text-sm text-neutral-500" { "No notes." }
+ } @else {
+ ol class="space-y-3" {
+ @for note in &decision.notes {
+ li class="space-y-1" data-note=(note.note_id.as_str()) {
+ p class="text-xs text-neutral-500" {
+ (user_link(base, users, &note.author_id))
+ " on " (format_admin_timestamp(&note.created_at))
+ }
+ p class="whitespace-pre-wrap break-words text-sm text-neutral-900" { (note.body) }
+ }
+ }
+ }
+ }
+ @if can_annotate {
+ form method="post"
+ action={(base) "/decisions/" (decision.decision_id.as_str()) "?action=add_note"}
+ data-admin-refresh-on-success="#decision-detail" {
+ (csrf_input(csrf_token))
+ div class="space-y-3" {
+ div class="space-y-1" {
+ (field_label(&note_id, "Add a note"))
+ textarea id=(note_id) name="body" rows="2" required maxlength=(NOTE_MAX_CHARS)
+ class=(FIELD_INPUT_CLASS) {}
+ p class=(FIELD_HELP_CLASS) { "Staff only. Notes cannot be changed and expire after a year." }
+ }
+ (form_actions(submit_button("Add note")))
+ }
+ }
+ }
+ }
+ }))
+ }
+}
+
+pub fn decision_user_ids(decision: &EnforcementDecisionResponse) -> Vec<String> {
+ let mut ids: Vec<String> = [
+ Some(&decision.decided_by),
+ decision.recipient_user_id.as_ref(),
+ decision.ended_by.as_ref(),
+ ]
+ .into_iter()
+ .flatten()
+ .chain(decision.notes.iter().map(|note| &note.author_id))
+ .map(|id| id.as_str().to_owned())
+ .collect();
+ if decision.subject_type.to_string() == "user" {
+ ids.push(decision.subject_id.as_str().to_owned());
+ }
+ ids.retain(|id| id != SYSTEM_USER_ID);
+ ids.sort_unstable();
+ ids.dedup();
+ ids
+}
+
+pub fn decision_detail(
+ config: &AdminConfig,
+ admin_acls: &[String],
+ decision: &EnforcementDecisionResponse,
+ users: &[AdminUser],
+ csrf_token: &str,
+) -> Markup {
+ let base = &config.base_path;
+ let decision_id = decision.decision_id.as_str();
+ let expired_end = decision
+ .end_outcome
+ .map(|outcome| outcome.to_string())
+ .as_deref()
+ == Some("expired");
+ let open = (decision.status.to_string() == "active" && !decision.replaced) || expired_end;
+ html! {
+ div id="decision-detail" class="space-y-6" {
+ (summary_section(base, decision, users))
+ @if open
+ && can_end(admin_acls, decision.kind, decision.removed_all_messages)
+ && (decision.network_blocks.is_empty() || acl::has_permission(admin_acls, acl::BAN_IP_REMOVE))
+ {
+ (section_card_simple("End decision", end_decision_form(&EndDecisionForm {
+ base,
+ decision_id,
+ can_lift: can_lift(decision.kind) && !expired_end,
+ reason_code: *decision.reason_code,
+ csrf_token,
+ refresh_target: "#decision-detail",
+ })))
+ }
+ (notice_section(decision))
+ (evidence_section(base, decision))
+ (reports_section(base, decision))
+ (network_blocks_section(decision))
+ (notes_section(
+ base,
+ decision,
+ users,
+ acl::has_permission(admin_acls, acl::ENFORCEMENT_ANNOTATE),
+ csrf_token,
+ ))
+ }
+ }
+}
+
+pub fn enforcement_decision_page(
+ config: &AdminConfig,
+ auth: &AuthContext,
+ decision_id: &str,
+ decision: Option<&EnforcementDecisionResponse>,
+ users: &[AdminUser],
+ csrf_token: &str,
+ is_htmx: bool,
+) -> Markup {
+ let base = &config.base_path;
+ let title = format!("Decision {decision_id}");
+ let admin_acls = auth
+ .admin_user
+ .as_ref()
+ .map(|user| user.acls.as_slice())
+ .unwrap_or(&[]);
+ let content = html! {
+ (page_header_with_back(&title, None, &format!("{base}/decisions"), Some("Back to decisions")))
+ @match decision {
+ Some(decision) => { (decision_detail(config, admin_acls, decision, users, csrf_token)) }
+ None => {
+ (section_card_simple("Decision", html! {
+ p class="text-sm text-neutral-500" { "This decision was not found or could not be loaded." }
+ }))
+ }
+ }
+ };
+ if is_htmx {
+ content
+ } else {
+ admin_layout(config, auth, &title, DECISIONS_PAGE_KEY, None, content)
+ }
+}
+
+pub fn decisions_page(
+ config: &AdminConfig,
+ auth: &AuthContext,
+ lookup_error: Option<&str>,
+ review_queue: Option<&ApiResult<EnforcementDecisionListResponse>>,
+) -> Markup {
+ let base = &config.base_path;
+ let content = html! {
+ (page_header("Decisions", Some("Look up a decision by its ID, or work through the review queue.")))
+ (section_card_simple("Find a decision", html! {
+ form method="get" action={(base) "/decisions"} class="space-y-3" {
+ div class="space-y-1" {
+ (field_label("decision-lookup", "Decision ID"))
+ input type="text" id="decision-lookup" name="id" required inputmode="numeric"
+ class=(FIELD_INPUT_CLASS);
+ p class=(FIELD_HELP_CLASS) { "The ID from the notice or the appeal email." }
+ @if let Some(error) = lookup_error {
+ p class="text-sm text-red-700" { (error) }
+ }
+ }
+ (form_actions(submit_button("Open decision")))
+ }
+ }))
+ @if let Some(queue) = review_queue {
+ (section_card_simple("Review queue", html! {
+ p class=(FIELD_HELP_CLASS) {
+ "Automated limits waiting for a person, such as purchase limits after a chargeback. End the limit, or record a warning, suspension or closure on the account, to take it out of the queue."
+ }
+ @match queue {
+ Ok(response) => { (review_queue_table(base, &response.decisions)) }
+ Err(_) => { p class="text-sm text-red-700" { "Failed to load the review queue." } }
+ }
+ }))
+ }
+ };
+ admin_layout(config, auth, "Decisions", DECISIONS_PAGE_KEY, None, content)
+}
+
+fn review_queue_table(
+ base: &str,
+ decisions: &[EnforcementDecisionListResponseDecisionsItem],
+) -> Markup {
+ html! {
+ @if decisions.is_empty() {
+ p class="text-sm text-neutral-500" { "Nothing is waiting for review." }
+ } @else {
+ div class="overflow-x-auto" {
+ table class="min-w-full divide-y divide-neutral-200 text-sm" data-review-queue="" {
+ thead {
+ tr class="text-left text-xs text-neutral-500" {
+ @for header in ["ID", "Account", "Reason", "Payment", "Date"] {
+ th class="px-3 py-2 font-medium" { (header) }
+ }
+ }
+ }
+ tbody class="divide-y divide-neutral-100" {
+ @for decision in decisions {
+ tr {
+ td class="px-3 py-2" {
+ a href={(base) "/decisions/" (decision.decision_id.as_str())} class="text-blue-600 hover:underline" {
+ (decision.decision_id.as_str())
+ }
+ }
+ td class="px-3 py-2" {
+ a href={(base) "/users/" (decision.subject_id.as_str()) "?tab=moderation"} class="text-blue-600 hover:underline" {
+ (decision.subject_id.as_str())
+ }
+ }
+ td class="px-3 py-2" { (admin_flags::deletion_reason_label(*decision.reason_code)) }
+ td class="whitespace-nowrap px-3 py-2" {
+ (decision.payment_at.as_deref().map(format_admin_timestamp).unwrap_or_default())
+ }
+ td class="whitespace-nowrap px-3 py-2" { (format_admin_timestamp(&decision.created_at)) }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
+pub fn decisions_table(
+ base: &str,
+ decisions: &[EnforcementDecisionListResponseDecisionsItem],
+) -> Markup {
+ html! {
+ @if decisions.is_empty() {
+ p class="text-sm text-neutral-500" { "No decisions." }
+ } @else {
+ div class="overflow-x-auto" {
+ table class="min-w-full divide-y divide-neutral-200 text-sm" data-decisions-table="" {
+ thead {
+ tr class="text-left text-xs text-neutral-500" {
+ @for header in ["ID", "Kind", "Reason", "Status", "Date"] {
+ th class="px-3 py-2 font-medium" { (header) }
+ }
+ }
+ }
+ tbody class="divide-y divide-neutral-100" {
+ @for decision in decisions {
+ @let end_outcome = decision.end_outcome.map(|outcome| outcome.to_string());
+ tr {
+ td class="px-3 py-2" {
+ a href={(base) "/decisions/" (decision.decision_id.as_str())} class="text-blue-600 hover:underline" {
+ (decision.decision_id.as_str())
+ }
+ }
+ td class="px-3 py-2" { (kind_label(decision.kind)) }
+ td class="px-3 py-2" { (admin_flags::deletion_reason_label(*decision.reason_code)) }
+ td class="px-3 py-2" {
+ (state_label(&decision.status.to_string(), end_outcome.as_deref(), decision.replaced, decision.expired))
+ }
+ td class="whitespace-nowrap px-3 py-2" { (format_admin_timestamp(&decision.created_at)) }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/fluxer_admin/src/templates/pages/guild_detail_tabs/moderation.rs b/fluxer_admin/src/templates/pages/guild_detail_tabs/moderation.rs
index 571edce0a..dcf5959fb 100644
--- a/fluxer_admin/src/templates/pages/guild_detail_tabs/moderation.rs
+++ b/fluxer_admin/src/templates/pages/guild_detail_tabs/moderation.rs
@@ -2,9 +2,10 @@
use crate::{
acl,
- api::types::GuildInfo,
+ api::{generated::types::EnforcementKindType, types::GuildInfo},
config::AdminConfig,
templates::components::{
+ enforcement_fields::{BasisFields, DecisionFields, basis_fields},
form::{csrf_input, danger_button, form_actions, submit_button},
page_container::card_with_header,
},
@@ -144,17 +145,32 @@ pub fn moderation_tab(
}
@if can_delete {
- (card_with_header("Delete Guild", html! {
- p class="mb-3 text-sm text-neutral-500" {
- "Deleting a guild permanently removes it and all associated data. \
- This action cannot be undone."
- }
+ (card_with_header("Remove community", html! {
form method="post"
action={(base) "/guilds/" (guild.id) "?action=delete_guild&tab=moderation"} {
(csrf_input(csrf_token))
- (form_actions(html! {
- (danger_button("Delete Guild"))
- }))
+ div class="space-y-4" {
+ p class="text-sm text-neutral-500" {
+ "Removes the community with its channels, messages and settings. It can't be undone. Child safety and violent extremism reasons can't be used, because the removal deletes the content."
+ }
+ (basis_fields(&BasisFields {
+ decision: DecisionFields {
+ id_prefix: "remove-community",
+ kind: EnforcementKindType::CommunityRemoval,
+ report_ids: &[],
+ messages: Some(&[]),
+ user_flags: None,
+ allow_restricted: false,
+ },
+ choices: &[
+ ("enforcement", "A rule was broken"),
+ ("holder_request", "The owner asked"),
+ ],
+ plain_note_help: "Staff only. Saved in the audit log.",
+ enforcement_extra: html! {},
+ }))
+ (form_actions(danger_button("Remove community")))
+ }
}
}))
}
diff --git a/fluxer_admin/src/templates/pages/messages_page.rs b/fluxer_admin/src/templates/pages/messages_page.rs
index c3a7625de..7aec13c8a 100644
--- a/fluxer_admin/src/templates/pages/messages_page.rs
+++ b/fluxer_admin/src/templates/pages/messages_page.rs
@@ -5,13 +5,14 @@ use crate::{
middleware::auth::AuthContext,
templates::{
components::{
+ enforcement_fields::{INTERNAL_NOTE_MAX_CHARS, TakeAction},
error_display::error_alert,
form::{
FORM_INPUT_CLASS, csrf_input, danger_button, form_actions, form_field_group,
submit_button,
},
message_data::{Message, ordered_messages, value_id},
- message_list::{message_deletion_script, message_list},
+ message_list::{message_delete_prefill_script, message_list},
page_container::{card, page_header},
},
layout::LayoutOptions,
@@ -193,6 +194,7 @@ pub struct MessagesPageParams<'a> {
pub prefill_channel_id: Option<&'a str>,
pub can_lookup: bool,
pub can_delete: bool,
+ pub can_take_action: bool,
pub lookup_result: Option<&'a Value>,
pub browse_result: Option<&'a Value>,
pub search_result: Option<&'a Value>,
@@ -202,11 +204,32 @@ pub struct MessagesPageParams<'a> {
pub error: Option<&'a str>,
}
+#[derive(Clone, Copy)]
+pub struct MessageActions {
+ pub delete: bool,
+ pub take_action: bool,
+}
+
+impl MessageActions {
+ fn take_action(self) -> Option<&'static TakeAction<'static>> {
+ self.take_action.then_some(&ANY_AUTHOR)
+ }
+}
+
+const ANY_AUTHOR: TakeAction<'static> = TakeAction {
+ author_id: None,
+ report_id: None,
+};
+
pub fn messages_page(
config: &AdminConfig,
auth: &AuthContext,
params: &MessagesPageParams<'_>,
) -> Markup {
+ let actions = MessageActions {
+ delete: params.can_delete,
+ take_action: params.can_take_action,
+ };
let content = html! {
(page_header("Message Tools", None))
@@ -217,19 +240,19 @@ pub fn messages_page(
@if let (Some(result), Some(channel_id), Some(query)) = (
params.search_result, params.browse_channel_id, params.search_query_text,
) {
- (search_result_card(config, result, channel_id, query, params.can_delete))
+ (search_result_card(config, result, channel_id, query, actions))
}
@if params.search_result.is_none()
&& let (Some(result), Some(channel_id)) = (
params.browse_result, params.browse_channel_id,
) {
(browse_result_card(
- config, result, channel_id, params.can_delete,
+ config, result, channel_id, actions,
params.csrf_token, params.context_limit,
))
}
@if let Some(result) = params.lookup_result {
- (lookup_result_card(config, result, params.can_delete, params.context_limit))
+ (lookup_result_card(config, result, actions, params.context_limit))
}
@if params.can_lookup {
(browse_channel_form(config, params.csrf_token, params.prefill_channel_id))
@@ -238,8 +261,8 @@ pub fn messages_page(
}
@if params.can_delete {
(delete_message_form(config, params.csrf_token))
+ (message_delete_prefill_script())
}
- (message_deletion_script(params.csrf_token))
}
};
admin_layout_ext(
@@ -260,7 +283,7 @@ pub fn messages_page(
pub fn browse_messages_fragment(
config: &AdminConfig,
result: &Value,
- show_delete: bool,
+ actions: MessageActions,
highlight_message_id: Option<&str>,
) -> Markup {
let messages = response_messages(result);
@@ -280,8 +303,9 @@ pub fn browse_messages_fragment(
config,
&config.base_path,
&messages,
- show_delete,
+ actions.delete,
highlight_message_id,
+ actions.take_action(),
))
}
}
@@ -291,7 +315,7 @@ fn browse_result_card(
config: &AdminConfig,
result: &Value,
channel_id: &str,
- show_delete: bool,
+ actions: MessageActions,
csrf_token: &str,
context_limit: u32,
) -> Markup {
@@ -328,7 +352,7 @@ fn browse_result_card(
config,
channel_id,
messages: &messages,
- show_delete,
+ actions,
has_more,
has_newer: false,
focus_message_id: None,
@@ -343,7 +367,7 @@ fn search_result_card(
result: &Value,
channel_id: &str,
query_text: &str,
- show_delete: bool,
+ actions: MessageActions,
) -> Markup {
let messages = response_messages(result);
let total = result
@@ -369,8 +393,9 @@ fn search_result_card(
config,
&config.base_path,
&messages,
- show_delete,
+ actions.delete,
None,
+ actions.take_action(),
))
}
})
@@ -379,7 +404,7 @@ fn search_result_card(
fn lookup_result_card(
config: &AdminConfig,
result: &Value,
- show_delete: bool,
+ actions: MessageActions,
context_limit: u32,
) -> Markup {
let messages = response_messages(result);
@@ -401,7 +426,7 @@ fn lookup_result_card(
config,
channel_id,
messages: &messages,
- show_delete,
+ actions,
has_more: true,
has_newer: true,
focus_message_id: message_id,
@@ -415,7 +440,7 @@ struct MessageScrollPane<'a> {
config: &'a AdminConfig,
channel_id: &'a str,
messages: &'a [Message],
- show_delete: bool,
+ actions: MessageActions,
has_more: bool,
has_newer: bool,
focus_message_id: Option<&'a str>,
@@ -454,8 +479,9 @@ fn message_scroll_pane(pane: MessageScrollPane<'_>) -> Markup {
pane.config,
&pane.config.base_path,
pane.messages,
- pane.show_delete,
+ pane.actions.delete,
pane.focus_message_id,
+ pane.actions.take_action(),
))
}
}
@@ -639,12 +665,13 @@ fn lookup_by_attachment_form(config: &AdminConfig, csrf_token: &str) -> Markup {
fn delete_message_form(config: &AdminConfig, csrf_token: &str) -> Markup {
let base = &config.base_path;
card(html! {
- h3 class="mb-4 text-base font-semibold text-neutral-900" {
- "Delete Message"
- }
- form method="post" action={(base) "/messages?action=delete"} {
+ h3 class="mb-4 text-base font-semibold text-neutral-900" { "Delete message" }
+ form id="delete-message-form" method="post" action={(base) "/messages?action=delete"} {
(csrf_input(csrf_token))
div class="flex flex-col gap-4" {
+ p class="text-neutral-600 text-sm" {
+ "For a message that broke a rule, use Take action instead, so a decision records the removal and the user is told."
+ }
(form_field_group(
"Channel ID", "delete-message-channel-id", true, None, None,
html! {
@@ -662,16 +689,26 @@ fn delete_message_form(config: &AdminConfig, csrf_token: &str) -> Markup {
},
))
(form_field_group(
- "Audit Log Reason (optional)",
- "delete-message-audit-log-reason", false, None, None,
+ "Basis", "delete-message-basis", true, None, None,
+ html! {
+ select id="delete-message-basis" name="basis" required class=(FORM_INPUT_CLASS) {
+ option value="" disabled selected { "Choose a basis" }
+ option value="holder_request" { "The account holder asked" }
+ option value="housekeeping" { "Housekeeping" }
+ }
+ },
+ ))
+ (form_field_group(
+ "Internal note (optional)",
+ "delete-message-internal-note", false, None, None,
html! {
- input type="text" id="delete-message-audit-log-reason"
- name="audit_log_reason" placeholder="Reason for deletion"
+ input type="text" id="delete-message-internal-note"
+ name="internal_note" maxlength=(INTERNAL_NOTE_MAX_CHARS)
class=(FORM_INPUT_CLASS);
},
))
(form_actions(html! {
- (danger_button("Delete Message"))
+ (danger_button("Delete message"))
}))
}
}
diff --git a/fluxer_admin/src/templates/pages/mod.rs b/fluxer_admin/src/templates/pages/mod.rs
index 9b203c748..99dc80fbf 100644
--- a/fluxer_admin/src/templates/pages/mod.rs
+++ b/fluxer_admin/src/templates/pages/mod.rs
@@ -10,6 +10,7 @@ pub mod bans;
pub(crate) mod blocklist_helpers;
pub mod bulk_actions;
pub mod discovery;
+pub mod enforcement_decision;
pub mod gateway;
pub mod gateway_leaderboard;
pub mod gateway_nodes;
diff --git a/fluxer_admin/src/templates/pages/report_detail.rs b/fluxer_admin/src/templates/pages/report_detail.rs
index e85337e98..79d7333c2 100644
--- a/fluxer_admin/src/templates/pages/report_detail.rs
+++ b/fluxer_admin/src/templates/pages/report_detail.rs
@@ -22,13 +22,14 @@ use crate::{
data_field, data_field_link_mono, data_field_mono, data_field_muted,
data_field_text,
},
+ enforcement_fields::{TakeAction, can_take_action, take_action_href},
form::{
FORM_CONTROL_CLASS, FORM_LABEL_CLASS, checkbox, csrf_input, danger_button,
opt_out_checkbox, select_chevron,
},
media::user_avatar_url,
message_data::ordered_messages,
- message_list::{message_deletion_script, message_list},
+ message_list::message_list,
nsfw_indicators::{
adult_content_badge, channel_nsfw_state_badge, content_warning_badge,
},
@@ -93,10 +94,15 @@ fn reported_user_label(report: &ReportEntry) -> String {
)
}
-fn has_acl(auth: &AuthContext, permission: &str) -> bool {
+fn admin_acls(auth: &AuthContext) -> &[String] {
auth.admin_user
.as_ref()
- .is_some_and(|admin| acl::has_permission(&admin.acls, permission))
+ .map(|admin| admin.acls.as_slice())
+ .unwrap_or(&[])
+}
+
+fn has_acl(auth: &AuthContext, permission: &str) -> bool {
+ acl::has_permission(admin_acls(auth), permission)
}
fn basic_info_section(config: &AdminConfig, auth: &AuthContext, report: &ReportEntry) -> Markup {
@@ -506,18 +512,38 @@ fn status_card(config: &AdminConfig, report: &ReportEntry) -> Markup {
}
}
-fn actions_card(config: &AdminConfig, report: &ReportEntry, csrf_token: &str) -> Markup {
+fn take_action_subject(report: &ReportEntry) -> Option<&str> {
+ match report.report_type {
+ 0 | 1 => report.reported_user_id.as_deref(),
+ _ => None,
+ }
+}
+
+fn actions_card(
+ config: &AdminConfig,
+ auth: &AuthContext,
+ report: &ReportEntry,
+ csrf_token: &str,
+) -> Markup {
let base = &config.base_path;
+ let reported_message = report
+ .reported_channel_id
+ .as_deref()
+ .zip(report.reported_message_id.as_deref());
html! {
(section_card(Some("Actions"), None, None, html! {
div class="flex flex-col gap-3" {
@if report.status == 0 {
(resolve_report_form(base, &report.report_id, csrf_token))
}
- @if report.report_type == 0 || report.report_type == 1 {
- @if let Some(ref reported_id) = report.reported_user_id {
- (nav_link(&format!("{base}/users/{reported_id}"), "View Reported User"))
+ @if let Some(reported_id) = take_action_subject(report) {
+ @if can_take_action(admin_acls(auth)) {
+ (nav_link(
+ &take_action_href(base, reported_id, Some(&report.report_id), reported_message),
+ "Take action",
+ ))
}
+ (nav_link(&format!("{base}/users/{reported_id}"), "View Reported User"))
}
@if report.report_type == 2 {
@if let Some(ref guild_id) = report.reported_guild_id {
@@ -568,6 +594,30 @@ fn resolve_report_form(base: &str, report_id: &str, csrf_token: &str) -> Markup
}
(select_chevron())
}
+ fieldset class="flex flex-col gap-3" data-show-for-resolution="actioned" hidden disabled {
+ label for="outcome" class=(FORM_LABEL_CLASS) { "Outcome" }
+ div class="relative" {
+ select id="outcome" name="outcome" required
+ class={(FORM_CONTROL_CLASS) " h-8 appearance-none px-3 py-1.5 pr-10"} {
+ option value="" selected disabled { "Choose one" }
+ option value="removed" { "Content removed" }
+ option value="restricted" { "Account restricted" }
+ option value="action_taken" { "Other action taken" }
+ }
+ (select_chevron())
+ }
+ p class="text-neutral-500 text-xs" {
+ "What happened to the reported content or account. The reporter is told it. Other action taken, such as a warning, tells them we acted but not how."
+ }
+ }
+ fieldset class="flex flex-col gap-3" data-show-for-resolution="duplicate" hidden disabled {
+ label for="duplicate_of" class=(FORM_LABEL_CLASS) { "Duplicate of" }
+ input type="text" id="duplicate_of" name="duplicate_of" required inputmode="numeric"
+ placeholder="Report ID" class={(FORM_CONTROL_CLASS) " h-8 px-3 py-1.5"};
+ p class="text-neutral-500 text-xs" {
+ "The report this one repeats. The reporter is told its outcome, or nothing while it is still open."
+ }
+ }
label for="public_comment" class=(FORM_LABEL_CLASS) {
"Public comment to the reporter (optional)"
}
@@ -575,14 +625,14 @@ fn resolve_report_form(base: &str, report_id: &str, csrf_token: &str) -> Markup
class={(FORM_CONTROL_CLASS) " px-3 py-2"} {}
(opt_out_checkbox("notify_reporter", "Include the public comment in the reporter notice"))
p class="text-neutral-500 text-xs" data-resolve-notice-help="" {
- "The reporter is told the report was resolved either way, unless their account is gone or barred from reporting. \
+ "The reporter is told the outcome, unless their account is gone or was barred from reporting when they filed it. \
When unticked, the comment is not sent or shown on the report. It is only kept in the audit log."
}
button type="submit"
class="inline-flex w-full items-center justify-center gap-2 \
font-medium rounded-lg bg-neutral-900 text-white \
px-4 py-2 text-sm" {
- "Resolve Report"
+ "Resolve report"
}
}
}
@@ -1035,8 +1085,7 @@ fn nav_link(href: &str, label: &str) -> Markup {
fn message_context_section(
config: &AdminConfig,
report: &ReportEntry,
- include_delete: bool,
- csrf_token: Option<&str>,
+ take_action: bool,
) -> Markup {
let Some(values) = &report.message_context else {
return html! {};
@@ -1058,14 +1107,19 @@ fn message_context_section(
config,
&config.base_path,
&messages,
- include_delete,
+ false,
report.reported_message_id.as_deref(),
+ take_action
+ .then_some(report.reported_user_id.as_deref())
+ .flatten()
+ .map(|user_id| TakeAction {
+ author_id: Some(user_id),
+ report_id: Some(&report.report_id),
+ })
+ .as_ref(),
))
}
}
- @if let Some(csrf_token) = csrf_token {
- (message_deletion_script(csrf_token))
- }
}
}
@@ -1092,12 +1146,12 @@ pub fn report_detail_page(
(report_answers_section(report))
(reported_entity_section(config, report))
(profile_snapshot_section(config, report, live))
- (message_context_section(config, report, has_acl(auth, acl::MESSAGE_DELETE), Some(csrf_token)))
+ (message_context_section(config, report, can_take_action(admin_acls(auth))))
(additional_info_section(report))
}
div class="space-y-6" {
(status_card(config, report))
- (actions_card(config, report, csrf_token))
+ (actions_card(config, auth, report, csrf_token))
(legal_hold_card(config, auth, report, csrf_token))
(delete_report_card(config, auth, report, csrf_token))
}
@@ -1118,7 +1172,7 @@ pub fn report_detail_fragment(config: &AdminConfig, report: &ReportEntry) -> Mar
(basic_info_section_fragment(config, report))
(report_answers_section(report))
(reported_entity_section(config, report))
- (message_context_section(config, report, false, None))
+ (message_context_section(config, report, false))
(additional_info_section(report))
a href={(base) "/reports/" (&report.report_id)}
class="inline-flex min-h-[44px] w-full items-center justify-center \
diff --git a/fluxer_admin/src/templates/pages/user_detail_tabs/account.rs b/fluxer_admin/src/templates/pages/user_detail_tabs/account.rs
index ad768aa91..53bd3673b 100644
--- a/fluxer_admin/src/templates/pages/user_detail_tabs/account.rs
+++ b/fluxer_admin/src/templates/pages/user_detail_tabs/account.rs
@@ -2,12 +2,17 @@
use crate::{
acl,
- api::types::{
- AccountIdentityMode, AdminUser, PasswordResetLinkResponse, UserSession, WebAuthnCredential,
+ api::{
+ generated::types::EnforcementKindType,
+ types::{
+ AccountIdentityMode, AdminUser, PasswordResetLinkResponse, UserSession,
+ WebAuthnCredential,
+ },
},
config::AdminConfig,
templates::components::{
alert::{AlertVariant, alert},
+ enforcement_fields::{BasisFields, DecisionFields, FIELD_HELP_CLASS, basis_fields},
form::{checkbox, csrf_input, form_actions, submit_button},
page_container::card_with_header,
},
@@ -286,7 +291,7 @@ fn clear_fields_card(base: &str, user: &AdminUser, csrf_token: &str) -> Markup {
}
let action_url = format!("{base}/users/{}?action=clear_fields&tab=account", user.id);
html! {
- (card_with_header("Clear Profile Fields", html! {
+ (card_with_header("Clear profile fields", html! {
form method="post"
action=(&action_url)
hx-post=(&action_url)
@@ -300,10 +305,31 @@ fn clear_fields_card(base: &str, user: &AdminUser, csrf_token: &str) -> Markup {
@if user.banner.is_some() { (checkbox("fields[]", "banner", "Banner", false, true)) }
@if user.bio.is_some() { (checkbox("fields[]", "bio", "Bio", false, true)) }
@if user.pronouns.is_some() { (checkbox("fields[]", "pronouns", "Pronouns", false, true)) }
- @if user.global_name.is_some() { (checkbox("fields[]", "global_name", "Display Name", false, true)) }
+ @if user.global_name.is_some() { (checkbox("fields[]", "global_name", "Display name", false, true)) }
}
+ (basis_fields(&BasisFields {
+ decision: DecisionFields {
+ id_prefix: "clear-fields",
+ kind: EnforcementKindType::ProfileReset,
+ report_ids: &[],
+ messages: Some(&[]),
+ user_flags: Some(user.flags),
+ allow_restricted: true,
+ },
+ choices: &[
+ ("enforcement", "A rule was broken"),
+ ("holder_request", "The account holder asked"),
+ ("housekeeping", "Housekeeping"),
+ ],
+ plain_note_help: "Staff only. Saved in the audit log.",
+ enforcement_extra: html! {
+ p class=(FIELD_HELP_CLASS) {
+ "The current values are saved as evidence before they are cleared. The cleared fields are the facts, so evidence and a note to the user are optional."
+ }
+ },
+ }))
(form_actions(html! {
- (submit_button("Clear Selected Fields"))
+ (submit_button("Clear selected fields"))
}))
}
}
diff --git a/fluxer_admin/src/templates/pages/user_detail_tabs/moderation.rs b/fluxer_admin/src/templates/pages/user_detail_tabs/moderation.rs
index 55a6fa513..e0cd151ee 100644
--- a/fluxer_admin/src/templates/pages/user_detail_tabs/moderation.rs
+++ b/fluxer_admin/src/templates/pages/user_detail_tabs/moderation.rs
@@ -1,25 +1,47 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-use crate::admin_flags::DELETION_REASONS;
+use crate::admin_flags::{ENFORCEMENT_LIMITS, deletion_reason_label};
use crate::utils::plural::{count_noun, noun_for};
use crate::{
acl,
api::{
client::{ApiError, ApiResult},
+ generated::types::{
+ EnforcementDecisionListResponse, EnforcementDecisionListResponseDecisionsItem,
+ EnforcementKindType, NetworkBlockCandidatesResponse,
+ },
types::{AdminUser, AuditLogEntry, MessageShredStatusResponse},
},
config::AdminConfig,
- templates::components::{
- form::{
- checkbox, csrf_input, danger_button, form_actions, opt_out_checkbox, submit_button,
+ templates::{
+ components::{
+ enforcement_fields::{
+ BasisFields, DecisionFields, FIELD_HELP_CLASS, FIELD_INPUT_CLASS,
+ FIELD_LABEL_CLASS, basis_fields, deletion_days_field, enforcement_fields,
+ field_label, internal_note_field, network_block_fields,
+ },
+ form::{checkbox, csrf_input, danger_button, form_actions, submit_button},
+ page_container::card_with_header,
+ },
+ pages::enforcement_decision::{
+ EndDecisionForm, can_end, can_lift, decisions_table, end_decision_form, ends_label,
+ kind_label, suspension_label,
},
- page_container::card_with_header,
},
utils::timestamps::format_admin_timestamp,
};
use maud::{Markup, html};
-const TEMP_BAN_DURATIONS: &[(&str, &str)] = &[
+const REFRESH_TARGET: &str = "#user-tab-content";
+const REPORTS_LIMIT_DEFAULT_DAYS: i64 = 90;
+
+const CONTENT_BASIS_CHOICES: &[(&str, &str)] = &[
+ ("enforcement", "A rule was broken"),
+ ("holder_request", "The account holder asked"),
+ ("housekeeping", "Housekeeping"),
+];
+
+const SUSPENSION_DURATIONS: &[(&str, &str)] = &[
("1", "1 hour"),
("12", "12 hours"),
("24", "1 day"),
@@ -31,45 +53,36 @@ const TEMP_BAN_DURATIONS: &[(&str, &str)] = &[
("0", "Permanent"),
];
-pub struct CurrentBan<'a> {
+pub struct LegacySuspension<'a> {
pub entry: &'a AuditLogEntry,
- pub notes: Vec<&'a AuditLogEntry>,
+}
+
+#[derive(Default)]
+pub struct DecisionPrefill {
+ pub report_ids: Vec<String>,
+ pub messages: Vec<String>,
}
#[derive(Default)]
pub struct ModerationContext<'a> {
pub deletion_scheduler: Option<&'a AdminUser>,
- pub current_ban: Option<CurrentBan<'a>>,
- pub username_sign_in: bool,
+ pub legacy_suspension: Option<LegacySuspension<'a>>,
+ pub decisions: Option<&'a ApiResult<EnforcementDecisionListResponse>>,
+ pub network_candidates: Option<&'a ApiResult<NetworkBlockCandidatesResponse>>,
+ pub prefill: DecisionPrefill,
}
-pub fn find_current_ban<'a>(user: &AdminUser, logs: &'a [AuditLogEntry]) -> Option<CurrentBan<'a>> {
+pub fn find_legacy_suspension<'a>(
+ user: &AdminUser,
+ logs: &'a [AuditLogEntry],
+) -> Option<LegacySuspension<'a>> {
let banned_until = user.temp_banned_until.as_deref()?;
let entry = logs.iter().find(|log| {
log.action == "temp_ban"
&& log.target_id == user.id
&& log.metadata.get("banned_until").map(String::as_str) == Some(banned_until)
})?;
- let mut notes: Vec<&AuditLogEntry> = logs
- .iter()
- .filter(|log| {
- log.action == "annotate_ban"
- && log.metadata.get("ban_audit_log_id") == Some(&entry.log_id)
- })
- .collect();
- notes.sort_by(|a, b| a.created_at.cmp(&b.created_at));
- Some(CurrentBan { entry, notes })
-}
-
-fn deletion_reason_label(code: i32) -> String {
- let value = code.to_string();
- DELETION_REASONS
- .iter()
- .find(|(candidate, _)| *candidate == value)
- .map_or_else(
- || format!("Reason {code}"),
- |(_, label)| (*label).to_owned(),
- )
+ Some(LegacySuspension { entry })
}
fn admin_name(entry: &AuditLogEntry) -> String {
@@ -91,166 +104,253 @@ pub fn moderation_tab(
delete_all_messages_dry_run: Option<(u64, u64)>,
) -> Markup {
let base = &config.base_path;
+ let can_limit = !user.bot && acl::has_permission(admin_acls, acl::USER_UPDATE_FLAGS);
let can_delete_all_messages = acl::has_permission(admin_acls, acl::MESSAGE_DELETE_ALL);
let can_shred_messages = acl::has_permission(admin_acls, acl::MESSAGE_SHRED);
+ let decisions = context
+ .decisions
+ .and_then(|result| result.as_ref().ok())
+ .map(|response| response.decisions.as_slice())
+ .unwrap_or_default();
html! {
div class="space-y-6" {
+ (current_restriction_card(base, user, csrf_token, admin_acls, context, decisions))
div class="grid grid-cols-1 gap-6 md:grid-cols-2" {
- (ban_actions_card(base, user, csrf_token, context.current_ban.as_ref(), context.username_sign_in))
- (deletion_card(base, user, csrf_token, context.deletion_scheduler, context.username_sign_in))
+ @if acl::has_permission(admin_acls, acl::USER_TEMP_BAN) {
+ (suspend_card(base, user, csrf_token, context))
+ }
+ @if acl::has_permission(admin_acls, acl::USER_DELETE) {
+ (close_card(base, config.self_hosted, user, csrf_token, context))
+ }
+ @if can_limit {
+ (limit_card(base, user, csrf_token, &context.prefill))
+ }
+ @if can_limit {
+ (warn_card(base, user, csrf_token, &context.prefill))
+ }
+ }
+ @if let Some(result) = context.decisions {
+ (card_with_header("Decisions", html! {
+ @match result {
+ Ok(response) => { (decisions_table(base, &response.decisions)) }
+ Err(_) => { p class="text-sm text-red-700" { "Failed to load decisions." } }
+ }
+ }))
}
@if can_delete_all_messages {
- (delete_all_messages_card(base, user, csrf_token, delete_all_messages_dry_run))
+ (delete_all_messages_card(base, user, csrf_token, &context.prefill, delete_all_messages_dry_run))
}
@if can_shred_messages {
- (message_shred_card(base, user, csrf_token, message_shred_job_id, message_shred_status))
+ (message_shred_card(base, user, csrf_token, &context.prefill, message_shred_job_id, message_shred_status))
}
}
}
}
-fn notify_user_checkbox(username_sign_in: bool, label: &str) -> Markup {
- if username_sign_in {
- html! { input type="hidden" name="notify_user_present" value="1"; }
- } else {
- opt_out_checkbox("notify_user", label)
+fn current_restriction_card(
+ base: &str,
+ user: &AdminUser,
+ csrf_token: &str,
+ admin_acls: &[String],
+ context: &ModerationContext<'_>,
+ decisions: &[EnforcementDecisionListResponseDecisionsItem],
+) -> Markup {
+ html! {
+ (card_with_header("Current restriction", html! {
+ div data-current-restriction="" {
+ @if let Some(decision_id) = &user.enforcement_decision_id {
+ (decision_restriction(base, user, csrf_token, admin_acls, decision_id, decisions))
+ } @else if let Some(until) = &user.temp_banned_until {
+ (legacy_suspension_restriction(base, user, csrf_token, admin_acls, until, context.legacy_suspension.as_ref()))
+ } @else if let Some(pending) = &user.pending_deletion_at {
+ (legacy_deletion_restriction(base, user, csrf_token, admin_acls, pending, context.deletion_scheduler))
+ } @else {
+ p class="text-sm text-neutral-500" { "No current restriction." }
+ }
+ }
+ }))
}
}
-fn ban_actions_card(
+fn decision_restriction(
base: &str,
user: &AdminUser,
csrf_token: &str,
- current_ban: Option<&CurrentBan<'_>>,
- username_sign_in: bool,
+ admin_acls: &[String],
+ decision_id: &str,
+ decisions: &[EnforcementDecisionListResponseDecisionsItem],
) -> Markup {
+ let decision = decisions
+ .iter()
+ .find(|decision| decision.decision_id.as_str() == decision_id);
+ let state = match (decision, user.temp_banned_until.as_deref()) {
+ (Some(decision), _) => {
+ let ends = ends_label(
+ decision.kind,
+ decision.ends_at.as_deref(),
+ decision.deletion_at.as_deref(),
+ );
+ format!(
+ "{} for {}. {ends}",
+ kind_label(decision.kind),
+ deletion_reason_label(*decision.reason_code)
+ )
+ }
+ (None, Some(until)) => suspension_label(until),
+ (None, None) => "Restricted by a decision.".to_owned(),
+ };
html! {
- (card_with_header("Ban Actions", html! {
- @if user.temp_banned_until.is_some() {
- (current_ban_details(base, user, csrf_token, current_ban))
- form method="post"
- action={(base) "/users/" (user.id) "?action=unban&tab=moderation"} {
- (csrf_input(csrf_token))
- div class="space-y-3" {
- (form_label("Public Reason (optional, shown to the user)"))
- input type="text" name="public_reason"
- placeholder="Enter public unban reason..." maxlength="512"
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary";
- (form_label("Private Reason (optional, audit log)"))
- input type="text" name="private_reason"
- placeholder="Enter private unban reason (audit log)..."
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary";
- (notify_user_checkbox(username_sign_in, "Email the user that the suspension was lifted"))
- (form_actions(html! {
- (submit_button("Unban User"))
- }))
- }
+ div class="space-y-4" {
+ p class="text-sm text-neutral-900" {
+ (state.trim_end())
+ " "
+ a href={(base) "/decisions/" (decision_id)} class="text-blue-600 hover:underline" {
+ "Decision " (decision_id)
+ }
+ }
+ @match decision {
+ Some(decision) if can_end(admin_acls, decision.kind, decision.removed_all_messages) => {
+ (end_decision_form(&EndDecisionForm {
+ base,
+ decision_id,
+ can_lift: can_lift(decision.kind),
+ reason_code: *decision.reason_code,
+ csrf_token,
+ refresh_target: REFRESH_TARGET,
+ }))
}
- } @else {
+ Some(_) => {}
+ None => {
+ p class="text-sm text-neutral-500" { "Open the decision to see or end it." }
+ }
+ }
+ }
+ }
+}
+
+fn legacy_suspension_restriction(
+ base: &str,
+ user: &AdminUser,
+ csrf_token: &str,
+ admin_acls: &[String],
+ until: &str,
+ legacy_suspension: Option<&LegacySuspension<'_>>,
+) -> Markup {
+ html! {
+ div class="space-y-4" {
+ p class="text-sm text-neutral-900" {
+ (suspension_label(until)) ". Recorded before decisions, so it has no decision."
+ }
+ (legacy_suspension_details(base, legacy_suspension))
+ @if acl::has_permission(admin_acls, acl::USER_TEMP_BAN) {
form method="post"
- action={(base) "/users/" (user.id) "?action=temp_ban&tab=moderation"} {
+ action={(base) "/users/" (user.id) "?action=unban&tab=moderation"}
+ data-admin-refresh-on-success=(REFRESH_TARGET) {
(csrf_input(csrf_token))
div class="space-y-3" {
- (form_label("Duration"))
- select name="duration"
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary" {
- @for &(value, label) in TEMP_BAN_DURATIONS {
- option value=(value) { (label) }
- }
- }
- (form_label("Public Reason (optional)"))
- input type="text" name="reason"
- placeholder="Enter public ban reason..." maxlength="512"
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary";
- (form_label("Private Reason (optional)"))
- input type="text" name="private_reason"
- placeholder="Enter private ban reason (audit log)..."
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary";
- (notify_user_checkbox(username_sign_in, "Email the user about this suspension (temporary bans only)"))
- (form_actions(html! {
- (submit_button("Ban/Suspend User"))
- }))
+ (internal_note_field("lift", "Staff only. Saved in the audit log."))
+ p class=(FIELD_HELP_CLASS) { "The user is told by email that the suspension was lifted." }
+ (form_actions(submit_button("Lift suspension")))
}
}
}
- }))
+ }
}
}
-fn current_ban_details(
+fn legacy_suspension_details(
base: &str,
- user: &AdminUser,
- csrf_token: &str,
- current_ban: Option<&CurrentBan<'_>>,
+ legacy_suspension: Option<&LegacySuspension<'_>>,
) -> Markup {
- let Some(ban) = current_ban else {
+ let Some(suspension) = legacy_suspension else {
return html! {
- p class="mb-4 text-sm text-neutral-500" {
- "The audit log entry of this ban could not be loaded, so notes cannot be added here."
+ p class="text-sm text-neutral-500" {
+ "The audit log entry of this suspension could not be loaded."
}
};
};
html! {
- div class="mb-4 space-y-3" {
- dl class="space-y-1 text-sm text-neutral-700" {
- div {
- dt class="inline font-medium" { "Banned by: " }
- dd class="inline" {
- a href={(base) "/users/" (ban.entry.admin_user_id)} class="underline" {
- (admin_name(ban.entry))
- }
- " on " (format_admin_timestamp(&ban.entry.created_at))
+ dl class="space-y-1 text-sm text-neutral-700" {
+ div {
+ dt class="inline font-medium" { "Suspended by: " }
+ dd class="inline" {
+ a href={(base) "/users/" (suspension.entry.admin_user_id)} class="underline" {
+ (admin_name(suspension.entry))
}
- }
- div {
- dt class="inline font-medium" { "Reason: " }
- dd class="inline" { (ban.entry.audit_log_reason.as_deref().unwrap_or("None recorded")) }
+ " on " (format_admin_timestamp(&suspension.entry.created_at))
}
}
- @if !ban.notes.is_empty() {
- ul class="space-y-1 text-sm text-neutral-700" {
- @for note in &ban.notes {
- li {
- span class="font-medium" { (admin_name(note)) }
- " (" (format_admin_timestamp(&note.created_at)) "): "
- (note.audit_log_reason.as_deref().unwrap_or(""))
+ div {
+ dt class="inline font-medium" { "Internal note: " }
+ dd class="inline" { (suspension.entry.audit_log_reason.as_deref().unwrap_or("None recorded")) }
+ }
+ }
+ }
+}
+
+fn suspend_card(
+ base: &str,
+ user: &AdminUser,
+ csrf_token: &str,
+ context: &ModerationContext<'_>,
+) -> Markup {
+ let prefill = &context.prefill;
+ html! {
+ (card_with_header("Suspend account", html! {
+ form method="post"
+ action={(base) "/users/" (user.id) "?action=suspend&tab=moderation"}
+ data-admin-refresh-on-success=(REFRESH_TARGET) {
+ (csrf_input(csrf_token))
+ div class="space-y-4" {
+ div class="space-y-1" {
+ (field_label("suspend-duration", "Duration"))
+ select id="suspend-duration" name="duration_hours" required class=(FIELD_INPUT_CLASS) {
+ @for &(value, label) in SUSPENSION_DURATIONS {
+ option value=(value) { (label) }
+ }
+ }
+ }
+ (enforcement_fields(&DecisionFields {
+ id_prefix: "suspend",
+ kind: EnforcementKindType::Suspension,
+ report_ids: &prefill.report_ids,
+ messages: Some(&prefill.messages),
+ user_flags: Some(user.flags),
+ allow_restricted: true,
+ }))
+ (remove_evidence_field())
+ @if let Some(candidates) = context.network_candidates {
+ fieldset data-show-for-duration_hours="0" hidden disabled {
+ (network_block_fields("suspend", candidates))
}
}
+ (form_actions(submit_button("Suspend account")))
}
}
+ }))
+ }
+}
+
+fn warn_card(base: &str, user: &AdminUser, csrf_token: &str, prefill: &DecisionPrefill) -> Markup {
+ html! {
+ (card_with_header("Warn", html! {
form method="post"
- action={(base) "/users/" (user.id) "?action=annotate_ban&tab=moderation"} {
+ action={(base) "/users/" (user.id) "?action=warn&tab=moderation"}
+ data-admin-refresh-on-success=(REFRESH_TARGET) {
(csrf_input(csrf_token))
- input type="hidden" name="ban_audit_log_id" value=(ban.entry.log_id);
- div class="space-y-3" {
- (form_label("Add a note to this ban"))
- textarea name="note" rows="2" required maxlength="512"
- placeholder="Appended to the ban. The original reason is kept."
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary" {}
- (form_actions(html! {
- (submit_button("Add Note"))
+ div class="space-y-4" {
+ (enforcement_fields(&DecisionFields {
+ id_prefix: "warn",
+ kind: EnforcementKindType::Warning,
+ report_ids: &prefill.report_ids,
+ messages: Some(&prefill.messages),
+ user_flags: Some(user.flags),
+ allow_restricted: true,
}))
+ (form_actions(submit_button("Send warning")))
}
}
- }
+ }))
}
}
@@ -274,7 +374,7 @@ fn pending_deletion_summary(
.map(format_admin_timestamp)
.unwrap_or_default();
let markup = html! {
- dl class="mb-4 space-y-1 text-sm text-neutral-700" {
+ dl class="space-y-1 text-sm text-neutral-700" {
div {
dt class="inline font-medium" { "Scheduled by: " }
dd class="inline" {
@@ -317,81 +417,159 @@ fn pending_deletion_summary(
)
}
-fn deletion_card(
+fn legacy_deletion_restriction(
base: &str,
user: &AdminUser,
csrf_token: &str,
+ admin_acls: &[String],
+ pending: &str,
scheduler: Option<&AdminUser>,
- username_sign_in: bool,
) -> Markup {
+ let (confirmation, summary) = pending_deletion_summary(base, user, scheduler);
html! {
- (card_with_header("Account Deletion", html! {
- @if let Some(pending) = &user.pending_deletion_at {
- @let (confirmation, summary) = pending_deletion_summary(base, user, scheduler);
- (summary)
+ div class="space-y-4" {
+ p class="text-sm text-neutral-900" {
+ "Scheduled for deletion. No decision owns it, so it is cancelled here."
+ }
+ (summary)
+ @if acl::has_permission(admin_acls, acl::USER_DELETE) {
form method="post"
- action={(base) "/users/" (user.id) "?action=cancel_deletion&tab=moderation"} {
+ action={(base) "/users/" (user.id) "?action=cancel_deletion&tab=moderation"}
+ data-admin-refresh-on-success=(REFRESH_TARGET) {
(csrf_input(csrf_token))
input type="hidden" name="expected_pending_deletion_at" value=(pending);
div class="space-y-3" {
- (form_label("Private Reason"))
- input type="text" name="private_reason" required
- placeholder="Why this deletion is being canceled (audit log)..."
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary";
- @if !username_sign_in {
- (checkbox("notify_user", "true", "Email the user that the deletion was canceled", false, true))
- }
+ (internal_note_field("cancel-deletion", "Staff only. Saved in the audit log."))
+ p class=(FIELD_HELP_CLASS) { "The user is told by email that the deletion was cancelled." }
(checkbox("confirm", "true", &confirmation, false, true))
- (form_actions(html! {
- (danger_button("Cancel Deletion"))
- }))
+ (form_actions(danger_button("Cancel deletion")))
}
}
- } @else {
- form method="post"
- action={(base) "/users/" (user.id) "?action=schedule_deletion&tab=moderation"} {
- (csrf_input(csrf_token))
- div class="space-y-3" {
- (form_label("Days until deletion"))
- input type="number" name="days_until_deletion" value="60"
- min="60" max="365"
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary";
- (form_label("Reason"))
- select name="reason_code" required
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary" {
- option value="" disabled selected { "Choose a reason" }
- @for &(value, label) in DELETION_REASONS {
- option value=(value) { (label) }
+ }
+ }
+ }
+}
+
+fn close_card(
+ base: &str,
+ self_hosted: bool,
+ user: &AdminUser,
+ csrf_token: &str,
+ context: &ModerationContext<'_>,
+) -> Markup {
+ let prefill = &context.prefill;
+ html! {
+ (card_with_header("Close account", html! {
+ form method="post"
+ action={(base) "/users/" (user.id) "?action=close&tab=moderation"}
+ data-admin-refresh-on-success=(REFRESH_TARGET) {
+ (csrf_input(csrf_token))
+ div class="space-y-4" {
+ (basis_fields(&BasisFields {
+ decision: DecisionFields {
+ id_prefix: "close",
+ kind: EnforcementKindType::Closure,
+ report_ids: &prefill.report_ids,
+ messages: Some(&prefill.messages),
+ user_flags: Some(user.flags),
+ allow_restricted: true,
+ },
+ choices: &[
+ ("enforcement", "A rule was broken"),
+ ("holder_request", "The account holder asked"),
+ ("housekeeping", "Inactivity"),
+ ],
+ plain_note_help: "Staff only. Saved in the audit log. The holder can cancel the deletion by signing in.",
+ enforcement_extra: html! {
+ (remove_evidence_field())
+ @if let Some(candidates) = context.network_candidates {
+ (network_block_fields("close", candidates))
+ }
+ },
+ }))
+ (deletion_days_field("close-days", self_hosted))
+ @if let Some(pending) = &user.pending_deletion_at {
+ input type="hidden" name="replace_pending_deletion_at" value=(pending);
+ p class=(FIELD_HELP_CLASS) { "This replaces the deletion already scheduled." }
+ }
+ (form_actions(danger_button("Close account")))
+ }
+ }
+ }))
+ }
+}
+
+fn remove_evidence_field() -> Markup {
+ html! {
+ div class="space-y-1" {
+ (checkbox("remove_evidence", "true", "Remove these messages", false, true))
+ p class=(FIELD_HELP_CLASS) { "Removes the messages listed above after they are saved as evidence." }
+ }
+ }
+}
+
+fn content_basis_fields<'a>(
+ id_prefix: &'a str,
+ user: &'a AdminUser,
+ prefill: &'a DecisionPrefill,
+ snapshot_entries: bool,
+) -> BasisFields<'a> {
+ BasisFields {
+ decision: DecisionFields {
+ id_prefix,
+ kind: EnforcementKindType::ContentRemoval,
+ report_ids: &prefill.report_ids,
+ messages: (!snapshot_entries).then_some(prefill.messages.as_slice()),
+ user_flags: Some(user.flags),
+ allow_restricted: snapshot_entries,
+ },
+ choices: CONTENT_BASIS_CHOICES,
+ plain_note_help: "Staff only. Saved in the audit log.",
+ enforcement_extra: html! {},
+ }
+}
+
+fn limit_card(base: &str, user: &AdminUser, csrf_token: &str, prefill: &DecisionPrefill) -> Markup {
+ let reports_end = (time::OffsetDateTime::now_utc()
+ + time::Duration::days(REPORTS_LIMIT_DEFAULT_DAYS))
+ .date()
+ .to_string();
+ html! {
+ (card_with_header("Limit features", html! {
+ form method="post"
+ action={(base) "/users/" (user.id) "?action=limit_features&tab=moderation"}
+ data-admin-refresh-on-success=(REFRESH_TARGET) {
+ (csrf_input(csrf_token))
+ div class="space-y-4" {
+ (enforcement_fields(&DecisionFields {
+ id_prefix: "limit",
+ kind: EnforcementKindType::FeatureLimit,
+ report_ids: &prefill.report_ids,
+ messages: Some(&prefill.messages),
+ user_flags: Some(user.flags),
+ allow_restricted: true,
+ }))
+ fieldset class="space-y-1" {
+ legend class=(FIELD_LABEL_CLASS) { "Limit" }
+ div class="flex flex-wrap gap-x-4 gap-y-1" {
+ @for limit in ENFORCEMENT_LIMITS {
+ @let id = format!("limit-{}", limit.value);
+ @let codes = limit.codes.iter().map(ToString::to_string).collect::<Vec<_>>().join(" ");
+ div class="flex items-center gap-2" data-show-for-codes=(codes) hidden {
+ input type="radio" id=(id) name="limit" value=(limit.value) required disabled
+ class="h-4 w-4 accent-neutral-900";
+ label for=(id) class="text-sm text-neutral-900" { (limit.label) }
+ }
}
}
- (form_label("Public Reason (optional)"))
- input type="text" name="public_reason"
- placeholder="Enter public reason..." maxlength="512"
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary";
- (form_label("Private Reason (optional)"))
- input type="text" name="private_reason"
- placeholder="Enter private reason (audit log)..."
- class="block w-full rounded-md border border-neutral-300 \
- px-3 py-2 text-sm shadow-sm \
- focus:border-brand-primary focus:outline-none \
- focus:ring-1 focus:ring-brand-primary";
- (notify_user_checkbox(username_sign_in, "Email the user about the scheduled deletion"))
- (form_actions(html! {
- (submit_button("Schedule Deletion"))
- }))
+ p class=(FIELD_HELP_CLASS) { "Each reason offers only the limits it allows." }
+ }
+ fieldset class="space-y-1" data-show-for-limit="reports" hidden disabled {
+ (field_label("limit-ends-on", "Ends on"))
+ input type="date" id="limit-ends-on" name="ends_on" value=(reports_end) required class=(FIELD_INPUT_CLASS);
+ p class=(FIELD_HELP_CLASS) { "At most 365 days from now." }
}
+ (form_actions(submit_button("Limit features")))
}
}
}))
@@ -402,36 +580,34 @@ fn delete_all_messages_card(
base: &str,
user: &AdminUser,
csrf_token: &str,
+ prefill: &DecisionPrefill,
dry_run: Option<(u64, u64)>,
) -> Markup {
+ let action = format!(
+ "{base}/users/{}?action=delete_all_messages&tab=moderation",
+ user.id
+ );
html! {
- (card_with_header("Delete All Messages", html! {
+ (card_with_header("Delete all messages", html! {
div class="space-y-4" {
p class="text-sm text-neutral-600" {
- "Locate every message this user has ever sent and permanently remove them. First run a dry run to see how many channels and messages will be affected."
+ "Removes every message this user has sent. Preview the count first. Child safety and violent extremism reasons can't be used here, because the messages can't all be saved as evidence first. Use the message shredder with the messages instead."
}
- form method="post"
- action={(base) "/users/" (user.id) "?action=delete_all_messages&tab=moderation"}
- data-admin-result-form="true" {
+ form method="post" action=(action) data-admin-result-form="true" {
(csrf_input(csrf_token))
input type="hidden" name="dry_run" value="true";
- (form_actions(html! {
- (submit_button("Preview Deletion"))
- }))
+ (form_actions(submit_button("Preview deletion")))
}
@if let Some((channel_count, message_count)) = dry_run {
- div class="space-y-3 rounded-lg border border-neutral-200 bg-neutral-50 p-4" {
+ form method="post" action=(action)
+ class="space-y-4 rounded-lg border border-neutral-200 bg-neutral-50 p-4" {
+ (csrf_input(csrf_token))
+ input type="hidden" name="dry_run" value="false";
p class="text-sm text-neutral-700" {
- "Channels: " (channel_count) " · Messages: " (message_count)
- }
- form method="post"
- action={(base) "/users/" (user.id) "?action=delete_all_messages&tab=moderation"} {
- (csrf_input(csrf_token))
- input type="hidden" name="dry_run" value="false";
- (form_actions(html! {
- (danger_button("Delete All Messages"))
- }))
+ (count_noun(message_count, "message", "messages")) " in " (count_noun(channel_count, "channel", "channels")) "."
}
+ (basis_fields(&content_basis_fields("delete-all", user, prefill, false)))
+ (form_actions(danger_button("Delete all messages")))
}
}
}
@@ -443,23 +619,24 @@ fn message_shred_card(
base: &str,
user: &AdminUser,
csrf_token: &str,
+ prefill: &DecisionPrefill,
job_id: Option<&str>,
status: Option<&ApiResult<MessageShredStatusResponse>>,
) -> Markup {
html! {
- (card_with_header("Message Shredder", html! {
+ (card_with_header("Message shredder", html! {
div class="space-y-4" {
p class="text-sm text-neutral-600" {
- "Upload a CSV file where each row includes the channel_id and message_id separated by a comma. Large files are chunked server-side automatically."
+ "Upload a CSV file with one channel_id,message_id pair per row. When a rule was broken, the first 50 messages are saved as evidence before they are removed, and every message for child safety and violent extremism reasons."
}
form method="post"
action={(base) "/users/" (user.id) "?action=message_shred&tab=moderation"}
id="message-shred-form" {
(csrf_input(csrf_token))
input type="hidden" name="csv_data" id="message-shred-csv-data";
- div class="space-y-3" {
+ div class="space-y-4" {
div class="space-y-2" {
- (form_label("CSV File"))
+ (field_label("message-shred-file", "CSV file"))
input id="message-shred-file" type="file" accept=".csv" class="hidden";
div class="flex items-center gap-2" {
button type="button"
@@ -472,10 +649,11 @@ fn message_shred_card(
}
}
}
+ (basis_fields(&content_basis_fields("shred", user, prefill, true)))
button type="submit"
id="message-shred-submit"
class="inline-flex w-full items-center justify-center gap-2 rounded-lg bg-neutral-900 px-4 py-2 text-base font-medium text-white transition-all duration-150 hover:bg-neutral-800 focus:outline-none focus:ring-2 focus:ring-neutral-900 focus:ring-offset-2 focus:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50" {
- span { "Shred Messages" }
+ span { "Shred messages" }
}
}
}
@@ -498,7 +676,7 @@ fn message_shred_status_section(
html! {
div class="space-y-3 rounded-lg border border-neutral-200 bg-white p-4" {
div class="flex items-center justify-between gap-3" {
- h3 class="text-sm font-medium text-neutral-900" { "Message Shred Status" }
+ h3 class="text-sm font-medium text-neutral-900" { "Message shred status" }
a href={(base) "/users/" (user.id) "?tab=moderation"}
class="text-sm text-neutral-500 hover:text-neutral-900" {
"Clear"
@@ -623,12 +801,6 @@ fn message_shred_form_script() -> Markup {
}
}
-fn form_label(text: &str) -> Markup {
- maud::html! {
- label class="block text-sm font-medium text-neutral-700" { (text) }
- }
-}
-
const MESSAGE_SHRED_FORM_SCRIPT: &str = r#"
(function () {
var form = document.getElementById('message-shred-form');
@@ -662,7 +834,7 @@ const MESSAGE_SHRED_FORM_SCRIPT: &str = r#"
function resetSubmit(label) {
processing = false;
submitButton.disabled = false;
- submitButton.querySelector('span').textContent = label || 'Shred Messages';
+ submitButton.querySelector('span').textContent = label || 'Shred messages';
}
file.addEventListener('change', function () {
if (fileName) {
diff --git a/fluxer_admin/src/templates/pages/user_detail_tabs/overview.rs b/fluxer_admin/src/templates/pages/user_detail_tabs/overview.rs
index f74c4025c..d406a34b8 100644
--- a/fluxer_admin/src/templates/pages/user_detail_tabs/overview.rs
+++ b/fluxer_admin/src/templates/pages/user_detail_tabs/overview.rs
@@ -9,6 +9,7 @@ use crate::{
form::{checkbox, csrf_input, form_actions, submit_button},
page_container::{card_with_header, detail_row},
},
+ templates::pages::enforcement_decision::suspension_label,
utils::{
bigint::format_discriminator,
timestamps::{format_admin_timestamp, snowflake_creation_date},
@@ -64,12 +65,8 @@ fn render_overview_tab(
) -> Markup {
html! {
div class="space-y-6" {
- @if let Some(until) = &user.temp_banned_until {
- div class="rounded-lg border border-red-200 bg-red-50 p-4 text-sm font-medium text-red-900" {
- "Temporarily banned until " (format_admin_timestamp(until))
- }
- }
- @if user.temp_banned_until.is_none() {
+ (restriction_banner(config, user))
+ @if user.temp_banned_until.is_none() && user.enforcement_decision_id.is_none() {
@if let Some(pending) = &user.pending_deletion_at {
div class="rounded-lg border border-orange-200 bg-orange-50 p-4 text-sm text-orange-900" {
div class="font-medium" { "Scheduled for deletion: " (format_admin_timestamp(pending)) }
@@ -262,6 +259,30 @@ fn render_overview_tab(
}
}
+fn restriction_banner(config: &AdminConfig, user: &AdminUser) -> Markup {
+ let base = &config.base_path;
+ html! {
+ @match (&user.enforcement_decision_id, &user.temp_banned_until) {
+ (Some(decision_id), until) => {
+ div class="rounded-lg border border-red-200 bg-red-50 p-4 text-sm font-medium text-red-900" data-restriction-banner="" {
+ @match (until, &user.pending_deletion_at) {
+ (Some(until), _) => { (suspension_label(until)) ". " }
+ (None, Some(pending)) => { "Scheduled for deletion on " (format_admin_timestamp(pending)) ". " }
+ (None, None) => { "Restricted by a decision. " }
+ }
+ a href={(base) "/decisions/" (decision_id)} class="underline" { "Decision " (decision_id) }
+ }
+ }
+ (None, Some(until)) => {
+ div class="rounded-lg border border-red-200 bg-red-50 p-4 text-sm font-medium text-red-900" data-restriction-banner="" {
+ (suspension_label(until)) ". Recorded before decisions, so it has no decision."
+ }
+ }
+ (None, None) => {}
+ }
+ }
+}
+
fn flags_card(
config: &AdminConfig,
user: &AdminUser,
@@ -269,118 +290,58 @@ fn flags_card(
csrf_token: &str,
) -> Markup {
let can_update_flags = acl::has_permission(admin_acls, acl::USER_UPDATE_FLAGS);
+ let suspended = user.temp_banned_until.is_some();
html! {
div class="space-y-6" {
- (u64_flag_form(
+ (flag_form_shell(
config,
&user.id,
- "User Flags",
+ "User flags",
"update_flags",
- "flags[]",
- user.flags,
- admin_flags::USER_FLAGS,
csrf_token,
can_update_flags,
- Some(acl::USER_UPDATE_FLAGS),
+ html! {
+ @for flag in admin_flags::USER_FLAGS {
+ (checkbox(
+ "flags[]",
+ &flag.value.to_string(),
+ flag.name,
+ user.flags & flag.value != 0,
+ can_update_flags && admin_flags::user_flag_is_editable(flag.value, user.flags, suspended),
+ ))
+ }
+ },
))
- (i32_flag_form(
+ (flag_form_shell(
config,
&user.id,
- "Premium Flags",
+ "Premium flags",
"update_premium_flags",
- "flags[]",
- user.premium_flags,
- admin_flags::PREMIUM_FLAGS,
csrf_token,
can_update_flags,
- Some(acl::USER_UPDATE_FLAGS),
+ html! {
+ @for flag in admin_flags::PREMIUM_FLAGS {
+ (checkbox(
+ "flags[]",
+ &flag.value.to_string(),
+ flag.name,
+ user.premium_flags & flag.value != 0,
+ can_update_flags && admin_flags::premium_flag_is_editable(flag.value),
+ ))
+ }
+ },
))
}
}
}
-#[allow(clippy::too_many_arguments)]
-fn u64_flag_form(
- config: &AdminConfig,
- user_id: &str,
- title: &str,
- action: &str,
- input_name: &str,
- value: u64,
- flags: &[admin_flags::U64Flag],
- csrf_token: &str,
- can_edit: bool,
- required_acl: Option<&str>,
-) -> Markup {
- flag_form_shell(
- config,
- user_id,
- title,
- action,
- value.to_string(),
- csrf_token,
- can_edit,
- required_acl,
- html! {
- @for flag in flags {
- (flag_checkbox(
- input_name,
- flag.value.to_string(),
- flag.name,
- value & flag.value != 0,
- can_edit,
- ))
- }
- },
- )
-}
-
-#[allow(clippy::too_many_arguments)]
-fn i32_flag_form(
- config: &AdminConfig,
- user_id: &str,
- title: &str,
- action: &str,
- input_name: &str,
- value: i32,
- flags: &[admin_flags::I32Flag],
- csrf_token: &str,
- can_edit: bool,
- required_acl: Option<&str>,
-) -> Markup {
- flag_form_shell(
- config,
- user_id,
- title,
- action,
- value.to_string(),
- csrf_token,
- can_edit,
- required_acl,
- html! {
- @for flag in flags {
- (flag_checkbox(
- input_name,
- flag.value.to_string(),
- flag.name,
- value & flag.value != 0,
- can_edit,
- ))
- }
- },
- )
-}
-
-#[allow(clippy::too_many_arguments)]
fn flag_form_shell(
config: &AdminConfig,
user_id: &str,
title: &str,
action: &str,
- _raw_value: String,
csrf_token: &str,
can_edit: bool,
- required_acl: Option<&str>,
checkboxes: Markup,
) -> Markup {
card_with_header(
@@ -392,14 +353,15 @@ fn flag_form_shell(
(checkboxes)
}
@if can_edit {
+ p class="text-xs text-neutral-500" {
+ "Restriction flags are read-only. Use the moderation tab."
+ }
(form_actions(html! {
(submit_button("Save"))
}))
} @else {
- @if let Some(required) = required_acl {
- p class="text-xs text-neutral-500" {
- "Read-only \u{2014} " (required) " permission required."
- }
+ p class="text-xs text-neutral-500" {
+ "Read-only. Needs the " (acl::USER_UPDATE_FLAGS) " permission."
}
}
}
diff --git a/fluxer_admin/src/utils/forms.rs b/fluxer_admin/src/utils/forms.rs
index b40b0efc6..47da3433c 100644
--- a/fluxer_admin/src/utils/forms.rs
+++ b/fluxer_admin/src/utils/forms.rs
@@ -105,10 +105,6 @@ impl MultiValueForm {
})
}
- pub fn opt_out_value(&self, key: &str) -> bool {
- !self.contains_key(&format!("{key}_present")) || self.bool_value(key)
- }
-
pub fn list_values(&self, key: &str) -> Vec<String> {
self.fields
.get(key)
diff --git a/fluxer_admin/tests/enforcement_panel.rs b/fluxer_admin/tests/enforcement_panel.rs
new file mode 100644
index 000000000..2e91b9393
--- /dev/null
+++ b/fluxer_admin/tests/enforcement_panel.rs
@@ -0,0 +1,1047 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+#![recursion_limit = "256"]
+
+use axum::{
+ Json, Router,
+ body::{Body, to_bytes},
+ extract::State,
+ http::{HeaderMap, Method, Request, StatusCode, Uri, header},
+ response::{IntoResponse, Response},
+};
+use fluxer_admin::{
+ build_router,
+ config::{AdminConfig, ProxyConfig},
+ session,
+};
+use serde_json::{Value, json};
+use std::sync::{Arc, Mutex};
+use tokio::net::TcpListener;
+use tower::ServiceExt;
+
+const SECRET_KEY: &str = "enforcement-panel-test-secret";
+const ADMIN_ID: &str = "1500000000000000000";
+const USER_ID: &str = "1500000000000000001";
+const DECISION_ID: &str = "1900000000000000001";
+const REPORT_ID: &str = "1600000000000000001";
+const CHANNEL_ID: &str = "1700000000000000001";
+const MESSAGE_ID: &str = "1700000000000000002";
+const SUSPENDED_UNTIL: &str = "2099-01-01T00:00:00.000Z";
+const DISABLED: u64 = 1 << 38;
+const NETWORK_IP: &str = "45.33.10.1";
+const SHARED_IP: &str = "45.33.10.2";
+
+#[derive(Clone)]
+struct Captured {
+ route: String,
+ audit_log_reason: Option<String>,
+ body: Value,
+}
+
+struct Mock {
+ admin_acls: Vec<&'static str>,
+ user: Value,
+ decisions: Vec<Value>,
+ decision: Value,
+ audit_logs: Vec<Value>,
+ captured: Mutex<Vec<Captured>>,
+}
+
+impl Mock {
+ fn new(user: Value) -> Self {
+ Self {
+ admin_acls: vec!["*"],
+ user,
+ decisions: Vec::new(),
+ decision: Value::Null,
+ audit_logs: Vec::new(),
+ captured: Mutex::new(Vec::new()),
+ }
+ }
+}
+
+struct TestApp {
+ router: Router,
+ session_cookie: String,
+ mock: Arc<Mock>,
+}
+
+async fn setup(mock: Mock) -> TestApp {
+ let mock = Arc::new(mock);
+ let listener = TcpListener::bind(("127.0.0.1", 0)).await.unwrap();
+ let addr = listener.local_addr().unwrap();
+ let state = Arc::clone(&mock);
+ tokio::spawn(async move {
+ axum::serve(listener, Router::new().fallback(mock_api).with_state(state))
+ .await
+ .unwrap();
+ });
+ let router = build_router(test_config(format!("http://{addr}")));
+ let session_value = session::create_session(ADMIN_ID, "test-token", SECRET_KEY);
+ TestApp {
+ router,
+ session_cookie: format!("{}={session_value}", session::SESSION_COOKIE_NAME),
+ mock,
+ }
+}
+
+async fn get(app: &TestApp, uri: &str) -> (StatusCode, HeaderMap, String) {
+ let response = app
+ .router
+ .clone()
+ .oneshot(
+ Request::builder()
+ .method(Method::GET)
+ .uri(uri)
+ .header(header::COOKIE, &app.session_cookie)
+ .body(Body::empty())
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+ let status = response.status();
+ let headers = response.headers().clone();
+ let body = to_bytes(response.into_body(), usize::MAX).await.unwrap();
+ (status, headers, String::from_utf8(body.to_vec()).unwrap())
+}
+
+async fn page(app: &TestApp, uri: &str) -> String {
+ let (status, _, body) = get(app, uri).await;
+ assert_eq!(status, StatusCode::OK, "{body}");
+ body
+}
+
+async fn post(app: &TestApp, uri: &str, fields: &str) -> Vec<Captured> {
+ let (_, headers, _) = get(app, "/decisions").await;
+ let csrf = headers
+ .get_all(header::SET_COOKIE)
+ .iter()
+ .filter_map(|value| value.to_str().ok())
+ .find_map(|value| {
+ let pair = value.split(';').next()?;
+ pair.strip_prefix("__Host-csrf_token=")
+ .or_else(|| pair.strip_prefix("csrf_token="))
+ .map(ToOwned::to_owned)
+ })
+ .expect("csrf cookie");
+ let response = app
+ .router
+ .clone()
+ .oneshot(
+ Request::builder()
+ .method(Method::POST)
+ .uri(uri)
+ .header(header::CONTENT_TYPE, "application/x-www-form-urlencoded")
+ .header(
+ header::COOKIE,
+ format!("{}; __Host-csrf_token={csrf}", app.session_cookie),
+ )
+ .body(Body::from(format!("_csrf={csrf}&{fields}")))
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(response.status(), StatusCode::SEE_OTHER);
+ app.mock.captured.lock().unwrap().clone()
+}
+
+async fn mock_api(
+ State(mock): State<Arc<Mock>>,
+ method: Method,
+ uri: Uri,
+ headers: HeaderMap,
+ request: Request<Body>,
+) -> Response {
+ let path = uri.path().to_owned();
+ if method != Method::GET {
+ let bytes = to_bytes(request.into_body(), usize::MAX).await.unwrap();
+ mock.captured.lock().unwrap().push(Captured {
+ route: format!("{method} {path}"),
+ audit_log_reason: headers
+ .get("x-audit-log-reason")
+ .and_then(|value| value.to_str().ok())
+ .map(ToOwned::to_owned),
+ body: serde_json::from_slice(&bytes).unwrap_or(Value::Null),
+ });
+ }
+ let user_path = format!("/admin/users/{USER_ID}");
+ let decision_path = format!("/admin/enforcement-decisions/{DECISION_ID}");
+ match (method, path.as_str()) {
+ (Method::GET, "/admin/users/@me") => {
+ let mut admin = user(ADMIN_ID, "AdminUser");
+ admin["acls"] = json!(mock.admin_acls);
+ Json(json!({ "user": admin })).into_response()
+ }
+ (Method::GET, "/admin/users") => Json(json!({
+ "users": [user(ADMIN_ID, "AdminUser"), mock.user.clone()]
+ }))
+ .into_response(),
+ (Method::GET, p) if p == user_path => {
+ Json(json!({ "users": [mock.user.clone()] })).into_response()
+ }
+ (Method::GET, p) if p == format!("{user_path}/network-block-candidates") => Json(json!({
+ "networks": [
+ {"ip": NETWORK_IP, "last_seen_at": "2026-10-13T09:00:00.000Z", "skip_reason": null, "other_unrestricted_accounts": 0},
+ {"ip": SHARED_IP, "last_seen_at": "2026-10-12T09:00:00.000Z", "skip_reason": null, "other_unrestricted_accounts": 2},
+ {"ip": "10.0.0.5", "last_seen_at": "2026-10-11T09:00:00.000Z", "skip_reason": "special_purpose", "other_unrestricted_accounts": 0}
+ ]
+ }))
+ .into_response(),
+ (Method::GET, "/admin/enforcement-decisions") => {
+ Json(json!({ "decisions": mock.decisions })).into_response()
+ }
+ (Method::GET, p) if p == decision_path => Json(mock.decision.clone()).into_response(),
+ (Method::GET, "/admin/audit-logs") => Json(json!({
+ "logs": mock.audit_logs,
+ "total": mock.audit_logs.len()
+ }))
+ .into_response(),
+ (Method::PUT | Method::DELETE | Method::PATCH, p) if p.starts_with(&user_path) => {
+ Json(json!({ "user": mock.user.clone(), "skipped_ips": [] })).into_response()
+ }
+ (Method::POST, p) if p == format!("{user_path}/warnings") => {
+ Json(json!({ "decision_id": DECISION_ID })).into_response()
+ }
+ (Method::POST, p) if p == format!("{decision_path}/end") => {
+ Json(mock.decision.clone()).into_response()
+ }
+ (Method::POST, p) if p == format!("{decision_path}/notes") => Json(json!({
+ "note_id": "1",
+ "author_id": ADMIN_ID,
+ "body": "x",
+ "created_at": "2026-10-14T12:00:00.000Z"
+ }))
+ .into_response(),
+ _ => (
+ StatusCode::NOT_FOUND,
+ Json(json!({ "code": "UNKNOWN", "message": "not found" })),
+ )
+ .into_response(),
+ }
+}
+
+fn user(id: &str, username: &str) -> Value {
+ json!({
+ "id": id,
+ "username": username,
+ "discriminator": 1,
+ "avatar": null,
+ "banner": null,
+ "email": "[email protected]",
+ "email_verified": true,
+ "email_bounced": false,
+ "global_name": username,
+ "bio": null,
+ "pronouns": null,
+ "accent_color": null,
+ "date_of_birth": null,
+ "locale": "en-US",
+ "acls": [],
+ "traits": [],
+ "flags": "0",
+ "premium_flags": 0,
+ "bot": false,
+ "system": false,
+ "premium_type": null,
+ "premium_since": null,
+ "premium_until": null,
+ "premium_grace_ends_at": null,
+ "premium_lifetime_sequence": null,
+ "has_totp": false,
+ "authenticator_types": [],
+ "temp_banned_until": null,
+ "pending_deletion_at": null,
+ "pending_bulk_message_deletion_at": null,
+ "deletion_reason_code": null,
+ "deletion_public_reason": null,
+ "deletion_audit_log_reason": null,
+ "deletion_scheduled_by": null,
+ "deletion_scheduled_at": null,
+ "enforcement_decision_id": null,
+ "last_active_at": null,
+ "last_active_ip": null,
+ "last_active_ip_reverse": null,
+ "last_active_location": null
+ })
+}
+
+fn subject() -> Value {
+ user(USER_ID, "Subject")
+}
+
+fn suspended_subject() -> Value {
+ let mut subject = subject();
+ subject["temp_banned_until"] = json!(SUSPENDED_UNTIL);
+ subject["flags"] = json!(DISABLED.to_string());
+ subject["enforcement_decision_id"] = json!(DECISION_ID);
+ subject
+}
+
+fn list_item(reason_code: i32) -> Value {
+ json!({
+ "decision_id": DECISION_ID,
+ "subject_type": "user",
+ "subject_id": USER_ID,
+ "subject_name": null,
+ "recipient_user_id": USER_ID,
+ "kind": "suspension",
+ "reason_code": reason_code,
+ "source": "report",
+ "automation": "none",
+ "statement": null,
+ "rights_holder": null,
+ "ends_at": SUSPENDED_UNTIL,
+ "deletion_at": null,
+ "limit": null,
+ "profile_fields": [],
+ "removed_message_count": null,
+ "removed_all_messages": false,
+ "payment_at": null,
+ "report_ids": [REPORT_ID],
+ "decided_by": ADMIN_ID,
+ "created_at": "2026-10-14T12:00:00.000Z",
+ "status": "active",
+ "end_outcome": null,
+ "ended_at": null,
+ "ended_by": null,
+ "end_statement": null,
+ "notice_status": "sent",
+ "notice_channels": ["email"],
+ "notice_locale": "en-US",
+ "notice_text": "We suspended your account.",
+ "notice_sent_at": "2026-10-14T12:00:01.000Z",
+ "expired": false,
+ "replaced": false
+ })
+}
+
+fn full_decision() -> Value {
+ let mut decision = list_item(11);
+ decision["statement"] = json!("Stop sending these messages.");
+ decision["notes"] = json!([{
+ "note_id": "1950000000000000001",
+ "author_id": ADMIN_ID,
+ "body": "Ticket 42, three reports",
+ "created_at": "2026-10-14T12:00:00.000Z"
+ }]);
+ decision["evidence"] = json!([{
+ "message_id": MESSAGE_ID,
+ "channel_id": CHANNEL_ID,
+ "timestamp": "2026-10-13T09:00:00.000Z",
+ "content": "the offending message",
+ "attachments": [{"filename": "proof.png", "size": "1024", "content_type": "image/png"}],
+ "attachment_count": 1
+ }]);
+ decision["profile_values"] = Value::Null;
+ decision["network_blocks"] =
+ json!([{"ip": NETWORK_IP, "expires_at": "2027-01-12T12:00:00.000Z"}]);
+ decision["notice"] = json!({
+ "decision_id": DECISION_ID,
+ "kind": "suspension",
+ "permanent": false,
+ "issued_at": "Oct 14, 2026",
+ "ends_at": "Jan 1, 2099",
+ "deletion_at": null,
+ "summary": "We suspended your account until Jan 1, 2099.",
+ "effects": ["You can't sign in until then."],
+ "rule": {"title": "Harassment", "url": "https://fluxer.com/guidelines#1-harassment-threats-and-privacy"},
+ "facts": ["You sent messages that harass people."],
+ "statement": "Stop sending these messages.",
+ "how_we_decided": ["We reviewed this after a report."],
+ "appeal": {"email": "[email protected]", "deadline": "Dec 13, 2026", "account_has_email": true},
+ "redress": []
+ });
+ decision
+}
+
+fn redacted_decision() -> Value {
+ let mut decision = full_decision();
+ decision["report_ids"] = json!([]);
+ decision["evidence"][0]["content"] = Value::Null;
+ decision["evidence"][0]["attachments"] = Value::Null;
+ decision
+}
+
+fn decision_mock(reason_code: i32) -> Mock {
+ let mut mock = Mock::new(suspended_subject());
+ mock.decisions = vec![list_item(reason_code)];
+ mock.decision = full_decision();
+ mock
+}
+
+fn moderation_uri() -> String {
+ format!("/users/{USER_ID}?tab=moderation")
+}
+
+fn current_restriction(html: &str) -> &str {
+ let current = section(html, "data-current-restriction");
+ current
+ .find("Suspend account")
+ .or_else(|| current.find("Account deletion"))
+ .map_or(current, |end| &current[..end])
+}
+
+fn section<'a>(html: &'a str, marker: &str) -> &'a str {
+ let start = html
+ .find(marker)
+ .unwrap_or_else(|| panic!("missing {marker}\n{html}"));
+ &html[start..]
+}
+
+#[tokio::test]
+async fn moderation_tab_with_a_decision_shows_it_and_ends_it() {
+ let app = setup(decision_mock(11)).await;
+ let html = page(&app, &moderation_uri()).await;
+ let current = current_restriction(&html);
+ assert!(
+ current.contains("Suspension for Harassment or bullying. Until Jan 1, 2099, 12:00 AM UTC")
+ );
+ assert!(current.contains(&format!(r#"href="/decisions/{DECISION_ID}""#)));
+ assert!(current.contains(&format!(r#"action="/decisions/{DECISION_ID}?action=end""#)));
+ assert!(current.contains(r#"value="lifted""#));
+ assert!(!current.contains("data-correction-line"));
+ assert!(!html.contains("action=unban"));
+ let table = section(&html, "data-decisions-table");
+ assert!(table.contains(">Suspension</td>"));
+ assert!(table.contains(">Active</td>"));
+ assert!(html.contains("?action=suspend&amp;tab=moderation"));
+ assert!(html.contains("?action=warn&amp;tab=moderation"));
+}
+
+#[tokio::test]
+async fn ending_a_restricted_decision_shows_the_correction_line() {
+ let app = setup(decision_mock(13)).await;
+ let html = page(&app, &moderation_uri()).await;
+ let current = current_restriction(&html);
+ assert!(current.contains("data-correction-line"));
+ assert!(current.contains("If this decision was reported to an authority, file a correction."));
+}
+
+#[tokio::test]
+async fn moderation_tab_for_a_legacy_suspension_offers_the_lift_form() {
+ let mut subject = suspended_subject();
+ subject["enforcement_decision_id"] = Value::Null;
+ let mut mock = Mock::new(subject);
+ mock.audit_logs = vec![json!({
+ "log_id": "1",
+ "admin_user_id": ADMIN_ID,
+ "admin_user": {"id": ADMIN_ID, "username": "AdminUser", "discriminator": "0001", "global_name": null},
+ "action": "temp_ban",
+ "target_id": USER_ID,
+ "target_type": "user",
+ "audit_log_reason": "Old internal note",
+ "metadata": {"banned_until": SUSPENDED_UNTIL},
+ "created_at": "2026-09-01T12:00:00.000Z"
+ })];
+ let app = setup(mock).await;
+ let html = page(&app, &moderation_uri()).await;
+ let current = current_restriction(&html);
+ assert!(
+ current.contains("Banned permanently. Recorded before decisions, so it has no decision.")
+ );
+ assert!(current.contains("Old internal note"));
+ assert!(current.contains("?action=unban&amp;tab=moderation"));
+ assert!(!current.contains("?action=end"));
+ assert!(!current.contains("notify_user"));
+}
+
+#[tokio::test]
+async fn moderation_tab_without_a_restriction_offers_suspend_and_warn_with_prefills() {
+ let app = setup(Mock::new(subject())).await;
+ let html = page(
+ &app,
+ &format!(
+ "{}&report_id={REPORT_ID}&message={CHANNEL_ID}%2F{MESSAGE_ID}",
+ moderation_uri()
+ ),
+ )
+ .await;
+ let current = current_restriction(&html);
+ assert!(current.contains("No current restriction."));
+ assert!(!current.contains("<form"));
+ assert!(html.contains("No decisions."));
+ let suspend = section(&html, "?action=suspend");
+ assert!(suspend.contains(r#"name="duration_hours""#));
+ assert!(suspend.contains(r#"name="remove_evidence""#));
+ assert!(suspend.contains(&format!(">{REPORT_ID}</textarea>")));
+ assert!(suspend.contains(&format!(">{CHANNEL_ID}/{MESSAGE_ID}</textarea>")));
+ assert!(section(&html, "?action=warn").contains("Send warning"));
+}
+
+fn between<'a>(html: &'a str, start: &str, end: &str) -> &'a str {
+ let rest = section(html, start);
+ rest.find(end).map_or(rest, |index| &rest[..index])
+}
+
+#[tokio::test]
+async fn moderation_tab_offers_close_and_limit_features() {
+ let app = setup(Mock::new(subject())).await;
+ let html = page(&app, &moderation_uri()).await;
+ let close = between(&html, "?action=close", "?action=limit_features");
+ for expected in [
+ r#"value="enforcement""#,
+ r#"value="holder_request""#,
+ r#"value="housekeeping""#,
+ "A rule was broken",
+ "The account holder asked",
+ "Inactivity",
+ r#"name="days_until_deletion" value="74""#,
+ r#"data-show-for-basis="enforcement" hidden disabled"#,
+ r#"data-show-for-basis="holder_request housekeeping" hidden disabled"#,
+ r#"name="remove_evidence""#,
+ "Close account",
+ ] {
+ assert!(close.contains(expected), "missing {expected}\n{close}");
+ }
+ assert!(!close.contains(r#"<option value="13""#));
+ assert!(!close.contains("replace_pending_deletion_at"));
+ assert!(!close.contains("notify_user"));
+ let limit = between(&html, "?action=limit_features", "?action=warn");
+ for expected in [
+ r#"data-show-for-codes="3 6 8 18 21" hidden"#,
+ r#"data-show-for-codes="29" hidden"#,
+ r#"data-show-for-codes="12 14" hidden"#,
+ r#"data-show-for-limit="reports" hidden disabled"#,
+ r#"name="ends_on""#,
+ r#"<option value="29""#,
+ "Limit features",
+ ] {
+ assert!(limit.contains(expected), "missing {expected}\n{limit}");
+ }
+ assert!(!limit.contains(r#"<option value="11""#));
+}
+
+#[tokio::test]
+async fn moderation_tab_for_a_legacy_deletion_offers_the_cancel_form() {
+ let mut subject = subject();
+ subject["pending_deletion_at"] = json!("2026-12-01T00:00:00.000Z");
+ subject["deletion_reason_code"] = json!(1);
+ subject["deletion_scheduled_by"] = json!(ADMIN_ID);
+ let app = setup(Mock::new(subject)).await;
+ let html = page(&app, &moderation_uri()).await;
+ let current = current_restriction(&html);
+ assert!(
+ current.contains("Scheduled for deletion. No decision owns it, so it is cancelled here.")
+ );
+ assert!(current.contains("?action=cancel_deletion&amp;tab=moderation"));
+ assert!(current.contains("Cancel deletion"));
+ assert!(!current.contains("notify_user"));
+ let close = section(&html, "?action=close");
+ assert!(
+ close.contains(r#"name="replace_pending_deletion_at" value="2026-12-01T00:00:00.000Z""#)
+ );
+}
+
+#[tokio::test]
+async fn decisions_page_lists_the_review_queue() {
+ let mut queued = list_item(12);
+ queued["kind"] = json!("feature_limit");
+ queued["limit"] = json!("purchases");
+ queued["automation"] = json!("automated");
+ queued["source"] = json!("own_review");
+ queued["ends_at"] = Value::Null;
+ queued["decided_by"] = json!("0");
+ queued["payment_at"] = json!("2026-10-01T09:00:00.000Z");
+ let mut mock = Mock::new(subject());
+ mock.decisions = vec![queued];
+ let app = setup(mock).await;
+ let html = page(&app, "/decisions").await;
+ let queue = section(&html, "data-review-queue");
+ assert!(queue.contains(&format!(r#"href="/decisions/{DECISION_ID}""#)));
+ assert!(queue.contains(&format!(r#"href="/users/{USER_ID}?tab=moderation""#)));
+ assert!(queue.contains("Payment fraud"));
+}
+
+#[tokio::test]
+async fn decisions_page_hides_the_review_queue_without_permission() {
+ let mut mock = Mock::new(subject());
+ mock.admin_acls = vec!["user:lookup"];
+ let app = setup(mock).await;
+ let html = page(&app, "/decisions").await;
+ assert!(!html.contains("Review queue"));
+}
+
+#[tokio::test]
+async fn moderation_tab_hides_decisions_and_actions_without_their_permissions() {
+ let mut mock = decision_mock(11);
+ mock.admin_acls = vec!["user:lookup", "user:update:flags"];
+ let app = setup(mock).await;
+ let html = page(&app, &moderation_uri()).await;
+ let current = current_restriction(&html);
+ assert!(current.contains("Banned permanently") || current.contains("Suspended until"));
+ assert!(current.contains("Open the decision to see or end it."));
+ assert!(!html.contains("data-decisions-table"));
+ assert!(!html.contains("?action=suspend"));
+ assert!(html.contains("?action=warn"));
+}
+
+#[tokio::test]
+async fn overview_banner_links_the_decision_and_restriction_flags_are_read_only() {
+ let app = setup(decision_mock(11)).await;
+ let html = page(&app, &format!("/users/{USER_ID}")).await;
+ let banner = section(&html, "data-restriction-banner");
+ assert!(banner.contains(&format!(r#"href="/decisions/{DECISION_ID}""#)));
+ let disabled = format!(r#"name="flags[]" value="{DISABLED}" checked disabled"#);
+ assert!(html.contains(&disabled), "{html}");
+ assert!(html.contains("Restriction flags are read-only. Use the moderation tab."));
+}
+
+#[tokio::test]
+async fn decision_page_renders_the_full_response() {
+ let app = setup(decision_mock(11)).await;
+ let html = page(&app, &format!("/decisions/{DECISION_ID}")).await;
+ for expected in [
+ "Decision 1900000000000000001",
+ "Harassment or bullying",
+ "https://fluxer.com/guidelines#1-harassment-threats-and-privacy",
+ "Stop sending these messages.",
+ "We suspended your account.",
+ "We suspended your account until Jan 1, 2099.",
+ "the offending message",
+ "Attachment: proof.png",
+ "/messages?channel_id=1700000000000000001&amp;message_id=1700000000000000002&amp;context_limit=50",
+ "/reports/1600000000000000001",
+ "Ticket 42, three reports",
+ "?action=add_note",
+ "?action=end",
+ "Network blocks",
+ NETWORK_IP,
+ ] {
+ assert!(html.contains(expected), "missing {expected}\n{html}");
+ }
+}
+
+#[tokio::test]
+async fn an_expired_suspension_can_only_be_reversed() {
+ let mut mock = decision_mock(11);
+ for decision in [&mut mock.decision, &mut mock.decisions[0]] {
+ decision["status"] = json!("ended");
+ decision["end_outcome"] = json!("expired");
+ decision["ended_at"] = json!(SUSPENDED_UNTIL);
+ decision["ended_by"] = json!("0");
+ }
+ mock.decision["network_blocks"] = json!([]);
+ let app = setup(mock).await;
+ let html = page(&app, &format!("/decisions/{DECISION_ID}")).await;
+ assert!(html.contains(">Expired<"), "{html}");
+ assert!(html.contains("?action=end"));
+ assert!(html.contains(r#"value="reversed""#));
+ assert!(!html.contains(r#"value="lifted""#));
+ let html = page(&app, &moderation_uri()).await;
+ assert!(section(&html, "data-decisions-table").contains(">Expired</td>"));
+}
+
+#[tokio::test]
+async fn decision_page_hides_the_end_form_without_the_ip_removal_permission() {
+ let mut mock = decision_mock(11);
+ mock.admin_acls = vec!["enforcement:view", "user:temp_ban"];
+ let app = setup(mock).await;
+ let html = page(&app, &format!("/decisions/{DECISION_ID}")).await;
+ assert!(html.contains("Network blocks"));
+ assert!(!html.contains("?action=end"));
+}
+
+#[tokio::test]
+async fn suspend_card_offers_recent_networks_with_their_collateral() {
+ let app = setup(Mock::new(subject())).await;
+ let html = page(&app, &moderation_uri()).await;
+ let suspend = between(&html, "?action=suspend", "?action=close");
+ let networks = section(suspend, r#"data-show-for-duration_hours="0""#);
+ assert!(networks.contains("hidden disabled"));
+ assert!(networks.contains("Block networks this account used"));
+ assert!(networks.contains("0 other unrestricted accounts last active here"));
+ assert!(networks.contains("2 other unrestricted accounts last active here"));
+ assert!(networks.contains("Private or special-purpose range, never blocked"));
+ assert!(networks.contains(&format!(r#"value="{NETWORK_IP}" class="hidden""#)));
+ assert!(networks.contains(&format!(r#"value="{SHARED_IP}" disabled"#)));
+ assert!(networks.contains(r#"name="network_block_days" value="90""#));
+ let close = between(&html, "?action=close", "?action=limit_features");
+ assert!(close.contains("Block networks this account used"));
+}
+
+#[tokio::test]
+async fn suspend_and_close_send_the_chosen_networks() {
+ let app = setup(Mock::new(subject())).await;
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=suspend&tab=moderation"),
+ &format!(
+ "duration_hours=0&reason_code=3&source=own_review&automation=none\
+ &statement=Spam&internal_note=Ticket+7&block_networks={NETWORK_IP}&network_block_days=30"
+ ),
+ )
+ .await;
+ assert_eq!(
+ captured[0].body["block_networks"],
+ json!({"ips": [NETWORK_IP], "days": 30})
+ );
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=close&tab=moderation"),
+ &format!(
+ "basis=enforcement&days_until_deletion=74&reason_code=3&source=own_review\
+ &automation=none&statement=Spam&internal_note=Ticket+7&block_networks={NETWORK_IP}"
+ ),
+ )
+ .await;
+ assert_eq!(
+ captured.last().unwrap().body["block_networks"],
+ json!({"ips": [NETWORK_IP], "days": 90})
+ );
+}
+
+#[tokio::test]
+async fn moderation_tab_skips_networks_without_the_ip_permissions() {
+ let mut mock = Mock::new(subject());
+ mock.admin_acls = vec!["user:temp_ban", "user:delete"];
+ let app = setup(mock).await;
+ let html = page(&app, &moderation_uri()).await;
+ assert!(!html.contains("Block networks this account used"));
+}
+
+#[tokio::test]
+async fn decision_page_renders_a_redacted_response_without_staff_forms() {
+ let mut mock = decision_mock(11);
+ mock.admin_acls = vec!["enforcement:view"];
+ mock.decision = redacted_decision();
+ let app = setup(mock).await;
+ let html = page(&app, &format!("/decisions/{DECISION_ID}")).await;
+ assert!(html.contains("Content is hidden. Needs the message:lookup permission."));
+ assert!(html.contains("Attachments: 1"));
+ assert!(!html.contains("the offending message"));
+ assert!(!html.contains("/reports/1600000000000000001"));
+ assert!(!html.contains("?action=add_note"));
+ assert!(!html.contains("?action=end"));
+}
+
+#[tokio::test]
+async fn decisions_lookup_redirects_to_the_decision() {
+ let app = setup(Mock::new(subject())).await;
+ let (status, headers, _) = get(&app, &format!("/decisions?id=+{DECISION_ID}+")).await;
+ assert!(status.is_redirection());
+ assert_eq!(
+ headers
+ .get(header::LOCATION)
+ .and_then(|value| value.to_str().ok()),
+ Some(format!("/decisions/{DECISION_ID}").as_str())
+ );
+ let html = page(&app, "/decisions?id=abc").await;
+ assert!(html.contains("A decision ID is a number."));
+}
+
+#[tokio::test]
+async fn suspend_sends_the_decision_and_the_internal_note() {
+ let app = setup(Mock::new(subject())).await;
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=suspend&tab=moderation"),
+ &format!(
+ "duration_hours=0&reason_code=11&source=report&automation=flagged\
+ &report_ids={REPORT_ID}&evidence={CHANNEL_ID}%2F{MESSAGE_ID}\
+ &statement=Stop&internal_note=Ticket+42&remove_evidence=true"
+ ),
+ )
+ .await;
+ assert_eq!(captured.len(), 1);
+ assert_eq!(captured[0].route, format!("PUT /admin/users/{USER_ID}/ban"));
+ assert_eq!(captured[0].audit_log_reason.as_deref(), Some("Ticket 42"));
+ assert_eq!(
+ captured[0].body,
+ json!({
+ "duration_hours": 0,
+ "remove_evidence": true,
+ "decision": {
+ "reason_code": 11,
+ "source": "report",
+ "automation": "flagged",
+ "report_ids": [REPORT_ID],
+ "evidence": [{"channel_id": CHANNEL_ID, "message_id": MESSAGE_ID}],
+ "statement": "Stop"
+ }
+ })
+ );
+}
+
+#[tokio::test]
+async fn suspend_without_a_reason_sends_nothing() {
+ let app = setup(Mock::new(subject())).await;
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=suspend&tab=moderation"),
+ "duration_hours=24&source=report&automation=none&internal_note=x",
+ )
+ .await;
+ assert!(captured.is_empty());
+}
+
+#[tokio::test]
+async fn warn_sends_the_decision_with_the_rights_holder() {
+ let app = setup(Mock::new(subject())).await;
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=warn&tab=moderation"),
+ "reason_code=31&source=own_review&automation=none&statement=Remove+it\
+ &rights_holder=Example+Records&internal_note=DMCA+notice",
+ )
+ .await;
+ assert_eq!(captured.len(), 1);
+ assert_eq!(
+ captured[0].route,
+ format!("POST /admin/users/{USER_ID}/warnings")
+ );
+ assert_eq!(captured[0].audit_log_reason.as_deref(), Some("DMCA notice"));
+ assert_eq!(
+ captured[0].body,
+ json!({
+ "decision": {
+ "reason_code": 31,
+ "source": "own_review",
+ "automation": "none",
+ "statement": "Remove it",
+ "rights_holder": "Example Records"
+ }
+ })
+ );
+}
+
+#[tokio::test]
+async fn ending_and_annotating_a_decision_send_their_requests() {
+ let app = setup(decision_mock(11)).await;
+ let end_uri = format!("/decisions/{DECISION_ID}?action=end");
+ let captured = post(
+ &app,
+ &end_uri,
+ "outcome=reversed&statement=We+made+a+mistake&internal_note=Appeal+upheld",
+ )
+ .await;
+ assert_eq!(
+ captured[0].route,
+ format!("POST /admin/enforcement-decisions/{DECISION_ID}/end")
+ );
+ assert_eq!(
+ captured[0].audit_log_reason.as_deref(),
+ Some("Appeal upheld")
+ );
+ assert_eq!(
+ captured[0].body,
+ json!({"outcome": "reversed", "statement": "We made a mistake"})
+ );
+ let captured = post(
+ &app,
+ &format!("/decisions/{DECISION_ID}?action=add_note"),
+ "body=Appeal+received",
+ )
+ .await;
+ assert_eq!(
+ captured[1].route,
+ format!("POST /admin/enforcement-decisions/{DECISION_ID}/notes")
+ );
+ assert_eq!(captured[1].body, json!({"body": "Appeal received"}));
+ let captured = post(&app, &end_uri, "statement=x&internal_note=y").await;
+ assert_eq!(captured.len(), 2, "an end without an outcome sends nothing");
+}
+
+#[tokio::test]
+async fn saving_flags_never_touches_restriction_flags() {
+ let app = setup(Mock::new(suspended_subject())).await;
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=update_flags&tab=overview"),
+ &format!("flags[]={}&flags[]={}", 1u64 << 50, 1u64 << 6),
+ )
+ .await;
+ assert_eq!(captured.len(), 1);
+ assert_eq!(
+ captured[0].route,
+ format!("PATCH /admin/users/{USER_ID}/flags")
+ );
+ assert_eq!(
+ captured[0].body,
+ json!({"add_flags": [(1u64 << 50).to_string()]})
+ );
+}
+
+#[tokio::test]
+async fn shredder_and_delete_all_offer_a_basis_and_delete_all_refuses_restricted_reasons() {
+ let app = setup(Mock::new(subject())).await;
+ let html = page(
+ &app,
+ &format!(
+ "{}&delete_all_messages_dry_run=true&delete_all_messages_channel_count=1\
+ &delete_all_messages_message_count=2",
+ moderation_uri()
+ ),
+ )
+ .await;
+ let delete_all = between(&html, "Delete all messages", "Message shredder");
+ for expected in [
+ "2 messages in 1 channel.",
+ r#"name="dry_run" value="false""#,
+ r#"name="basis" value="enforcement""#,
+ r#"name="basis" value="holder_request""#,
+ r#"name="basis" value="housekeeping""#,
+ r#"name="evidence""#,
+ ] {
+ assert!(
+ delete_all.contains(expected),
+ "missing {expected}\n{delete_all}"
+ );
+ }
+ assert!(!delete_all.contains("Restricted: no details"));
+ let shredder = section(&html, "Message shredder");
+ assert!(shredder.contains(r#"name="basis" value="enforcement""#));
+ assert!(shredder.contains("Restricted: no details"));
+ assert!(
+ !shredder.contains(r#"name="evidence""#),
+ "the entries are the evidence"
+ );
+}
+
+#[tokio::test]
+async fn content_removal_forms_send_their_basis() {
+ let app = setup(Mock::new(subject())).await;
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=message_shred&tab=moderation"),
+ &format!(
+ "csv_data={CHANNEL_ID}%2C{MESSAGE_ID}&basis=enforcement&reason_code=3\
+ &source=own_review&automation=none&statement=Stop&internal_note=Ticket+7"
+ ),
+ )
+ .await;
+ assert_eq!(
+ captured[0].route,
+ format!("POST /admin/users/{USER_ID}/message-shreds")
+ );
+ assert_eq!(captured[0].audit_log_reason.as_deref(), Some("Ticket 7"));
+ assert_eq!(
+ captured[0].body,
+ json!({
+ "entries": [{"channel_id": CHANNEL_ID, "message_id": MESSAGE_ID}],
+ "basis": {
+ "type": "enforcement",
+ "decision": {
+ "reason_code": 3,
+ "source": "own_review",
+ "automation": "none",
+ "statement": "Stop"
+ }
+ }
+ })
+ );
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=delete_all_messages&tab=moderation"),
+ "dry_run=false&basis=housekeeping&internal_note=Cleanup",
+ )
+ .await;
+ assert_eq!(
+ captured[1].route,
+ format!("DELETE /admin/users/{USER_ID}/messages")
+ );
+ assert_eq!(captured[1].body, json!({"basis": {"type": "housekeeping"}}));
+ assert_eq!(captured[1].audit_log_reason.as_deref(), Some("Cleanup"));
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=clear_fields&tab=account"),
+ "fields[]=bio&basis=holder_request",
+ )
+ .await;
+ assert_eq!(
+ captured[2].route,
+ format!("DELETE /admin/users/{USER_ID}/profile-fields")
+ );
+ assert_eq!(
+ captured[2].body,
+ json!({"fields": ["bio"], "basis": {"type": "holder_request"}})
+ );
+ let captured = post(
+ &app,
+ &format!("/users/{USER_ID}?action=delete_all_messages&tab=moderation"),
+ "dry_run=false",
+ )
+ .await;
+ assert_eq!(
+ captured.len(),
+ 3,
+ "a deletion without a basis sends nothing"
+ );
+}
+
+#[tokio::test]
+async fn community_message_and_report_forms_send_their_basis_or_outcome() {
+ let app = setup(Mock::new(subject())).await;
+ let guild_id = "1800000000000000001";
+ let captured = post(
+ &app,
+ &format!("/guilds/{guild_id}?action=delete_guild&tab=moderation"),
+ "basis=enforcement&reason_code=26&source=report&automation=none\
+ &report_ids=1600000000000000001&internal_note=Reviewed",
+ )
+ .await;
+ assert_eq!(
+ captured[0].route,
+ format!("DELETE /admin/guilds/{guild_id}")
+ );
+ assert_eq!(captured[0].audit_log_reason.as_deref(), Some("Reviewed"));
+ assert_eq!(
+ captured[0].body,
+ json!({
+ "basis": {
+ "type": "enforcement",
+ "decision": {
+ "reason_code": 26,
+ "source": "report",
+ "automation": "none",
+ "report_ids": [REPORT_ID]
+ }
+ }
+ })
+ );
+ let captured = post(
+ &app,
+ "/messages?action=delete",
+ &format!("channel_id={CHANNEL_ID}&message_id={MESSAGE_ID}&basis=housekeeping"),
+ )
+ .await;
+ assert_eq!(
+ captured[1].route,
+ format!("DELETE /admin/channels/{CHANNEL_ID}/messages/{MESSAGE_ID}")
+ );
+ assert_eq!(captured[1].body, json!({"basis": {"type": "housekeeping"}}));
+ let captured = post(
+ &app,
+ &format!("/reports/{REPORT_ID}/resolve"),
+ "resolution=actioned&public_comment=Handled",
+ )
+ .await;
+ assert_eq!(
+ captured.len(),
+ 2,
+ "an actioned resolution without an outcome sends nothing"
+ );
+}
+
+fn test_config(api_endpoint: String) -> AdminConfig {
+ AdminConfig {
+ host: "127.0.0.1".to_owned(),
+ port: 0,
+ secret_key_base: SECRET_KEY.to_owned(),
+ base_path: String::new(),
+ api_endpoint,
+ media_endpoint: "https://media.example.test".to_owned(),
+ static_cdn_endpoint: "https://static.example.test".to_owned(),
+ reports_bucket_origin: "https://reports.example.test".to_owned(),
+ admin_endpoint: "https://admin.example.test".to_owned(),
+ web_app_endpoint: "https://app.example.test".to_owned(),
+ oauth_client_id: "admin-client".to_owned(),
+ oauth_client_secret: "admin-secret".to_owned(),
+ oauth_redirect_uri: "https://admin.example.test/callback".to_owned(),
+ build_version: "test".to_owned(),
+ self_hosted: false,
+ proxy: ProxyConfig {
+ trust_client_ip_header: false,
+ client_ip_header_name: "x-forwarded-for".to_owned(),
+ },
+ }
+}
diff --git a/fluxer_admin/tests/notification_writes.rs b/fluxer_admin/tests/notification_writes.rs
index 4f51e4228..40201a81f 100644
--- a/fluxer_admin/tests/notification_writes.rs
+++ b/fluxer_admin/tests/notification_writes.rs
@@ -43,87 +43,119 @@ async fn submit(uri: &str, fields: &str) -> CapturedRequest {
}
#[tokio::test]
-async fn temp_ban_sends_notify_user_from_the_checkbox() {
- let uri = format!("/users/{USER_ID}?action=temp_ban&tab=moderation");
- let checked = submit(
- &uri,
- "duration=24&reason=Spam&notify_user_present=1&notify_user=true",
- )
- .await;
- assert_eq!(checked.route, format!("PUT /admin/users/{USER_ID}/ban"));
- assert_eq!(checked.body["notify_user"], json!(true));
- let unchecked = submit(&uri, "duration=24&reason=Spam&notify_user_present=1").await;
- assert_eq!(unchecked.body["notify_user"], json!(false));
- let stale_form = submit(&uri, "duration=24&reason=Spam").await;
- assert_eq!(stale_form.body["notify_user"], json!(true));
+async fn unban_sends_the_internal_note_as_a_header_and_no_body() {
+ let uri = format!("/users/{USER_ID}?action=unban&tab=moderation");
+ let captured = submit(&uri, "internal_note=Private%20staff%20note").await;
+ assert_eq!(captured.route, format!("DELETE /admin/users/{USER_ID}/ban"));
+ assert_eq!(
+ captured.audit_log_reason.as_deref(),
+ Some("Private staff note")
+ );
+ assert!(!captured.body.to_string().contains("Private staff note"));
}
+const DECISION_FIELDS: &str = "reason_code=3&source=own_review&automation=none&statement=You%20sent%20the%20same%20link%20to%20many%20people.";
+
#[tokio::test]
-async fn unban_sends_the_public_reason_in_the_body_and_the_private_reason_as_a_header() {
- let uri = format!("/users/{USER_ID}?action=unban&tab=moderation");
- let checked = submit(
+async fn close_sends_the_basis_and_never_a_notify_flag() {
+ let uri = format!("/users/{USER_ID}?action=close&tab=moderation");
+ let holder = submit(
&uri,
- "public_reason=Appeal%20accepted&private_reason=Private%20staff%20note&notify_user_present=1&notify_user=true",
+ "basis=holder_request&days_until_deletion=30&internal_note=Asked%20by%20email",
)
.await;
- assert_eq!(checked.route, format!("DELETE /admin/users/{USER_ID}/ban"));
- assert_eq!(checked.body["notify_user"], json!(true));
- assert_eq!(checked.body["public_reason"], json!("Appeal accepted"));
+ assert_eq!(holder.route, format!("PUT /admin/users/{USER_ID}/deletion"));
assert_eq!(
- checked.audit_log_reason.as_deref(),
- Some("Private staff note")
+ holder.body,
+ json!({"basis": {"type": "holder_request"}, "days_until_deletion": 30})
);
- assert!(!checked.body.to_string().contains("Private staff note"));
- let unchecked = submit(
+ assert_eq!(holder.audit_log_reason.as_deref(), Some("Asked by email"));
+ let enforcement = submit(
&uri,
- "private_reason=Private%20staff%20note&notify_user_present=1",
+ &format!(
+ "basis=enforcement&days_until_deletion=74&{DECISION_FIELDS}&internal_note=Spam%20review&remove_evidence=true"
+ ),
)
.await;
- assert_eq!(unchecked.body["notify_user"], json!(false));
- assert!(!unchecked.body.to_string().contains("Private staff note"));
- let stale_form = submit(&uri, "").await;
- assert_eq!(stale_form.body["notify_user"], json!(true));
+ assert_eq!(enforcement.body["basis"]["type"], json!("enforcement"));
+ assert_eq!(
+ enforcement.body["basis"]["decision"]["reason_code"],
+ json!(3)
+ );
+ assert_eq!(enforcement.body["remove_evidence"], json!(true));
+ assert_eq!(enforcement.audit_log_reason.as_deref(), Some("Spam review"));
+ assert!(enforcement.body.get("notify_user").is_none());
}
#[tokio::test]
-async fn schedule_deletion_sends_notify_user_from_the_checkbox() {
- let uri = format!("/users/{USER_ID}?action=schedule_deletion&tab=moderation");
- let checked = submit(
+async fn cancel_deletion_sends_only_the_pending_deletion() {
+ let uri = format!("/users/{USER_ID}?action=cancel_deletion&tab=moderation");
+ let captured = submit(
&uri,
- "reason_code=3&days_until_deletion=60&notify_user_present=1&notify_user=true",
+ "expected_pending_deletion_at=2026-12-01T00%3A00%3A00.000Z&confirm=true&internal_note=Asked%20to%20keep%20it",
)
.await;
assert_eq!(
- checked.route,
- format!("PUT /admin/users/{USER_ID}/deletion")
+ captured.route,
+ format!("DELETE /admin/users/{USER_ID}/deletion")
);
- assert_eq!(checked.body["notify_user"], json!(true));
- let unchecked = submit(
+ assert_eq!(
+ captured.body,
+ json!({"expected_pending_deletion_at": "2026-12-01T00:00:00.000Z"})
+ );
+ assert_eq!(
+ captured.audit_log_reason.as_deref(),
+ Some("Asked to keep it")
+ );
+}
+
+#[tokio::test]
+async fn limit_features_sends_one_limit_with_its_end() {
+ let uri = format!("/users/{USER_ID}?action=limit_features&tab=moderation");
+ let captured = submit(
+ &uri,
+ "limit=reports&ends_on=2026-12-01&reason_code=29&source=own_review&automation=none&statement=False%20reports&internal_note=Report%20review",
+ )
+ .await;
+ assert_eq!(
+ captured.route,
+ format!("PUT /admin/users/{USER_ID}/feature-limits")
+ );
+ assert_eq!(captured.body["limit"], json!("reports"));
+ assert_eq!(captured.body["ends_at"], json!("2026-12-01T00:00:00Z"));
+ assert_eq!(captured.body["decision"]["reason_code"], json!(29));
+ let purchases = submit(
&uri,
- "reason_code=3&days_until_deletion=60&notify_user_present=1",
+ "limit=purchases&ends_on=2026-12-01&reason_code=14&source=own_review&automation=none&statement=Disputes&internal_note=Billing",
)
.await;
- assert_eq!(unchecked.body["notify_user"], json!(false));
- let stale_form = submit(&uri, "reason_code=3&days_until_deletion=60").await;
- assert_eq!(stale_form.body["notify_user"], json!(true));
+ assert!(purchases.body.get("ends_at").is_none());
}
#[tokio::test]
-async fn bulk_schedule_deletion_sends_notify_user_from_the_checkbox() {
- let uri = "/bulk-actions?action=bulk-schedule-user-deletion";
- let fields = format!("user_ids={USER_ID}&reason_code=3&days_until_deletion=60");
- let checked = submit(
- uri,
- &format!("{fields}&notify_user_present=1&notify_user=true"),
+async fn bulk_close_sends_one_bulk_decision() {
+ let captured = submit(
+ "/bulk-actions?action=bulk-schedule-user-deletion",
+ &format!(
+ "user_ids={USER_ID}&basis=enforcement&days_until_deletion=74&reason_code=3&automation=none&statement=Same%20invite%20link&internal_note=Spam%20sweep"
+ ),
)
.await;
- assert_eq!(checked.route, "POST /admin/bulk-jobs");
- assert_eq!(checked.body["task"], json!("schedule_user_deletion"));
- assert_eq!(checked.body["notify_user"], json!(true));
- let unchecked = submit(uri, &format!("{fields}&notify_user_present=1")).await;
- assert_eq!(unchecked.body["notify_user"], json!(false));
- let stale_form = submit(uri, &fields).await;
- assert_eq!(stale_form.body["notify_user"], json!(true));
+ assert_eq!(captured.route, "POST /admin/bulk-jobs");
+ assert_eq!(captured.body["task"], json!("schedule_user_deletion"));
+ assert_eq!(
+ captured.body["basis"],
+ json!({
+ "type": "enforcement",
+ "decision": {
+ "reason_code": 3,
+ "source": "own_review",
+ "automation": "none",
+ "statement": "Same invite link"
+ }
+ })
+ );
+ assert_eq!(captured.audit_log_reason.as_deref(), Some("Spam sweep"));
}
#[tokio::test]
@@ -131,12 +163,13 @@ async fn report_resolve_sends_notify_reporter_from_the_checkbox() {
let uri = format!("/reports/{REPORT_ID}/resolve");
let checked = submit(
&uri,
- "resolution=actioned&public_comment=Handled&notify_reporter_present=1&notify_reporter=true",
+ "resolution=actioned&outcome=removed&public_comment=Handled&notify_reporter_present=1&notify_reporter=true",
)
.await;
assert_eq!(checked.route, format!("PATCH /admin/reports/{REPORT_ID}"));
assert_eq!(checked.body["public_comment"], json!("Handled"));
assert_eq!(checked.body["resolution"], json!("actioned"));
+ assert_eq!(checked.body["outcome"], json!("removed"));
assert_eq!(checked.body["notify_reporter"], json!(true));
let unchecked = submit(
&uri,
@@ -144,8 +177,17 @@ async fn report_resolve_sends_notify_reporter_from_the_checkbox() {
)
.await;
assert_eq!(unchecked.body["notify_reporter"], json!(false));
- let stale_form = submit(&uri, "resolution=duplicate&public_comment=Handled").await;
- assert_eq!(stale_form.body["notify_reporter"], json!(true));
+ assert_eq!(unchecked.body["outcome"], json!("no_violation"));
+ let duplicate = submit(
+ &uri,
+ "resolution=duplicate&outcome=restricted&duplicate_of=1400000000000000001&public_comment=Handled",
+ )
+ .await;
+ assert_eq!(duplicate.body["notify_reporter"], json!(true));
+ assert!(duplicate.body.get("outcome").is_none());
+ assert_eq!(duplicate.body["duplicate_of"], json!("1400000000000000001"));
+ let other_action = submit(&uri, "resolution=actioned&outcome=action_taken").await;
+ assert_eq!(other_action.body["outcome"], json!("action_taken"));
}
struct TestApp {
diff --git a/fluxer_api/pkgs/email/src/EmailProviderTypes.ts b/fluxer_api/pkgs/email/src/EmailProviderTypes.ts
index cd7b75877..fe8e1079a 100644
--- a/fluxer_api/pkgs/email/src/EmailProviderTypes.ts
+++ b/fluxer_api/pkgs/email/src/EmailProviderTypes.ts
@@ -6,8 +6,6 @@ export interface EmailConfig {
fromName: string;
replyTo?: string | null;
appBaseUrl: string;
- termsUrl: string | null;
- guidelinesUrl: string | null;
appealsEmail: string | null;
safetyEmail: string | null;
supportEmail: string | null;
diff --git a/fluxer_api/pkgs/email/src/EmailService.ts b/fluxer_api/pkgs/email/src/EmailService.ts
index 116de4b85..a774b8fbb 100644
--- a/fluxer_api/pkgs/email/src/EmailService.ts
+++ b/fluxer_api/pkgs/email/src/EmailService.ts
@@ -4,8 +4,8 @@ import {createLogger} from '@fluxer/logger/src/Logger';
import type {EmailConfig, IEmailProvider, UserBouncedEmailChecker} from '@pkgs/email/src/EmailProviderTypes';
import {getEmailTemplate} from '@pkgs/email/src/email_i18n/EmailI18n';
import type {
- EmailLegalLinks,
EmailTemplateVariables,
+ ReporterOutcome,
ReportReceivedTargetKind,
} from '@pkgs/email/src/email_i18n/EmailI18nTypes';
import type {EmailTemplateKey} from '@pkgs/email/src/email_i18n/EmailI18nTypes.generated';
@@ -21,20 +21,6 @@ function formatMinorUnitAmount(amountMinor: number, currency: string, locale: st
return formatter.format(amountMinor / 10 ** fractionDigits);
}
-function optionalReason(reason: string | null): string | null {
- return reason?.trim() || null;
-}
-
-function legalLinkVariables(config: EmailConfig): {
- termsUrl: string | null;
- guidelinesUrl: string | null;
- legalLinks: EmailLegalLinks;
-} {
- const {termsUrl, guidelinesUrl} = config;
- const legalLinks = termsUrl ? (guidelinesUrl ? 'both' : 'terms') : guidelinesUrl ? 'guidelines' : 'none';
- return {termsUrl, guidelinesUrl, legalLinks};
-}
-
export class EmailService implements IEmailService {
private readonly config: EmailConfig;
private readonly provider: IEmailProvider | null;
@@ -90,40 +76,6 @@ export class EmailService implements IEmailService {
});
}
- async sendAccountTempBannedEmail(
- email: string,
- username: string,
- reason: string | null,
- durationHours: number,
- bannedUntil: Date,
- locale: string | null = null,
- ): Promise<boolean> {
- return this.sendTemplatedEmail(email, 'account_temp_banned', locale, {
- username,
- reason: optionalReason(reason),
- durationHours,
- bannedUntil,
- ...legalLinkVariables(this.config),
- appeals_email: this.config.appealsEmail,
- });
- }
-
- async sendAccountScheduledForDeletionEmail(
- email: string,
- username: string,
- reason: string | null,
- deletionDate: Date,
- locale: string | null = null,
- ): Promise<boolean> {
- return this.sendTemplatedEmail(email, 'account_scheduled_deletion', locale, {
- username,
- reason: optionalReason(reason),
- deletionDate,
- ...legalLinkVariables(this.config),
- appeals_email: this.config.appealsEmail,
- });
- }
-
async sendSelfDeletionScheduledEmail(
email: string,
username: string,
@@ -136,14 +88,12 @@ export class EmailService implements IEmailService {
async sendAccountDeletionRequestedEmail(
email: string,
username: string,
- reason: string | null,
- deletionDate: Date,
+ deletionDate: string,
locale: string | null = null,
): Promise<boolean> {
return this.sendTemplatedEmail(email, 'account_deletion_scheduled_requested', locale, {
username,
- reason: optionalReason(reason),
- deletionDate,
+ deletion_date: deletionDate,
safety_email: this.config.safetyEmail,
});
}
@@ -151,15 +101,13 @@ export class EmailService implements IEmailService {
async sendAccountDeletionInactivityEmail(
email: string,
username: string,
- reason: string | null,
- deletionDate: Date,
+ deletionDate: string,
locale: string | null = null,
): Promise<boolean> {
return this.sendTemplatedEmail(email, 'account_deletion_scheduled_inactivity', locale, {
username,
- reason: optionalReason(reason),
- deletionDate,
- safety_email: this.config.safetyEmail,
+ deletion_date: deletionDate,
+ support_email: this.config.supportEmail,
});
}
@@ -174,28 +122,20 @@ export class EmailService implements IEmailService {
});
}
- async sendUnbanNotification(
+ async sendEnforcementNoticeEmail(
email: string,
- username: string,
- reason: string | null,
+ variables: EmailTemplateVariables['enforcement_notice'],
locale: string | null = null,
): Promise<boolean> {
- return this.sendTemplatedEmail(email, 'unban_notification', locale, {username, reason: optionalReason(reason)});
+ return this.sendTemplatedEmail(email, 'enforcement_notice', locale, variables);
}
- async sendScheduledDeletionNotification(
+ async sendEnforcementEndedEmail(
email: string,
- username: string,
- deletionDate: Date,
- reason: string | null,
+ variables: EmailTemplateVariables['enforcement_ended'],
locale: string | null = null,
): Promise<boolean> {
- return this.sendTemplatedEmail(email, 'scheduled_deletion_notification', locale, {
- username,
- deletionDate,
- reason: optionalReason(reason),
- appeals_email: this.config.appealsEmail,
- });
+ return this.sendTemplatedEmail(email, 'enforcement_ended', locale, variables);
}
async sendInactivityWarningEmail(
@@ -250,6 +190,7 @@ export class EmailService implements IEmailService {
username: string,
reportId: string,
publicComment: string,
+ outcome: ReporterOutcome,
locale: string | null = null,
): Promise<boolean> {
return this.sendTemplatedEmail(email, 'report_resolved', locale, {
@@ -257,7 +198,8 @@ export class EmailService implements IEmailService {
reportId,
publicComment,
hasComment: publicComment ? 'yes' : 'no',
- safety_email: this.config.safetyEmail,
+ outcome,
+ appeals_email: this.config.appealsEmail,
});
}
@@ -265,12 +207,14 @@ export class EmailService implements IEmailService {
email: string,
reportId: string,
publicComment: string,
+ outcome: ReporterOutcome,
locale: string | null = null,
): Promise<boolean> {
return this.sendTemplatedEmail(email, 'dsa_report_resolved', locale, {
reportId,
publicComment,
hasComment: publicComment ? 'yes' : 'no',
+ outcome,
appeals_email: this.config.appealsEmail,
});
}
diff --git a/fluxer_api/pkgs/email/src/IEmailService.ts b/fluxer_api/pkgs/email/src/IEmailService.ts
index 505c7a2f8..efe9a56df 100644
--- a/fluxer_api/pkgs/email/src/IEmailService.ts
+++ b/fluxer_api/pkgs/email/src/IEmailService.ts
@@ -1,6 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-import type {ReportReceivedTargetKind} from '@pkgs/email/src/email_i18n/EmailI18nTypes';
+import type {
+ EmailTemplateVariables,
+ ReporterOutcome,
+ ReportReceivedTargetKind,
+} from '@pkgs/email/src/email_i18n/EmailI18nTypes';
export interface IEmailService {
sendPasswordResetEmail(email: string, username: string, resetToken: string, locale?: string | null): Promise<boolean>;
@@ -18,21 +22,6 @@ export interface IEmailService {
location: string,
locale?: string | null,
): Promise<boolean>;
- sendAccountTempBannedEmail(
- email: string,
- username: string,
- reason: string | null,
- durationHours: number,
- bannedUntil: Date,
- locale?: string | null,
- ): Promise<boolean>;
- sendAccountScheduledForDeletionEmail(
- email: string,
- username: string,
- reason: string | null,
- deletionDate: Date,
- locale?: string | null,
- ): Promise<boolean>;
sendSelfDeletionScheduledEmail(
email: string,
username: string,
@@ -42,29 +31,24 @@ export interface IEmailService {
sendAccountDeletionRequestedEmail(
email: string,
username: string,
- reason: string | null,
- deletionDate: Date,
+ deletionDate: string,
locale?: string | null,
): Promise<boolean>;
sendAccountDeletionInactivityEmail(
email: string,
username: string,
- reason: string | null,
- deletionDate: Date,
+ deletionDate: string,
locale?: string | null,
): Promise<boolean>;
sendAccountDeletionCancelledEmail(email: string, username: string, locale?: string | null): Promise<boolean>;
- sendUnbanNotification(
+ sendEnforcementNoticeEmail(
email: string,
- username: string,
- reason: string | null,
+ variables: EmailTemplateVariables['enforcement_notice'],
locale?: string | null,
): Promise<boolean>;
- sendScheduledDeletionNotification(
+ sendEnforcementEndedEmail(
email: string,
- username: string,
- deletionDate: Date,
- reason: string | null,
+ variables: EmailTemplateVariables['enforcement_ended'],
locale?: string | null,
): Promise<boolean>;
sendInactivityWarningEmail(
@@ -89,12 +73,14 @@ export interface IEmailService {
username: string,
reportId: string,
publicComment: string,
+ outcome: ReporterOutcome,
locale?: string | null,
): Promise<boolean>;
sendDsaReportResolvedEmail(
email: string,
reportId: string,
publicComment: string,
+ outcome: ReporterOutcome,
locale?: string | null,
): Promise<boolean>;
sendReportReceivedEmail(
diff --git a/fluxer_api/pkgs/email/src/TestEmailService.ts b/fluxer_api/pkgs/email/src/TestEmailService.ts
index ed8da6731..fe0c1fab7 100644
--- a/fluxer_api/pkgs/email/src/TestEmailService.ts
+++ b/fluxer_api/pkgs/email/src/TestEmailService.ts
@@ -1,6 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-import type {ReportReceivedTargetKind} from '@pkgs/email/src/email_i18n/EmailI18nTypes';
+import type {
+ EmailTemplateVariables,
+ ReporterOutcome,
+ ReportReceivedTargetKind,
+} from '@pkgs/email/src/email_i18n/EmailI18nTypes';
import type {IEmailService} from '@pkgs/email/src/IEmailService';
export interface SentEmailRecord {
@@ -10,6 +14,10 @@ export interface SentEmailRecord {
metadata: Record<string, string>;
}
+function stringMetadata(variables: Record<string, string | null>): Record<string, string> {
+ return Object.fromEntries(Object.entries(variables).map(([key, value]) => [key, value ?? '']));
+}
+
export class TestEmailService implements IEmailService {
private readonly sentEmails: Array<SentEmailRecord> = [];
@@ -50,34 +58,6 @@ export class TestEmailService implements IEmailService {
return this.record(email, 'ip_authorization', {token: authorizationToken, ip: ipAddress, location});
}
- async sendAccountTempBannedEmail(
- email: string,
- _username: string,
- reason: string | null,
- durationHours: number,
- bannedUntil: Date,
- _locale?: string | null,
- ): Promise<boolean> {
- return this.record(email, 'account_temp_banned', {
- reason: reason ?? '',
- duration_hours: durationHours.toString(10),
- banned_until: bannedUntil.toISOString(),
- });
- }
-
- async sendAccountScheduledForDeletionEmail(
- email: string,
- _username: string,
- reason: string | null,
- deletionDate: Date,
- _locale?: string | null,
- ): Promise<boolean> {
- return this.record(email, 'account_scheduled_deletion', {
- reason: reason ?? '',
- deletion_date: deletionDate.toISOString(),
- });
- }
-
async sendSelfDeletionScheduledEmail(
email: string,
_username: string,
@@ -90,53 +70,39 @@ export class TestEmailService implements IEmailService {
async sendAccountDeletionRequestedEmail(
email: string,
_username: string,
- reason: string | null,
- deletionDate: Date,
+ deletionDate: string,
_locale?: string | null,
): Promise<boolean> {
- return this.record(email, 'account_deletion_scheduled_requested', {
- reason: reason ?? '',
- deletion_date: deletionDate.toISOString(),
- });
+ return this.record(email, 'account_deletion_scheduled_requested', {deletion_date: deletionDate});
}
async sendAccountDeletionInactivityEmail(
email: string,
_username: string,
- reason: string | null,
- deletionDate: Date,
+ deletionDate: string,
_locale?: string | null,
): Promise<boolean> {
- return this.record(email, 'account_deletion_scheduled_inactivity', {
- reason: reason ?? '',
- deletion_date: deletionDate.toISOString(),
- });
+ return this.record(email, 'account_deletion_scheduled_inactivity', {deletion_date: deletionDate});
}
async sendAccountDeletionCancelledEmail(email: string, _username: string, _locale?: string | null): Promise<boolean> {
return this.record(email, 'account_deletion_cancelled');
}
- async sendUnbanNotification(
+ async sendEnforcementNoticeEmail(
email: string,
- _username: string,
- reason: string | null,
+ variables: EmailTemplateVariables['enforcement_notice'],
_locale?: string | null,
): Promise<boolean> {
- return this.record(email, 'unban_notification', {reason: reason ?? ''});
+ return this.record(email, 'enforcement_notice', stringMetadata(variables));
}
- async sendScheduledDeletionNotification(
+ async sendEnforcementEndedEmail(
email: string,
- _username: string,
- deletionDate: Date,
- reason: string | null,
+ variables: EmailTemplateVariables['enforcement_ended'],
_locale?: string | null,
): Promise<boolean> {
- return this.record(email, 'scheduled_deletion_notification', {
- deletion_date: deletionDate.toISOString(),
- reason: reason ?? '',
- });
+ return this.record(email, 'enforcement_ended', stringMetadata(variables));
}
async sendInactivityWarningEmail(
@@ -178,18 +144,20 @@ export class TestEmailService implements IEmailService {
_username: string,
reportId: string,
publicComment: string,
+ outcome: ReporterOutcome,
_locale?: string | null,
): Promise<boolean> {
- return this.record(email, 'report_resolved', {report_id: reportId, public_comment: publicComment});
+ return this.record(email, 'report_resolved', {report_id: reportId, public_comment: publicComment, outcome});
}
async sendDsaReportResolvedEmail(
email: string,
reportId: string,
publicComment: string,
+ outcome: ReporterOutcome,
_locale?: string | null,
): Promise<boolean> {
- return this.record(email, 'dsa_report_resolved', {report_id: reportId, public_comment: publicComment});
+ return this.record(email, 'dsa_report_resolved', {report_id: reportId, public_comment: publicComment, outcome});
}
async sendReportReceivedEmail(
diff --git a/fluxer_api/pkgs/email/src/email_i18n/EmailI18n.ts b/fluxer_api/pkgs/email/src/email_i18n/EmailI18n.ts
index 523bef2b8..c979a9435 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/EmailI18n.ts
+++ b/fluxer_api/pkgs/email/src/email_i18n/EmailI18n.ts
@@ -10,6 +10,7 @@ import type {EmailTemplateVariables} from '@pkgs/email/src/email_i18n/EmailI18nT
import type {EmailTemplate, EmailTemplateKey} from '@pkgs/email/src/email_i18n/EmailI18nTypes.generated';
const DEFAULT_LOCALE = 'en-US';
+const DOUBLED_PERIOD = /(?<!\.)\.\.(?!\.)/g;
function formatEmailDate(value: unknown, locale: string, style: string | null): string {
const options: Intl.DateTimeFormatOptions = {timeZone: 'UTC', day: 'numeric', month: 'short', year: 'numeric'};
@@ -57,8 +58,8 @@ const emailI18n = createStaticI18n<EmailTemplateKey, EmailTemplate, Record<strin
messageFormatOptions: {customFormatters: {date: formatEmailDate, time: formatEmailTime}},
},
(template, variables, mf) => {
- const compiledSubject = String(compileMessage(mf, template.subject)(variables));
- const compiledBody = String(compileMessage(mf, template.body)(variables));
+ const compiledSubject = String(compileMessage(mf, template.subject)(variables)).replace(DOUBLED_PERIOD, '.');
+ const compiledBody = String(compileMessage(mf, template.body)(variables)).replace(DOUBLED_PERIOD, '.');
return {subject: compiledSubject, body: compiledBody};
},
);
diff --git a/fluxer_api/pkgs/email/src/email_i18n/EmailI18nLocaleFiles.test.ts b/fluxer_api/pkgs/email/src/email_i18n/EmailI18nLocaleFiles.test.ts
index db4845535..d29144fd8 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/EmailI18nLocaleFiles.test.ts
+++ b/fluxer_api/pkgs/email/src/email_i18n/EmailI18nLocaleFiles.test.ts
@@ -14,44 +14,53 @@ const FIXTURE: {[K in EmailTemplateKey]: EmailTemplateVariables[K]} = {
account_deletion_cancelled: {username: 'testuser', safety_email: '[email protected]'},
account_deletion_scheduled_inactivity: {
username: 'testuser',
- reason: 'Inactive',
- deletionDate: DATE,
- safety_email: '[email protected]',
+ deletion_date: 'Dec 1, 2026',
+ support_email: '[email protected]',
},
account_deletion_scheduled_requested: {
username: 'testuser',
- reason: 'Requested',
- deletionDate: DATE,
+ deletion_date: 'Dec 14, 2026',
safety_email: '[email protected]',
},
- account_scheduled_deletion: {
- username: 'testuser',
- reason: 'Spam',
- deletionDate: DATE,
- termsUrl: 'https://example.com/terms',
- guidelinesUrl: 'https://example.com/guidelines',
- legalLinks: 'both',
- appeals_email: '[email protected]',
- },
- account_temp_banned: {
- username: 'testuser',
- reason: 'Spam',
- durationHours: 24,
- bannedUntil: DATE,
- termsUrl: 'https://example.com/terms',
- guidelinesUrl: 'https://example.com/guidelines',
- legalLinks: 'both',
- appeals_email: '[email protected]',
- },
donation_confirmation: {amount: '$5.00', currency: 'USD', interval: 'month', manageUrl: 'https://example.com/m'},
donation_magic_link: {manageUrl: 'https://example.com/m', expiresAt: DATE},
- dsa_report_resolved: {reportId: '1', publicComment: 'Thanks', hasComment: 'yes', appeals_email: '[email protected]'},
+ dsa_report_resolved: {
+ reportId: '1',
+ publicComment: 'Thanks',
+ hasComment: 'yes',
+ outcome: 'removed',
+ appeals_email: '[email protected]',
+ },
dsa_report_verification: {code: '123456', expiresAt: DATE},
email_change_new: {username: 'testuser', code: '123456', expiresAt: DATE},
email_change_original: {username: 'testuser', code: '123456', expiresAt: DATE},
email_change_revert: {username: 'testuser', newEmail: '[email protected]', revertUrl: 'https://example.com/r'},
email_verification: {username: 'testuser', verifyUrl: 'https://example.com/verify'},
gift_chargeback_notification: {username: 'testuser', support_email: '[email protected]'},
+ enforcement_ended: {
+ username: 'testuser',
+ outcome: 'reversed',
+ decision_id: '123',
+ restores_access: 'yes',
+ statement: 'We checked again',
+ content_removed: 'no',
+ },
+ enforcement_notice: {
+ username: 'testuser',
+ kind_label: 'suspension',
+ neutral: 'no',
+ summary: 'We suspended your account.',
+ effects: 'You cannot sign in.',
+ rule_title: 'Spam',
+ rule_url: 'https://example.com/guidelines',
+ facts: 'We found spam.',
+ statement: null,
+ how_we_decided: 'A person decided.',
+ appeals_email: '[email protected]',
+ appeal_deadline: 'Dec 1, 2026',
+ redress: null,
+ decision_id: '123',
+ },
harvest_completed: {
username: 'testuser',
downloadUrl: 'https://example.com/d',
@@ -82,16 +91,10 @@ const FIXTURE: {[K in EmailTemplateKey]: EmailTemplateVariables[K]} = {
reportId: '1',
publicComment: 'Thanks',
hasComment: 'yes',
- safety_email: '[email protected]',
- },
- scheduled_deletion_notification: {
- username: 'testuser',
- deletionDate: DATE,
- reason: 'Payment fraud',
+ outcome: 'restricted',
appeals_email: '[email protected]',
},
self_deletion_scheduled: {username: 'testuser', deletionDate: DATE},
- unban_notification: {username: 'testuser', reason: 'Appeal accepted'},
};
describe('EmailI18n locale files', () => {
@@ -111,6 +114,16 @@ describe('EmailI18n locale files', () => {
);
}
});
+ it.each(['en-US', ...LOCALES])('%s gives every reporter outcome its own wording', (locale) => {
+ for (const key of ['report_resolved', 'dsa_report_resolved'] as const) {
+ const bodies = (['removed', 'restricted', 'action_taken', 'no_violation'] as const).map((outcome) => {
+ const result = getEmailTemplate(key, locale, {...FIXTURE[key], outcome}, 'Fluxer');
+ return result.ok ? result.value.body : null;
+ });
+ expect(bodies, key).not.toContain(null);
+ expect(new Set(bodies).size, key).toBe(bodies.length);
+ }
+ });
it.each(['en-US', ...LOCALES])('%s renders every template with UTC times', (locale) => {
for (const key of TEMPLATE_KEYS) {
const result = getEmailTemplate(key, locale, FIXTURE[key], 'Fluxer');
diff --git a/fluxer_api/pkgs/email/src/email_i18n/EmailI18nMessages.ts b/fluxer_api/pkgs/email/src/email_i18n/EmailI18nMessages.ts
index 080807a42..d7ff779fd 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/EmailI18nMessages.ts
+++ b/fluxer_api/pkgs/email/src/email_i18n/EmailI18nMessages.ts
@@ -7,19 +7,11 @@ export const EMAIL_I18N_MESSAGES = {
},
account_deletion_scheduled_inactivity: {
subject: 'Your {product_name} account will be deleted due to inactivity',
- body: 'Hello {username},\n\nYour {product_name} account has been inactive for a long time, so it is scheduled for permanent deletion on:\n\n{deletionDate, date, full} at {deletionDate, time, short}{reason, select, null {} other {\n\nReason: {reason}}}\n\n{safety_email, select, null {If you want to keep your account, contact the administrators of this instance before that date.} other {If you want to keep your account, contact {safety_email} from this email address before that date.}}\n\n– {product_name} Team',
+ body: 'Hello {username},\n\nYour {product_name} account has been inactive for a long time, so we scheduled it for deletion on {deletion_date}.\n\nTo keep your account, sign in before that date. {support_email, select, null {If you have questions, contact the administrators of this instance.} other {If you have questions, contact {support_email}.}}\n\nThe {product_name} team',
},
account_deletion_scheduled_requested: {
subject: 'Your {product_name} account deletion is scheduled',
- body: "Hello {username},\n\nAs you requested, your {product_name} account is scheduled for permanent deletion on:\n\n{deletionDate, date, full} at {deletionDate, time, short}{reason, select, null {} other {\n\nReason: {reason}}}\n\nYour account is locked until then. {safety_email, select, null {If you didn't request this, or you want to keep your account, contact the administrators of this instance before that date.} other {If you didn't request this, or you want to keep your account, contact {safety_email} from this email address before that date.}}\n\n– {product_name} Team",
- },
- account_scheduled_deletion: {
- subject: 'Your {product_name} account will be permanently deleted',
- body: 'Hello {username},\n\nYour {product_name} account has been scheduled for permanent deletion due to violations of our Terms of Service or Community Guidelines.\n\nScheduled deletion: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}This is a serious enforcement action. Your account data will be permanently deleted on the scheduled date.\n\n{legalLinks, select,\n both {Please review:\n- Terms of Service: {termsUrl}\n- Community Guidelines: {guidelinesUrl}\n\n}\n terms {Please review:\n- Terms of Service: {termsUrl}\n\n}\n guidelines {Please review:\n- Community Guidelines: {guidelinesUrl}\n\n}\n other {}\n}Appeals process:\nIf you believe this enforcement decision was incorrect or unjustified, you have 60 days to submit an appeal. {appeals_email, select, null {Contact the administrators of this instance.} other {Email {appeals_email} from this email address.}}\n\nIn your appeal:\n- Clearly explain why you believe the enforcement decision was incorrect or unjustified\n- Provide any relevant evidence or context\n\nA member of the {product_name} Safety Team will review your appeal and may pause the pending deletion until a final decision has been reached.\n\n– {product_name} Safety Team',
- },
- account_temp_banned: {
- subject: 'Your {product_name} account has been temporarily suspended',
- body: "Hello {username},\n\nYour {product_name} account has been temporarily suspended for violating our Terms of Service or Community Guidelines.\n\nDuration: {durationHours, plural,\n =1 {1 hour}\n other {# hours}\n}\nSuspended until: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}During this time, you won't be able to access your account.\n\n{legalLinks, select,\n both {Please review:\n- Terms of Service: {termsUrl}\n- Community Guidelines: {guidelinesUrl}\n\n}\n terms {Please review:\n- Terms of Service: {termsUrl}\n\n}\n guidelines {Please review:\n- Community Guidelines: {guidelinesUrl}\n\n}\n other {}\n}If you believe this enforcement decision was incorrect or unjustified, you can submit an appeal. {appeals_email, select, null {Contact the administrators of this instance and clearly explain why you believe the decision was incorrect.} other {Email {appeals_email} from this email address and clearly explain why you believe the decision was incorrect.}} We'll review your appeal and respond with our decision.\n\n– {product_name} Safety Team",
+ body: "Hello {username},\n\nAs you asked, we scheduled your {product_name} account for deletion on {deletion_date}.\n\nTo keep your account, sign in before {deletion_date}. {safety_email, select, null {If you didn't ask for this, contact the administrators of this instance.} other {If you didn't ask for this, contact {safety_email}.}}\n\nThe {product_name} team",
},
donation_confirmation: {
subject: 'Thank you for your {product_name} donation',
@@ -31,7 +23,7 @@ export const EMAIL_I18N_MESSAGES = {
},
dsa_report_resolved: {
subject: 'We made a decision on your {product_name} report',
- body: "Hello,\n\nOur Safety Team has reviewed your Digital Services Act report (ID: {reportId}) and made a decision.{hasComment, select, yes {\n\nResponse from the Safety Team:\n{publicComment}} other {}}\n\nWe don't share details of any action taken against another person's account, because that is their personal data.\n\nIf you disagree with this decision, you can appeal free of charge within 60 days. {appeals_email, select, null {Contact the administrators of this instance, include your report ID, and explain why you think the decision is wrong.} other {Email {appeals_email} from this email address, include your report ID, and explain why you think the decision is wrong.}} If you are in the EU, you can also refer the dispute to a certified out-of-court dispute settlement body. None of this affects your right to go to court.\n\n– {product_name} Safety Team",
+ body: "Hello,\n\nWe reviewed your report (ID: {reportId}).\n\n{outcome, select, removed {We removed the content you reported because it broke our rules.} restricted {We found that the account you reported broke our rules, and we restricted it. We don't share what action we took against another account, because that is their personal data.} action_taken {We found that what you reported broke our rules, and we took action. We don't share what action we took against another account, because that is their personal data.} no_violation {We found that the content or account you reported doesn't break our rules, so we left it as it is.} other {We closed your report.}}{hasComment, select, yes {\n\nNote from our team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nIf you disagree, email {appeals_email} within 60 days and include the report ID. If you're in the EU, you can also refer this to a certified out-of-court dispute settlement body or complain to the Digital Services Coordinator in your country.}}\n\nThe {product_name} team",
},
dsa_report_verification: {
subject: 'Verify your email for a DSA report',
@@ -57,6 +49,16 @@ export const EMAIL_I18N_MESSAGES = {
subject: 'Perks from your redeemed gift have been removed',
body: "Hello {username},\n\nA gift code you redeemed was originally paid for by someone else. That payment has since been reversed (a chargeback).\n\nBecause of this, we've removed the perks that were added to your account when you redeemed the gift.\n\n{support_email, select, null {If you think this is a mistake, please contact the administrators of this instance and include any details you have about the gift code and when you redeemed it.} other {If you think this is a mistake, please contact our support team and include any details you have about the gift code and when you redeemed it.}}\n\n– {product_name} Team",
},
+ enforcement_ended: {
+ subject:
+ '{outcome, select, reversed {We reversed a decision about your {product_name} account} other {A restriction on your {product_name} account has ended}}',
+ body: "Hello {username},\n\n{outcome, select, reversed {{decision_id, select, null {We looked again at a decision about your account and reversed it.} other {We looked again at decision {decision_id} and reversed it.}} We're sorry for the trouble.} other {{decision_id, select, null {We lifted the restriction on your account.} other {We lifted the restriction from decision {decision_id}.}}}}{restores_access, select, yes { You can sign in and use {product_name} again.} other {}}{statement, select, null {} other {\n\nNote from our team: {statement}}}{content_removed, select, yes {\n\nContent we removed can't be restored.} other {}}\n\nThe {product_name} team",
+ },
+ enforcement_notice: {
+ subject:
+ '{neutral, select, yes {An update about your {product_name} account} other {{kind_label, select, warning {A warning about your {product_name} account} suspension {Your {product_name} account is suspended} ban {Your {product_name} account is banned} closure {Your {product_name} account is closed} feature_limit {Some features are limited on your {product_name} account} content_removal {We removed messages you sent on {product_name}} profile_reset {We reset parts of your {product_name} profile} community_removal {We removed your community on {product_name}} bot {An update about your bot on {product_name}} other {An update about your {product_name} account}}}}',
+ body: 'Hello {username},\n\n{summary}\n\n{effects}\n\nWhy\nRule: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNote from our team: {statement}}}\n\nHow we decided\n{how_we_decided}{appeals_email, select, null {} other {\n\nHow to appeal\nIf you think we got this wrong, email {appeals_email} by {appeal_deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one.{redress, select, null {} other {\n\n{redress}}}}}\n\nDecision ID: {decision_id}\n\nThe {product_name} team',
+ },
harvest_completed: {
subject: 'Your {product_name} data export is ready to download',
body: "Hello {username},\n\nYour data export is ready.\n\nDownload link:\n{downloadUrl}\n\nMessages included: {totalMessages, number}\nFile size: {fileSizeMB, number} MB\n\nThis link expires on {expiresAt, date, full} at {expiresAt, time, short}.\n\n{support_email, select, null {If you didn't request this export, please change your password immediately and contact the administrators of this instance.} other {If you didn't request this export, please change your password immediately and contact our support team.}}\n\n– {product_name} Team",
@@ -87,18 +89,10 @@ export const EMAIL_I18N_MESSAGES = {
},
report_resolved: {
subject: 'Your {product_name} report has been reviewed',
- body: 'Hello {username},\n\nYour report (ID: {reportId}) has been reviewed by our Safety Team.{hasComment, select, yes {\n\nResponse from the Safety Team:\n{publicComment}} other {}}\n\nThanks for helping keep {product_name} safe for everyone. We take all reports seriously and appreciate your contribution to the community.\n\n{safety_email, select, null {If you have any questions or concerns about this outcome, please contact the administrators of this instance.} other {If you have any questions or concerns about this outcome, please contact {safety_email}.}}\n\n– {product_name} Safety Team',
- },
- scheduled_deletion_notification: {
- subject: 'Your {product_name} account will be permanently deleted',
- body: 'Hello {username},\n\nYour {product_name} account has been scheduled for permanent deletion.\n\nScheduled deletion: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}This is a serious enforcement action. Your account data will be permanently deleted on the scheduled date.\n\nIf you believe this enforcement decision was incorrect, you can submit an appeal. {appeals_email, select, null {Contact the administrators of this instance.} other {Email {appeals_email} from this email address.}}\n\n– {product_name} Safety Team',
+ body: "Hello {username},\n\nWe reviewed your report (ID: {reportId}).\n\n{outcome, select, removed {We removed the content you reported because it broke our rules.} restricted {We found that the account you reported broke our rules, and we restricted it. We don't share what action we took against another account, because that is their personal data.} action_taken {We found that what you reported broke our rules, and we took action. We don't share what action we took against another account, because that is their personal data.} no_violation {We found that the content or account you reported doesn't break our rules, so we left it as it is.} other {We closed your report.}}{hasComment, select, yes {\n\nNote from our team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nIf you disagree, email {appeals_email} within 60 days and include the report ID. If you're in the EU, you can also refer this to a certified out-of-court dispute settlement body or complain to the Digital Services Coordinator in your country.}}\n\nThe {product_name} team",
},
self_deletion_scheduled: {
subject: 'Your {product_name} account deletion is scheduled',
body: "Hello {username},\n\nYou requested to delete your {product_name} account. Your account is scheduled for permanent deletion on:\n\n{deletionDate, date, full} at {deletionDate, time, short}\n\nIf you didn't request this, sign in to your account to cancel the deletion. We also recommend changing your password to secure your account.\n\n– {product_name} Team",
},
- unban_notification: {
- subject: 'Your {product_name} account suspension has been lifted',
- body: 'Hello {username},\n\nGood news: your {product_name} account suspension has been lifted.\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}You can now log back in and continue using {product_name} as normal.\n\n– {product_name} Safety Team',
- },
} as const;
diff --git a/fluxer_api/pkgs/email/src/email_i18n/EmailI18nTypes.generated.ts b/fluxer_api/pkgs/email/src/email_i18n/EmailI18nTypes.generated.ts
index 80aa44298..e9f0c6258 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/EmailI18nTypes.generated.ts
+++ b/fluxer_api/pkgs/email/src/email_i18n/EmailI18nTypes.generated.ts
@@ -4,8 +4,6 @@ export type EmailTemplateKey =
| 'account_deletion_cancelled'
| 'account_deletion_scheduled_inactivity'
| 'account_deletion_scheduled_requested'
- | 'account_scheduled_deletion'
- | 'account_temp_banned'
| 'donation_confirmation'
| 'donation_magic_link'
| 'dsa_report_resolved'
@@ -14,6 +12,8 @@ export type EmailTemplateKey =
| 'email_change_original'
| 'email_change_revert'
| 'email_verification'
+ | 'enforcement_ended'
+ | 'enforcement_notice'
| 'gift_chargeback_notification'
| 'harvest_completed'
| 'inactivity_warning'
@@ -23,9 +23,7 @@ export type EmailTemplateKey =
| 'password_reset'
| 'report_received'
| 'report_resolved'
- | 'scheduled_deletion_notification'
- | 'self_deletion_scheduled'
- | 'unban_notification';
+ | 'self_deletion_scheduled';
export interface EmailTemplate {
subject: string;
diff --git a/fluxer_api/pkgs/email/src/email_i18n/EmailI18nTypes.ts b/fluxer_api/pkgs/email/src/email_i18n/EmailI18nTypes.ts
index 436b20b4f..594014470 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/EmailI18nTypes.ts
+++ b/fluxer_api/pkgs/email/src/email_i18n/EmailI18nTypes.ts
@@ -2,7 +2,18 @@
export type ReportReceivedTargetKind = 'message' | 'user' | 'guild';
-export type EmailLegalLinks = 'both' | 'terms' | 'guidelines' | 'none';
+export type ReporterOutcome = 'removed' | 'restricted' | 'action_taken' | 'no_violation';
+
+export type EnforcementNoticeKindLabel =
+ | 'warning'
+ | 'suspension'
+ | 'ban'
+ | 'closure'
+ | 'feature_limit'
+ | 'content_removal'
+ | 'profile_reset'
+ | 'community_removal'
+ | 'bot';
export interface EmailTemplateVariables {
account_deletion_cancelled: {
@@ -11,35 +22,14 @@ export interface EmailTemplateVariables {
};
account_deletion_scheduled_inactivity: {
username: string;
- reason: string | null;
- deletionDate: Date;
- safety_email: string | null;
+ deletion_date: string;
+ support_email: string | null;
};
account_deletion_scheduled_requested: {
username: string;
- reason: string | null;
- deletionDate: Date;
+ deletion_date: string;
safety_email: string | null;
};
- account_scheduled_deletion: {
- username: string;
- reason: string | null;
- deletionDate: Date;
- termsUrl: string | null;
- guidelinesUrl: string | null;
- legalLinks: EmailLegalLinks;
- appeals_email: string | null;
- };
- account_temp_banned: {
- username: string;
- reason: string | null;
- durationHours: number;
- bannedUntil: Date;
- termsUrl: string | null;
- guidelinesUrl: string | null;
- legalLinks: EmailLegalLinks;
- appeals_email: string | null;
- };
donation_confirmation: {
amount: string;
currency: string;
@@ -54,6 +44,7 @@ export interface EmailTemplateVariables {
reportId: string;
publicComment: string;
hasComment: 'yes' | 'no';
+ outcome: ReporterOutcome;
appeals_email: string | null;
};
dsa_report_verification: {
@@ -83,6 +74,30 @@ export interface EmailTemplateVariables {
username: string;
support_email: string | null;
};
+ enforcement_ended: {
+ username: string;
+ outcome: 'lifted' | 'reversed';
+ decision_id: string | null;
+ restores_access: 'yes' | 'no';
+ statement: string | null;
+ content_removed: 'yes' | 'no';
+ };
+ enforcement_notice: {
+ username: string;
+ kind_label: EnforcementNoticeKindLabel;
+ neutral: 'yes' | 'no';
+ summary: string;
+ effects: string;
+ rule_title: string;
+ rule_url: string | null;
+ facts: string;
+ statement: string | null;
+ how_we_decided: string;
+ appeals_email: string | null;
+ appeal_deadline: string;
+ redress: string | null;
+ decision_id: string;
+ };
harvest_completed: {
username: string;
downloadUrl: string;
@@ -127,20 +142,11 @@ export interface EmailTemplateVariables {
reportId: string;
publicComment: string;
hasComment: 'yes' | 'no';
- safety_email: string | null;
- };
- scheduled_deletion_notification: {
- username: string;
- deletionDate: Date;
- reason: string | null;
+ outcome: ReporterOutcome;
appeals_email: string | null;
};
self_deletion_scheduled: {
username: string;
deletionDate: Date;
};
- unban_notification: {
- username: string;
- reason: string | null;
- };
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ar.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ar.json
index d731794a1..85d447741 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ar.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ar.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "سيتم حذف حسابك في {product_name} بسبب عدم النشاط",
- "body": "مرحبًا {username}،\n\nلم يكن حسابك في {product_name} نشطًا لفترة طويلة، لذا تمت جدولته للحذف الدائم في:\n\n{deletionDate, date, full} الساعة {deletionDate, time, short}{reason, select, null {} other {\n\nالسبب: {reason}}}\n\n{safety_email, select, null {إذا كنت ترغب في الاحتفاظ بحسابك، فتواصل مع مسؤولي هذا المثيل قبل ذلك التاريخ.} other {إذا كنت ترغب في الاحتفاظ بحسابك، فاتصل بـ{safety_email} من عنوان البريد الإلكتروني هذا قبل ذلك التاريخ.}}\n\n– فريق {product_name}"
+ "body": "مرحبًا {username}،\n\nلم يكن حسابك في {product_name} نشطًا لفترة طويلة، لذا جدولنا حذفه في {deletion_date}.\n\nللاحتفاظ بحسابك، سجّل الدخول قبل ذلك التاريخ. {support_email, select, null {إذا كانت لديك أسئلة، فتواصل مع مسؤولي هذا المثيل.} other {إذا كانت لديك أسئلة، فتواصل مع {support_email}.}}\n\nفريق {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "تمت جدولة حذف حسابك في {product_name}",
- "body": "مرحبًا {username}،\n\nبناءً على طلبك، تمت جدولة حسابك في {product_name} للحذف الدائم في:\n\n{deletionDate, date, full} الساعة {deletionDate, time, short}{reason, select, null {} other {\n\nالسبب: {reason}}}\n\nسيظل حسابك مقفلًا حتى ذلك الحين. {safety_email, select, null {إذا لم تطلب هذا، أو كنت ترغب في الاحتفاظ بحسابك، فتواصل مع مسؤولي هذا المثيل قبل ذلك التاريخ.} other {إذا لم تطلب هذا، أو كنت ترغب في الاحتفاظ بحسابك، فاتصل بـ{safety_email} من عنوان البريد الإلكتروني هذا قبل ذلك التاريخ.}}\n\n– فريق {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "سيتم حذف حسابك في {product_name} نهائيًا",
- "body": "مرحبًا {username}،\n\nتمت جدولة حسابك في {product_name} للحذف الدائم بسبب انتهاكات لشروط الخدمة أو إرشادات المجتمع الخاصة بنا.\n\nالحذف المجدول: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {السبب: {reason}\n\n}\n}هذا إجراء إنفاذ جاد. سيتم حذف بيانات حسابك نهائيًا في التاريخ المحدد.\n\n{legalLinks, select,\n both {يرجى مراجعة:\n- شروط الخدمة: {termsUrl}\n- إرشادات المجتمع: {guidelinesUrl}\n\n}\n terms {يرجى مراجعة:\n- شروط الخدمة: {termsUrl}\n\n}\n guidelines {يرجى مراجعة:\n- إرشادات المجتمع: {guidelinesUrl}\n\n}\n other {}\n}عملية الاستئناف:\nإذا كنت تعتقد أن قرار الإنفاذ هذا كان غير صحيح أو غير مبرر، لديك 60 يومًا لتقديم استئناف. {appeals_email, select, null {تواصل مع مسؤولي هذا المثيل.} other {أرسل بريدًا إلكترونيًا إلى {appeals_email} من عنوان البريد الإلكتروني هذا.}}\n\nفي استئنافك:\n- اشرح بوضوح سبب اعتقادك أن قرار الإنفاذ كان غير صحيح أو غير مبرر\n- قدم أي دليل أو سياق ذي صلة\n\nسيقوم عضو من فريق أمان {product_name} بمراجعة استئنافك وقد يوقف الحذف المعلق مؤقتًا إلى حين التوصل إلى قرار نهائي.\n\n– فريق أمان {product_name}"
- },
- "account_temp_banned": {
- "subject": "تم تعليق حسابك في {product_name} مؤقتًا",
- "body": "مرحبًا {username}،\n\nتم تعليق حسابك في {product_name} مؤقتًا لانتهاك شروط الخدمة أو إرشادات المجتمع الخاصة بنا.\n\nالمدة: {durationHours, plural,\n =1 {ساعة واحدة}\n zero {# ساعة}\n two {ساعتان}\n few {# ساعات}\n many {# ساعة}\n other {# ساعة}\n}\nمعلق حتى: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {السبب: {reason}\n\n}\n}خلال هذه الفترة، لن تتمكن من الوصول إلى حسابك.\n\n{legalLinks, select,\n both {يرجى مراجعة:\n- شروط الخدمة: {termsUrl}\n- إرشادات المجتمع: {guidelinesUrl}\n\n}\n terms {يرجى مراجعة:\n- شروط الخدمة: {termsUrl}\n\n}\n guidelines {يرجى مراجعة:\n- إرشادات المجتمع: {guidelinesUrl}\n\n}\n other {}\n}إذا كنت تعتقد أن قرار الإنفاذ هذا كان غير صحيح أو غير مبرر، يمكنك تقديم استئناف. {appeals_email, select, null {تواصل مع مسؤولي هذا المثيل واشرح بوضوح سبب اعتقادك أن القرار كان غير صحيح.} other {أرسل بريدًا إلكترونيًا إلى {appeals_email} من عنوان البريد الإلكتروني هذا واشرح بوضوح سبب اعتقادك أن القرار كان غير صحيح.}} سنراجع استئنافك ونرد بقرارنا.\n\n– فريق أمان {product_name}"
+ "body": "مرحبًا {username}،\n\nبناءً على طلبك، جدولنا حذف حسابك في {product_name} في {deletion_date}.\n\nللاحتفاظ بحسابك، سجّل الدخول قبل {deletion_date}. {safety_email, select, null {إذا لم تطلب ذلك، فتواصل مع مسؤولي هذا المثيل.} other {إذا لم تطلب ذلك، فتواصل مع {safety_email}.}}\n\nفريق {product_name}"
},
"donation_confirmation": {
"subject": "شكرًا لك على تبرعك لـ{product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "اتخذنا قرارًا بشأن بلاغك في {product_name}",
- "body": "مرحبًا،\n\nراجع فريق الأمان لدينا بلاغك بموجب قانون الخدمات الرقمية (المعرف: {reportId}) واتخذ قرارًا.{hasComment, select, yes {\n\nرد فريق الأمان:\n{publicComment}} other {}}\n\nلا نشارك تفاصيل أي إجراء يُتخذ بحق حساب شخص آخر، لأنها بياناته الشخصية.\n\nإذا كنت لا توافق على هذا القرار، يمكنك تقديم استئناف مجانًا خلال 60 يومًا. {appeals_email, select, null {تواصل مع مسؤولي هذا المثيل، واذكر معرف بلاغك، واشرح سبب اعتقادك أن القرار غير صحيح.} other {أرسل بريدًا إلكترونيًا إلى {appeals_email} من عنوان البريد الإلكتروني هذا، واذكر معرف بلاغك، واشرح سبب اعتقادك أن القرار غير صحيح.}} إذا كنت في الاتحاد الأوروبي، يمكنك أيضًا إحالة النزاع إلى هيئة معتمدة لتسوية المنازعات خارج المحكمة. لا يؤثر أي من ذلك على حقك في اللجوء إلى القضاء.\n\n– فريق أمان {product_name}"
+ "body": "مرحبًا،\n\nراجعنا بلاغك (المعرّف: {reportId}).\n\n{outcome, select, removed {أزلنا المحتوى الذي أبلغت عنه لأنه خالف قواعدنا.} restricted {وجدنا أن الحساب الذي أبلغت عنه خالف قواعدنا، وقيّدناه. لا نشارك الإجراء الذي اتخذناه ضد حساب آخر، لأن ذلك من بيانات صاحبه الشخصية.} action_taken {وجدنا أن ما أبلغت عنه خالف قواعدنا، واتخذنا إجراءً. لا نشارك الإجراء الذي اتخذناه ضد حساب آخر، لأن ذلك من بيانات صاحبه الشخصية.} no_violation {وجدنا أن المحتوى أو الحساب الذي أبلغت عنه لا يخالف قواعدنا، لذا تركناه كما هو.} other {أغلقنا بلاغك.}}{hasComment, select, yes {\n\nملاحظة من فريقنا: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nإذا كنت لا توافق، فراسل {appeals_email} خلال 60 يومًا واذكر معرّف البلاغ. إذا كنت في الاتحاد الأوروبي، يمكنك أيضًا إحالة الأمر إلى هيئة معتمدة لتسوية النزاعات خارج المحاكم أو تقديم شكوى إلى منسق الخدمات الرقمية (Digital Services Coordinator) في بلدك.}}\n\nفريق {product_name}"
},
"dsa_report_verification": {
"subject": "تحقق من بريدك الإلكتروني لتقديم بلاغ DSA",
@@ -51,6 +43,14 @@
"subject": "تحقق من بريدك الإلكتروني في {product_name}",
"body": "مرحبًا {username}،\n\nيرجى التحقق من عنوان البريد الإلكتروني لحسابك في {product_name} بالنقر على الرابط أدناه:\n\n{verifyUrl}\n\nإذا لم تقم بإنشاء حساب {product_name}، يمكنك تجاهل هذا البريد الإلكتروني بأمان.\n\nهذا الرابط صالح لمدة 24 ساعة.\n\n– فريق {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {ألغينا قرارًا بشأن حسابك في {product_name}} other {انتهى تقييد على حسابك في {product_name}}}",
+ "body": "مرحبًا {username}،\n\n{outcome, select, reversed {{decision_id, select, null {راجعنا مجددًا قرارًا بشأن حسابك وألغيناه.} other {راجعنا مجددًا القرار {decision_id} وألغيناه.}} نعتذر عن الإزعاج.} other {{decision_id, select, null {رفعنا التقييد عن حسابك.} other {رفعنا التقييد الناتج عن القرار {decision_id}.}}}}{restores_access, select, yes { يمكنك تسجيل الدخول واستخدام {product_name} مجددًا.} other {}}{statement, select, null {} other {\n\nملاحظة من فريقنا: {statement}}}{content_removed, select, yes {\n\nلا يمكن استعادة المحتوى الذي أزلناه.} other {}}\n\nفريق {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {تحديث بشأن حسابك في {product_name}} other {{kind_label, select, warning {تحذير بشأن حسابك في {product_name}} suspension {تم تعليق حسابك في {product_name}} ban {تم حظر حسابك في {product_name}} closure {تم إغلاق حسابك في {product_name}} feature_limit {تم تقييد بعض الميزات في حسابك في {product_name}} content_removal {أزلنا رسائل أرسلتها في {product_name}} profile_reset {أعدنا تعيين أجزاء من ملفك الشخصي في {product_name}} community_removal {أزلنا مجتمعك في {product_name}} bot {تحديث بشأن البوت الخاص بك في {product_name}} other {تحديث بشأن حسابك في {product_name}}}}}",
+ "body": "مرحبًا {username}،\n\n{summary}\n\n{effects}\n\nالسبب\nالقاعدة: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nملاحظة من فريقنا: {statement}}}\n\nكيف اتخذنا القرار\n{how_we_decided}{appeals_email, select, null {} other {\n\nكيفية الطعن\nإذا كنت تعتقد أننا أخطأنا، فراسل {appeals_email} في موعد أقصاه {appeal_deadline}. راسلنا من عنوان البريد الإلكتروني المرتبط بحسابك إن أمكن، واذكر معرّف القرار. الطعن مجاني، ويراجع كل طعن شخص من فريقنا.{redress, select, null {} other {\n\n{redress}}}}}\n\nمعرّف القرار: {decision_id}\n\nفريق {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "تمت إزالة مزايا الهدية التي استرددتها",
"body": "مرحبًا {username}،\n\nدفع شخص آخر في الأصل ثمن رمز الهدية الذي استرددته، وقد تم التراجع عن تلك الدفعة لاحقًا (رد مبلغ مدفوع).\n\nولهذا السبب أزلنا المزايا التي أُضيفت إلى حسابك عند استرداد الهدية.\n\n{support_email, select, null {إذا كنت تعتقد أن هذا خطأ، يرجى التواصل مع مسؤولي هذا المثيل مع ذكر أي تفاصيل لديك عن رمز الهدية ووقت استردادك له.} other {إذا كنت تعتقد أن هذا خطأ، يرجى الاتصال بفريق الدعم لدينا مع ذكر أي تفاصيل لديك عن رمز الهدية ووقت استردادك له.}}\n\n– فريق {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "تمت مراجعة بلاغك في {product_name}",
- "body": "مرحبًا {username}،\n\nتمت مراجعة بلاغك (المعرف: {reportId}) من قبل فريق الأمان لدينا.{hasComment, select, yes {\n\nرد فريق الأمان:\n{publicComment}} other {}}\n\nشكرًا لمساعدتك في الحفاظ على {product_name} آمنًا للجميع. نحن نأخذ جميع البلاغات على محمل الجد ونقدر مساهمتك في المجتمع.\n\n{safety_email, select, null {إذا كان لديك أي أسئلة أو مخاوف بشأن هذه النتيجة، يرجى التواصل مع مسؤولي هذا المثيل.} other {إذا كان لديك أي أسئلة أو مخاوف بشأن هذه النتيجة، يرجى الاتصال بـ{safety_email}.}}\n\n– فريق أمان {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "سيتم حذف حسابك في {product_name} نهائيًا",
- "body": "مرحبًا {username}،\n\nتمت جدولة حسابك في {product_name} للحذف الدائم.\n\nالحذف المجدول: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {السبب: {reason}\n\n}\n}هذا إجراء إنفاذ جاد. سيتم حذف بيانات حسابك نهائيًا في التاريخ المحدد.\n\nإذا كنت تعتقد أن قرار الإنفاذ هذا كان غير صحيح، يمكنك تقديم استئناف. {appeals_email, select, null {تواصل مع مسؤولي هذا المثيل.} other {أرسل بريدًا إلكترونيًا إلى {appeals_email} من عنوان البريد الإلكتروني هذا.}}\n\n– فريق أمان {product_name}"
+ "body": "مرحبًا {username}،\n\nراجعنا بلاغك (المعرّف: {reportId}).\n\n{outcome, select, removed {أزلنا المحتوى الذي أبلغت عنه لأنه خالف قواعدنا.} restricted {وجدنا أن الحساب الذي أبلغت عنه خالف قواعدنا، وقيّدناه. لا نشارك الإجراء الذي اتخذناه ضد حساب آخر، لأن ذلك من بيانات صاحبه الشخصية.} action_taken {وجدنا أن ما أبلغت عنه خالف قواعدنا، واتخذنا إجراءً. لا نشارك الإجراء الذي اتخذناه ضد حساب آخر، لأن ذلك من بيانات صاحبه الشخصية.} no_violation {وجدنا أن المحتوى أو الحساب الذي أبلغت عنه لا يخالف قواعدنا، لذا تركناه كما هو.} other {أغلقنا بلاغك.}}{hasComment, select, yes {\n\nملاحظة من فريقنا: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nإذا كنت لا توافق، فراسل {appeals_email} خلال 60 يومًا واذكر معرّف البلاغ. إذا كنت في الاتحاد الأوروبي، يمكنك أيضًا إحالة الأمر إلى هيئة معتمدة لتسوية النزاعات خارج المحاكم أو تقديم شكوى إلى منسق الخدمات الرقمية (Digital Services Coordinator) في بلدك.}}\n\nفريق {product_name}"
},
"self_deletion_scheduled": {
"subject": "تمت جدولة حذف حسابك في {product_name}",
"body": "مرحبًا {username}،\n\nلقد طلبت حذف حسابك في {product_name}. تمت جدولة حسابك للحذف الدائم في:\n\n{deletionDate, date, full} الساعة {deletionDate, time, short}\n\nإذا لم تطلب هذا، سجل الدخول إلى حسابك لإلغاء الحذف. نوصي أيضًا بتغيير كلمة المرور الخاصة بك لتأمين حسابك.\n\n– فريق {product_name}"
- },
- "unban_notification": {
- "subject": "تم رفع تعليق حسابك في {product_name}",
- "body": "مرحبًا {username}،\n\nأخبار سارة: تم رفع تعليق حسابك في {product_name}.\n\n{reason, select,\n null {}\n other {السبب: {reason}\n\n}\n}يمكنك الآن تسجيل الدخول مرة أخرى ومواصلة استخدام {product_name} كالمعتاد.\n\n– فريق أمان {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/bg.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/bg.json
index 97eb6c7be..19f8096c0 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/bg.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/bg.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Акаунтът ти във {product_name} ще бъде изтрит поради неактивност",
- "body": "Здравей, {username},\n\nАкаунтът ти във {product_name} е неактивен от дълго време, затова е насрочен за постоянно изтриване на:\n\n{deletionDate, date, full} в {deletionDate, time, short}{reason, select, null {} other {\n\nПричина: {reason}}}\n\n{safety_email, select, null {Ако искаш да запазиш акаунта си, свържи се с администраторите на тази инстанция преди тази дата.} other {Ако искаш да запазиш акаунта си, свържи се с {safety_email} от този имейл адрес преди тази дата.}}\n\n– Екип на {product_name}"
+ "body": "Здравей, {username},\n\nАкаунтът ти във {product_name} е неактивен от дълго време, затова насрочихме изтриването му за {deletion_date}.\n\nЗа да запазиш акаунта си, влез в него преди тази дата. {support_email, select, null {Ако имаш въпроси, свържи се с администраторите на тази инстанция.} other {Ако имаш въпроси, пиши на {support_email}.}}\n\nЕкипът на {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Изтриването на акаунта ти във {product_name} е насрочено",
- "body": "Здравей, {username},\n\nКакто поиска, акаунтът ти във {product_name} е насрочен за постоянно изтриване на:\n\n{deletionDate, date, full} в {deletionDate, time, short}{reason, select, null {} other {\n\nПричина: {reason}}}\n\nДотогава акаунтът ти е заключен. {safety_email, select, null {Ако не си поискал това или искаш да запазиш акаунта си, свържи се с администраторите на тази инстанция преди тази дата.} other {Ако не си поискал това или искаш да запазиш акаунта си, свържи се с {safety_email} от този имейл адрес преди тази дата.}}\n\n– Екип на {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Акаунтът ти във {product_name} ще бъде изтрит за постоянно",
- "body": "Здравей, {username},\n\nАкаунтът ти във {product_name} е насрочен за постоянно изтриване поради нарушения на нашите Общи условия или Насоки на общността.\n\nНасрочено изтриване: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Това е сериозна мярка. Данните на акаунта ти ще бъдат изтрити за постоянно на насрочената дата.\n\n{legalLinks, select,\n both {Прегледай:\n- Общи условия: {termsUrl}\n- Насоки на общността: {guidelinesUrl}\n\n}\n terms {Прегледай:\n- Общи условия: {termsUrl}\n\n}\n guidelines {Прегледай:\n- Насоки на общността: {guidelinesUrl}\n\n}\n other {}\n}Процес на обжалване:\nАко смяташ, че това решение е неправилно или необосновано, имаш 60 дни да подадеш обжалване. {appeals_email, select, null {Свържи се с администраторите на тази инстанция.} other {Изпрати имейл на {appeals_email} от този имейл адрес.}}\n\nВ обжалването си:\n- Обясни ясно защо смяташ, че решението е неправилно или необосновано\n- Приложи всички релевантни доказателства или контекст\n\nЧлен на екипа за безопасност на {product_name} ще прегледа обжалването ти и може да спре предстоящото изтриване, докато не бъде взето окончателно решение.\n\n– Екип за безопасност на {product_name}"
- },
- "account_temp_banned": {
- "subject": "Акаунтът ти във {product_name} е временно спрян",
- "body": "Здравей, {username},\n\nАкаунтът ти във {product_name} е временно спрян поради нарушаване на нашите Общи условия или Насоки на общността.\n\nПродължителност: {durationHours, plural,\n =1 {1 час}\n other {# часа}\n}\nСпрян до: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}През това време няма да имаш достъп до акаунта си.\n\n{legalLinks, select,\n both {Прегледай:\n- Общи условия: {termsUrl}\n- Насоки на общността: {guidelinesUrl}\n\n}\n terms {Прегледай:\n- Общи условия: {termsUrl}\n\n}\n guidelines {Прегледай:\n- Насоки на общността: {guidelinesUrl}\n\n}\n other {}\n}Ако смяташ, че това решение е неправилно или необосновано, можеш да подадеш обжалване. {appeals_email, select, null {Свържи се с администраторите на тази инстанция и ясно обясни защо смяташ, че решението е неправилно.} other {Изпрати имейл на {appeals_email} от този имейл адрес и ясно обясни защо смяташ, че решението е неправилно.}} Ще прегледаме обжалването ти и ще ти отговорим с решението си.\n\n– Екип за безопасност на {product_name}"
+ "body": "Здравей, {username},\n\nПо твое желание насрочихме изтриването на акаунта ти във {product_name} за {deletion_date}.\n\nЗа да запазиш акаунта си, влез в него преди {deletion_date}. {safety_email, select, null {Ако заявката не е от теб, свържи се с администраторите на тази инстанция.} other {Ако заявката не е от теб, пиши на {safety_email}.}}\n\nЕкипът на {product_name}"
},
"donation_confirmation": {
"subject": "Благодарим ти за дарението към {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Взехме решение по сигнала ти във {product_name}",
- "body": "Здравей,\n\nНашият екип за безопасност прегледа сигнала ти по Закона за цифровите услуги (ID: {reportId}) и взе решение.{hasComment, select, yes {\n\nОтговор от екипа за безопасност:\n{publicComment}} other {}}\n\nНе споделяме подробности за действия, предприети срещу акаунта на друг човек, защото това са негови лични данни.\n\nАко не си съгласен с това решение, можеш да го обжалваш безплатно в срок от 60 дни. {appeals_email, select, null {Свържи се с администраторите на тази инстанция, посочи ID на сигнала си и обясни защо смяташ, че решението е неправилно.} other {Изпрати имейл на {appeals_email} от този имейл адрес, посочи ID на сигнала си и обясни защо смяташ, че решението е неправилно.}} Ако се намираш в ЕС, можеш също да отнесеш спора към сертифициран орган за извънсъдебно решаване на спорове. Нищо от това не засяга правото ти да се обърнеш към съда.\n\n– Екип за безопасност на {product_name}"
+ "body": "Здравей,\n\nПрегледахме сигнала ти (ID: {reportId}).\n\n{outcome, select, removed {Премахнахме съдържанието от сигнала ти, защото нарушаваше правилата ни.} restricted {Установихме, че акаунтът от сигнала ти е нарушил правилата ни, и го ограничихме. Не споделяме какви мерки сме предприели срещу друг акаунт, защото това са лични данни на собственика му.} action_taken {Установихме, че посоченото в сигнала ти е нарушило правилата ни, и предприехме мерки. Не споделяме какви мерки сме предприели срещу друг акаунт, защото това са лични данни на собственика му.} no_violation {Установихме, че съдържанието или акаунтът от сигнала ти не нарушава правилата ни, затова не променихме нищо.} other {Закрихме сигнала ти.}}{hasComment, select, yes {\n\nБележка от нашия екип: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nАко не приемаш решението, пиши на {appeals_email} в рамките на 60 дни и посочи ID на сигнала. Ако си в ЕС, можеш също да отнесеш случая до сертифициран орган за извънсъдебно решаване на спорове или да подадеш жалба до координатора за цифровите услуги в твоята държава.}}\n\nЕкипът на {product_name}"
},
"dsa_report_verification": {
"subject": "Потвърди имейла си за сигнал по DSA",
@@ -51,6 +43,14 @@
"subject": "Потвърди имейл адреса си във {product_name}",
"body": "Здравей, {username},\n\nПотвърди имейл адреса за акаунта си във {product_name}, като кликнеш върху линка по-долу:\n\n{verifyUrl}\n\nАко не си създал акаунт във {product_name}, можеш спокойно да игнорираш този имейл.\n\nТози линк е валиден 24 часа.\n\n– Екип на {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Отменихме решение за акаунта ти във {product_name}} other {Ограничението на акаунта ти във {product_name} приключи}}",
+ "body": "Здравей, {username},\n\n{outcome, select, reversed {{decision_id, select, null {Прегледахме отново решение за акаунта ти и го отменихме.} other {Прегледахме отново решение {decision_id} и го отменихме.}} Съжаляваме за неудобството.} other {{decision_id, select, null {Премахнахме ограничението на акаунта ти.} other {Премахнахме ограничението по решение {decision_id}.}}}}{restores_access, select, yes { Отново можеш да влизаш и да използваш {product_name}.} other {}}{statement, select, null {} other {\n\nБележка от нашия екип: {statement}}}{content_removed, select, yes {\n\nПремахнатото съдържание не може да бъде възстановено.} other {}}\n\nЕкипът на {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Информация за акаунта ти във {product_name}} other {{kind_label, select, warning {Предупреждение за акаунта ти във {product_name}} suspension {Акаунтът ти във {product_name} е спрян} ban {Акаунтът ти във {product_name} е блокиран} closure {Акаунтът ти във {product_name} е закрит} feature_limit {Някои функции на акаунта ти във {product_name} са ограничени} content_removal {Премахнахме твои съобщения във {product_name}} profile_reset {Нулирахме части от профила ти във {product_name}} community_removal {Премахнахме твоята общност във {product_name}} bot {Информация за твоя бот във {product_name}} other {Информация за акаунта ти във {product_name}}}}}",
+ "body": "Здравей, {username},\n\n{summary}\n\n{effects}\n\nЗащо\nПравило: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nБележка от нашия екип: {statement}}}\n\nКак решихме\n{how_we_decided}{appeals_email, select, null {} other {\n\nКак да обжалваш\nАко смяташ, че сме сгрешили, пиши на {appeals_email} до {appeal_deadline}. Ако можеш, пиши от имейл адреса на акаунта си и посочи ID на решението. Обжалването е безплатно и всяка жалба се преглежда от човек.{redress, select, null {} other {\n\n{redress}}}}}\n\nID на решението: {decision_id}\n\nЕкипът на {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Предимствата от осребрения ти подарък са премахнати",
"body": "Здравей, {username},\n\nКод за подарък, който си осребрил, първоначално е бил платен от някой друг. Оттогава плащането е върнато чрез оспорване на трансакция.\n\nПоради това премахнахме предимствата, които бяха добавени към акаунта ти, когато осребри подаръка.\n\n{support_email, select, null {Ако смяташ, че това е грешка, свържи се с администраторите на тази инстанция и посочи всички подробности, които имаш за кода за подарък и кога си го осребрил.} other {Ако смяташ, че това е грешка, свържи се с нашия екип за поддръжка и посочи всички подробности, които имаш за кода за подарък и кога си го осребрил.}}\n\n– Екип на {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Сигналът ти във {product_name} е прегледан",
- "body": "Здравей, {username},\n\nСигналът ти (ID: {reportId}) е прегледан от нашия екип за безопасност.{hasComment, select, yes {\n\nОтговор от екипа за безопасност:\n{publicComment}} other {}}\n\nБлагодарим ти, че помагаш на {product_name} да остане безопасно място за всички. Приемаме всички сигнали сериозно и ценим приноса ти към общността.\n\n{safety_email, select, null {Ако имаш въпроси или притеснения относно този резултат, свържи се с администраторите на тази инстанция.} other {Ако имаш въпроси или притеснения относно този резултат, свържи се с {safety_email}.}}\n\n– Екип за безопасност на {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Акаунтът ти във {product_name} ще бъде изтрит за постоянно",
- "body": "Здравей, {username},\n\nАкаунтът ти във {product_name} е насрочен за постоянно изтриване.\n\nНасрочено изтриване: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Това е сериозна мярка. Данните на акаунта ти ще бъдат изтрити за постоянно на насрочената дата.\n\nАко смяташ, че това решение е неправилно, можеш да подадеш обжалване. {appeals_email, select, null {Свържи се с администраторите на тази инстанция.} other {Изпрати имейл на {appeals_email} от този имейл адрес.}}\n\n– Екип за безопасност на {product_name}"
+ "body": "Здравей, {username},\n\nПрегледахме сигнала ти (ID: {reportId}).\n\n{outcome, select, removed {Премахнахме съдържанието от сигнала ти, защото нарушаваше правилата ни.} restricted {Установихме, че акаунтът от сигнала ти е нарушил правилата ни, и го ограничихме. Не споделяме какви мерки сме предприели срещу друг акаунт, защото това са лични данни на собственика му.} action_taken {Установихме, че посоченото в сигнала ти е нарушило правилата ни, и предприехме мерки. Не споделяме какви мерки сме предприели срещу друг акаунт, защото това са лични данни на собственика му.} no_violation {Установихме, че съдържанието или акаунтът от сигнала ти не нарушава правилата ни, затова не променихме нищо.} other {Закрихме сигнала ти.}}{hasComment, select, yes {\n\nБележка от нашия екип: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nАко не приемаш решението, пиши на {appeals_email} в рамките на 60 дни и посочи ID на сигнала. Ако си в ЕС, можеш също да отнесеш случая до сертифициран орган за извънсъдебно решаване на спорове или да подадеш жалба до координатора за цифровите услуги в твоята държава.}}\n\nЕкипът на {product_name}"
},
"self_deletion_scheduled": {
"subject": "Изтриването на акаунта ти във {product_name} е насрочено",
"body": "Здравей, {username},\n\nПоискал си изтриване на акаунта си във {product_name}. Акаунтът ти е насрочен за постоянно изтриване на:\n\n{deletionDate, date, full} в {deletionDate, time, short}\n\nАко не си поискал това, влез в акаунта си, за да отмениш изтриването. Препоръчваме също да смениш паролата си, за да защитиш акаунта си.\n\n– Екип на {product_name}"
- },
- "unban_notification": {
- "subject": "Спирането на акаунта ти във {product_name} е отменено",
- "body": "Здравей, {username},\n\nДобра новина: спирането на акаунта ти във {product_name} е отменено.\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Вече можеш да влезеш отново и да продължиш да използваш {product_name} както обикновено.\n\n– Екип за безопасност на {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/cs.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/cs.json
index 256825f7f..bd9ac2768 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/cs.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/cs.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Váš účet {product_name} bude smazán kvůli neaktivitě",
- "body": "Dobrý den, {username},\n\nVáš účet {product_name} byl dlouho neaktivní, a proto je jeho trvalé smazání naplánováno na:\n\n{deletionDate, date, full} v {deletionDate, time, short}{reason, select, null {} other {\n\nDůvod: {reason}}}\n\n{safety_email, select, null {Pokud si chcete účet ponechat, kontaktujte před tímto datem správce této instance.} other {Pokud si chcete účet ponechat, kontaktujte před tímto datem {safety_email} z této e-mailové adresy.}}\n\n– Tým {product_name}"
+ "body": "Dobrý den, {username},\n\nVáš účet {product_name} byl dlouho neaktivní, a proto jsme jeho smazání naplánovali na {deletion_date}.\n\nPokud si chcete účet ponechat, přihlaste se před tímto datem. {support_email, select, null {Pokud máte dotazy, kontaktujte správce této instance.} other {Pokud máte dotazy, kontaktujte {support_email}.}}\n\nTým {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Smazání vašeho účtu {product_name} je naplánováno",
- "body": "Dobrý den, {username},\n\nNa vaši žádost je trvalé smazání vašeho účtu {product_name} naplánováno na:\n\n{deletionDate, date, full} v {deletionDate, time, short}{reason, select, null {} other {\n\nDůvod: {reason}}}\n\nDo té doby je váš účet uzamčen. {safety_email, select, null {Pokud jste o smazání nežádali nebo si chcete účet ponechat, kontaktujte před tímto datem správce této instance.} other {Pokud jste o smazání nežádali nebo si chcete účet ponechat, kontaktujte před tímto datem {safety_email} z této e-mailové adresy.}}\n\n– Tým {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Váš účet {product_name} bude trvale smazán",
- "body": "Dobrý den, {username},\n\nKvůli porušení našich podmínek služby nebo komunitních pravidel bylo naplánováno trvalé smazání vašeho účtu {product_name}.\n\nNaplánované smazání: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Důvod: {reason}\n\n}\n}Jedná se o závažné opatření. Data vašeho účtu budou v naplánovaný den trvale smazána.\n\n{legalLinks, select,\n both {Přečtěte si:\n- Podmínky služby: {termsUrl}\n- Komunitní pravidla: {guidelinesUrl}\n\n}\n terms {Přečtěte si:\n- Podmínky služby: {termsUrl}\n\n}\n guidelines {Přečtěte si:\n- Komunitní pravidla: {guidelinesUrl}\n\n}\n other {}\n}Postup odvolání:\nPokud se domníváte, že toto rozhodnutí bylo nesprávné nebo neopodstatněné, máte 60 dní na podání odvolání. {appeals_email, select, null {Kontaktujte správce této instance.} other {Pošlete e-mail na {appeals_email} z této e-mailové adresy.}}\n\nV odvolání:\n- Jasně vysvětlete, proč se domníváte, že rozhodnutí bylo nesprávné nebo neopodstatněné\n- Uveďte všechny relevantní důkazy a souvislosti\n\nČlen bezpečnostního týmu {product_name} vaše odvolání přezkoumá a může pozastavit plánované smazání, dokud nepadne konečné rozhodnutí.\n\n– Bezpečnostní tým {product_name}"
- },
- "account_temp_banned": {
- "subject": "Váš účet {product_name} byl dočasně pozastaven",
- "body": "Dobrý den, {username},\n\nVáš účet {product_name} byl dočasně pozastaven kvůli porušení našich podmínek služby nebo komunitních pravidel.\n\nDoba trvání: {durationHours, plural,\n one {# hodina}\n few {# hodiny}\n many {# hodiny}\n other {# hodin}\n}\nPozastaven do: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Důvod: {reason}\n\n}\n}Během této doby nebudete mít přístup ke svému účtu.\n\n{legalLinks, select,\n both {Přečtěte si:\n- Podmínky služby: {termsUrl}\n- Komunitní pravidla: {guidelinesUrl}\n\n}\n terms {Přečtěte si:\n- Podmínky služby: {termsUrl}\n\n}\n guidelines {Přečtěte si:\n- Komunitní pravidla: {guidelinesUrl}\n\n}\n other {}\n}Pokud se domníváte, že toto rozhodnutí bylo nesprávné nebo neopodstatněné, můžete podat odvolání. {appeals_email, select, null {Kontaktujte správce této instance a jasně vysvětlete, proč považujete rozhodnutí za nesprávné.} other {Pošlete e-mail na {appeals_email} z této e-mailové adresy a jasně vysvětlete, proč považujete rozhodnutí za nesprávné.}} Vaše odvolání přezkoumáme a sdělíme vám své rozhodnutí.\n\n– Bezpečnostní tým {product_name}"
+ "body": "Dobrý den, {username},\n\nNa vaši žádost jsme naplánovali smazání vašeho účtu {product_name} na {deletion_date}.\n\nPokud si chcete účet ponechat, přihlaste se před {deletion_date}. {safety_email, select, null {Pokud tato žádost nepochází od vás, kontaktujte správce této instance.} other {Pokud tato žádost nepochází od vás, kontaktujte {safety_email}.}}\n\nTým {product_name}"
},
"donation_confirmation": {
"subject": "Děkujeme za váš dar pro {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Rozhodli jsme o vašem nahlášení na {product_name}",
- "body": "Dobrý den,\n\nNáš bezpečnostní tým přezkoumal vaše nahlášení podle nařízení o digitálních službách (ID: {reportId}) a rozhodl o něm.{hasComment, select, yes {\n\nOdpověď bezpečnostního týmu:\n{publicComment}} other {}}\n\nPodrobnosti o opatřeních přijatých vůči účtu jiné osoby nesdělujeme, protože jde o její osobní údaje.\n\nPokud s tímto rozhodnutím nesouhlasíte, můžete se do 60 dnů bezplatně odvolat. {appeals_email, select, null {Kontaktujte správce této instance, uveďte ID svého nahlášení a vysvětlete, proč považujete rozhodnutí za nesprávné.} other {Pošlete e-mail na {appeals_email} z této e-mailové adresy, uveďte ID svého nahlášení a vysvětlete, proč považujete rozhodnutí za nesprávné.}} Pokud jste v EU, můžete spor také předložit certifikovanému subjektu pro mimosoudní řešení sporů. Nic z toho nemá vliv na vaše právo obrátit se na soud.\n\n– Bezpečnostní tým {product_name}"
+ "body": "Dobrý den,\n\nPosoudili jsme vaše nahlášení (ID: {reportId}).\n\n{outcome, select, removed {Nahlášený obsah jsme odstranili, protože porušoval naše pravidla.} restricted {Zjistili jsme, že nahlášený účet porušil naše pravidla, a omezili jsme ho. Nesdělujeme, jaké opatření jsme vůči jinému účtu přijali, protože jde o osobní údaje jeho majitele.} action_taken {Zjistili jsme, že nahlášený obsah nebo účet porušil naše pravidla, a přijali jsme opatření. Nesdělujeme, jaké opatření jsme vůči jinému účtu přijali, protože jde o osobní údaje jeho majitele.} no_violation {Zjistili jsme, že nahlášený obsah nebo účet naše pravidla neporušuje, a proto jsme vše ponechali beze změny.} other {Vaše nahlášení jsme uzavřeli.}}{hasComment, select, yes {\n\nPoznámka od našeho týmu: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nPokud nesouhlasíte, napište do 60 dnů na {appeals_email} a uveďte ID nahlášení. Pokud se nacházíte v EU, můžete věc také předložit certifikovanému subjektu pro mimosoudní řešení sporů nebo podat stížnost koordinátorovi digitálních služeb ve své zemi.}}\n\nTým {product_name}"
},
"dsa_report_verification": {
"subject": "Ověřte svůj e-mail pro nahlášení podle DSA",
@@ -51,6 +43,14 @@
"subject": "Ověřte svou e-mailovou adresu pro {product_name}",
"body": "Dobrý den, {username},\n\nKliknutím na odkaz níže ověřte e-mailovou adresu svého účtu {product_name}:\n\n{verifyUrl}\n\nPokud jste si účet {product_name} nevytvořili, můžete tento e-mail bez obav ignorovat.\n\nTento odkaz je platný 24 hodin.\n\n– Tým {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Zrušili jsme rozhodnutí týkající se vašeho účtu {product_name}} other {Omezení vašeho účtu {product_name} skončilo}}",
+ "body": "Dobrý den, {username},\n\n{outcome, select, reversed {{decision_id, select, null {Znovu jsme posoudili rozhodnutí týkající se vašeho účtu a zrušili ho.} other {Znovu jsme posoudili rozhodnutí {decision_id} a zrušili ho.}} Omlouváme se za potíže.} other {{decision_id, select, null {Ukončili jsme omezení vašeho účtu.} other {Ukončili jsme omezení uložené rozhodnutím {decision_id}.}}}}{restores_access, select, yes { Můžete se znovu přihlásit a používat {product_name}.} other {}}{statement, select, null {} other {\n\nPoznámka od našeho týmu: {statement}}}{content_removed, select, yes {\n\nOdstraněný obsah nelze obnovit.} other {}}\n\nTým {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Informace o vašem účtu {product_name}} other {{kind_label, select, warning {Varování týkající se vašeho účtu {product_name}} suspension {Váš účet {product_name} je pozastaven} ban {Váš účet {product_name} je zablokován} closure {Váš účet {product_name} je zrušen} feature_limit {Některé funkce vašeho účtu {product_name} jsou omezeny} content_removal {Odstranili jsme vaše zprávy na {product_name}} profile_reset {Resetovali jsme část vašeho profilu {product_name}} community_removal {Odstranili jsme vaši komunitu na {product_name}} bot {Informace o vašem botovi na {product_name}} other {Informace o vašem účtu {product_name}}}}}",
+ "body": "Dobrý den, {username},\n\n{summary}\n\n{effects}\n\nProč\nPravidlo: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nPoznámka od našeho týmu: {statement}}}\n\nJak jsme rozhodli\n{how_we_decided}{appeals_email, select, null {} other {\n\nJak se odvolat\nPokud si myslíte, že jsme udělali chybu, napište na {appeals_email} do {appeal_deadline}. Pokud můžete, pište z e-mailové adresy svého účtu a uveďte ID rozhodnutí. Odvolání je zdarma a každé posoudí člověk.{redress, select, null {} other {\n\n{redress}}}}}\n\nID rozhodnutí: {decision_id}\n\nTým {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Výhody z uplatněného dárku byly odstraněny",
"body": "Dobrý den, {username},\n\nDárkový kód, který jste uplatnili, původně zaplatil někdo jiný. Tato platba byla následně vrácena na základě reklamace (chargeback).\n\nProto jsme odebrali výhody, které váš účet získal při uplatnění dárku.\n\n{support_email, select, null {Pokud se domníváte, že jde o chybu, kontaktujte správce této instance a uveďte všechny dostupné podrobnosti o dárkovém kódu a o tom, kdy jste ho uplatnili.} other {Pokud se domníváte, že jde o chybu, kontaktujte náš tým podpory a uveďte všechny dostupné podrobnosti o dárkovém kódu a o tom, kdy jste ho uplatnili.}}\n\n– Tým {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Vaše nahlášení na {product_name} bylo přezkoumáno",
- "body": "Dobrý den, {username},\n\nNáš bezpečnostní tým přezkoumal vaše nahlášení (ID: {reportId}).{hasComment, select, yes {\n\nOdpověď bezpečnostního týmu:\n{publicComment}} other {}}\n\nDěkujeme, že pomáháte udržovat {product_name} bezpečný pro všechny. Všechna nahlášení bereme vážně a vážíme si vašeho přínosu komunitě.\n\n{safety_email, select, null {Pokud máte k tomuto výsledku jakékoli dotazy nebo výhrady, kontaktujte správce této instance.} other {Pokud máte k tomuto výsledku jakékoli dotazy nebo výhrady, kontaktujte {safety_email}.}}\n\n– Bezpečnostní tým {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Váš účet {product_name} bude trvale smazán",
- "body": "Dobrý den, {username},\n\nBylo naplánováno trvalé smazání vašeho účtu {product_name}.\n\nNaplánované smazání: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Důvod: {reason}\n\n}\n}Jedná se o závažné opatření. Data vašeho účtu budou v naplánovaný den trvale smazána.\n\nPokud se domníváte, že toto rozhodnutí bylo nesprávné, můžete podat odvolání. {appeals_email, select, null {Kontaktujte správce této instance.} other {Pošlete e-mail na {appeals_email} z této e-mailové adresy.}}\n\n– Bezpečnostní tým {product_name}"
+ "body": "Dobrý den, {username},\n\nPosoudili jsme vaše nahlášení (ID: {reportId}).\n\n{outcome, select, removed {Nahlášený obsah jsme odstranili, protože porušoval naše pravidla.} restricted {Zjistili jsme, že nahlášený účet porušil naše pravidla, a omezili jsme ho. Nesdělujeme, jaké opatření jsme vůči jinému účtu přijali, protože jde o osobní údaje jeho majitele.} action_taken {Zjistili jsme, že nahlášený obsah nebo účet porušil naše pravidla, a přijali jsme opatření. Nesdělujeme, jaké opatření jsme vůči jinému účtu přijali, protože jde o osobní údaje jeho majitele.} no_violation {Zjistili jsme, že nahlášený obsah nebo účet naše pravidla neporušuje, a proto jsme vše ponechali beze změny.} other {Vaše nahlášení jsme uzavřeli.}}{hasComment, select, yes {\n\nPoznámka od našeho týmu: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nPokud nesouhlasíte, napište do 60 dnů na {appeals_email} a uveďte ID nahlášení. Pokud se nacházíte v EU, můžete věc také předložit certifikovanému subjektu pro mimosoudní řešení sporů nebo podat stížnost koordinátorovi digitálních služeb ve své zemi.}}\n\nTým {product_name}"
},
"self_deletion_scheduled": {
"subject": "Smazání vašeho účtu {product_name} je naplánováno",
"body": "Dobrý den, {username},\n\nPožádali jste o smazání svého účtu {product_name}. Trvalé smazání je naplánováno na:\n\n{deletionDate, date, full} v {deletionDate, time, short}\n\nPokud jste o smazání nežádali, přihlaste se ke svému účtu a smazání zrušte. Doporučujeme také změnit heslo, abyste svůj účet zabezpečili.\n\n– Tým {product_name}"
- },
- "unban_notification": {
- "subject": "Pozastavení vašeho účtu {product_name} bylo zrušeno",
- "body": "Dobrý den, {username},\n\nDobrá zpráva: pozastavení vašeho účtu {product_name} bylo zrušeno.\n\n{reason, select,\n null {}\n other {Důvod: {reason}\n\n}\n}Nyní se můžete znovu přihlásit a používat {product_name} jako obvykle.\n\n– Bezpečnostní tým {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/da.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/da.json
index bb8104761..7f9c41b31 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/da.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/da.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Din {product_name}-konto slettes på grund af inaktivitet",
- "body": "Hej {username},\n\nDin {product_name}-konto har været inaktiv i lang tid, så den slettes permanent den:\n\n{deletionDate, date, full} kl. {deletionDate, time, short}{reason, select, null {} other {\n\nÅrsag: {reason}}}\n\n{safety_email, select, null {Hvis du vil beholde din konto, skal du kontakte administratorerne af denne instans inden denne dato.} other {Hvis du vil beholde din konto, skal du kontakte {safety_email} fra denne e-mailadresse inden denne dato.}}\n\n– Teamet bag {product_name}"
+ "body": "Hej {username},\n\nDin {product_name}-konto har været inaktiv i lang tid, så vi har planlagt sletning af kontoen den {deletion_date}.\n\nHvis du vil beholde din konto, skal du logge ind før den dato. {support_email, select, null {Hvis du har spørgsmål, så kontakt administratorerne af denne instans.} other {Hvis du har spørgsmål, så kontakt {support_email}.}}\n\nTeamet bag {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Sletningen af din {product_name}-konto er planlagt",
- "body": "Hej {username},\n\nSom du har anmodet om, slettes din {product_name}-konto permanent den:\n\n{deletionDate, date, full} kl. {deletionDate, time, short}{reason, select, null {} other {\n\nÅrsag: {reason}}}\n\nDin konto er låst indtil da. {safety_email, select, null {Hvis du ikke har anmodet om dette, eller hvis du vil beholde din konto, skal du kontakte administratorerne af denne instans inden denne dato.} other {Hvis du ikke har anmodet om dette, eller hvis du vil beholde din konto, skal du kontakte {safety_email} fra denne e-mailadresse inden denne dato.}}\n\n– Teamet bag {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Din {product_name}-konto slettes permanent",
- "body": "Hej {username},\n\nVi har planlagt at slette din {product_name}-konto permanent på grund af overtrædelser af vores servicevilkår eller retningslinjer for fællesskabet.\n\nPlanlagt sletning: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Årsag: {reason}\n\n}\n}Dette er en alvorlig sanktion. Dine kontodata bliver permanent slettet på den planlagte dato.\n\n{legalLinks, select,\n both {Gennemgå:\n- Servicevilkår: {termsUrl}\n- Retningslinjer for fællesskabet: {guidelinesUrl}\n\n}\n terms {Gennemgå:\n- Servicevilkår: {termsUrl}\n\n}\n guidelines {Gennemgå:\n- Retningslinjer for fællesskabet: {guidelinesUrl}\n\n}\n other {}\n}Klageproces:\nHvis du mener, at denne beslutning om sanktioner var forkert eller uberettiget, har du 60 dage til at indsende en klage. {appeals_email, select, null {Kontakt administratorerne af denne instans.} other {Send en e-mail til {appeals_email} fra denne e-mailadresse.}}\n\nI din klage:\n- Forklar tydeligt, hvorfor du mener, at beslutning om sanktioneren var forkert eller uberettiget\n- Fremlæg relevant dokumentation eller kontekst\n\nEt medlem af sikkerhedsteamet hos {product_name} vil gennemgå din klage og kan sætte den afventende sletning på pause, indtil en endelig beslutning er truffet.\n\n– Sikkerhedsteamet hos {product_name}"
- },
- "account_temp_banned": {
- "subject": "Din {product_name}-konto er midlertidigt suspenderet",
- "body": "Hej {username},\n\nDin {product_name}-konto er midlertidigt suspenderet på grund af overtrædelser af vores servicevilkår eller retningslinjer for fællesskabet.\n\nVarighed: {durationHours, plural,\n =1 {1 time}\n other {# timer}\n}\nSuspenderet indtil: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Årsag: {reason}\n\n}\n}I denne periode vil du ikke kunne få adgang til din konto.\n\n{legalLinks, select,\n both {Gennemgå:\n- Servicevilkår: {termsUrl}\n- Retningslinjer for fællesskabet: {guidelinesUrl}\n\n}\n terms {Gennemgå:\n- Servicevilkår: {termsUrl}\n\n}\n guidelines {Gennemgå:\n- Retningslinjer for fællesskabet: {guidelinesUrl}\n\n}\n other {}\n}Hvis du mener, at denne beslutning om sanktioner var forkert eller uberettiget, kan du indsende en klage. {appeals_email, select, null {Kontakt administratorerne af denne instans og forklar tydeligt, hvorfor du mener, at beslutningen var forkert.} other {Send en e-mail til {appeals_email} fra denne e-mailadresse og forklar tydeligt, hvorfor du mener, at beslutningen var forkert.}} Vi gennemgår din klage og giver dig besked om vores afgørelse.\n\n– Sikkerhedsteamet hos {product_name}"
+ "body": "Hej {username},\n\nSom du har bedt om, har vi planlagt sletning af din {product_name}-konto den {deletion_date}.\n\nHvis du vil beholde din konto, skal du logge ind før {deletion_date}. {safety_email, select, null {Hvis du ikke har bedt om dette, så kontakt administratorerne af denne instans.} other {Hvis du ikke har bedt om dette, så kontakt {safety_email}.}}\n\nTeamet bag {product_name}"
},
"donation_confirmation": {
"subject": "Tak for din {product_name}-donation",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Vi har truffet en afgørelse om din anmeldelse på {product_name}",
- "body": "Hej,\n\nVores sikkerhedsteam har behandlet din anmeldelse i henhold til Digital Services Act (ID: {reportId}) og truffet en afgørelse.{hasComment, select, yes {\n\nSvar fra sikkerhedsteamet:\n{publicComment}} other {}}\n\nVi deler ikke oplysninger om tiltag mod en anden persons konto, fordi det er den persons personoplysninger.\n\nHvis du er uenig i afgørelsen, kan du klage gratis inden for 60 dage. {appeals_email, select, null {Kontakt administratorerne af denne instans, oplys dit anmeldelses-ID, og forklar, hvorfor du mener, at afgørelsen er forkert.} other {Send en e-mail til {appeals_email} fra denne e-mailadresse, oplys dit anmeldelses-ID, og forklar, hvorfor du mener, at afgørelsen er forkert.}} Hvis du befinder dig i EU, kan du også indbringe tvisten for et certificeret organ for udenretslig tvistbilæggelse. Intet af dette påvirker din ret til at gå til domstolene.\n\n– Sikkerhedsteamet hos {product_name}"
+ "body": "Hej,\n\nVi har gennemgået din anmeldelse (ID: {reportId}).\n\n{outcome, select, removed {Vi har fjernet det indhold, du anmeldte, fordi det brød vores regler.} restricted {Vi har konstateret, at den konto, du anmeldte, brød vores regler, og vi har begrænset den. Vi oplyser ikke, hvilke tiltag vi har truffet over for en anden konto, fordi det er den persons personoplysninger.} action_taken {Vi har konstateret, at det, du anmeldte, brød vores regler, og vi har grebet ind. Vi oplyser ikke, hvilke tiltag vi har truffet over for en anden konto, fordi det er den persons personoplysninger.} no_violation {Vi har konstateret, at det indhold eller den konto, du anmeldte, ikke bryder vores regler, så vi har ikke foretaget os noget.} other {Vi har lukket din anmeldelse.}}{hasComment, select, yes {\n\nBesked fra vores team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nHvis du er uenig, så send en e-mail til {appeals_email} inden for 60 dage, og oplys anmeldelses-ID'et. Hvis du befinder dig i EU, kan du også indbringe sagen for et certificeret organ for udenretslig tvistbilæggelse eller klage til koordinatoren for digitale tjenester i dit land.}}\n\nTeamet bag {product_name}"
},
"dsa_report_verification": {
"subject": "Bekræft din e-mailadresse til en DSA-anmeldelse",
@@ -51,6 +43,14 @@
"subject": "Bekræft din {product_name}-e-mailadresse",
"body": "Hej {username},\n\nBekræft e-mailadressen for din {product_name}-konto ved at klikke på linket nedenfor:\n\n{verifyUrl}\n\nHvis du ikke har oprettet en {product_name}-konto, kan du trygt ignorere denne e-mail.\n\nDette link er gyldigt i 24 timer.\n\n– Teamet bag {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Vi har omgjort en afgørelse om din {product_name}-konto} other {En begrænsning på din {product_name}-konto er ophørt}}",
+ "body": "Hej {username},\n\n{outcome, select, reversed {{decision_id, select, null {Vi har set på en afgørelse om din konto igen og omgjort den.} other {Vi har set på afgørelse {decision_id} igen og omgjort den.}} Vi beklager besværet.} other {{decision_id, select, null {Vi har ophævet begrænsningen på din konto.} other {Vi har ophævet begrænsningen fra afgørelse {decision_id}.}}}}{restores_access, select, yes { Du kan logge ind og bruge {product_name} igen.} other {}}{statement, select, null {} other {\n\nBesked fra vores team: {statement}}}{content_removed, select, yes {\n\nIndhold, vi har fjernet, kan ikke gendannes.} other {}}\n\nTeamet bag {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Nyt om din {product_name}-konto} other {{kind_label, select, warning {En advarsel om din {product_name}-konto} suspension {Din {product_name}-konto er suspenderet} ban {Din {product_name}-konto er udelukket} closure {Din {product_name}-konto er lukket} feature_limit {Nogle funktioner er begrænset på din {product_name}-konto} content_removal {Vi har fjernet beskeder, du har sendt på {product_name}} profile_reset {Vi har nulstillet dele af din {product_name}-profil} community_removal {Vi har fjernet dit fællesskab på {product_name}} bot {Nyt om din bot på {product_name}} other {Nyt om din {product_name}-konto}}}}",
+ "body": "Hej {username},\n\n{summary}\n\n{effects}\n\nHvorfor\nRegel: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nBesked fra vores team: {statement}}}\n\nSådan traf vi afgørelsen\n{how_we_decided}{appeals_email, select, null {} other {\n\nSådan klager du\nHvis du mener, at vi har taget fejl, så send en e-mail til {appeals_email} senest {appeal_deadline}. Skriv fra e-mailadressen på din konto, hvis du kan, og oplys afgørelses-ID'et. Det er gratis at klage, og en person gennemgår hver klage.{redress, select, null {} other {\n\n{redress}}}}}\n\nAfgørelses-ID: {decision_id}\n\nTeamet bag {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Fordele fra din indløste gave er fjernet",
"body": "Hej {username},\n\nEn gavekode, du indløste, blev oprindeligt betalt af en anden. Den betaling er siden annulleret (en tilbageførsel).\n\nDerfor har vi fjernet de fordele, der blev tilføjet din konto, da du indløste gaven.\n\n{support_email, select, null {Hvis du mener, at dette er en fejl, kan du kontakte administratorerne af denne instans og oplyse alle detaljer, du har om gavekoden, og hvornår du indløste den.} other {Hvis du mener, at dette er en fejl, kan du kontakte vores supportteam og oplyse alle detaljer, du har om gavekoden, og hvornår du indløste den.}}\n\n– Teamet bag {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Din anmeldelse på {product_name} er blevet behandlet",
- "body": "Hej {username},\n\nDin anmeldelse (ID: {reportId}) er blevet behandlet af vores sikkerhedsteam.{hasComment, select, yes {\n\nSvar fra sikkerhedsteamet:\n{publicComment}} other {}}\n\nTak for din hjælp til at holde {product_name} sikkert for alle. Vi tager alle anmeldelser alvorligt og værdsætter dit bidrag til fællesskabet.\n\n{safety_email, select, null {Hvis du har spørgsmål eller bekymringer vedrørende dette resultat, kan du kontakte administratorerne af denne instans.} other {Hvis du har spørgsmål eller bekymringer vedrørende dette resultat, kan du kontakte {safety_email}.}}\n\n– Sikkerhedsteamet hos {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Din {product_name}-konto slettes permanent",
- "body": "Hej {username},\n\nVi har planlagt at slette din {product_name}-konto permanent.\n\nPlanlagt sletning: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Årsag: {reason}\n\n}\n}Dette er en alvorlig sanktion. Dine kontodata bliver permanent slettet på den planlagte dato.\n\nHvis du mener, at denne beslutning om sanktioner var forkert, kan du indsende en klage. {appeals_email, select, null {Kontakt administratorerne af denne instans.} other {Send en e-mail til {appeals_email} fra denne e-mailadresse.}}\n\n– Sikkerhedsteamet hos {product_name}"
+ "body": "Hej {username},\n\nVi har gennemgået din anmeldelse (ID: {reportId}).\n\n{outcome, select, removed {Vi har fjernet det indhold, du anmeldte, fordi det brød vores regler.} restricted {Vi har konstateret, at den konto, du anmeldte, brød vores regler, og vi har begrænset den. Vi oplyser ikke, hvilke tiltag vi har truffet over for en anden konto, fordi det er den persons personoplysninger.} action_taken {Vi har konstateret, at det, du anmeldte, brød vores regler, og vi har grebet ind. Vi oplyser ikke, hvilke tiltag vi har truffet over for en anden konto, fordi det er den persons personoplysninger.} no_violation {Vi har konstateret, at det indhold eller den konto, du anmeldte, ikke bryder vores regler, så vi har ikke foretaget os noget.} other {Vi har lukket din anmeldelse.}}{hasComment, select, yes {\n\nBesked fra vores team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nHvis du er uenig, så send en e-mail til {appeals_email} inden for 60 dage, og oplys anmeldelses-ID'et. Hvis du befinder dig i EU, kan du også indbringe sagen for et certificeret organ for udenretslig tvistbilæggelse eller klage til koordinatoren for digitale tjenester i dit land.}}\n\nTeamet bag {product_name}"
},
"self_deletion_scheduled": {
"subject": "Sletningen af din {product_name}-konto er planlagt",
"body": "Hej {username},\n\nDu har anmodet om at slette din {product_name}-konto. Din konto slettes permanent den:\n\n{deletionDate, date, full} kl. {deletionDate, time, short}\n\nHvis du ikke har anmodet om dette, skal du logge ind på din konto for at annullere sletningen. Vi anbefaler også, at du ændrer din adgangskode for at sikre din konto.\n\n– Teamet bag {product_name}"
- },
- "unban_notification": {
- "subject": "Suspensionen af din {product_name}-konto er ophævet",
- "body": "Hej {username},\n\nGode nyheder: Suspensionen af din {product_name}-konto er ophævet.\n\n{reason, select,\n null {}\n other {Årsag: {reason}\n\n}\n}Du kan nu logge ind igen og fortsætte med at bruge {product_name} som normalt.\n\n– Sikkerhedsteamet hos {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/de.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/de.json
index 1343ea45e..6b80e15d7 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/de.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/de.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Dein {product_name}-Account wird wegen Inaktivität gelöscht",
- "body": "Hallo {username},\n\ndein {product_name}-Account war lange inaktiv und wird deshalb an folgendem Termin dauerhaft gelöscht:\n\n{deletionDate, date, full} um {deletionDate, time, short}{reason, select, null {} other {\n\nGrund: {reason}}}\n\n{safety_email, select, null {Wenn du deinen Account behalten möchtest, kontaktiere vor diesem Termin die Administratoren dieser Instanz.} other {Wenn du deinen Account behalten möchtest, kontaktiere vor diesem Termin {safety_email} von dieser E-Mail-Adresse aus.}}\n\n– {product_name}-Team"
+ "body": "Hallo {username},\n\ndein {product_name}-Account war lange inaktiv. Deshalb haben wir seine Löschung für den {deletion_date} geplant.\n\nWenn du deinen Account behalten möchtest, melde dich vor diesem Datum an. {support_email, select, null {Wenn du Fragen hast, kontaktiere die Administratoren dieser Instanz.} other {Wenn du Fragen hast, kontaktiere {support_email}.}}\n\nDein {product_name}-Team"
},
"account_deletion_scheduled_requested": {
"subject": "Die Löschung deines {product_name}-Accounts ist geplant",
- "body": "Hallo {username},\n\nwie von dir beantragt, wird dein {product_name}-Account an folgendem Termin dauerhaft gelöscht:\n\n{deletionDate, date, full} um {deletionDate, time, short}{reason, select, null {} other {\n\nGrund: {reason}}}\n\nDein Account ist bis dahin gesperrt. {safety_email, select, null {Wenn du das nicht beantragt hast oder deinen Account behalten möchtest, kontaktiere vor diesem Termin die Administratoren dieser Instanz.} other {Wenn du das nicht beantragt hast oder deinen Account behalten möchtest, kontaktiere vor diesem Termin {safety_email} von dieser E-Mail-Adresse aus.}}\n\n– {product_name}-Team"
- },
- "account_scheduled_deletion": {
- "subject": "Dein {product_name}-Account wird dauerhaft gelöscht",
- "body": "Hallo {username},\n\ndein {product_name}-Account wurde aufgrund von Verstößen gegen unsere Nutzungsbedingungen oder Community-Richtlinien zur dauerhaften Löschung vorgemerkt.\n\nGeplante Löschung: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Grund: {reason}\n\n}\n}Dies ist eine ernsthafte Maßnahme. Deine Accountdaten werden am geplanten Datum dauerhaft gelöscht.\n\n{legalLinks, select,\n both {Bitte lies dir Folgendes durch:\n- Nutzungsbedingungen: {termsUrl}\n- Community-Richtlinien: {guidelinesUrl}\n\n}\n terms {Bitte lies dir Folgendes durch:\n- Nutzungsbedingungen: {termsUrl}\n\n}\n guidelines {Bitte lies dir Folgendes durch:\n- Community-Richtlinien: {guidelinesUrl}\n\n}\n other {}\n}Einspruchsverfahren:\nWenn du glaubst, dass diese Entscheidung falsch oder ungerechtfertigt war, hast du 60 Tage Zeit, Einspruch einzulegen. {appeals_email, select, null {Wende dich an die Administratoren dieser Instanz.} other {Sende eine E-Mail von dieser E-Mail-Adresse an {appeals_email}.}}\n\nIn deinem Einspruch:\n- Erkläre klar, warum du glaubst, dass die Entscheidung falsch oder ungerechtfertigt war\n- Füge alle relevanten Beweise oder Kontextinformationen bei\n\nEin Mitglied des {product_name}-Sicherheitsteams wird deinen Einspruch prüfen und die geplante Löschung möglicherweise aussetzen, bis eine endgültige Entscheidung getroffen wurde.\n\n– {product_name}-Sicherheitsteam"
- },
- "account_temp_banned": {
- "subject": "Dein {product_name}-Account wurde vorübergehend gesperrt",
- "body": "Hallo {username},\n\ndein {product_name}-Account wurde vorübergehend gesperrt, weil du gegen unsere Nutzungsbedingungen oder Community-Richtlinien verstoßen hast.\n\nDauer: {durationHours, plural,\n one {1 Stunde}\n other {# Stunden}\n}\nGesperrt bis: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Grund: {reason}\n\n}\n}Während dieser Zeit kannst du nicht auf deinen Account zugreifen.\n\n{legalLinks, select,\n both {Bitte lies dir Folgendes durch:\n- Nutzungsbedingungen: {termsUrl}\n- Community-Richtlinien: {guidelinesUrl}\n\n}\n terms {Bitte lies dir Folgendes durch:\n- Nutzungsbedingungen: {termsUrl}\n\n}\n guidelines {Bitte lies dir Folgendes durch:\n- Community-Richtlinien: {guidelinesUrl}\n\n}\n other {}\n}Wenn du glaubst, dass diese Entscheidung falsch oder ungerechtfertigt war, kannst du Einspruch einlegen. {appeals_email, select, null {Wende dich an die Administratoren dieser Instanz und erkläre klar, warum du die Entscheidung für falsch hältst.} other {Sende eine E-Mail von dieser E-Mail-Adresse an {appeals_email} und erkläre klar, warum du die Entscheidung für falsch hältst.}} Wir werden deinen Einspruch prüfen und dir unsere Entscheidung mitteilen.\n\n– {product_name}-Sicherheitsteam"
+ "body": "Hallo {username},\n\nwie gewünscht haben wir die Löschung deines {product_name}-Accounts für den {deletion_date} geplant.\n\nWenn du deinen Account behalten möchtest, melde dich vor dem {deletion_date} an. {safety_email, select, null {Wenn du das nicht beantragt hast, kontaktiere die Administratoren dieser Instanz.} other {Wenn du das nicht beantragt hast, kontaktiere {safety_email}.}}\n\nDein {product_name}-Team"
},
"donation_confirmation": {
"subject": "Vielen Dank für deine {product_name}-Spende",
@@ -28,8 +20,8 @@
"body": "Hallo,\n\nklicke auf den Link unten, um auf dein Spendenportal zuzugreifen:\n\n{manageUrl}\n\nIm Portal kannst du Abonnements verwalten, Rechnungen herunterladen und deine Spendenübersicht einsehen.\n\nDieser Link läuft am {expiresAt, date, full} um {expiresAt, time, short} ab.\n\nWenn du diesen Link nicht angefordert hast, kannst du diese E-Mail ignorieren.\n\n– {product_name}-Team"
},
"dsa_report_resolved": {
- "subject": "Wir haben über deine {product_name}-Meldung entschieden",
- "body": "Hallo,\n\nunser Sicherheitsteam hat deine Meldung nach dem Digital Services Act (ID: {reportId}) geprüft und eine Entscheidung getroffen.{hasComment, select, yes {\n\nAntwort vom Sicherheitsteam:\n{publicComment}} other {}}\n\nWir geben keine Einzelheiten zu Maßnahmen gegen den Account einer anderen Person weiter, da es sich um deren personenbezogene Daten handelt.\n\nWenn du mit dieser Entscheidung nicht einverstanden bist, kannst du innerhalb von 60 Tagen kostenlos Einspruch einlegen. {appeals_email, select, null {Wende dich an die Administratoren dieser Instanz, gib deine Meldungs-ID an und erkläre, warum du die Entscheidung für falsch hältst.} other {Sende eine E-Mail von dieser E-Mail-Adresse an {appeals_email}, gib deine Meldungs-ID an und erkläre, warum du die Entscheidung für falsch hältst.}} Wenn du dich in der EU befindest, kannst du die Streitigkeit außerdem einer zertifizierten außergerichtlichen Streitbeilegungsstelle vorlegen. Dein Recht, vor Gericht zu gehen, bleibt davon unberührt.\n\n– {product_name}-Sicherheitsteam"
+ "subject": "Wir haben über deine Meldung auf {product_name} entschieden",
+ "body": "Hallo,\n\nwir haben deine Meldung (ID: {reportId}) geprüft.\n\n{outcome, select, removed {Wir haben den gemeldeten Inhalt entfernt, weil er gegen unsere Regeln verstoßen hat.} restricted {Wir haben festgestellt, dass der gemeldete Account gegen unsere Regeln verstoßen hat, und ihn eingeschränkt. Welche Maßnahme wir gegen einen anderen Account ergriffen haben, teilen wir nicht mit, weil das personenbezogene Daten dieser Person sind.} action_taken {Wir haben festgestellt, dass das, was du gemeldet hast, gegen unsere Regeln verstoßen hat, und haben Maßnahmen ergriffen. Welche Maßnahme wir gegen einen anderen Account ergriffen haben, teilen wir nicht mit, weil das personenbezogene Daten dieser Person sind.} no_violation {Wir haben festgestellt, dass der gemeldete Inhalt oder Account nicht gegen unsere Regeln verstößt. Deshalb haben wir nichts geändert.} other {Wir haben deine Meldung abgeschlossen.}}{hasComment, select, yes {\n\nHinweis von unserem Team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nWenn du nicht einverstanden bist, sende innerhalb von 60 Tagen eine E-Mail an {appeals_email} und gib die Meldungs-ID an. Wenn du dich in der EU befindest, kannst du die Sache auch einer zertifizierten außergerichtlichen Streitbeilegungsstelle vorlegen oder dich beim Koordinator für digitale Dienste in deinem Land beschweren.}}\n\nDein {product_name}-Team"
},
"dsa_report_verification": {
"subject": "Bestätige deine E-Mail-Adresse für eine DSA-Meldung",
@@ -51,6 +43,14 @@
"subject": "Bestätige deine {product_name}-E-Mail-Adresse",
"body": "Hallo {username},\n\nbitte bestätige die E-Mail-Adresse für deinen {product_name}-Account, indem du auf den untenstehenden Link klickst:\n\n{verifyUrl}\n\nWenn du keinen {product_name}-Account erstellt hast, kannst du diese E-Mail ignorieren.\n\nDieser Link ist 24 Stunden gültig.\n\n– {product_name}-Team"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Wir haben eine Entscheidung zu deinem {product_name}-Account zurückgenommen} other {Eine Einschränkung deines {product_name}-Accounts ist beendet}}",
+ "body": "Hallo {username},\n\n{outcome, select, reversed {{decision_id, select, null {wir haben eine Entscheidung zu deinem Account noch einmal geprüft und zurückgenommen.} other {wir haben die Entscheidung {decision_id} noch einmal geprüft und zurückgenommen.}} Entschuldige bitte die Umstände.} other {{decision_id, select, null {wir haben die Einschränkung deines Accounts aufgehoben.} other {wir haben die Einschränkung aus der Entscheidung {decision_id} aufgehoben.}}}}{restores_access, select, yes { Du kannst dich wieder anmelden und {product_name} nutzen.} other {}}{statement, select, null {} other {\n\nHinweis von unserem Team: {statement}}}{content_removed, select, yes {\n\nInhalte, die wir entfernt haben, können nicht wiederhergestellt werden.} other {}}\n\nDein {product_name}-Team"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Eine Mitteilung zu deinem {product_name}-Account} other {{kind_label, select, warning {Eine Verwarnung zu deinem {product_name}-Account} suspension {Dein {product_name}-Account ist gesperrt} ban {Dein {product_name}-Account ist dauerhaft gesperrt} closure {Dein {product_name}-Account ist geschlossen} feature_limit {Einige Funktionen deines {product_name}-Accounts sind eingeschränkt} content_removal {Wir haben Nachrichten entfernt, die du auf {product_name} gesendet hast} profile_reset {Wir haben Teile deines {product_name}-Profils zurückgesetzt} community_removal {Wir haben deine Community auf {product_name} entfernt} bot {Eine Mitteilung zu deinem Bot auf {product_name}} other {Eine Mitteilung zu deinem {product_name}-Account}}}}",
+ "body": "Hallo {username},\n\n{summary}\n\n{effects}\n\nWarum\nRegel: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nHinweis von unserem Team: {statement}}}\n\nSo haben wir entschieden\n{how_we_decided}{appeals_email, select, null {} other {\n\nSo legst du Einspruch ein\nWenn du glaubst, dass wir falsch entschieden haben, sende bis zum {appeal_deadline} eine E-Mail an {appeals_email}. Schreib nach Möglichkeit von der E-Mail-Adresse deines Accounts aus und gib die Entscheidungs-ID an. Ein Einspruch ist kostenlos und wird immer von einer Person geprüft.{redress, select, null {} other {\n\n{redress}}}}}\n\nEntscheidungs-ID: {decision_id}\n\nDein {product_name}-Team"
+ },
"gift_chargeback_notification": {
"subject": "Vorteile deines eingelösten Geschenks wurden entfernt",
"body": "Hallo {username},\n\nein von dir eingelöster Geschenkcode wurde ursprünglich von jemand anderem bezahlt. Diese Zahlung wurde inzwischen rückgängig gemacht (eine Rückbuchung).\n\nAus diesem Grund haben wir die Vorteile entfernt, die deinem Account hinzugefügt wurden, als du das Geschenk eingelöst hast.\n\n{support_email, select, null {Wenn du glaubst, dass dies ein Fehler ist, kontaktiere bitte die Administratoren dieser Instanz und gib alle Details an, die du über den Geschenkcode und den Zeitpunkt der Einlösung hast.} other {Wenn du glaubst, dass dies ein Fehler ist, kontaktiere bitte unser Support-Team und gib alle Details an, die du über den Geschenkcode und den Zeitpunkt der Einlösung hast.}}\n\n– {product_name}-Team"
@@ -84,19 +84,11 @@
"body": "Hallo,\n\nwir haben deine Meldung nach dem Digital Services Act (DSA) über {targetKind, select, message {eine Nachricht} user {einen Account} guild {eine Community} other {Inhalte}} auf {product_name} erhalten.\n\nMeldungs-ID: {reportId}\n\nUnser Sicherheitsteam prüft deine Meldung. Sobald wir eine Entscheidung getroffen haben, schreiben wir dir an diese E-Mail-Adresse. Bitte bewahre diese E-Mail für deine Unterlagen auf.\n\n– {product_name}-Sicherheitsteam"
},
"report_resolved": {
- "subject": "Deine {product_name}-Meldung wurde geprüft",
- "body": "Hallo {username},\n\ndeine Meldung (ID: {reportId}) wurde von unserem Sicherheitsteam geprüft.{hasComment, select, yes {\n\nAntwort vom Sicherheitsteam:\n{publicComment}} other {}}\n\nDanke, dass du hilfst, {product_name} für alle sicher zu halten. Wir nehmen alle Meldungen ernst und schätzen deinen Beitrag zur Community.\n\n{safety_email, select, null {Wenn du Fragen oder Bedenken zu diesem Ergebnis hast, kontaktiere bitte die Administratoren dieser Instanz.} other {Wenn du Fragen oder Bedenken zu diesem Ergebnis hast, kontaktiere bitte {safety_email}.}}\n\n– {product_name}-Sicherheitsteam"
- },
- "scheduled_deletion_notification": {
- "subject": "Dein {product_name}-Account wird dauerhaft gelöscht",
- "body": "Hallo {username},\n\ndein {product_name}-Account wurde zur dauerhaften Löschung vorgemerkt.\n\nGeplante Löschung: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Grund: {reason}\n\n}\n}Dies ist eine ernsthafte Maßnahme. Deine Accountdaten werden am geplanten Datum dauerhaft gelöscht.\n\nWenn du glaubst, dass diese Entscheidung falsch war, kannst du Einspruch einlegen. {appeals_email, select, null {Wende dich an die Administratoren dieser Instanz.} other {Sende eine E-Mail von dieser E-Mail-Adresse an {appeals_email}.}}\n\n– {product_name}-Sicherheitsteam"
+ "subject": "Deine Meldung auf {product_name} wurde geprüft",
+ "body": "Hallo {username},\n\nwir haben deine Meldung (ID: {reportId}) geprüft.\n\n{outcome, select, removed {Wir haben den gemeldeten Inhalt entfernt, weil er gegen unsere Regeln verstoßen hat.} restricted {Wir haben festgestellt, dass der gemeldete Account gegen unsere Regeln verstoßen hat, und ihn eingeschränkt. Welche Maßnahme wir gegen einen anderen Account ergriffen haben, teilen wir nicht mit, weil das personenbezogene Daten dieser Person sind.} action_taken {Wir haben festgestellt, dass das, was du gemeldet hast, gegen unsere Regeln verstoßen hat, und haben Maßnahmen ergriffen. Welche Maßnahme wir gegen einen anderen Account ergriffen haben, teilen wir nicht mit, weil das personenbezogene Daten dieser Person sind.} no_violation {Wir haben festgestellt, dass der gemeldete Inhalt oder Account nicht gegen unsere Regeln verstößt. Deshalb haben wir nichts geändert.} other {Wir haben deine Meldung abgeschlossen.}}{hasComment, select, yes {\n\nHinweis von unserem Team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nWenn du nicht einverstanden bist, sende innerhalb von 60 Tagen eine E-Mail an {appeals_email} und gib die Meldungs-ID an. Wenn du dich in der EU befindest, kannst du die Sache auch einer zertifizierten außergerichtlichen Streitbeilegungsstelle vorlegen oder dich beim Koordinator für digitale Dienste in deinem Land beschweren.}}\n\nDein {product_name}-Team"
},
"self_deletion_scheduled": {
"subject": "Die Löschung deines {product_name}-Accounts ist geplant",
"body": "Hallo {username},\n\ndu hast die Löschung deines {product_name}-Accounts beantragt. Dein Account wird an folgendem Termin dauerhaft gelöscht:\n\n{deletionDate, date, full} um {deletionDate, time, short}\n\nWenn du diese Löschung nicht beantragt hast, melde dich in deinem Account an, um die Löschung abzubrechen. Wir empfehlen außerdem, dein Passwort zu ändern, um deinen Account abzusichern.\n\n– {product_name}-Team"
- },
- "unban_notification": {
- "subject": "Die Sperrung deines {product_name}-Accounts wurde aufgehoben",
- "body": "Hallo {username},\n\ngute Nachrichten: Die Sperrung deines {product_name}-Accounts wurde aufgehoben.\n\n{reason, select,\n null {}\n other {Grund: {reason}\n\n}\n}Du kannst dich jetzt wieder anmelden und {product_name} wie gewohnt nutzen.\n\n– {product_name}-Sicherheitsteam"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/el.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/el.json
index 5e35419b6..cdd5813dd 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/el.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/el.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Ο λογαριασμός σου στο {product_name} θα διαγραφεί λόγω αδράνειας",
- "body": "Γεια σου {username},\n\nΟ λογαριασμός σου στο {product_name} είναι ανενεργός για μεγάλο χρονικό διάστημα, γι' αυτό έχει προγραμματιστεί για οριστική διαγραφή:\n\n{deletionDate, date, full} και ώρα {deletionDate, time, short}{reason, select, null {} other {\n\nΛόγος: {reason}}}\n\n{safety_email, select, null {Εάν θέλεις να διατηρήσεις τον λογαριασμό σου, επικοινώνησε με τους διαχειριστές αυτής της παρουσίας πριν από αυτή την ημερομηνία.} other {Εάν θέλεις να διατηρήσεις τον λογαριασμό σου, στείλε email στο {safety_email} από αυτή τη διεύθυνση email πριν από αυτή την ημερομηνία.}}\n\n– Η ομάδα του {product_name}"
+ "body": "Γεια σου {username},\n\nΟ λογαριασμός σου στο {product_name} είναι ανενεργός εδώ και πολύ καιρό, γι' αυτό προγραμματίσαμε τη διαγραφή του για τις {deletion_date}.\n\nΓια να κρατήσεις τον λογαριασμό σου, συνδέσου πριν από αυτή την ημερομηνία. {support_email, select, null {Αν έχεις ερωτήσεις, επικοινώνησε με τους διαχειριστές αυτής της παρουσίας.} other {Αν έχεις ερωτήσεις, επικοινώνησε με το {support_email}.}}\n\nΗ ομάδα του {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Η διαγραφή του λογαριασμού σου στο {product_name} είναι προγραμματισμένη",
- "body": "Γεια σου {username},\n\nΌπως ζήτησες, ο λογαριασμός σου στο {product_name} έχει προγραμματιστεί για οριστική διαγραφή:\n\n{deletionDate, date, full} και ώρα {deletionDate, time, short}{reason, select, null {} other {\n\nΛόγος: {reason}}}\n\nΜέχρι τότε ο λογαριασμός σου είναι κλειδωμένος. {safety_email, select, null {Εάν δεν το ζήτησες ή θέλεις να διατηρήσεις τον λογαριασμό σου, επικοινώνησε με τους διαχειριστές αυτής της παρουσίας πριν από αυτή την ημερομηνία.} other {Εάν δεν το ζήτησες ή θέλεις να διατηρήσεις τον λογαριασμό σου, στείλε email στο {safety_email} από αυτή τη διεύθυνση email πριν από αυτή την ημερομηνία.}}\n\n– Η ομάδα του {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Ο λογαριασμός σου στο {product_name} θα διαγραφεί οριστικά",
- "body": "Γεια σου {username},\n\nΟ λογαριασμός σου στο {product_name} έχει προγραμματιστεί για οριστική διαγραφή λόγω παραβιάσεων των Όρων παροχής υπηρεσιών ή των Οδηγιών κοινότητας.\n\nΠρογραμματισμένη διαγραφή: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Λόγος: {reason}\n\n}\n}Πρόκειται για σοβαρό μέτρο. Τα δεδομένα του λογαριασμού σου θα διαγραφούν οριστικά την προγραμματισμένη ημερομηνία.\n\n{legalLinks, select,\n both {Έλεγξε:\n- Όροι παροχής υπηρεσιών: {termsUrl}\n- Οδηγίες κοινότητας: {guidelinesUrl}\n\n}\n terms {Έλεγξε:\n- Όροι παροχής υπηρεσιών: {termsUrl}\n\n}\n guidelines {Έλεγξε:\n- Οδηγίες κοινότητας: {guidelinesUrl}\n\n}\n other {}\n}Διαδικασία προσφυγής:\nΕάν πιστεύεις ότι αυτή η απόφαση ήταν λανθασμένη ή αδικαιολόγητη, έχεις 60 ημέρες για να υποβάλεις προσφυγή. {appeals_email, select, null {Επικοινώνησε με τους διαχειριστές αυτής της παρουσίας.} other {Στείλε email στο {appeals_email} από αυτήν τη διεύθυνση email.}}\n\nΣτην προσφυγή σου:\n- Εξήγησε σαφώς γιατί πιστεύεις ότι η απόφαση ήταν λανθασμένη ή αδικαιολόγητη\n- Παράθεσε τυχόν σχετικά αποδεικτικά στοιχεία ή πλαίσιο\n\nΈνα μέλος της ομάδας ασφαλείας του {product_name} θα εξετάσει την προσφυγή σου και ενδέχεται να αναστείλει την εκκρεμή διαγραφή μέχρι να ληφθεί τελική απόφαση.\n\n– Η ομάδα ασφαλείας του {product_name}"
- },
- "account_temp_banned": {
- "subject": "Ο λογαριασμός σου στο {product_name} έχει ανασταλεί προσωρινά",
- "body": "Γεια σου {username},\n\nΟ λογαριασμός σου στο {product_name} έχει ανασταλεί προσωρινά για παραβίαση των Όρων παροχής υπηρεσιών ή των Οδηγιών κοινότητας.\n\nΔιάρκεια: {durationHours, plural,\n =1 {μία ώρα}\n other {# ώρες}\n}\nΑναστολή μέχρι: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Λόγος: {reason}\n\n}\n}Κατά τη διάρκεια αυτής της περιόδου, δεν θα έχεις πρόσβαση στον λογαριασμό σου.\n\n{legalLinks, select,\n both {Έλεγξε:\n- Όροι παροχής υπηρεσιών: {termsUrl}\n- Οδηγίες κοινότητας: {guidelinesUrl}\n\n}\n terms {Έλεγξε:\n- Όροι παροχής υπηρεσιών: {termsUrl}\n\n}\n guidelines {Έλεγξε:\n- Οδηγίες κοινότητας: {guidelinesUrl}\n\n}\n other {}\n}Εάν πιστεύεις ότι αυτή η απόφαση ήταν λανθασμένη ή αδικαιολόγητη, μπορείς να υποβάλεις προσφυγή. {appeals_email, select, null {Επικοινώνησε με τους διαχειριστές αυτής της παρουσίας και εξήγησε σαφώς γιατί πιστεύεις ότι η απόφαση ήταν λανθασμένη.} other {Στείλε email στο {appeals_email} από αυτήν τη διεύθυνση email και εξήγησε σαφώς γιατί πιστεύεις ότι η απόφαση ήταν λανθασμένη.}} Θα εξετάσουμε την προσφυγή σου και θα σου απαντήσουμε με την απόφασή μας.\n\n– Η ομάδα ασφαλείας του {product_name}"
+ "body": "Γεια σου {username},\n\nΌπως ζήτησες, προγραμματίσαμε τη διαγραφή του λογαριασμού σου στο {product_name} για τις {deletion_date}.\n\nΓια να κρατήσεις τον λογαριασμό σου, συνδέσου πριν από τις {deletion_date}. {safety_email, select, null {Αν δεν το ζήτησες εσύ, επικοινώνησε με τους διαχειριστές αυτής της παρουσίας.} other {Αν δεν το ζήτησες εσύ, επικοινώνησε με το {safety_email}.}}\n\nΗ ομάδα του {product_name}"
},
"donation_confirmation": {
"subject": "Ευχαριστούμε για τη δωρεά σου στο {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Λάβαμε απόφαση για την αναφορά σου στο {product_name}",
- "body": "Γεια σου,\n\nΗ ομάδα ασφαλείας μας εξέτασε την αναφορά σου βάσει της Πράξης για τις ψηφιακές υπηρεσίες (ID: {reportId}) και έλαβε απόφαση.{hasComment, select, yes {\n\nΑπάντηση από την ομάδα ασφαλείας:\n{publicComment}} other {}}\n\nΔεν κοινοποιούμε λεπτομέρειες για ενέργειες που έγιναν σε βάρος του λογαριασμού άλλου ατόμου, επειδή πρόκειται για δικά του προσωπικά δεδομένα.\n\nΕάν διαφωνείς με αυτήν την απόφαση, μπορείς να υποβάλεις προσφυγή δωρεάν εντός 60 ημερών. {appeals_email, select, null {Επικοινώνησε με τους διαχειριστές αυτής της παρουσίας, ανάφερε το ID της αναφοράς σου και εξήγησε γιατί πιστεύεις ότι η απόφαση είναι λανθασμένη.} other {Στείλε email στο {appeals_email} από αυτήν τη διεύθυνση email, ανάφερε το ID της αναφοράς σου και εξήγησε γιατί πιστεύεις ότι η απόφαση είναι λανθασμένη.}} Εάν βρίσκεσαι στην ΕΕ, μπορείς επίσης να παραπέμψεις τη διαφορά σε πιστοποιημένο όργανο εξωδικαστικής επίλυσης διαφορών. Τίποτα από αυτά δεν επηρεάζει το δικαίωμά σου να προσφύγεις στα δικαστήρια.\n\n– Η ομάδα ασφαλείας του {product_name}"
+ "body": "Γεια σου,\n\nΕξετάσαμε την αναφορά σου (ID: {reportId}).\n\n{outcome, select, removed {Αφαιρέσαμε το περιεχόμενο που ανέφερες, επειδή παραβίαζε τους κανόνες μας.} restricted {Διαπιστώσαμε ότι ο λογαριασμός που ανέφερες παραβίασε τους κανόνες μας και τον περιορίσαμε. Δεν κοινοποιούμε ποια μέτρα λάβαμε κατά άλλου λογαριασμού, επειδή αυτό αποτελεί προσωπικά δεδομένα του κατόχου του.} action_taken {Διαπιστώσαμε ότι αυτό που ανέφερες παραβίασε τους κανόνες μας και λάβαμε μέτρα. Δεν κοινοποιούμε ποια μέτρα λάβαμε κατά άλλου λογαριασμού, επειδή αυτό αποτελεί προσωπικά δεδομένα του κατόχου του.} no_violation {Διαπιστώσαμε ότι το περιεχόμενο ή ο λογαριασμός που ανέφερες δεν παραβιάζει τους κανόνες μας, οπότε δεν κάναμε καμία αλλαγή.} other {Κλείσαμε την αναφορά σου.}}{hasComment, select, yes {\n\nΣημείωση από την ομάδα μας: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nΑν διαφωνείς, στείλε email στο {appeals_email} εντός 60 ημερών και ανάφερε το ID της αναφοράς. Αν βρίσκεσαι στην ΕΕ, μπορείς επίσης να παραπέμψεις το θέμα σε πιστοποιημένο φορέα εξωδικαστικής επίλυσης διαφορών ή να υποβάλεις καταγγελία στον συντονιστή ψηφιακών υπηρεσιών της χώρας σου.}}\n\nΗ ομάδα του {product_name}"
},
"dsa_report_verification": {
"subject": "Επαλήθευσε το email σου για αναφορά DSA",
@@ -51,6 +43,14 @@
"subject": "Επαλήθευσε τη διεύθυνση email σου στο {product_name}",
"body": "Γεια σου {username},\n\nΕπαλήθευσε τη διεύθυνση email για τον λογαριασμό σου στο {product_name} κάνοντας κλικ στον παρακάτω σύνδεσμο:\n\n{verifyUrl}\n\nΕάν δεν δημιούργησες λογαριασμό στο {product_name}, μπορείς να αγνοήσεις με ασφάλεια αυτό το email.\n\nΑυτός ο σύνδεσμος ισχύει για 24 ώρες.\n\n– Η ομάδα του {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Ανακαλέσαμε μια απόφαση για τον λογαριασμό σου στο {product_name}} other {Ένας περιορισμός στον λογαριασμό σου στο {product_name} έληξε}}",
+ "body": "Γεια σου {username},\n\n{outcome, select, reversed {{decision_id, select, null {Εξετάσαμε ξανά μια απόφαση για τον λογαριασμό σου και την ανακαλέσαμε.} other {Εξετάσαμε ξανά την απόφαση {decision_id} και την ανακαλέσαμε.}} Ζητούμε συγγνώμη για την ταλαιπωρία.} other {{decision_id, select, null {Ήραμε τον περιορισμό στον λογαριασμό σου.} other {Ήραμε τον περιορισμό της απόφασης {decision_id}.}}}}{restores_access, select, yes { Μπορείς να συνδεθείς και να χρησιμοποιείς ξανά το {product_name}.} other {}}{statement, select, null {} other {\n\nΣημείωση από την ομάδα μας: {statement}}}{content_removed, select, yes {\n\nΤο περιεχόμενο που αφαιρέσαμε δεν μπορεί να επανέλθει.} other {}}\n\nΗ ομάδα του {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Ενημέρωση για τον λογαριασμό σου στο {product_name}} other {{kind_label, select, warning {Προειδοποίηση για τον λογαριασμό σου στο {product_name}} suspension {Ο λογαριασμός σου στο {product_name} ανεστάλη} ban {Ο λογαριασμός σου στο {product_name} ανεστάλη οριστικά} closure {Ο λογαριασμός σου στο {product_name} έκλεισε} feature_limit {Ορισμένες λειτουργίες του λογαριασμού σου στο {product_name} περιορίστηκαν} content_removal {Αφαιρέσαμε μηνύματα που έστειλες στο {product_name}} profile_reset {Επαναφέραμε ορισμένα μέρη του προφίλ σου στο {product_name}} community_removal {Αφαιρέσαμε την κοινότητά σου από το {product_name}} bot {Ενημέρωση για το bot σου στο {product_name}} other {Ενημέρωση για τον λογαριασμό σου στο {product_name}}}}}",
+ "body": "Γεια σου {username},\n\n{summary}\n\n{effects}\n\nΓιατί\nΚανόνας: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nΣημείωση από την ομάδα μας: {statement}}}\n\nΠώς αποφασίσαμε\n{how_we_decided}{appeals_email, select, null {} other {\n\nΠώς να κάνεις ένσταση\nΑν πιστεύεις ότι κάναμε λάθος, στείλε email στο {appeals_email} έως τις {appeal_deadline}. Αν μπορείς, γράψε από τη διεύθυνση email του λογαριασμού σου και ανάφερε το αναγνωριστικό της απόφασης. Οι ενστάσεις είναι δωρεάν και κάθε μία την εξετάζει ένας άνθρωπος.{redress, select, null {} other {\n\n{redress}}}}}\n\nΑναγνωριστικό απόφασης: {decision_id}\n\nΗ ομάδα του {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Τα προνόμια από το δώρο που εξαργύρωσες έχουν αφαιρεθεί",
"body": "Γεια σου {username},\n\nΈνας κωδικός δώρου που εξαργύρωσες πληρώθηκε αρχικά από κάποιον άλλο. Αυτή η πληρωμή έχει έκτοτε αντιστραφεί (αμφισβήτηση χρέωσης).\n\nΓι' αυτόν τον λόγο, αφαιρέσαμε τα προνόμια που προστέθηκαν στον λογαριασμό σου όταν εξαργύρωσες το δώρο.\n\n{support_email, select, null {Εάν πιστεύεις ότι πρόκειται για λάθος, επικοινώνησε με τους διαχειριστές αυτής της παρουσίας και ανάφερε όσες λεπτομέρειες έχεις σχετικά με τον κωδικό δώρου και το πότε τον εξαργύρωσες.} other {Εάν πιστεύεις ότι πρόκειται για λάθος, επικοινώνησε με την ομάδα υποστήριξής μας και ανάφερε όσες λεπτομέρειες έχεις σχετικά με τον κωδικό δώρου και το πότε τον εξαργύρωσες.}}\n\n– Η ομάδα του {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Η αναφορά σου στο {product_name} έχει εξεταστεί",
- "body": "Γεια σου {username},\n\nΗ αναφορά σου (ID: {reportId}) εξετάστηκε από την ομάδα ασφαλείας μας.{hasComment, select, yes {\n\nΑπάντηση από την ομάδα ασφαλείας:\n{publicComment}} other {}}\n\nΕυχαριστούμε που βοηθάς να παραμείνει το {product_name} ασφαλές για όλους. Λαμβάνουμε σοβαρά υπόψη κάθε αναφορά και εκτιμούμε τη συμβολή σου στην κοινότητα.\n\n{safety_email, select, null {Εάν έχεις ερωτήσεις ή απορίες σχετικά με αυτό το αποτέλεσμα, επικοινώνησε με τους διαχειριστές αυτής της παρουσίας.} other {Εάν έχεις ερωτήσεις ή απορίες σχετικά με αυτό το αποτέλεσμα, στείλε email στο {safety_email}.}}\n\n– Η ομάδα ασφαλείας του {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Ο λογαριασμός σου στο {product_name} θα διαγραφεί οριστικά",
- "body": "Γεια σου {username},\n\nΟ λογαριασμός σου στο {product_name} έχει προγραμματιστεί για οριστική διαγραφή.\n\nΠρογραμματισμένη διαγραφή: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Λόγος: {reason}\n\n}\n}Πρόκειται για σοβαρό μέτρο. Τα δεδομένα του λογαριασμού σου θα διαγραφούν οριστικά την προγραμματισμένη ημερομηνία.\n\nΕάν πιστεύεις ότι αυτή η απόφαση ήταν λανθασμένη, μπορείς να υποβάλεις προσφυγή. {appeals_email, select, null {Επικοινώνησε με τους διαχειριστές αυτής της παρουσίας.} other {Στείλε email στο {appeals_email} από αυτήν τη διεύθυνση email.}}\n\n– Η ομάδα ασφαλείας του {product_name}"
+ "body": "Γεια σου {username},\n\nΕξετάσαμε την αναφορά σου (ID: {reportId}).\n\n{outcome, select, removed {Αφαιρέσαμε το περιεχόμενο που ανέφερες, επειδή παραβίαζε τους κανόνες μας.} restricted {Διαπιστώσαμε ότι ο λογαριασμός που ανέφερες παραβίασε τους κανόνες μας και τον περιορίσαμε. Δεν κοινοποιούμε ποια μέτρα λάβαμε κατά άλλου λογαριασμού, επειδή αυτό αποτελεί προσωπικά δεδομένα του κατόχου του.} action_taken {Διαπιστώσαμε ότι αυτό που ανέφερες παραβίασε τους κανόνες μας και λάβαμε μέτρα. Δεν κοινοποιούμε ποια μέτρα λάβαμε κατά άλλου λογαριασμού, επειδή αυτό αποτελεί προσωπικά δεδομένα του κατόχου του.} no_violation {Διαπιστώσαμε ότι το περιεχόμενο ή ο λογαριασμός που ανέφερες δεν παραβιάζει τους κανόνες μας, οπότε δεν κάναμε καμία αλλαγή.} other {Κλείσαμε την αναφορά σου.}}{hasComment, select, yes {\n\nΣημείωση από την ομάδα μας: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nΑν διαφωνείς, στείλε email στο {appeals_email} εντός 60 ημερών και ανάφερε το ID της αναφοράς. Αν βρίσκεσαι στην ΕΕ, μπορείς επίσης να παραπέμψεις το θέμα σε πιστοποιημένο φορέα εξωδικαστικής επίλυσης διαφορών ή να υποβάλεις καταγγελία στον συντονιστή ψηφιακών υπηρεσιών της χώρας σου.}}\n\nΗ ομάδα του {product_name}"
},
"self_deletion_scheduled": {
"subject": "Η διαγραφή του λογαριασμού σου στο {product_name} είναι προγραμματισμένη",
"body": "Γεια σου {username},\n\nΖήτησες τη διαγραφή του λογαριασμού σου στο {product_name}. Ο λογαριασμός σου έχει προγραμματιστεί για οριστική διαγραφή:\n\n{deletionDate, date, full} και ώρα {deletionDate, time, short}\n\nΕάν δεν το ζήτησες, συνδέσου στον λογαριασμό σου για να ακυρώσεις τη διαγραφή. Σου προτείνουμε επίσης να αλλάξεις τον κωδικό πρόσβασής σου για να ασφαλίσεις τον λογαριασμό σου.\n\n– Η ομάδα του {product_name}"
- },
- "unban_notification": {
- "subject": "Η αναστολή του λογαριασμού σου στο {product_name} έχει αρθεί",
- "body": "Γεια σου {username},\n\nΚαλά νέα: η αναστολή του λογαριασμού σου στο {product_name} έχει αρθεί.\n\n{reason, select,\n null {}\n other {Λόγος: {reason}\n\n}\n}Μπορείς τώρα να συνδεθείς ξανά και να συνεχίσεις να χρησιμοποιείς το {product_name} κανονικά.\n\n– Η ομάδα ασφαλείας του {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/en-GB.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/en-GB.json
index c671e621d..c16dbea4e 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/en-GB.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/en-GB.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Your {product_name} account will be deleted due to inactivity",
- "body": "Hello {username},\n\nYour {product_name} account has been inactive for a long time, so it is scheduled for permanent deletion on:\n\n{deletionDate, date, full} at {deletionDate, time, short}{reason, select, null {} other {\n\nReason: {reason}}}\n\n{safety_email, select, null {If you want to keep your account, contact the administrators of this instance before that date.} other {If you want to keep your account, contact {safety_email} from this email address before that date.}}\n\n– {product_name} Team"
+ "body": "Hello {username},\n\nYour {product_name} account has been inactive for a long time, so we scheduled it for deletion on {deletion_date}.\n\nTo keep your account, sign in before that date. {support_email, select, null {If you have questions, contact the administrators of this instance.} other {If you have questions, contact {support_email}.}}\n\nThe {product_name} team"
},
"account_deletion_scheduled_requested": {
"subject": "Your {product_name} account deletion is scheduled",
- "body": "Hello {username},\n\nAs you requested, your {product_name} account is scheduled for permanent deletion on:\n\n{deletionDate, date, full} at {deletionDate, time, short}{reason, select, null {} other {\n\nReason: {reason}}}\n\nYour account is locked until then. {safety_email, select, null {If you didn't request this, or you want to keep your account, contact the administrators of this instance before that date.} other {If you didn't request this, or you want to keep your account, contact {safety_email} from this email address before that date.}}\n\n– {product_name} Team"
- },
- "account_scheduled_deletion": {
- "subject": "Your {product_name} account will be permanently deleted",
- "body": "Hello {username},\n\nYour {product_name} account has been scheduled for permanent deletion due to violations of our Terms of Service or Community Guidelines.\n\nScheduled deletion: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}This is a serious enforcement action. Your account data will be permanently deleted on the scheduled date.\n\n{legalLinks, select,\n both {Please review:\n- Terms of Service: {termsUrl}\n- Community Guidelines: {guidelinesUrl}\n\n}\n terms {Please review:\n- Terms of Service: {termsUrl}\n\n}\n guidelines {Please review:\n- Community Guidelines: {guidelinesUrl}\n\n}\n other {}\n}Appeals process:\nIf you believe this enforcement decision was incorrect or unjustified, you have 60 days to submit an appeal. {appeals_email, select, null {Contact the administrators of this instance.} other {Email {appeals_email} from this email address.}}\n\nIn your appeal:\n- Clearly explain why you believe the enforcement decision was incorrect or unjustified\n- Provide any relevant evidence or context\n\nA member of the {product_name} Safety Team will review your appeal and may pause the pending deletion until a final decision has been reached.\n\n– {product_name} Safety Team"
- },
- "account_temp_banned": {
- "subject": "Your {product_name} account has been temporarily suspended",
- "body": "Hello {username},\n\nYour {product_name} account has been temporarily suspended for violating our Terms of Service or Community Guidelines.\n\nDuration: {durationHours, plural,\n =1 {1 hour}\n other {# hours}\n}\nSuspended until: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}During this time, you won't be able to access your account.\n\n{legalLinks, select,\n both {Please review:\n- Terms of Service: {termsUrl}\n- Community Guidelines: {guidelinesUrl}\n\n}\n terms {Please review:\n- Terms of Service: {termsUrl}\n\n}\n guidelines {Please review:\n- Community Guidelines: {guidelinesUrl}\n\n}\n other {}\n}If you believe this enforcement decision was incorrect or unjustified, you can submit an appeal. {appeals_email, select, null {Contact the administrators of this instance and clearly explain why you believe the decision was incorrect.} other {Email {appeals_email} from this email address and clearly explain why you believe the decision was incorrect.}} We'll review your appeal and respond with our decision.\n\n– {product_name} Safety Team"
+ "body": "Hello {username},\n\nAs you asked, we scheduled your {product_name} account for deletion on {deletion_date}.\n\nTo keep your account, sign in before {deletion_date}. {safety_email, select, null {If you didn't ask for this, contact the administrators of this instance.} other {If you didn't ask for this, contact {safety_email}.}}\n\nThe {product_name} team"
},
"donation_confirmation": {
"subject": "Thank you for your {product_name} donation",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "We made a decision on your {product_name} report",
- "body": "Hello,\n\nOur Safety Team has reviewed your Digital Services Act report (ID: {reportId}) and made a decision.{hasComment, select, yes {\n\nResponse from the Safety Team:\n{publicComment}} other {}}\n\nWe don't share details of any action taken against another person's account, because that is their personal data.\n\nIf you disagree with this decision, you can appeal free of charge within 60 days. {appeals_email, select, null {Contact the administrators of this instance, include your report ID, and explain why you think the decision is wrong.} other {Email {appeals_email} from this email address, include your report ID, and explain why you think the decision is wrong.}} If you are in the EU, you can also refer the dispute to a certified out-of-court dispute settlement body. None of this affects your right to go to court.\n\n– {product_name} Safety Team"
+ "body": "Hello,\n\nWe reviewed your report (ID: {reportId}).\n\n{outcome, select, removed {We removed the content you reported because it broke our rules.} restricted {We found that the account you reported broke our rules, and we restricted it. We don't share what action we took against another account, because that is their personal data.} action_taken {We found that what you reported broke our rules, and we took action. We don't share what action we took against another account, because that is their personal data.} no_violation {We found that the content or account you reported doesn't break our rules, so we left it as it is.} other {We closed your report.}}{hasComment, select, yes {\n\nNote from our team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nIf you disagree, email {appeals_email} within 60 days and include the report ID. If you're in the EU, you can also refer this to a certified out-of-court dispute settlement body or complain to the Digital Services Coordinator in your country.}}\n\nThe {product_name} team"
},
"dsa_report_verification": {
"subject": "Verify your email for a DSA report",
@@ -51,6 +43,14 @@
"subject": "Verify your {product_name} email address",
"body": "Hello {username},\n\nPlease verify the email address for your {product_name} account by clicking the link below:\n\n{verifyUrl}\n\nIf you didn't create a {product_name} account, you can safely ignore this email.\n\nThis link is valid for 24 hours.\n\n– {product_name} Team"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {We reversed a decision about your {product_name} account} other {A restriction on your {product_name} account has ended}}",
+ "body": "Hello {username},\n\n{outcome, select, reversed {{decision_id, select, null {We looked again at a decision about your account and reversed it.} other {We looked again at decision {decision_id} and reversed it.}} We're sorry for the trouble.} other {{decision_id, select, null {We lifted the restriction on your account.} other {We lifted the restriction from decision {decision_id}.}}}}{restores_access, select, yes { You can sign in and use {product_name} again.} other {}}{statement, select, null {} other {\n\nNote from our team: {statement}}}{content_removed, select, yes {\n\nContent we removed can't be restored.} other {}}\n\nThe {product_name} team"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {An update about your {product_name} account} other {{kind_label, select, warning {A warning about your {product_name} account} suspension {Your {product_name} account is suspended} ban {Your {product_name} account is banned} closure {Your {product_name} account is closed} feature_limit {Some features are limited on your {product_name} account} content_removal {We removed messages you sent on {product_name}} profile_reset {We reset parts of your {product_name} profile} community_removal {We removed your community on {product_name}} bot {An update about your bot on {product_name}} other {An update about your {product_name} account}}}}",
+ "body": "Hello {username},\n\n{summary}\n\n{effects}\n\nWhy\nRule: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNote from our team: {statement}}}\n\nHow we decided\n{how_we_decided}{appeals_email, select, null {} other {\n\nHow to appeal\nIf you think we got this wrong, email {appeals_email} by {appeal_deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one.{redress, select, null {} other {\n\n{redress}}}}}\n\nDecision ID: {decision_id}\n\nThe {product_name} team"
+ },
"gift_chargeback_notification": {
"subject": "Perks from your redeemed gift have been removed",
"body": "Hello {username},\n\nA gift code you redeemed was originally paid for by someone else. That payment has since been reversed (a chargeback).\n\nBecause of this, we've removed the perks that were added to your account when you redeemed the gift.\n\n{support_email, select, null {If you think this is a mistake, please contact the administrators of this instance and include any details you have about the gift code and when you redeemed it.} other {If you think this is a mistake, please contact our support team and include any details you have about the gift code and when you redeemed it.}}\n\n– {product_name} Team"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Your {product_name} report has been reviewed",
- "body": "Hello {username},\n\nYour report (ID: {reportId}) has been reviewed by our Safety Team.{hasComment, select, yes {\n\nResponse from the Safety Team:\n{publicComment}} other {}}\n\nThanks for helping keep {product_name} safe for everyone. We take all reports seriously and appreciate your contribution to the community.\n\n{safety_email, select, null {If you have any questions or concerns about this outcome, please contact the administrators of this instance.} other {If you have any questions or concerns about this outcome, please contact {safety_email}.}}\n\n– {product_name} Safety Team"
- },
- "scheduled_deletion_notification": {
- "subject": "Your {product_name} account will be permanently deleted",
- "body": "Hello {username},\n\nYour {product_name} account has been scheduled for permanent deletion.\n\nScheduled deletion: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}This is a serious enforcement action. Your account data will be permanently deleted on the scheduled date.\n\nIf you believe this enforcement decision was incorrect, you can submit an appeal. {appeals_email, select, null {Contact the administrators of this instance.} other {Email {appeals_email} from this email address.}}\n\n– {product_name} Safety Team"
+ "body": "Hello {username},\n\nWe reviewed your report (ID: {reportId}).\n\n{outcome, select, removed {We removed the content you reported because it broke our rules.} restricted {We found that the account you reported broke our rules, and we restricted it. We don't share what action we took against another account, because that is their personal data.} action_taken {We found that what you reported broke our rules, and we took action. We don't share what action we took against another account, because that is their personal data.} no_violation {We found that the content or account you reported doesn't break our rules, so we left it as it is.} other {We closed your report.}}{hasComment, select, yes {\n\nNote from our team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nIf you disagree, email {appeals_email} within 60 days and include the report ID. If you're in the EU, you can also refer this to a certified out-of-court dispute settlement body or complain to the Digital Services Coordinator in your country.}}\n\nThe {product_name} team"
},
"self_deletion_scheduled": {
"subject": "Your {product_name} account deletion is scheduled",
"body": "Hello {username},\n\nYou requested to delete your {product_name} account. Your account is scheduled for permanent deletion on:\n\n{deletionDate, date, full} at {deletionDate, time, short}\n\nIf you didn't request this, sign in to your account to cancel the deletion. We also recommend changing your password to secure your account.\n\n– {product_name} Team"
- },
- "unban_notification": {
- "subject": "Your {product_name} account suspension has been lifted",
- "body": "Hello {username},\n\nGood news: your {product_name} account suspension has been lifted.\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}You can now log back in and continue using {product_name} as normal.\n\n– {product_name} Safety Team"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/es-419.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/es-419.json
index 3af5e6643..f2c153c09 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/es-419.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/es-419.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Tu cuenta de {product_name} será eliminada debido a inactividad",
- "body": "Hola {username}:\n\nTu cuenta de {product_name} lleva mucho tiempo inactiva, por lo que su eliminación permanente está programada para el:\n\n{deletionDate, date, full} a las {deletionDate, time, short}{reason, select, null {} other {\n\nMotivo: {reason}}}\n\n{safety_email, select, null {Si quieres conservar tu cuenta, comunícate con los administradores de esta instancia antes de esa fecha.} other {Si quieres conservar tu cuenta, comunícate con {safety_email} desde esta dirección de correo electrónico antes de esa fecha.}}\n\n– Equipo de {product_name}"
+ "body": "Hola {username}:\n\nTu cuenta de {product_name} lleva mucho tiempo inactiva, por lo que programamos su eliminación para el {deletion_date}.\n\nPara conservar tu cuenta, inicia sesión antes de esa fecha. {support_email, select, null {Si tienes preguntas, comunícate con los administradores de esta instancia.} other {Si tienes preguntas, comunícate con {support_email}.}}\n\nEl equipo de {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "La eliminación de tu cuenta de {product_name} está programada",
- "body": "Hola {username}:\n\nSegún lo que solicitaste, la eliminación permanente de tu cuenta de {product_name} está programada para el:\n\n{deletionDate, date, full} a las {deletionDate, time, short}{reason, select, null {} other {\n\nMotivo: {reason}}}\n\nTu cuenta permanecerá bloqueada hasta entonces. {safety_email, select, null {Si no solicitaste esto, o si quieres conservar tu cuenta, comunícate con los administradores de esta instancia antes de esa fecha.} other {Si no solicitaste esto, o si quieres conservar tu cuenta, comunícate con {safety_email} desde esta dirección de correo electrónico antes de esa fecha.}}\n\n– Equipo de {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Tu cuenta de {product_name} será eliminada permanentemente",
- "body": "Hola {username}:\n\nSe ha programado la eliminación permanente de tu cuenta de {product_name} debido a infracciones de nuestros Términos del servicio o Normas de la comunidad.\n\nEliminación programada: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Esta es una medida grave. Los datos de tu cuenta se eliminarán permanentemente en la fecha programada.\n\n{legalLinks, select,\n both {Por favor, revisa:\n- Términos del servicio: {termsUrl}\n- Normas de la comunidad: {guidelinesUrl}\n\n}\n terms {Por favor, revisa:\n- Términos del servicio: {termsUrl}\n\n}\n guidelines {Por favor, revisa:\n- Normas de la comunidad: {guidelinesUrl}\n\n}\n other {}\n}Proceso de apelación:\nSi crees que esta decisión fue incorrecta o injustificada, tienes 60 días para presentar una apelación. {appeals_email, select, null {Comunícate con los administradores de esta instancia.} other {Envía un correo electrónico a {appeals_email} desde esta dirección de correo electrónico.}}\n\nEn tu apelación:\n- Explica claramente por qué crees que la decisión fue incorrecta o injustificada\n- Aporta las pruebas o el contexto que consideres relevantes\n\nUn miembro del Equipo de seguridad de {product_name} revisará tu apelación y podrá pausar la eliminación pendiente hasta que se haya tomado una decisión final.\n\n– Equipo de seguridad de {product_name}"
- },
- "account_temp_banned": {
- "subject": "Tu cuenta de {product_name} ha sido suspendida temporalmente",
- "body": "Hola {username}:\n\nTu cuenta de {product_name} ha sido suspendida temporalmente por infringir nuestros Términos del servicio o Normas de la comunidad.\n\nDuración: {durationHours, plural,\n =1 {1 hora}\n other {# horas}\n}\nSuspendida hasta: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Durante este tiempo, no podrás acceder a tu cuenta.\n\n{legalLinks, select,\n both {Por favor, revisa:\n- Términos del servicio: {termsUrl}\n- Normas de la comunidad: {guidelinesUrl}\n\n}\n terms {Por favor, revisa:\n- Términos del servicio: {termsUrl}\n\n}\n guidelines {Por favor, revisa:\n- Normas de la comunidad: {guidelinesUrl}\n\n}\n other {}\n}Si crees que esta decisión fue incorrecta o injustificada, puedes presentar una apelación. {appeals_email, select, null {Comunícate con los administradores de esta instancia y explica claramente por qué crees que la decisión fue incorrecta.} other {Envía un correo electrónico a {appeals_email} desde esta dirección de correo electrónico y explica claramente por qué crees que la decisión fue incorrecta.}} Revisaremos tu apelación y te responderemos con nuestra decisión.\n\n– Equipo de seguridad de {product_name}"
+ "body": "Hola {username}:\n\nTal como lo pediste, programamos la eliminación de tu cuenta de {product_name} para el {deletion_date}.\n\nPara conservar tu cuenta, inicia sesión antes del {deletion_date}. {safety_email, select, null {Si no lo pediste tú, comunícate con los administradores de esta instancia.} other {Si no lo pediste tú, comunícate con {safety_email}.}}\n\nEl equipo de {product_name}"
},
"donation_confirmation": {
"subject": "Gracias por tu donación a {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Tomamos una decisión sobre tu reporte en {product_name}",
- "body": "Hola:\n\nNuestro equipo de seguridad revisó tu reporte conforme a la Ley de Servicios Digitales (ID: {reportId}) y tomó una decisión.{hasComment, select, yes {\n\nRespuesta del equipo de seguridad:\n{publicComment}} other {}}\n\nNo compartimos detalles sobre las medidas tomadas contra la cuenta de otra persona, porque son sus datos personales.\n\nSi no estás de acuerdo con esta decisión, puedes apelar sin costo dentro de un plazo de 60 días. {appeals_email, select, null {Comunícate con los administradores de esta instancia, incluye el ID de tu reporte y explica por qué crees que la decisión es incorrecta.} other {Envía un correo electrónico a {appeals_email} desde esta dirección de correo electrónico, incluye el ID de tu reporte y explica por qué crees que la decisión es incorrecta.}} Si te encuentras en la UE, también puedes remitir la disputa a un órgano certificado de resolución extrajudicial de litigios. Nada de esto afecta tu derecho a acudir a los tribunales.\n\n– Equipo de seguridad de {product_name}"
+ "body": "Hola:\n\nRevisamos tu reporte (ID: {reportId}).\n\n{outcome, select, removed {Eliminamos el contenido que reportaste porque infringía nuestras reglas.} restricted {Comprobamos que la cuenta que reportaste infringía nuestras reglas y la restringimos. No compartimos qué medidas tomamos contra otra cuenta, porque son datos personales de su titular.} action_taken {Comprobamos que lo que reportaste infringía nuestras reglas y tomamos medidas. No compartimos qué medidas tomamos contra otra cuenta, porque son datos personales de su titular.} no_violation {Comprobamos que el contenido o la cuenta que reportaste no infringe nuestras reglas, así que no cambiamos nada.} other {Cerramos tu reporte.}}{hasComment, select, yes {\n\nNota de nuestro equipo: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSi no estás de acuerdo, escribe a {appeals_email} en un plazo de 60 días e indica el ID del reporte. Si estás en la UE, también puedes someter el asunto a un órgano de resolución extrajudicial de litigios certificado o presentar una reclamación ante el coordinador de servicios digitales de tu país.}}\n\nEl equipo de {product_name}"
},
"dsa_report_verification": {
"subject": "Verifica tu correo electrónico para enviar un reporte conforme a la Ley de Servicios Digitales",
@@ -51,6 +43,14 @@
"subject": "Verifica tu dirección de correo electrónico en {product_name}",
"body": "Hola {username}:\n\nPor favor, verifica la dirección de correo electrónico de tu cuenta de {product_name} haciendo clic en el siguiente enlace:\n\n{verifyUrl}\n\nSi no creaste una cuenta de {product_name}, puedes ignorar este correo electrónico de forma segura.\n\nEste enlace es válido por 24 horas.\n\n– Equipo de {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Revocamos una decisión sobre tu cuenta de {product_name}} other {Terminó una restricción de tu cuenta de {product_name}}}",
+ "body": "Hola {username}:\n\n{outcome, select, reversed {{decision_id, select, null {Volvimos a revisar una decisión sobre tu cuenta y la revocamos.} other {Volvimos a revisar la decisión {decision_id} y la revocamos.}} Lamentamos las molestias.} other {{decision_id, select, null {Levantamos la restricción de tu cuenta.} other {Levantamos la restricción de la decisión {decision_id}.}}}}{restores_access, select, yes { Ya puedes iniciar sesión y volver a usar {product_name}.} other {}}{statement, select, null {} other {\n\nNota de nuestro equipo: {statement}}}{content_removed, select, yes {\n\nEl contenido que eliminamos no se puede restaurar.} other {}}\n\nEl equipo de {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Información sobre tu cuenta de {product_name}} other {{kind_label, select, warning {Una advertencia sobre tu cuenta de {product_name}} suspension {Tu cuenta de {product_name} está suspendida} ban {Tu cuenta de {product_name} está suspendida de forma permanente} closure {Tu cuenta de {product_name} está cerrada} feature_limit {Algunas funciones de tu cuenta de {product_name} están limitadas} content_removal {Eliminamos mensajes que enviaste en {product_name}} profile_reset {Restablecimos partes de tu perfil de {product_name}} community_removal {Eliminamos tu comunidad en {product_name}} bot {Información sobre tu bot en {product_name}} other {Información sobre tu cuenta de {product_name}}}}}",
+ "body": "Hola {username}:\n\n{summary}\n\n{effects}\n\nPor qué\nRegla: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNota de nuestro equipo: {statement}}}\n\nCómo lo decidimos\n{how_we_decided}{appeals_email, select, null {} other {\n\nCómo apelar\nSi crees que nos equivocamos, escribe a {appeals_email} a más tardar el {appeal_deadline}. Si puedes, escribe desde la dirección de correo electrónico de tu cuenta e indica el ID de la decisión. Apelar es gratis, y una persona revisa cada apelación.{redress, select, null {} other {\n\n{redress}}}}}\n\nID de la decisión: {decision_id}\n\nEl equipo de {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Los beneficios de tu regalo canjeado han sido eliminados",
"body": "Hola {username}:\n\nUn código de regalo que canjeaste fue pagado originalmente por otra persona. Ese pago ha sido revertido (un contracargo).\n\nDebido a esto, hemos eliminado los beneficios que se agregaron a tu cuenta cuando canjeaste el regalo.\n\n{support_email, select, null {Si crees que esto es un error, comunícate con los administradores de esta instancia e incluye cualquier detalle que tengas sobre el código de regalo y cuándo lo canjeaste.} other {Si crees que esto es un error, comunícate con nuestro equipo de soporte e incluye cualquier detalle que tengas sobre el código de regalo y cuándo lo canjeaste.}}\n\n– Equipo de {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Se revisó tu reporte en {product_name}",
- "body": "Hola {username}:\n\nNuestro equipo de seguridad revisó tu reporte (ID: {reportId}).{hasComment, select, yes {\n\nRespuesta del equipo de seguridad:\n{publicComment}} other {}}\n\nGracias por ayudar a mantener {product_name} seguro para todos. Nos tomamos todos los reportes en serio y agradecemos tu contribución a la comunidad.\n\n{safety_email, select, null {Si tienes alguna pregunta o inquietud sobre este resultado, comunícate con los administradores de esta instancia.} other {Si tienes alguna pregunta o inquietud sobre este resultado, comunícate con {safety_email}.}}\n\n– Equipo de seguridad de {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Tu cuenta de {product_name} será eliminada permanentemente",
- "body": "Hola {username}:\n\nSe ha programado la eliminación permanente de tu cuenta de {product_name}.\n\nEliminación programada: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Esta es una medida grave. Los datos de tu cuenta se eliminarán permanentemente en la fecha programada.\n\nSi crees que esta decisión fue incorrecta, puedes presentar una apelación. {appeals_email, select, null {Comunícate con los administradores de esta instancia.} other {Envía un correo electrónico a {appeals_email} desde esta dirección de correo electrónico.}}\n\n– Equipo de seguridad de {product_name}"
+ "body": "Hola {username}:\n\nRevisamos tu reporte (ID: {reportId}).\n\n{outcome, select, removed {Eliminamos el contenido que reportaste porque infringía nuestras reglas.} restricted {Comprobamos que la cuenta que reportaste infringía nuestras reglas y la restringimos. No compartimos qué medidas tomamos contra otra cuenta, porque son datos personales de su titular.} action_taken {Comprobamos que lo que reportaste infringía nuestras reglas y tomamos medidas. No compartimos qué medidas tomamos contra otra cuenta, porque son datos personales de su titular.} no_violation {Comprobamos que el contenido o la cuenta que reportaste no infringe nuestras reglas, así que no cambiamos nada.} other {Cerramos tu reporte.}}{hasComment, select, yes {\n\nNota de nuestro equipo: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSi no estás de acuerdo, escribe a {appeals_email} en un plazo de 60 días e indica el ID del reporte. Si estás en la UE, también puedes someter el asunto a un órgano de resolución extrajudicial de litigios certificado o presentar una reclamación ante el coordinador de servicios digitales de tu país.}}\n\nEl equipo de {product_name}"
},
"self_deletion_scheduled": {
"subject": "La eliminación de tu cuenta de {product_name} está programada",
"body": "Hola {username}:\n\nSolicitaste eliminar tu cuenta de {product_name}. La eliminación permanente de tu cuenta está programada para el:\n\n{deletionDate, date, full} a las {deletionDate, time, short}\n\nSi no solicitaste esto, inicia sesión en tu cuenta para cancelar la eliminación. También te recomendamos cambiar tu contraseña para proteger tu cuenta.\n\n– Equipo de {product_name}"
- },
- "unban_notification": {
- "subject": "Se levantó la suspensión de tu cuenta de {product_name}",
- "body": "Hola {username}:\n\nBuenas noticias: se levantó la suspensión de tu cuenta de {product_name}.\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Ahora puedes iniciar sesión de nuevo y seguir usando {product_name} con normalidad.\n\n– Equipo de seguridad de {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/es-ES.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/es-ES.json
index fc363a792..5acea8dbc 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/es-ES.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/es-ES.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Tu cuenta de {product_name} será eliminada debido a la inactividad",
- "body": "Hola {username}:\n\nTu cuenta de {product_name} lleva mucho tiempo inactiva, por lo que su eliminación permanente está programada para el:\n\n{deletionDate, date, full} a las {deletionDate, time, short}{reason, select, null {} other {\n\nMotivo: {reason}}}\n\n{safety_email, select, null {Si quieres conservar tu cuenta, ponte en contacto con los administradores de esta instancia antes de esa fecha.} other {Si quieres conservar tu cuenta, ponte en contacto con {safety_email} desde esta dirección de correo electrónico antes de esa fecha.}}\n\n– Equipo de {product_name}"
+ "body": "Hola {username}:\n\nTu cuenta de {product_name} lleva mucho tiempo inactiva, por lo que hemos programado su eliminación para el {deletion_date}.\n\nPara conservar tu cuenta, inicia sesión antes de esa fecha. {support_email, select, null {Si tienes preguntas, ponte en contacto con los administradores de esta instancia.} other {Si tienes preguntas, ponte en contacto con {support_email}.}}\n\nEl equipo de {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "La eliminación de tu cuenta de {product_name} está programada",
- "body": "Hola {username}:\n\nTal y como solicitaste, la eliminación permanente de tu cuenta de {product_name} está programada para el:\n\n{deletionDate, date, full} a las {deletionDate, time, short}{reason, select, null {} other {\n\nMotivo: {reason}}}\n\nTu cuenta permanecerá bloqueada hasta entonces. {safety_email, select, null {Si no solicitaste esto, o si quieres conservar tu cuenta, ponte en contacto con los administradores de esta instancia antes de esa fecha.} other {Si no solicitaste esto, o si quieres conservar tu cuenta, ponte en contacto con {safety_email} desde esta dirección de correo electrónico antes de esa fecha.}}\n\n– Equipo de {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Tu cuenta de {product_name} será eliminada permanentemente",
- "body": "Hola {username}:\n\nSe ha programado la eliminación permanente de tu cuenta de {product_name} debido a infracciones de nuestras Condiciones del servicio o Normas de la comunidad.\n\nEliminación programada: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Esta es una medida grave. Los datos de tu cuenta se eliminarán permanentemente en la fecha programada.\n\n{legalLinks, select,\n both {Por favor, revisa:\n- Condiciones del servicio: {termsUrl}\n- Normas de la comunidad: {guidelinesUrl}\n\n}\n terms {Por favor, revisa:\n- Condiciones del servicio: {termsUrl}\n\n}\n guidelines {Por favor, revisa:\n- Normas de la comunidad: {guidelinesUrl}\n\n}\n other {}\n}Proceso de apelación:\nSi crees que esta decisión fue incorrecta o injustificada, tienes 60 días para presentar una apelación. {appeals_email, select, null {Ponte en contacto con los administradores de esta instancia.} other {Envía un correo electrónico a {appeals_email} desde esta dirección de correo electrónico.}}\n\nEn tu apelación:\n- Explica claramente por qué crees que la decisión fue incorrecta o injustificada\n- Aporta las pruebas o el contexto que consideres relevantes\n\nUn miembro del Equipo de seguridad de {product_name} revisará tu apelación y podrá pausar la eliminación pendiente hasta que se haya tomado una decisión final.\n\n– Equipo de seguridad de {product_name}"
- },
- "account_temp_banned": {
- "subject": "Tu cuenta de {product_name} ha sido suspendida temporalmente",
- "body": "Hola {username}:\n\nTu cuenta de {product_name} ha sido suspendida temporalmente por infringir nuestras Condiciones del servicio o Normas de la comunidad.\n\nDuración: {durationHours, plural,\n =1 {1 hora}\n other {# horas}\n}\nSuspendida hasta: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Durante este tiempo, no podrás acceder a tu cuenta.\n\n{legalLinks, select,\n both {Por favor, revisa:\n- Condiciones del servicio: {termsUrl}\n- Normas de la comunidad: {guidelinesUrl}\n\n}\n terms {Por favor, revisa:\n- Condiciones del servicio: {termsUrl}\n\n}\n guidelines {Por favor, revisa:\n- Normas de la comunidad: {guidelinesUrl}\n\n}\n other {}\n}Si crees que esta decisión fue incorrecta o injustificada, puedes presentar una apelación. {appeals_email, select, null {Ponte en contacto con los administradores de esta instancia y explica claramente por qué crees que la decisión fue incorrecta.} other {Envía un correo electrónico a {appeals_email} desde esta dirección de correo electrónico y explica claramente por qué crees que la decisión fue incorrecta.}} Revisaremos tu apelación y te responderemos con nuestra decisión.\n\n– Equipo de seguridad de {product_name}"
+ "body": "Hola {username}:\n\nTal como pediste, hemos programado la eliminación de tu cuenta de {product_name} para el {deletion_date}.\n\nPara conservar tu cuenta, inicia sesión antes del {deletion_date}. {safety_email, select, null {Si no lo has pedido tú, ponte en contacto con los administradores de esta instancia.} other {Si no lo has pedido tú, ponte en contacto con {safety_email}.}}\n\nEl equipo de {product_name}"
},
"donation_confirmation": {
"subject": "Gracias por tu donación a {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Hemos tomado una decisión sobre tu denuncia en {product_name}",
- "body": "Hola:\n\nNuestro equipo de seguridad ha revisado tu denuncia conforme a la Ley de Servicios Digitales (ID: {reportId}) y ha tomado una decisión.{hasComment, select, yes {\n\nRespuesta del equipo de seguridad:\n{publicComment}} other {}}\n\nNo compartimos detalles sobre las medidas adoptadas contra la cuenta de otra persona, porque son sus datos personales.\n\nSi no estás de acuerdo con esta decisión, puedes presentar una apelación de forma gratuita en un plazo de 60 días. {appeals_email, select, null {Ponte en contacto con los administradores de esta instancia, incluye el ID de tu denuncia y explica por qué crees que la decisión es incorrecta.} other {Envía un correo electrónico a {appeals_email} desde esta dirección de correo electrónico, incluye el ID de tu denuncia y explica por qué crees que la decisión es incorrecta.}} Si te encuentras en la UE, también puedes someter el litigio a un órgano certificado de resolución extrajudicial de litigios. Nada de esto afecta a tu derecho a acudir a los tribunales.\n\n– Equipo de seguridad de {product_name}"
+ "body": "Hola:\n\nHemos revisado tu denuncia (ID: {reportId}).\n\n{outcome, select, removed {Hemos eliminado el contenido que denunciaste porque infringía nuestras normas.} restricted {Hemos comprobado que la cuenta que denunciaste infringía nuestras normas y la hemos restringido. No compartimos qué medidas hemos tomado contra otra cuenta, porque son datos personales de su titular.} action_taken {Hemos comprobado que lo que denunciaste infringía nuestras normas y hemos tomado medidas. No compartimos qué medidas hemos tomado contra otra cuenta, porque son datos personales de su titular.} no_violation {Hemos comprobado que el contenido o la cuenta que denunciaste no infringe nuestras normas, así que no hemos cambiado nada.} other {Hemos cerrado tu denuncia.}}{hasComment, select, yes {\n\nNota de nuestro equipo: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSi no estás de acuerdo, escribe a {appeals_email} en un plazo de 60 días e indica el ID de la denuncia. Si estás en la UE, también puedes someter el asunto a un órgano de resolución extrajudicial de litigios certificado o presentar una reclamación ante el coordinador de servicios digitales de tu país.}}\n\nEl equipo de {product_name}"
},
"dsa_report_verification": {
"subject": "Verifica tu correo electrónico para enviar una denuncia conforme a la Ley de Servicios Digitales",
@@ -51,6 +43,14 @@
"subject": "Verifica tu dirección de correo electrónico en {product_name}",
"body": "Hola {username}:\n\nVerifica la dirección de correo electrónico de tu cuenta de {product_name} haciendo clic en el siguiente enlace:\n\n{verifyUrl}\n\nSi no creaste una cuenta de {product_name}, puedes ignorar este correo electrónico.\n\nEste enlace es válido durante 24 horas.\n\n– Equipo de {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Hemos revocado una decisión sobre tu cuenta de {product_name}} other {Ha terminado una restricción de tu cuenta de {product_name}}}",
+ "body": "Hola {username}:\n\n{outcome, select, reversed {{decision_id, select, null {Hemos vuelto a revisar una decisión sobre tu cuenta y la hemos revocado.} other {Hemos vuelto a revisar la decisión {decision_id} y la hemos revocado.}} Sentimos las molestias.} other {{decision_id, select, null {Hemos levantado la restricción de tu cuenta.} other {Hemos levantado la restricción de la decisión {decision_id}.}}}}{restores_access, select, yes { Ya puedes iniciar sesión y volver a usar {product_name}.} other {}}{statement, select, null {} other {\n\nNota de nuestro equipo: {statement}}}{content_removed, select, yes {\n\nEl contenido que hemos eliminado no se puede restaurar.} other {}}\n\nEl equipo de {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Información sobre tu cuenta de {product_name}} other {{kind_label, select, warning {Una advertencia sobre tu cuenta de {product_name}} suspension {Tu cuenta de {product_name} está suspendida} ban {Tu cuenta de {product_name} está suspendida de forma permanente} closure {Tu cuenta de {product_name} está cerrada} feature_limit {Algunas funciones de tu cuenta de {product_name} están limitadas} content_removal {Hemos eliminado mensajes que enviaste en {product_name}} profile_reset {Hemos restablecido partes de tu perfil de {product_name}} community_removal {Hemos eliminado tu comunidad en {product_name}} bot {Información sobre tu bot en {product_name}} other {Información sobre tu cuenta de {product_name}}}}}",
+ "body": "Hola {username}:\n\n{summary}\n\n{effects}\n\nPor qué\nNorma: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNota de nuestro equipo: {statement}}}\n\nCómo lo hemos decidido\n{how_we_decided}{appeals_email, select, null {} other {\n\nCómo apelar\nSi crees que nos hemos equivocado, escribe a {appeals_email} a más tardar el {appeal_deadline}. Si puedes, escribe desde la dirección de correo electrónico de tu cuenta e indica el ID de la decisión. Apelar es gratis, y una persona revisa cada apelación.{redress, select, null {} other {\n\n{redress}}}}}\n\nID de la decisión: {decision_id}\n\nEl equipo de {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Se han eliminado las ventajas obtenidas con tu regalo canjeado",
"body": "Hola {username}:\n\nUn código de regalo que canjeaste fue pagado originalmente por otra persona. Ese pago ha sido revertido (una devolución de cargo).\n\nDebido a esto, hemos eliminado las ventajas que se añadieron a tu cuenta cuando canjeaste el regalo.\n\n{support_email, select, null {Si crees que esto es un error, ponte en contacto con los administradores de esta instancia e incluye cualquier detalle que tengas sobre el código de regalo y cuándo lo canjeaste.} other {Si crees que esto es un error, ponte en contacto con nuestro equipo de soporte e incluye cualquier detalle que tengas sobre el código de regalo y cuándo lo canjeaste.}}\n\n– Equipo de {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Se ha revisado tu denuncia en {product_name}",
- "body": "Hola {username}:\n\nNuestro equipo de seguridad ha revisado tu denuncia (ID: {reportId}).{hasComment, select, yes {\n\nRespuesta del equipo de seguridad:\n{publicComment}} other {}}\n\nGracias por ayudarnos a mantener {product_name} seguro para todos. Nos tomamos todas las denuncias en serio y agradecemos tu contribución a la comunidad.\n\n{safety_email, select, null {Si tienes alguna pregunta o inquietud sobre este resultado, ponte en contacto con los administradores de esta instancia.} other {Si tienes alguna pregunta o inquietud sobre este resultado, ponte en contacto con {safety_email}.}}\n\n– Equipo de seguridad de {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Tu cuenta de {product_name} será eliminada permanentemente",
- "body": "Hola {username}:\n\nSe ha programado la eliminación permanente de tu cuenta de {product_name}.\n\nEliminación programada: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Esta es una medida grave. Los datos de tu cuenta se eliminarán permanentemente en la fecha programada.\n\nSi crees que esta decisión fue incorrecta, puedes presentar una apelación. {appeals_email, select, null {Ponte en contacto con los administradores de esta instancia.} other {Envía un correo electrónico a {appeals_email} desde esta dirección de correo electrónico.}}\n\n– Equipo de seguridad de {product_name}"
+ "body": "Hola {username}:\n\nHemos revisado tu denuncia (ID: {reportId}).\n\n{outcome, select, removed {Hemos eliminado el contenido que denunciaste porque infringía nuestras normas.} restricted {Hemos comprobado que la cuenta que denunciaste infringía nuestras normas y la hemos restringido. No compartimos qué medidas hemos tomado contra otra cuenta, porque son datos personales de su titular.} action_taken {Hemos comprobado que lo que denunciaste infringía nuestras normas y hemos tomado medidas. No compartimos qué medidas hemos tomado contra otra cuenta, porque son datos personales de su titular.} no_violation {Hemos comprobado que el contenido o la cuenta que denunciaste no infringe nuestras normas, así que no hemos cambiado nada.} other {Hemos cerrado tu denuncia.}}{hasComment, select, yes {\n\nNota de nuestro equipo: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSi no estás de acuerdo, escribe a {appeals_email} en un plazo de 60 días e indica el ID de la denuncia. Si estás en la UE, también puedes someter el asunto a un órgano de resolución extrajudicial de litigios certificado o presentar una reclamación ante el coordinador de servicios digitales de tu país.}}\n\nEl equipo de {product_name}"
},
"self_deletion_scheduled": {
"subject": "La eliminación de tu cuenta de {product_name} está programada",
"body": "Hola {username}:\n\nSolicitaste eliminar tu cuenta de {product_name}. La eliminación permanente de tu cuenta está programada para el:\n\n{deletionDate, date, full} a las {deletionDate, time, short}\n\nSi no solicitaste esto, inicia sesión en tu cuenta para cancelar la eliminación. También te recomendamos cambiar tu contraseña para proteger tu cuenta.\n\n– Equipo de {product_name}"
- },
- "unban_notification": {
- "subject": "Se ha levantado la suspensión de tu cuenta de {product_name}",
- "body": "Hola {username}:\n\nBuenas noticias: se ha levantado la suspensión de tu cuenta de {product_name}.\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Ahora puedes volver a iniciar sesión y seguir usando {product_name} con normalidad.\n\n– Equipo de seguridad de {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/fi.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/fi.json
index c73bbf805..8008b03a7 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/fi.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/fi.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "{product_name}-tilisi poistetaan käyttämättömyyden vuoksi",
- "body": "Hei {username},\n\n{product_name}-tilisi on ollut pitkään käyttämättä, joten se on ajoitettu poistettavaksi pysyvästi:\n\n{deletionDate, date, full} klo {deletionDate, time, short}{reason, select, null {} other {\n\nSyy: {reason}}}\n\n{safety_email, select, null {Jos haluat säilyttää tilisi, ota yhteyttä tämän instanssin ylläpitäjiin ennen tätä päivämäärää.} other {Jos haluat säilyttää tilisi, ota yhteyttä osoitteeseen {safety_email} tästä sähköpostiosoitteesta ennen tätä päivämäärää.}}\n\n– {product_name}-tiimi"
+ "body": "Hei {username},\n\n{product_name}-tilisi on ollut pitkään käyttämättä, joten ajoitimme sen poistettavaksi {deletion_date}.\n\nJos haluat säilyttää tilisi, kirjaudu sisään ennen tätä päivämäärää. {support_email, select, null {Jos sinulla on kysyttävää, ota yhteyttä tämän instanssin ylläpitäjiin.} other {Jos sinulla on kysyttävää, ota yhteyttä osoitteeseen {support_email}.}}\n\n{product_name}-tiimi"
},
"account_deletion_scheduled_requested": {
"subject": "{product_name}-tilisi poistaminen on ajoitettu",
- "body": "Hei {username},\n\nPyyntösi mukaisesti {product_name}-tilisi on ajoitettu poistettavaksi pysyvästi:\n\n{deletionDate, date, full} klo {deletionDate, time, short}{reason, select, null {} other {\n\nSyy: {reason}}}\n\nTilisi on lukittu siihen asti. {safety_email, select, null {Jos et pyytänyt tätä tai haluat säilyttää tilisi, ota yhteyttä tämän instanssin ylläpitäjiin ennen tätä päivämäärää.} other {Jos et pyytänyt tätä tai haluat säilyttää tilisi, ota yhteyttä osoitteeseen {safety_email} tästä sähköpostiosoitteesta ennen tätä päivämäärää.}}\n\n– {product_name}-tiimi"
- },
- "account_scheduled_deletion": {
- "subject": "Käyttäjätilisi {product_name}-palvelussa poistetaan pysyvästi",
- "body": "Hei {username},\n\n{product_name}-käyttäjätilisi on ajoitettu poistettavaksi pysyvästi käyttöehtojemme tai yhteisösääntöjemme rikkomisen vuoksi.\n\nAjoitettu poisto: {deletionDate, date, full} klo {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Syy: {reason}\n\n}\n}Tämä on vakava toimenpide. Tilisi tiedot poistetaan pysyvästi ajoitettuna päivänä.\n\n{legalLinks, select,\n both {Tutustu:\n- Käyttöehdot: {termsUrl}\n- Yhteisön säännöt: {guidelinesUrl}\n\n}\n terms {Tutustu:\n- Käyttöehdot: {termsUrl}\n\n}\n guidelines {Tutustu:\n- Yhteisön säännöt: {guidelinesUrl}\n\n}\n other {}\n}Valitusprosessi:\nJos uskot, että tämä päätös oli virheellinen tai perusteeton, sinulla on 60 päivää aikaa tehdä valitus. {appeals_email, select, null {Ota yhteyttä tämän instanssin ylläpitäjiin.} other {Lähetä sähköpostia osoitteeseen {appeals_email} tästä sähköpostiosoitteesta.}}\n\nValituksessasi:\n- Selitä selkeästi, miksi uskot päätöksen olleen virheellinen tai perusteeton\n- Liitä mukaan asiaankuuluvat todisteet tai taustatiedot\n\n{product_name}-turvallisuustiimin jäsen käsittelee valituksesi ja voi keskeyttää vireillä olevan poiston, kunnes lopullinen päätös on tehty.\n\n– {product_name}-turvallisuustiimi"
- },
- "account_temp_banned": {
- "subject": "Käyttäjätilisi {product_name}-palvelussa on tilapäisesti jäädytetty",
- "body": "Hei {username},\n\n{product_name}-käyttäjätilisi on jäädytetty tilapäisesti käyttöehtojemme tai yhteisösääntöjemme rikkomisen vuoksi.\n\nKesto: {durationHours, plural,\n =1 {1 tunti}\n other {# tuntia}\n}\nJäädytettynä {bannedUntil, date, full} klo {bannedUntil, time, short} asti\n\n{reason, select,\n null {}\n other {Syy: {reason}\n\n}\n}Tänä aikana et voi käyttää tiliäsi.\n\n{legalLinks, select,\n both {Tutustu:\n- Käyttöehdot: {termsUrl}\n- Yhteisön säännöt: {guidelinesUrl}\n\n}\n terms {Tutustu:\n- Käyttöehdot: {termsUrl}\n\n}\n guidelines {Tutustu:\n- Yhteisön säännöt: {guidelinesUrl}\n\n}\n other {}\n}Jos uskot, että tämä päätös oli virheellinen tai perusteeton, voit tehdä valituksen. {appeals_email, select, null {Ota yhteyttä tämän instanssin ylläpitäjiin ja selitä selkeästi, miksi uskot päätöksen olleen virheellinen.} other {Lähetä sähköpostia osoitteeseen {appeals_email} tästä sähköpostiosoitteesta ja selitä selkeästi, miksi uskot päätöksen olleen virheellinen.}} Käsittelemme valituksesi ja ilmoitamme sinulle päätöksemme.\n\n– {product_name}-turvallisuustiimi"
+ "body": "Hei {username},\n\nPyyntösi mukaisesti ajoitimme {product_name}-tilisi poistettavaksi {deletion_date}.\n\nJos haluat säilyttää tilisi, kirjaudu sisään ennen {deletion_date}. {safety_email, select, null {Jos et pyytänyt tätä, ota yhteyttä tämän instanssin ylläpitäjiin.} other {Jos et pyytänyt tätä, ota yhteyttä osoitteeseen {safety_email}.}}\n\n{product_name}-tiimi"
},
"donation_confirmation": {
"subject": "Kiitos {product_name}-lahjoituksestasi",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Teimme päätöksen {product_name}-ilmoituksestasi",
- "body": "Hei,\n\nTurvallisuustiimimme on käsitellyt digipalvelusäädöksen mukaisen ilmoituksesi (ID: {reportId}) ja tehnyt päätöksen.{hasComment, select, yes {\n\nTurvallisuustiimin vastaus:\n{publicComment}} other {}}\n\nEmme kerro toisen henkilön tiliin kohdistuneista toimista, koska ne ovat hänen henkilötietojaan.\n\nJos olet eri mieltä päätöksestä, voit valittaa siitä maksutta 60 päivän kuluessa. {appeals_email, select, null {Ota yhteyttä tämän instanssin ylläpitäjiin, kerro ilmoituksesi tunnus ja selitä, miksi pidät päätöstä virheellisenä.} other {Lähetä sähköpostia osoitteeseen {appeals_email} tästä sähköpostiosoitteesta, kerro ilmoituksesi tunnus ja selitä, miksi pidät päätöstä virheellisenä.}} Jos olet EU:ssa, voit myös viedä riidan sertifioidun tuomioistuimen ulkopuolisen riidanratkaisuelimen käsiteltäväksi. Mikään tästä ei vaikuta oikeuteesi viedä asia tuomioistuimeen.\n\n– {product_name}-turvallisuustiimi"
+ "body": "Hei,\n\nKävimme läpi ilmoituksesi (tunnus: {reportId}).\n\n{outcome, select, removed {Poistimme ilmoittamasi sisällön, koska se rikkoi sääntöjämme.} restricted {Totesimme, että ilmoittamasi tili rikkoi sääntöjämme, ja rajoitimme sitä. Emme kerro, mihin toimiin ryhdyimme toista tiliä kohtaan, koska se on kyseisen henkilön henkilötietoa.} action_taken {Totesimme, että ilmoittamasi asia rikkoi sääntöjämme, ja ryhdyimme toimiin. Emme kerro, mihin toimiin ryhdyimme toista tiliä kohtaan, koska se on kyseisen henkilön henkilötietoa.} no_violation {Totesimme, että ilmoittamasi sisältö tai tili ei riko sääntöjämme, joten jätimme sen ennalleen.} other {Suljimme ilmoituksesi.}}{hasComment, select, yes {\n\nTiimimme huomautus: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nJos olet eri mieltä, lähetä sähköpostia osoitteeseen {appeals_email} 60 päivän kuluessa ja mainitse ilmoituksen tunnus. Jos olet EU:ssa, voit myös saattaa asian sertifioidun tuomioistuinten ulkopuolisen riitojenratkaisuelimen käsiteltäväksi tai tehdä valituksen maasi digitaalisten palvelujen koordinaattorille.}}\n\n{product_name}-tiimi"
},
"dsa_report_verification": {
"subject": "Vahvista sähköpostiosoitteesi DSA-ilmoitusta varten",
@@ -51,6 +43,14 @@
"subject": "Vahvista sähköpostiosoitteesi {product_name}-tilillä",
"body": "Hei {username},\n\nVahvista {product_name}-tilisi sähköpostiosoite napsauttamalla alla olevaa linkkiä:\n\n{verifyUrl}\n\nJos et luonut {product_name}-tiliä, voit jättää tämän sähköpostin turvallisesti huomiotta.\n\nTämä linkki on voimassa 24 tuntia.\n\n– {product_name}-tiimi"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Kumosimme {product_name}-tiliäsi koskevan päätöksen} other {{product_name}-tilisi rajoitus on päättynyt}}",
+ "body": "Hei {username},\n\n{outcome, select, reversed {{decision_id, select, null {Tarkastelimme uudelleen tiliäsi koskevaa päätöstä ja kumosimme sen.} other {Tarkastelimme uudelleen päätöstä {decision_id} ja kumosimme sen.}} Pahoittelemme aiheutunutta harmia.} other {{decision_id, select, null {Poistimme tiliisi kohdistuneen rajoituksen.} other {Poistimme päätökseen {decision_id} perustuneen rajoituksen.}}}}{restores_access, select, yes { Voit taas kirjautua sisään ja käyttää palvelua {product_name}.} other {}}{statement, select, null {} other {\n\nTiimimme huomautus: {statement}}}{content_removed, select, yes {\n\nPoistamaamme sisältöä ei voi palauttaa.} other {}}\n\n{product_name}-tiimi"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Tietoa {product_name}-tilistäsi} other {{kind_label, select, warning {Varoitus {product_name}-tilisi toiminnasta} suspension {{product_name}-tilisi on jäädytetty} ban {{product_name}-tilisi on jäädytetty pysyvästi} closure {{product_name}-tilisi on suljettu} feature_limit {Joitakin {product_name}-tilisi ominaisuuksia on rajoitettu} content_removal {Poistimme viestejä, jotka lähetit palvelussa {product_name}} profile_reset {Nollasimme osia {product_name}-profiilistasi} community_removal {Poistimme yhteisösi palvelusta {product_name}} bot {Tietoa botistasi palvelussa {product_name}} other {Tietoa {product_name}-tilistäsi}}}}",
+ "body": "Hei {username},\n\n{summary}\n\n{effects}\n\nMiksi\nSääntö: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nTiimimme huomautus: {statement}}}\n\nMiten päätimme\n{how_we_decided}{appeals_email, select, null {} other {\n\nNäin valitat päätöksestä\nJos uskot, että teimme virheen, lähetä sähköpostia osoitteeseen {appeals_email} viimeistään {appeal_deadline}. Kirjoita tilisi sähköpostiosoitteesta, jos voit, ja mainitse päätöksen tunnus. Valittaminen on maksutonta, ja jokaisen valituksen käsittelee ihminen.{redress, select, null {} other {\n\n{redress}}}}}\n\nPäätöksen tunnus: {decision_id}\n\n{product_name}-tiimi"
+ },
"gift_chargeback_notification": {
"subject": "Lunastamasi lahjan edut on poistettu",
"body": "Hei {username},\n\nLunastamasi lahjakoodin oli alun perin maksanut joku muu. Kyseinen maksu on sittemmin peruutettu (takaisinperintä).\n\nTämän vuoksi olemme poistaneet edut, jotka lisättiin tilillesi, kun lunastit lahjan.\n\n{support_email, select, null {Jos uskot tämän olevan virhe, ota yhteyttä tämän instanssin ylläpitäjiin ja liitä mukaan kaikki tiedot lahjakoodista ja sen lunastusajankohdasta.} other {Jos uskot tämän olevan virhe, ota yhteyttä tukitiimiimme ja liitä mukaan kaikki tiedot lahjakoodista ja sen lunastusajankohdasta.}}\n\n– {product_name}-tiimi"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "{product_name}-ilmoituksesi on käsitelty",
- "body": "Hei {username},\n\nTurvallisuustiimimme on käsitellyt ilmoituksesi (ID: {reportId}).{hasComment, select, yes {\n\nTurvallisuustiimin vastaus:\n{publicComment}} other {}}\n\nKiitos, että autat pitämään {product_name}-palvelun turvallisena kaikille. Otamme kaikki ilmoitukset vakavasti ja arvostamme panostasi yhteisöön.\n\n{safety_email, select, null {Jos sinulla on kysyttävää tai huolenaiheita tästä päätöksestä, ota yhteyttä tämän instanssin ylläpitäjiin.} other {Jos sinulla on kysyttävää tai huolenaiheita tästä päätöksestä, ota yhteyttä osoitteeseen {safety_email}.}}\n\n– {product_name}-turvallisuustiimi"
- },
- "scheduled_deletion_notification": {
- "subject": "Käyttäjätilisi {product_name}-palvelussa poistetaan pysyvästi",
- "body": "Hei {username},\n\n{product_name}-tilisi on ajoitettu poistettavaksi pysyvästi.\n\nAjoitettu poisto: {deletionDate, date, full} klo {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Syy: {reason}\n\n}\n}Tämä on vakava toimenpide. Tilisi tiedot poistetaan pysyvästi ajoitettuna päivänä.\n\nJos uskot, että tämä päätös oli virheellinen, voit tehdä valituksen. {appeals_email, select, null {Ota yhteyttä tämän instanssin ylläpitäjiin.} other {Lähetä sähköpostia osoitteeseen {appeals_email} tästä sähköpostiosoitteesta.}}\n\n– {product_name}-turvallisuustiimi"
+ "body": "Hei {username},\n\nKävimme läpi ilmoituksesi (tunnus: {reportId}).\n\n{outcome, select, removed {Poistimme ilmoittamasi sisällön, koska se rikkoi sääntöjämme.} restricted {Totesimme, että ilmoittamasi tili rikkoi sääntöjämme, ja rajoitimme sitä. Emme kerro, mihin toimiin ryhdyimme toista tiliä kohtaan, koska se on kyseisen henkilön henkilötietoa.} action_taken {Totesimme, että ilmoittamasi asia rikkoi sääntöjämme, ja ryhdyimme toimiin. Emme kerro, mihin toimiin ryhdyimme toista tiliä kohtaan, koska se on kyseisen henkilön henkilötietoa.} no_violation {Totesimme, että ilmoittamasi sisältö tai tili ei riko sääntöjämme, joten jätimme sen ennalleen.} other {Suljimme ilmoituksesi.}}{hasComment, select, yes {\n\nTiimimme huomautus: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nJos olet eri mieltä, lähetä sähköpostia osoitteeseen {appeals_email} 60 päivän kuluessa ja mainitse ilmoituksen tunnus. Jos olet EU:ssa, voit myös saattaa asian sertifioidun tuomioistuinten ulkopuolisen riitojenratkaisuelimen käsiteltäväksi tai tehdä valituksen maasi digitaalisten palvelujen koordinaattorille.}}\n\n{product_name}-tiimi"
},
"self_deletion_scheduled": {
"subject": "{product_name}-tilisi poistaminen on ajoitettu",
"body": "Hei {username},\n\nPyysit {product_name}-tilisi poistamista. Tilisi on ajoitettu poistettavaksi pysyvästi:\n\n{deletionDate, date, full} klo {deletionDate, time, short}\n\nJos et pyytänyt tätä, kirjaudu tilillesi peruuttaaksesi poiston. Suosittelemme myös vaihtamaan salasanasi tilisi turvaamiseksi.\n\n– {product_name}-tiimi"
- },
- "unban_notification": {
- "subject": "{product_name}-tilisi jäädytys on poistettu",
- "body": "Hei {username},\n\nHyviä uutisia: {product_name}-tilisi jäädytys on poistettu.\n\n{reason, select,\n null {}\n other {Syy: {reason}\n\n}\n}Voit nyt kirjautua takaisin sisään ja jatkaa {product_name}-palvelun käyttöä normaalisti.\n\n– {product_name}-turvallisuustiimi"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/fr.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/fr.json
index 6c4e44f4c..979565c17 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/fr.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/fr.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Votre compte {product_name} sera supprimé pour inactivité",
- "body": "Bonjour {username},\n\nVotre compte {product_name} est inactif depuis longtemps. Sa suppression définitive est donc prévue le :\n\n{deletionDate, date, full} à {deletionDate, time, short}{reason, select, null {} other {\n\nMotif : {reason}}}\n\n{safety_email, select, null {Si vous souhaitez conserver votre compte, contactez les administrateurs de cette instance avant cette date.} other {Si vous souhaitez conserver votre compte, contactez {safety_email} depuis cette adresse e-mail avant cette date.}}\n\n– L’équipe {product_name}"
+ "body": "Bonjour {username},\n\nVotre compte {product_name} est inactif depuis longtemps. Nous avons donc programmé sa suppression pour le {deletion_date}.\n\nPour conserver votre compte, connectez-vous avant cette date. {support_email, select, null {Si vous avez des questions, contactez les administrateurs de cette instance.} other {Si vous avez des questions, contactez {support_email}.}}\n\nL’équipe {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "La suppression de votre compte {product_name} est programmée",
- "body": "Bonjour {username},\n\nComme vous l’avez demandé, la suppression définitive de votre compte {product_name} est prévue le :\n\n{deletionDate, date, full} à {deletionDate, time, short}{reason, select, null {} other {\n\nMotif : {reason}}}\n\nVotre compte est verrouillé d’ici là. {safety_email, select, null {Si vous n’êtes pas à l’origine de cette demande, ou si vous souhaitez conserver votre compte, contactez les administrateurs de cette instance avant cette date.} other {Si vous n’êtes pas à l’origine de cette demande, ou si vous souhaitez conserver votre compte, contactez {safety_email} depuis cette adresse e-mail avant cette date.}}\n\n– L’équipe {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Votre compte {product_name} sera définitivement supprimé",
- "body": "Bonjour {username},\n\nLa suppression définitive de votre compte {product_name} a été programmée en raison de violations de nos conditions d’utilisation ou des règles de la communauté.\n\nSuppression prévue : {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select, null {} other {Motif : {reason}\n\n}}Il s’agit d’une sanction importante. Les données de votre compte seront définitivement supprimées à la date prévue.\n\n{legalLinks, select,\n both {Veuillez consulter :\n- Conditions d’utilisation : {termsUrl}\n- Règles de la communauté : {guidelinesUrl}\n\n}\n terms {Veuillez consulter :\n- Conditions d’utilisation : {termsUrl}\n\n}\n guidelines {Veuillez consulter :\n- Règles de la communauté : {guidelinesUrl}\n\n}\n other {}\n}Procédure de recours :\nSi vous estimez que cette décision est incorrecte ou injustifiée, vous disposez de 60 jours pour déposer un recours. {appeals_email, select, null {Contactez les administrateurs de cette instance.} other {Écrivez à {appeals_email} depuis cette adresse e-mail.}}\n\nDans votre recours :\n- Expliquez clairement pourquoi vous estimez la décision incorrecte ou injustifiée\n- Fournissez tout élément de preuve ou de contexte pertinent\n\nUn membre de l’équipe de sécurité de {product_name} examinera votre recours et pourra suspendre la suppression prévue jusqu’à la décision finale.\n\n– L’équipe de sécurité de {product_name}"
- },
- "account_temp_banned": {
- "subject": "Votre compte {product_name} a été temporairement suspendu",
- "body": "Bonjour {username},\n\nVotre compte {product_name} a été temporairement suspendu pour violation de nos conditions d’utilisation ou des règles de la communauté.\n\nDurée : {durationHours, plural, =1 {1 heure} other {# heures}}\nSuspension jusqu’au : {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select, null {} other {Motif : {reason}\n\n}}Vous ne pourrez pas accéder à votre compte pendant cette période.\n\n{legalLinks, select,\n both {Veuillez consulter :\n- Conditions d’utilisation : {termsUrl}\n- Règles de la communauté : {guidelinesUrl}\n\n}\n terms {Veuillez consulter :\n- Conditions d’utilisation : {termsUrl}\n\n}\n guidelines {Veuillez consulter :\n- Règles de la communauté : {guidelinesUrl}\n\n}\n other {}\n}Si vous estimez que cette décision est incorrecte ou injustifiée, vous pouvez déposer un recours. {appeals_email, select, null {Contactez les administrateurs de cette instance et expliquez clairement pourquoi vous contestez cette décision.} other {Écrivez à {appeals_email} depuis cette adresse e-mail et expliquez clairement pourquoi vous contestez cette décision.}} Nous examinerons votre recours et vous communiquerons notre décision.\n\n– L’équipe de sécurité de {product_name}"
+ "body": "Bonjour {username},\n\nComme vous l’avez demandé, la suppression de votre compte {product_name} est programmée pour le {deletion_date}.\n\nPour conserver votre compte, connectez-vous avant le {deletion_date}. {safety_email, select, null {Si vous n’êtes pas à l’origine de cette demande, contactez les administrateurs de cette instance.} other {Si vous n’êtes pas à l’origine de cette demande, contactez {safety_email}.}}\n\nL’équipe {product_name}"
},
"donation_confirmation": {
"subject": "Merci pour votre don à {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Nous avons pris une décision concernant votre signalement sur {product_name}",
- "body": "Bonjour,\n\nNotre équipe de sécurité a examiné votre signalement au titre du règlement sur les services numériques (ID : {reportId}) et a pris une décision.{hasComment, select, yes {\n\nRéponse de l’équipe de sécurité :\n{publicComment}} other {}}\n\nNous ne communiquons pas le détail des mesures prises à l’encontre du compte d’une autre personne, car il s’agit de ses données personnelles.\n\nSi vous n’êtes pas d’accord avec cette décision, vous pouvez déposer un recours gratuitement dans un délai de 60 jours. {appeals_email, select, null {Contactez les administrateurs de cette instance, indiquez l’ID de votre signalement et expliquez pourquoi vous estimez que la décision est incorrecte.} other {Écrivez à {appeals_email} depuis cette adresse e-mail, indiquez l’ID de votre signalement et expliquez pourquoi vous estimez que la décision est incorrecte.}} Si vous êtes dans l’UE, vous pouvez également soumettre le litige à un organe certifié de règlement extrajudiciaire des litiges. Rien de tout cela n’affecte votre droit de saisir un tribunal.\n\n– L’équipe de sécurité de {product_name}"
+ "body": "Bonjour,\n\nNous avons examiné votre signalement (ID : {reportId}).\n\n{outcome, select, removed {Nous avons supprimé le contenu que vous avez signalé, car il enfreignait nos règles.} restricted {Nous avons constaté que le compte que vous avez signalé enfreignait nos règles, et nous l’avons restreint. Nous ne communiquons pas les mesures prises contre un autre compte, car il s’agit de données personnelles de son titulaire.} action_taken {Nous avons constaté que ce que vous avez signalé enfreignait nos règles, et nous avons pris des mesures. Nous ne communiquons pas les mesures prises contre un autre compte, car il s’agit de données personnelles de son titulaire.} no_violation {Nous avons constaté que le contenu ou le compte que vous avez signalé n’enfreint pas nos règles, et nous n’avons donc rien changé.} other {Nous avons clôturé votre signalement.}}{hasComment, select, yes {\n\nNote de notre équipe : {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSi vous n’êtes pas d’accord, écrivez à {appeals_email} dans un délai de 60 jours en indiquant l’ID du signalement. Si vous êtes dans l’UE, vous pouvez également soumettre la question à un organe de règlement extrajudiciaire des litiges certifié ou introduire une réclamation auprès du coordinateur pour les services numériques de votre pays.}}\n\nL’équipe {product_name}"
},
"dsa_report_verification": {
"subject": "Vérifiez votre e-mail pour un signalement DSA",
@@ -51,6 +43,14 @@
"subject": "Vérifiez votre adresse e-mail {product_name}",
"body": "Bonjour {username},\n\nVérifiez l’adresse e-mail de votre compte {product_name} en cliquant sur le lien ci-dessous :\n\n{verifyUrl}\n\nSi vous n’avez pas créé de compte {product_name}, vous pouvez ignorer cet e-mail.\n\nCe lien est valable pendant 24 heures.\n\n– L’équipe {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Nous avons annulé une décision concernant votre compte {product_name}} other {Une restriction appliquée à votre compte {product_name} a pris fin}}",
+ "body": "Bonjour {username},\n\n{outcome, select, reversed {{decision_id, select, null {Nous avons réexaminé une décision concernant votre compte et l’avons annulée.} other {Nous avons réexaminé la décision {decision_id} et l’avons annulée.}} Nous sommes désolés pour la gêne occasionnée.} other {{decision_id, select, null {Nous avons levé la restriction appliquée à votre compte.} other {Nous avons levé la restriction liée à la décision {decision_id}.}}}}{restores_access, select, yes { Vous pouvez de nouveau vous connecter et utiliser {product_name}.} other {}}{statement, select, null {} other {\n\nNote de notre équipe : {statement}}}{content_removed, select, yes {\n\nLe contenu que nous avons supprimé ne peut pas être restauré.} other {}}\n\nL’équipe {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Information concernant votre compte {product_name}} other {{kind_label, select, warning {Avertissement concernant votre compte {product_name}} suspension {Votre compte {product_name} est suspendu} ban {Votre compte {product_name} est banni} closure {Votre compte {product_name} est fermé} feature_limit {Certaines fonctionnalités de votre compte {product_name} sont limitées} content_removal {Nous avons supprimé des messages que vous avez envoyés sur {product_name}} profile_reset {Nous avons réinitialisé une partie de votre profil {product_name}} community_removal {Nous avons supprimé votre communauté sur {product_name}} bot {Information concernant votre bot sur {product_name}} other {Information concernant votre compte {product_name}}}}}",
+ "body": "Bonjour {username},\n\n{summary}\n\n{effects}\n\nPourquoi\nRègle : {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNote de notre équipe : {statement}}}\n\nComment nous avons décidé\n{how_we_decided}{appeals_email, select, null {} other {\n\nComment contester la décision\nSi vous pensez que nous nous sommes trompés, écrivez à {appeals_email} au plus tard le {appeal_deadline}. Utilisez si possible l’adresse e-mail de votre compte, et indiquez l’ID de la décision. La contestation est gratuite, et une personne examine chaque demande.{redress, select, null {} other {\n\n{redress}}}}}\n\nID de la décision : {decision_id}\n\nL’équipe {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Les avantages de votre cadeau activé ont été retirés",
"body": "Bonjour {username},\n\nUn code cadeau que vous avez utilisé avait été payé par une autre personne. Ce paiement a depuis été annulé à la suite d’une contestation bancaire.\n\nNous avons donc retiré les avantages ajoutés à votre compte lors de l’activation du cadeau.\n\n{support_email, select, null {Si vous pensez qu’il s’agit d’une erreur, contactez les administrateurs de cette instance et indiquez les informations dont vous disposez sur le code cadeau et sa date d’utilisation.} other {Si vous pensez qu’il s’agit d’une erreur, contactez notre équipe d’assistance et indiquez les informations dont vous disposez sur le code cadeau et sa date d’utilisation.}}\n\n– L’équipe {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Votre signalement sur {product_name} a été examiné",
- "body": "Bonjour {username},\n\nVotre signalement (ID : {reportId}) a été examiné par notre équipe de sécurité.{hasComment, select, yes {\n\nRéponse de l’équipe de sécurité :\n{publicComment}} other {}}\n\nMerci de nous aider à préserver la sécurité de {product_name} pour tous. Nous prenons tous les signalements au sérieux et apprécions votre contribution à la communauté.\n\n{safety_email, select, null {Pour toute question ou préoccupation concernant cette décision, contactez les administrateurs de cette instance.} other {Pour toute question ou préoccupation concernant cette décision, contactez {safety_email}.}}\n\n– L’équipe de sécurité de {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Votre compte {product_name} sera définitivement supprimé",
- "body": "Bonjour {username},\n\nLa suppression définitive de votre compte {product_name} a été programmée.\n\nSuppression prévue : {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select, null {} other {Motif : {reason}\n\n}}Il s’agit d’une sanction importante. Les données de votre compte seront définitivement supprimées à la date prévue.\n\nSi vous estimez que cette décision est incorrecte, vous pouvez déposer un recours. {appeals_email, select, null {Contactez les administrateurs de cette instance.} other {Écrivez à {appeals_email} depuis cette adresse e-mail.}}\n\n– L’équipe de sécurité de {product_name}"
+ "body": "Bonjour {username},\n\nNous avons examiné votre signalement (ID : {reportId}).\n\n{outcome, select, removed {Nous avons supprimé le contenu que vous avez signalé, car il enfreignait nos règles.} restricted {Nous avons constaté que le compte que vous avez signalé enfreignait nos règles, et nous l’avons restreint. Nous ne communiquons pas les mesures prises contre un autre compte, car il s’agit de données personnelles de son titulaire.} action_taken {Nous avons constaté que ce que vous avez signalé enfreignait nos règles, et nous avons pris des mesures. Nous ne communiquons pas les mesures prises contre un autre compte, car il s’agit de données personnelles de son titulaire.} no_violation {Nous avons constaté que le contenu ou le compte que vous avez signalé n’enfreint pas nos règles, et nous n’avons donc rien changé.} other {Nous avons clôturé votre signalement.}}{hasComment, select, yes {\n\nNote de notre équipe : {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSi vous n’êtes pas d’accord, écrivez à {appeals_email} dans un délai de 60 jours en indiquant l’ID du signalement. Si vous êtes dans l’UE, vous pouvez également soumettre la question à un organe de règlement extrajudiciaire des litiges certifié ou introduire une réclamation auprès du coordinateur pour les services numériques de votre pays.}}\n\nL’équipe {product_name}"
},
"self_deletion_scheduled": {
"subject": "La suppression de votre compte {product_name} est programmée",
"body": "Bonjour {username},\n\nVous avez demandé la suppression de votre compte {product_name}. Sa suppression définitive est prévue le :\n\n{deletionDate, date, full} à {deletionDate, time, short}\n\nSi vous n’êtes pas à l’origine de cette demande, connectez-vous à votre compte pour annuler la suppression. Nous vous recommandons également de changer votre mot de passe pour sécuriser votre compte.\n\n– L’équipe {product_name}"
- },
- "unban_notification": {
- "subject": "La suspension de votre compte {product_name} a été levée",
- "body": "Bonjour {username},\n\nBonne nouvelle : la suspension de votre compte {product_name} a été levée.\n\n{reason, select, null {} other {Motif : {reason}\n\n}}Vous pouvez maintenant vous reconnecter et utiliser {product_name} normalement.\n\n– L’équipe de sécurité de {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/he.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/he.json
index b7570c871..283280091 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/he.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/he.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "חשבון ה-{product_name} שלכם יימחק עקב חוסר פעילות",
- "body": "שלום {username},\n\nחשבון ה-{product_name} שלכם לא היה פעיל זמן רב, ולכן הוא מתוכנן להימחק לצמיתות בתאריך:\n\n{deletionDate, date, full} בשעה {deletionDate, time, short}{reason, select, null {} other {\n\nסיבה: {reason}}}\n\n{safety_email, select, null {אם ברצונכם לשמור על החשבון, צרו קשר עם מנהלי המערכת של המופע הזה לפני תאריך זה.} other {אם ברצונכם לשמור על החשבון, צרו קשר עם {safety_email} מכתובת האימייל הזו לפני תאריך זה.}}\n\nצוות {product_name}"
+ "body": "שלום {username},\n\nחשבון ה-{product_name} שלכם לא היה פעיל זמן רב, ולכן תזמנו את מחיקתו ל-{deletion_date}.\n\nכדי לשמור על החשבון, התחברו לפני התאריך הזה. {support_email, select, null {אם יש לכם שאלות, צרו קשר עם מנהלי המערכת של המופע הזה.} other {אם יש לכם שאלות, צרו קשר עם {support_email}.}}\n\nצוות {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "מחיקת חשבון ה-{product_name} שלכם מתוזמנת",
- "body": "שלום {username},\n\nבהתאם לבקשתכם, חשבון ה-{product_name} שלכם מתוכנן להימחק לצמיתות בתאריך:\n\n{deletionDate, date, full} בשעה {deletionDate, time, short}{reason, select, null {} other {\n\nסיבה: {reason}}}\n\nעד אז החשבון שלכם נעול. {safety_email, select, null {אם לא ביקשתם זאת, או שברצונכם לשמור על החשבון, צרו קשר עם מנהלי המערכת של המופע הזה לפני תאריך זה.} other {אם לא ביקשתם זאת, או שברצונכם לשמור על החשבון, צרו קשר עם {safety_email} מכתובת האימייל הזו לפני תאריך זה.}}\n\nצוות {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "חשבון ה-{product_name} שלכם יימחק לצמיתות",
- "body": "שלום {username},\n\nחשבון ה-{product_name} שלכם נקבע למחיקה לצמיתות עקב הפרות של תנאי השירות או הנחיות הקהילה שלנו.\n\nמחיקה מתוזמנת: {deletionDate, date, full} בשעה {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {סיבה: {reason}\n\n}\n}זוהי פעולת אכיפה חמורה. נתוני החשבון שלכם יימחקו לצמיתות בתאריך המתוכנן.\n\n{legalLinks, select,\n both {אנא עיינו במסמכים הבאים:\n- תנאי השירות: {termsUrl}\n- הנחיות הקהילה: {guidelinesUrl}\n\n}\n terms {אנא עיינו במסמכים הבאים:\n- תנאי השירות: {termsUrl}\n\n}\n guidelines {אנא עיינו במסמכים הבאים:\n- הנחיות הקהילה: {guidelinesUrl}\n\n}\n other {}\n}תהליך ערעור:\nאם אתם חושבים שהחלטת האכיפה שגויה או בלתי מוצדקת, יש לכם 60 יום להגיש ערעור. {appeals_email, select, null {צרו קשר עם מנהלי המערכת של המופע הזה.} other {שלחו אימייל לכתובת {appeals_email} מכתובת האימייל הזו.}}\n\nבערעור:\n- הסבירו בבירור מדוע לדעתכם החלטת האכיפה שגויה או בלתי מוצדקת\n- צרפו כל ראיה או הקשר רלוונטיים\n\nחבר בצוות הבטיחות של {product_name} יבדוק את הערעור שלכם ועשוי להשהות את המחיקה הממתינה עד לקבלת החלטה סופית.\n\nצוות הבטיחות של {product_name}"
- },
- "account_temp_banned": {
- "subject": "חשבון ה-{product_name} שלכם הושעה זמנית",
- "body": "שלום {username},\n\nחשבון ה-{product_name} שלכם הושעה זמנית עקב הפרה של תנאי השירות או הנחיות הקהילה שלנו.\n\nמשך ההשעיה: {durationHours, plural,\n =1 {שעה אחת}\n other {# שעות}\n}\nמושעה עד: {bannedUntil, date, full} בשעה {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {סיבה: {reason}\n\n}\n}במהלך תקופה זו לא תהיה לכם גישה לחשבון.\n\n{legalLinks, select,\n both {אנא עיינו במסמכים הבאים:\n- תנאי השירות: {termsUrl}\n- הנחיות הקהילה: {guidelinesUrl}\n\n}\n terms {אנא עיינו במסמכים הבאים:\n- תנאי השירות: {termsUrl}\n\n}\n guidelines {אנא עיינו במסמכים הבאים:\n- הנחיות הקהילה: {guidelinesUrl}\n\n}\n other {}\n}אם אתם חושבים שהחלטת האכיפה שגויה או בלתי מוצדקת, תוכלו להגיש ערעור. {appeals_email, select, null {צרו קשר עם מנהלי המערכת של המופע הזה והסבירו בבירור מדוע לדעתכם ההחלטה שגויה.} other {שלחו אימייל לכתובת {appeals_email} מכתובת האימייל הזו והסבירו בבירור מדוע לדעתכם ההחלטה שגויה.}} נבדוק את הערעור ונעדכן אתכם בהחלטה שלנו.\n\nצוות הבטיחות של {product_name}"
+ "body": "שלום {username},\n\nכפי שביקשתם, תזמנו את מחיקת חשבון ה-{product_name} שלכם ל-{deletion_date}.\n\nכדי לשמור על החשבון, התחברו לפני {deletion_date}. {safety_email, select, null {אם לא ביקשתם את זה, צרו קשר עם מנהלי המערכת של המופע הזה.} other {אם לא ביקשתם את זה, צרו קשר עם {safety_email}.}}\n\nצוות {product_name}"
},
"donation_confirmation": {
"subject": "תודה על תרומתכם ל-{product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "קיבלנו החלטה בנוגע לדיווח שלכם ב-{product_name}",
- "body": "שלום,\n\nצוות הבטיחות שלנו בדק את הדיווח שלכם לפי חוק השירותים הדיגיטליים (מזהה: {reportId}) וקיבל החלטה.{hasComment, select, yes {\n\nתגובה מצוות הבטיחות:\n{publicComment}} other {}}\n\nאיננו משתפים פרטים על פעולות שננקטו נגד חשבון של אדם אחר, מכיוון שאלה נתונים אישיים שלו.\n\nאם אינכם מסכימים עם ההחלטה, תוכלו להגיש ערעור ללא תשלום בתוך 60 יום. {appeals_email, select, null {צרו קשר עם מנהלי המערכת של המופע הזה, ציינו את מזהה הדיווח והסבירו מדוע לדעתכם ההחלטה שגויה.} other {שלחו אימייל לכתובת {appeals_email} מכתובת האימייל הזו, ציינו את מזהה הדיווח והסבירו מדוע לדעתכם ההחלטה שגויה.}} אם אתם נמצאים באיחוד האירופי, תוכלו גם להפנות את המחלוקת לגוף מוסמך ליישוב סכסוכים מחוץ לבית המשפט. אין בכך כדי לפגוע בזכותכם לפנות לבית המשפט.\n\nצוות הבטיחות של {product_name}"
+ "body": "שלום,\n\nבדקנו את הדיווח שלכם (מזהה: {reportId}).\n\n{outcome, select, removed {הסרנו את התוכן שדיווחתם עליו כי הוא הפר את הכללים שלנו.} restricted {מצאנו שהחשבון שדיווחתם עליו הפר את הכללים שלנו, והגבלנו אותו. אנחנו לא משתפים איזו פעולה נקטנו נגד חשבון אחר, כי זה מידע אישי של בעליו.} action_taken {מצאנו שמה שדיווחתם עליו הפר את הכללים שלנו, ונקטנו פעולה. אנחנו לא משתפים איזו פעולה נקטנו נגד חשבון אחר, כי זה מידע אישי של בעליו.} no_violation {מצאנו שהתוכן או החשבון שדיווחתם עליו לא מפר את הכללים שלנו, ולכן השארנו אותו כמו שהוא.} other {סגרנו את הדיווח שלכם.}}{hasComment, select, yes {\n\nהערה מהצוות שלנו: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nאם אתם לא מסכימים, שלחו אימייל אל {appeals_email} תוך 60 יום וציינו את מזהה הדיווח. אם אתם באיחוד האירופי, אפשר גם להפנות את העניין לגוף מוסמך ליישוב סכסוכים מחוץ לבית המשפט או להגיש תלונה לרכז השירותים הדיגיטליים במדינה שלכם.}}\n\nצוות {product_name}"
},
"dsa_report_verification": {
"subject": "אימות האימייל שלכם לדיווח DSA",
@@ -51,6 +43,14 @@
"subject": "אימות האימייל שלכם ב-{product_name}",
"body": "שלום {username},\n\nאנא אמתו את כתובת האימייל של חשבון ה-{product_name} שלכם באמצעות לחיצה על הקישור למטה:\n\n{verifyUrl}\n\nאם לא יצרתם חשבון {product_name}, אתם יכולים להתעלם בבטחה מאימייל זה.\n\nקישור זה תקף למשך 24 שעות.\n\nצוות {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {ביטלנו החלטה לגבי חשבון ה-{product_name} שלכם} other {הגבלה על חשבון ה-{product_name} שלכם הסתיימה}}",
+ "body": "שלום {username},\n\n{outcome, select, reversed {{decision_id, select, null {בדקנו שוב החלטה לגבי החשבון שלכם וביטלנו אותה.} other {בדקנו שוב את החלטה {decision_id} וביטלנו אותה.}} אנחנו מתנצלים על אי הנוחות.} other {{decision_id, select, null {הסרנו את ההגבלה מהחשבון שלכם.} other {הסרנו את ההגבלה של החלטה {decision_id}.}}}}{restores_access, select, yes { אפשר שוב להתחבר ולהשתמש ב-{product_name}.} other {}}{statement, select, null {} other {\n\nהערה מהצוות שלנו: {statement}}}{content_removed, select, yes {\n\nאי אפשר לשחזר תוכן שהסרנו.} other {}}\n\nצוות {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {עדכון לגבי חשבון ה-{product_name} שלכם} other {{kind_label, select, warning {אזהרה לגבי חשבון ה-{product_name} שלכם} suspension {חשבון ה-{product_name} שלכם הושעה} ban {חשבון ה-{product_name} שלכם נחסם} closure {חשבון ה-{product_name} שלכם נסגר} feature_limit {חלק מהתכונות בחשבון ה-{product_name} שלכם הוגבלו} content_removal {הסרנו הודעות ששלחתם ב-{product_name}} profile_reset {איפסנו חלקים מפרופיל ה-{product_name} שלכם} community_removal {הסרנו את הקהילה שלכם ב-{product_name}} bot {עדכון לגבי הבוט שלכם ב-{product_name}} other {עדכון לגבי חשבון ה-{product_name} שלכם}}}}",
+ "body": "שלום {username},\n\n{summary}\n\n{effects}\n\nלמה\nכלל: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nהערה מהצוות שלנו: {statement}}}\n\nאיך החלטנו\n{how_we_decided}{appeals_email, select, null {} other {\n\nאיך לערער\nאם לדעתכם טעינו, שלחו אימייל אל {appeals_email} עד {appeal_deadline}. אם אפשר, כתבו מכתובת האימייל של החשבון שלכם, וציינו את מזהה ההחלטה. הערעור ללא תשלום, ואדם בודק כל ערעור.{redress, select, null {} other {\n\n{redress}}}}}\n\nמזהה החלטה: {decision_id}\n\nצוות {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "ההטבות מהמתנה שמימשתם הוסרו",
"body": "שלום {username},\n\nקוד מתנה שמימשתם שולם במקור על ידי מישהו אחר. התשלום הזה בוטל מאז (החזר חיוב).\n\nבשל כך, הסרנו את ההטבות שנוספו לחשבונכם כאשר מימשתם את המתנה.\n\n{support_email, select, null {אם אתם חושבים שזו טעות, אנא צרו קשר עם מנהלי המערכת של המופע הזה וצרפו כל פרט שידוע לכם לגבי קוד המתנה ומתי מימשתם אותו.} other {אם אתם חושבים שזו טעות, אנא צרו קשר עם צוות התמיכה שלנו וצרפו כל פרט שידוע לכם לגבי קוד המתנה ומתי מימשתם אותו.}}\n\nצוות {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "הדיווח שלכם ב-{product_name} נבדק",
- "body": "שלום {username},\n\nהדיווח שלכם (מזהה: {reportId}) נבדק על ידי צוות הבטיחות שלנו.{hasComment, select, yes {\n\nתגובה מצוות הבטיחות:\n{publicComment}} other {}}\n\nתודה שעזרתם לשמור על {product_name} כמקום בטוח לכולם. אנו מתייחסים לכל הדיווחים ברצינות ומעריכים את תרומתכם לקהילה.\n\n{safety_email, select, null {אם יש לכם שאלות או חששות לגבי תוצאה זו, אנא צרו קשר עם מנהלי המערכת של המופע הזה.} other {אם יש לכם שאלות או חששות לגבי תוצאה זו, אנא צרו קשר עם {safety_email}.}}\n\nצוות הבטיחות של {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "חשבון ה-{product_name} שלכם יימחק לצמיתות",
- "body": "שלום {username},\n\nחשבון ה-{product_name} שלכם נקבע למחיקה לצמיתות.\n\nמחיקה מתוזמנת: {deletionDate, date, full} בשעה {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {סיבה: {reason}\n\n}\n}זוהי פעולת אכיפה חמורה. נתוני החשבון שלכם יימחקו לצמיתות בתאריך המתוכנן.\n\nאם אתם חושבים שהחלטת אכיפה זו שגויה, אתם יכולים להגיש ערעור. {appeals_email, select, null {צרו קשר עם מנהלי המערכת של המופע הזה.} other {שלחו אימייל לכתובת {appeals_email} מכתובת האימייל הזו.}}\n\nצוות הבטיחות של {product_name}"
+ "body": "שלום {username},\n\nבדקנו את הדיווח שלכם (מזהה: {reportId}).\n\n{outcome, select, removed {הסרנו את התוכן שדיווחתם עליו כי הוא הפר את הכללים שלנו.} restricted {מצאנו שהחשבון שדיווחתם עליו הפר את הכללים שלנו, והגבלנו אותו. אנחנו לא משתפים איזו פעולה נקטנו נגד חשבון אחר, כי זה מידע אישי של בעליו.} action_taken {מצאנו שמה שדיווחתם עליו הפר את הכללים שלנו, ונקטנו פעולה. אנחנו לא משתפים איזו פעולה נקטנו נגד חשבון אחר, כי זה מידע אישי של בעליו.} no_violation {מצאנו שהתוכן או החשבון שדיווחתם עליו לא מפר את הכללים שלנו, ולכן השארנו אותו כמו שהוא.} other {סגרנו את הדיווח שלכם.}}{hasComment, select, yes {\n\nהערה מהצוות שלנו: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nאם אתם לא מסכימים, שלחו אימייל אל {appeals_email} תוך 60 יום וציינו את מזהה הדיווח. אם אתם באיחוד האירופי, אפשר גם להפנות את העניין לגוף מוסמך ליישוב סכסוכים מחוץ לבית המשפט או להגיש תלונה לרכז השירותים הדיגיטליים במדינה שלכם.}}\n\nצוות {product_name}"
},
"self_deletion_scheduled": {
"subject": "מחיקת חשבון ה-{product_name} שלכם מתוזמנת",
"body": "שלום {username},\n\nביקשתם למחוק את חשבון ה-{product_name} שלכם. החשבון שלכם מתוכנן להימחק לצמיתות בתאריך:\n\n{deletionDate, date, full} בשעה {deletionDate, time, short}\n\nאם לא ביקשתם זאת, התחברו לחשבונכם כדי לבטל את המחיקה. אנו ממליצים גם לשנות את הסיסמה שלכם כדי לאבטח את החשבון.\n\nצוות {product_name}"
- },
- "unban_notification": {
- "subject": "השעיית חשבון ה-{product_name} שלכם בוטלה",
- "body": "שלום {username},\n\nחדשות טובות: השעיית חשבון ה-{product_name} שלכם בוטלה.\n\n{reason, select,\n null {}\n other {סיבה: {reason}\n\n}\n}כעת אתם יכולים להתחבר שוב ולהמשיך להשתמש ב-{product_name} כרגיל.\n\nצוות הבטיחות של {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hi.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hi.json
index e2af4f93a..c8d3e4598 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hi.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hi.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "आपका {product_name} अकाउंट इनएक्टिविटी के कारण डिलीट कर दिया जाएगा",
- "body": "नमस्ते {username},\n\nआपका {product_name} अकाउंट लंबे समय से इनएक्टिव है, इसलिए इसे हमेशा के लिए डिलीट करने के लिए शेड्यूल कर दिया गया है:\n\n{deletionDate, date, full} को {deletionDate, time, short} पर{reason, select, null {} other {\n\nवजह: {reason}}}\n\n{safety_email, select, null {अगर आप अपना अकाउंट रखना चाहते हैं, तो उस तारीख से पहले इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें।} other {अगर आप अपना अकाउंट रखना चाहते हैं, तो उस तारीख से पहले इसी ईमेल पते से {safety_email} पर संपर्क करें।}}\n\n– {product_name} टीम"
+ "body": "नमस्ते {username},\n\nआपका {product_name} अकाउंट लंबे समय से इनएक्टिव है, इसलिए हमने इसे {deletion_date} को डिलीट करने के लिए शेड्यूल कर दिया है।\n\nअपना अकाउंट रखने के लिए, उस तारीख से पहले साइन इन करें। {support_email, select, null {अगर आपके कोई सवाल हैं, तो इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें।} other {अगर आपके कोई सवाल हैं, तो {support_email} से संपर्क करें।}}\n\n{product_name} टीम"
},
"account_deletion_scheduled_requested": {
"subject": "आपके {product_name} अकाउंट का डिलीशन शेड्यूल कर दिया गया है",
- "body": "नमस्ते {username},\n\nआपके अनुरोध के अनुसार, आपके {product_name} अकाउंट को हमेशा के लिए डिलीट करने के लिए शेड्यूल कर दिया गया है:\n\n{deletionDate, date, full} को {deletionDate, time, short} पर{reason, select, null {} other {\n\nवजह: {reason}}}\n\nतब तक आपका अकाउंट लॉक रहेगा। {safety_email, select, null {अगर आपने इसका अनुरोध नहीं किया था, या आप अपना अकाउंट रखना चाहते हैं, तो उस तारीख से पहले इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें।} other {अगर आपने इसका अनुरोध नहीं किया था, या आप अपना अकाउंट रखना चाहते हैं, तो उस तारीख से पहले इसी ईमेल पते से {safety_email} पर संपर्क करें।}}\n\n– {product_name} टीम"
- },
- "account_scheduled_deletion": {
- "subject": "आपका {product_name} अकाउंट हमेशा के लिए डिलीट कर दिया जाएगा",
- "body": "नमस्ते {username},\n\nआपके {product_name} अकाउंट को हमारी सेवा की शर्तों या कम्युनिटी गाइडलाइंस के उल्लंघन के कारण हमेशा के लिए डिलीट करने के लिए शेड्यूल किया गया है।\n\nडिलीशन की निर्धारित तारीख: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {वजह: {reason}\n\n}\n}यह एक गंभीर कार्रवाई है। आपके अकाउंट का डेटा निर्धारित तारीख पर हमेशा के लिए डिलीट कर दिया जाएगा।\n\n{legalLinks, select,\n both {कृपया देखें:\n- सेवा की शर्तें: {termsUrl}\n- कम्युनिटी गाइडलाइंस: {guidelinesUrl}\n\n}\n terms {कृपया देखें:\n- सेवा की शर्तें: {termsUrl}\n\n}\n guidelines {कृपया देखें:\n- कम्युनिटी गाइडलाइंस: {guidelinesUrl}\n\n}\n other {}\n}अपील प्रक्रिया:\nअगर आपको लगता है कि यह फैसला गलत या अनुचित था, तो आपके पास अपील सबमिट करने के लिए 60 दिन हैं। {appeals_email, select, null {इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें।} other {इस ईमेल पते से {appeals_email} पर ईमेल करें।}}\n\nअपनी अपील में:\n- साफ़ तौर पर बताएं कि आपको क्यों लगता है कि यह फैसला गलत या अनुचित था\n- कोई भी प्रासंगिक सबूत या जानकारी दें\n\n{product_name} सेफ्टी टीम का एक सदस्य आपकी अपील का रिव्यू करेगा और अंतिम फैसला आने तक डिलीट होने की प्रक्रिया को रोक सकता है।\n\n– {product_name} सेफ्टी टीम"
- },
- "account_temp_banned": {
- "subject": "आपका {product_name} अकाउंट अस्थायी रूप से सस्पेंड कर दिया गया है",
- "body": "नमस्ते {username},\n\nआपके {product_name} अकाउंट को हमारी सेवा की शर्तों या कम्युनिटी गाइडलाइंस का उल्लंघन करने के लिए अस्थायी रूप से सस्पेंड कर दिया गया है।\n\nअवधि: {durationHours, plural,\n =1 {1 घंटा}\n other {# घंटे}\n}\nसस्पेंड रहेगा: {bannedUntil, date, full} {bannedUntil, time, short} तक\n\n{reason, select,\n null {}\n other {वजह: {reason}\n\n}\n}इस दौरान, आप अपने अकाउंट को एक्सेस नहीं कर पाएँगे।\n\n{legalLinks, select,\n both {कृपया देखें:\n- सेवा की शर्तें: {termsUrl}\n- कम्युनिटी गाइडलाइंस: {guidelinesUrl}\n\n}\n terms {कृपया देखें:\n- सेवा की शर्तें: {termsUrl}\n\n}\n guidelines {कृपया देखें:\n- कम्युनिटी गाइडलाइंस: {guidelinesUrl}\n\n}\n other {}\n}अगर आपको लगता है कि यह फैसला गलत या अनुचित था, तो आप अपील सबमिट कर सकते हैं। {appeals_email, select, null {इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें और साफ़ तौर पर बताएं कि आपको क्यों लगता है कि फैसला गलत था।} other {इस ईमेल पते से {appeals_email} पर ईमेल करें और साफ़ तौर पर बताएं कि आपको क्यों लगता है कि फैसला गलत था।}} हम आपकी अपील का रिव्यू करेंगे और अपने फैसले के साथ जवाब देंगे।\n\n– {product_name} सेफ्टी टीम"
+ "body": "नमस्ते {username},\n\nआपके कहने पर, हमने आपके {product_name} अकाउंट को {deletion_date} को डिलीट करने के लिए शेड्यूल कर दिया है।\n\nअपना अकाउंट रखने के लिए, {deletion_date} से पहले साइन इन करें। {safety_email, select, null {अगर आपने यह नहीं कहा था, तो इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें।} other {अगर आपने यह नहीं कहा था, तो {safety_email} से संपर्क करें।}}\n\n{product_name} टीम"
},
"donation_confirmation": {
"subject": "आपके {product_name} डोनेशन के लिए धन्यवाद",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "हमने आपकी {product_name} रिपोर्ट पर फैसला ले लिया है",
- "body": "नमस्ते,\n\nहमारी सेफ्टी टीम ने आपकी Digital Services Act रिपोर्ट (ID: {reportId}) का रिव्यू करके फैसला ले लिया है।{hasComment, select, yes {\n\nसेफ्टी टीम का जवाब:\n{publicComment}} other {}}\n\nहम किसी दूसरे व्यक्ति के अकाउंट पर की गई कार्रवाई की जानकारी शेयर नहीं करते, क्योंकि वह उनका निजी डेटा है।\n\nअगर आप इस फैसले से सहमत नहीं हैं, तो आप 60 दिनों के अंदर मुफ़्त में अपील कर सकते हैं। {appeals_email, select, null {इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें, अपनी रिपोर्ट ID शामिल करें और बताएं कि आपको फैसला गलत क्यों लगता है।} other {इस ईमेल पते से {appeals_email} पर ईमेल करें, अपनी रिपोर्ट ID शामिल करें और बताएं कि आपको फैसला गलत क्यों लगता है।}} अगर आप EU में हैं, तो आप इस विवाद को अदालत के बाहर विवाद निपटाने वाली किसी प्रमाणित संस्था के पास भी ले जा सकते हैं। इनमें से किसी भी बात का आपके अदालत जाने के अधिकार पर कोई असर नहीं पड़ता।\n\n– {product_name} सेफ्टी टीम"
+ "body": "नमस्ते,\n\nहमने आपकी रिपोर्ट (ID: {reportId}) रिव्यू कर ली है।\n\n{outcome, select, removed {आपने जिस कंटेंट की रिपोर्ट की थी, उसे हमने हटा दिया है क्योंकि उसने हमारे नियम तोड़े थे।} restricted {हमने पाया कि आपने जिस अकाउंट की रिपोर्ट की थी, उसने हमारे नियम तोड़े, और हमने उस पर पाबंदी लगा दी है। हम यह नहीं बताते कि किसी दूसरे अकाउंट पर हमने क्या कार्रवाई की, क्योंकि यह उनका निजी डेटा है।} action_taken {हमने पाया कि आपने जिसकी रिपोर्ट की थी, उसने हमारे नियम तोड़े, और हमने कार्रवाई की है। हम यह नहीं बताते कि किसी दूसरे अकाउंट पर हमने क्या कार्रवाई की, क्योंकि यह उनका निजी डेटा है।} no_violation {हमने पाया कि आपने जिस कंटेंट या अकाउंट की रिपोर्ट की थी, वह हमारे नियम नहीं तोड़ता, इसलिए हमने उसे वैसे ही रहने दिया है।} other {हमने आपकी रिपोर्ट बंद कर दी है।}}{hasComment, select, yes {\n\nहमारी टीम का नोट: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nअगर आप इससे सहमत नहीं हैं, तो 60 दिनों के अंदर {appeals_email} पर ईमेल करें और रिपोर्ट ID लिखें। अगर आप EU में हैं, तो आप यह मामला अदालत के बाहर विवाद निपटाने वाली किसी प्रमाणित संस्था के पास भी भेज सकते हैं, या अपने देश के डिजिटल सेवा समन्वयक से शिकायत कर सकते हैं।}}\n\n{product_name} टीम"
},
"dsa_report_verification": {
"subject": "DSA रिपोर्ट के लिए अपना ईमेल वेरिफ़ाई करें",
@@ -51,6 +43,14 @@
"subject": "अपना {product_name} ईमेल पता वेरिफ़ाई करें",
"body": "नमस्ते {username},\n\nकृपया नीचे दिए गए लिंक पर क्लिक करके अपने {product_name} अकाउंट के लिए ईमेल पता वेरिफ़ाई करें:\n\n{verifyUrl}\n\nअगर आपने {product_name} अकाउंट नहीं बनाया है, तो आप इस ईमेल को बेझिझक अनदेखा कर सकते हैं।\n\nयह लिंक 24 घंटे तक मान्य है।\n\n– {product_name} टीम"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {हमने आपके {product_name} अकाउंट से जुड़ा एक फैसला वापस ले लिया है} other {आपके {product_name} अकाउंट पर लगी एक पाबंदी खत्म हो गई है}}",
+ "body": "नमस्ते {username},\n\n{outcome, select, reversed {{decision_id, select, null {हमने आपके अकाउंट से जुड़े एक फैसले की दोबारा जाँच की और उसे वापस ले लिया।} other {हमने फैसले {decision_id} की दोबारा जाँच की और उसे वापस ले लिया।}} हुई परेशानी के लिए हमें खेद है।} other {{decision_id, select, null {हमने आपके अकाउंट से पाबंदी हटा दी है।} other {हमने फैसले {decision_id} से लगी पाबंदी हटा दी है।}}}}{restores_access, select, yes { आप फिर से साइन इन करके {product_name} इस्तेमाल कर सकते हैं।} other {}}{statement, select, null {} other {\n\nहमारी टीम का नोट: {statement}}}{content_removed, select, yes {\n\nहमने जो कंटेंट हटाया था, उसे वापस नहीं लाया जा सकता।} other {}}\n\n{product_name} टीम"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {आपके {product_name} अकाउंट के बारे में एक अपडेट} other {{kind_label, select, warning {आपके {product_name} अकाउंट के लिए एक चेतावनी} suspension {आपका {product_name} अकाउंट सस्पेंड कर दिया गया है} ban {आपका {product_name} अकाउंट बैन कर दिया गया है} closure {आपका {product_name} अकाउंट बंद कर दिया गया है} feature_limit {आपके {product_name} अकाउंट पर कुछ फ़ीचर सीमित कर दिए गए हैं} content_removal {हमने {product_name} पर आपके भेजे मैसेज हटा दिए हैं} profile_reset {हमने आपकी {product_name} प्रोफ़ाइल के कुछ हिस्से रीसेट कर दिए हैं} community_removal {हमने {product_name} पर आपकी कम्युनिटी हटा दी है} bot {{product_name} पर आपके बॉट के बारे में एक अपडेट} other {आपके {product_name} अकाउंट के बारे में एक अपडेट}}}}",
+ "body": "नमस्ते {username},\n\n{summary}\n\n{effects}\n\nवजह\nनियम: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nहमारी टीम का नोट: {statement}}}\n\nहमने फैसला कैसे लिया\n{how_we_decided}{appeals_email, select, null {} other {\n\nअपील कैसे करें\nअगर आपको लगता है कि हमसे गलती हुई है, तो {appeal_deadline} तक {appeals_email} पर ईमेल करें। हो सके तो अपने अकाउंट वाले ईमेल एड्रेस से लिखें, और फैसला ID लिखें। अपील मुफ़्त है, और हर अपील को एक इंसान रिव्यू करता है।{redress, select, null {} other {\n\n{redress}}}}}\n\nफैसला ID: {decision_id}\n\n{product_name} टीम"
+ },
"gift_chargeback_notification": {
"subject": "आपके रिडीम किए गए गिफ्ट से मिलने वाले पर्क हटा दिए गए हैं",
"body": "नमस्ते {username},\n\nआपने जो गिफ्ट कोड रिडीम किया था, उसका पेमेंट मूल रूप से किसी और ने किया था। उस पेमेंट को बाद में वापस ले लिया गया (चार्जबैक)।\n\nइस वजह से, हमने वे पर्क हटा दिए हैं जो गिफ्ट रिडीम करते समय आपके अकाउंट में जोड़े गए थे।\n\n{support_email, select, null {अगर आपको लगता है कि यह गलती है, तो कृपया इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें और गिफ्ट कोड और उसे रिडीम करने के समय के बारे में आपके पास जो भी जानकारी है, वह शेयर करें।} other {अगर आपको लगता है कि यह गलती है, तो कृपया हमारी सपोर्ट टीम से संपर्क करें और गिफ्ट कोड और उसे रिडीम करने के समय के बारे में आपके पास जो भी जानकारी है, वह शेयर करें।}}\n\n– {product_name} टीम"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "आपकी {product_name} रिपोर्ट का रिव्यू कर लिया गया है",
- "body": "नमस्ते {username},\n\nआपकी रिपोर्ट (ID: {reportId}) का हमारी सेफ्टी टीम ने रिव्यू कर लिया है।{hasComment, select, yes {\n\nसेफ्टी टीम का जवाब:\n{publicComment}} other {}}\n\n{product_name} को सभी के लिए सुरक्षित रखने में मदद करने के लिए धन्यवाद। हम हर रिपोर्ट को गंभीरता से लेते हैं और कम्युनिटी में आपके योगदान की सराहना करते हैं।\n\n{safety_email, select, null {अगर आपको इस नतीजे के बारे में कोई सवाल या चिंता है, तो कृपया इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें।} other {अगर आपको इस नतीजे के बारे में कोई सवाल या चिंता है, तो कृपया {safety_email} पर संपर्क करें।}}\n\n– {product_name} सेफ्टी टीम"
- },
- "scheduled_deletion_notification": {
- "subject": "आपका {product_name} अकाउंट हमेशा के लिए डिलीट कर दिया जाएगा",
- "body": "नमस्ते {username},\n\nआपके {product_name} अकाउंट को हमेशा के लिए डिलीट करने के लिए शेड्यूल किया गया है।\n\nडिलीशन की निर्धारित तारीख: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {वजह: {reason}\n\n}\n}यह एक गंभीर कार्रवाई है। आपके अकाउंट का डेटा निर्धारित तारीख पर हमेशा के लिए डिलीट कर दिया जाएगा।\n\nअगर आपको लगता है कि यह फैसला गलत था, तो आप अपील सबमिट कर सकते हैं। {appeals_email, select, null {इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें।} other {इस ईमेल पते से {appeals_email} पर ईमेल करें।}}\n\n– {product_name} सेफ्टी टीम"
+ "body": "नमस्ते {username},\n\nहमने आपकी रिपोर्ट (ID: {reportId}) रिव्यू कर ली है।\n\n{outcome, select, removed {आपने जिस कंटेंट की रिपोर्ट की थी, उसे हमने हटा दिया है क्योंकि उसने हमारे नियम तोड़े थे।} restricted {हमने पाया कि आपने जिस अकाउंट की रिपोर्ट की थी, उसने हमारे नियम तोड़े, और हमने उस पर पाबंदी लगा दी है। हम यह नहीं बताते कि किसी दूसरे अकाउंट पर हमने क्या कार्रवाई की, क्योंकि यह उनका निजी डेटा है।} action_taken {हमने पाया कि आपने जिसकी रिपोर्ट की थी, उसने हमारे नियम तोड़े, और हमने कार्रवाई की है। हम यह नहीं बताते कि किसी दूसरे अकाउंट पर हमने क्या कार्रवाई की, क्योंकि यह उनका निजी डेटा है।} no_violation {हमने पाया कि आपने जिस कंटेंट या अकाउंट की रिपोर्ट की थी, वह हमारे नियम नहीं तोड़ता, इसलिए हमने उसे वैसे ही रहने दिया है।} other {हमने आपकी रिपोर्ट बंद कर दी है।}}{hasComment, select, yes {\n\nहमारी टीम का नोट: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nअगर आप इससे सहमत नहीं हैं, तो 60 दिनों के अंदर {appeals_email} पर ईमेल करें और रिपोर्ट ID लिखें। अगर आप EU में हैं, तो आप यह मामला अदालत के बाहर विवाद निपटाने वाली किसी प्रमाणित संस्था के पास भी भेज सकते हैं, या अपने देश के डिजिटल सेवा समन्वयक से शिकायत कर सकते हैं।}}\n\n{product_name} टीम"
},
"self_deletion_scheduled": {
"subject": "आपके {product_name} अकाउंट का डिलीशन शेड्यूल कर दिया गया है",
"body": "नमस्ते {username},\n\nआपने अपना {product_name} अकाउंट डिलीट करने का अनुरोध किया है। आपके अकाउंट को हमेशा के लिए डिलीट करने के लिए शेड्यूल कर दिया गया है:\n\n{deletionDate, date, full} को {deletionDate, time, short} पर\n\nअगर आपने इसका अनुरोध नहीं किया था, तो डिलीशन रद्द करने के लिए अपने अकाउंट में साइन इन करें। हम आपके अकाउंट को सुरक्षित करने के लिए अपना पासवर्ड बदलने की भी सलाह देते हैं।\n\n– {product_name} टीम"
- },
- "unban_notification": {
- "subject": "आपके {product_name} अकाउंट का सस्पेंशन हटा दिया गया है",
- "body": "नमस्ते {username},\n\nअच्छी खबर: आपके {product_name} अकाउंट का सस्पेंशन हटा दिया गया है।\n\n{reason, select,\n null {}\n other {वजह: {reason}\n\n}\n}अब आप फिर से लॉगिन कर सकते हैं और सामान्य रूप से {product_name} का उपयोग जारी रख सकते हैं।\n\n– {product_name} सेफ्टी टीम"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hr.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hr.json
index 249ad9ad6..afe8c6fb7 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hr.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hr.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Tvoj račun na {product_name}u bit će izbrisan zbog neaktivnosti",
- "body": "Pozdrav {username},\n\nTvoj račun na {product_name}u dugo je bio neaktivan, pa je zakazan za trajno brisanje:\n\n{deletionDate, date, full} u {deletionDate, time, short}{reason, select, null {} other {\n\nRazlog: {reason}}}\n\n{safety_email, select, null {Ako želiš zadržati račun, obrati se administratorima ove instance prije tog datuma.} other {Ako želiš zadržati račun, kontaktiraj {safety_email} s ove adrese e-pošte prije tog datuma.}}\n\n– Tim {product_name}a"
+ "body": "Pozdrav {username},\n\nTvoj račun na platformi {product_name} dugo je bio neaktivan, pa smo zakazali njegovo brisanje za {deletion_date}.\n\nAko želiš zadržati račun, prijavi se prije tog datuma. {support_email, select, null {Ako imaš pitanja, obrati se administratorima ove instance.} other {Ako imaš pitanja, kontaktiraj {support_email}.}}\n\nTim platforme {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Brisanje tvog računa na {product_name}u je zakazano",
- "body": "Pozdrav {username},\n\nNa tvoj zahtjev, tvoj račun na {product_name}u zakazan je za trajno brisanje:\n\n{deletionDate, date, full} u {deletionDate, time, short}{reason, select, null {} other {\n\nRazlog: {reason}}}\n\nDo tada je tvoj račun zaključan. {safety_email, select, null {Ako ovaj zahtjev ne dolazi od tebe ili želiš zadržati račun, obrati se administratorima ove instance prije tog datuma.} other {Ako ovaj zahtjev ne dolazi od tebe ili želiš zadržati račun, kontaktiraj {safety_email} s ove adrese e-pošte prije tog datuma.}}\n\n– Tim {product_name}a"
- },
- "account_scheduled_deletion": {
- "subject": "Tvoj račun na {product_name}u bit će trajno izbrisan",
- "body": "Pozdrav {username},\n\nTvoj račun na {product_name}u zakazan je za trajno brisanje zbog kršenja naših Uvjeta pružanja usluge ili Smjernica zajednice.\n\nZakazano brisanje: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Razlog: {reason}\n\n}\n}Ovo je ozbiljna mjera. Podaci tvog računa bit će trajno izbrisani na zakazani datum.\n\n{legalLinks, select,\n both {Pregledaj:\n- Uvjeti pružanja usluge: {termsUrl}\n- Smjernice zajednice: {guidelinesUrl}\n\n}\n terms {Pregledaj:\n- Uvjeti pružanja usluge: {termsUrl}\n\n}\n guidelines {Pregledaj:\n- Smjernice zajednice: {guidelinesUrl}\n\n}\n other {}\n}Postupak žalbe:\nAko smatraš da je ova odluka bila netočna ili neopravdana, imaš 60 dana za podnošenje žalbe. {appeals_email, select, null {Obrati se administratorima ove instance.} other {Pošalji e-poštu na {appeals_email} s ove adrese e-pošte.}}\n\nU svojoj žalbi:\n- Jasno objasni zašto smatraš da je odluka bila netočna ili neopravdana\n- Navedi sve relevantne dokaze ili kontekst\n\nČlan Sigurnosnog tima {product_name}a pregledat će tvoju žalbu i može privremeno zaustaviti zakazano brisanje dok se ne donese konačna odluka.\n\n– Sigurnosni tim {product_name}a"
- },
- "account_temp_banned": {
- "subject": "Tvoj račun na {product_name}u privremeno je suspendiran",
- "body": "Pozdrav {username},\n\nTvoj račun na {product_name}u privremeno je suspendiran zbog kršenja naših Uvjeta pružanja usluge ili Smjernica zajednice.\n\nTrajanje: {durationHours, plural,\n =1 {1 sat}\n one {# sat}\n few {# sata}\n other {# sati}\n}\nSuspendiran do: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Razlog: {reason}\n\n}\n}Tijekom tog vremena nećeš moći pristupiti svom računu.\n\n{legalLinks, select,\n both {Pregledaj:\n- Uvjeti pružanja usluge: {termsUrl}\n- Smjernice zajednice: {guidelinesUrl}\n\n}\n terms {Pregledaj:\n- Uvjeti pružanja usluge: {termsUrl}\n\n}\n guidelines {Pregledaj:\n- Smjernice zajednice: {guidelinesUrl}\n\n}\n other {}\n}Ako smatraš da je ova odluka bila netočna ili neopravdana, možeš podnijeti žalbu. {appeals_email, select, null {Obrati se administratorima ove instance i jasno objasni zašto smatraš da je odluka bila netočna.} other {Pošalji e-poštu na {appeals_email} s ove adrese e-pošte i jasno objasni zašto smatraš da je odluka bila netočna.}} Pregledat ćemo tvoju žalbu i javiti ti našu odluku.\n\n– Sigurnosni tim {product_name}a"
+ "body": "Pozdrav {username},\n\nNa tvoj zahtjev zakazali smo brisanje tvog računa na platformi {product_name} za {deletion_date}.\n\nAko želiš zadržati račun, prijavi se prije {deletion_date}. {safety_email, select, null {Ako zahtjev nije došao od tebe, obrati se administratorima ove instance.} other {Ako zahtjev nije došao od tebe, kontaktiraj {safety_email}.}}\n\nTim platforme {product_name}"
},
"donation_confirmation": {
"subject": "Hvala ti na donaciji za {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Donijeli smo odluku o tvojoj prijavi na platformi {product_name}",
- "body": "Pozdrav,\n\nNaš sigurnosni tim pregledao je tvoju prijavu prema Zakonu o digitalnim uslugama (ID: {reportId}) i donio odluku.{hasComment, select, yes {\n\nOdgovor sigurnosnog tima:\n{publicComment}} other {}}\n\nNe dijelimo pojedinosti o mjerama poduzetima protiv računa druge osobe jer su to njezini osobni podaci.\n\nAko se ne slažeš s ovom odlukom, možeš besplatno podnijeti žalbu u roku od 60 dana. {appeals_email, select, null {Obrati se administratorima ove instance, navedi ID svoje prijave i objasni zašto smatraš da je odluka pogrešna.} other {Pošalji e-poštu na {appeals_email} s ove adrese e-pošte, navedi ID svoje prijave i objasni zašto smatraš da je odluka pogrešna.}} Ako se nalaziš u EU-u, spor možeš uputiti i certificiranom tijelu za izvansudsko rješavanje sporova. Ništa od navedenog ne utječe na tvoje pravo da se obratiš sudu.\n\n– Sigurnosni tim {product_name}a"
+ "body": "Pozdrav,\n\nPregledali smo tvoju prijavu (ID: {reportId}).\n\n{outcome, select, removed {Uklonili smo prijavljeni sadržaj jer je kršio naša pravila.} restricted {Utvrdili smo da je prijavljeni račun prekršio naša pravila i ograničili smo ga. Ne dijelimo koje smo mjere poduzeli protiv drugog računa jer su to osobni podaci njegova vlasnika.} action_taken {Utvrdili smo da je prijavljeni sadržaj ili račun prekršio naša pravila i poduzeli smo mjere. Ne dijelimo koje smo mjere poduzeli protiv drugog računa jer su to osobni podaci njegova vlasnika.} no_violation {Utvrdili smo da prijavljeni sadržaj ili račun ne krši naša pravila pa ništa nismo mijenjali.} other {Zatvorili smo tvoju prijavu.}}{hasComment, select, yes {\n\nNapomena našeg tima: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nAko se ne slažeš, pošalji e-poruku na {appeals_email} u roku od 60 dana i navedi ID prijave. Ako si u EU-u, slučaj možeš uputiti i certificiranom tijelu za izvansudsko rješavanje sporova ili podnijeti pritužbu koordinatoru za digitalne usluge u svojoj zemlji.}}\n\nTim platforme {product_name}"
},
"dsa_report_verification": {
"subject": "Potvrdi svoju e-poštu za prijavu prema Zakonu o digitalnim uslugama",
@@ -51,6 +43,14 @@
"subject": "Potvrdi svoju e-poštu za {product_name}",
"body": "Pozdrav {username},\n\nPotvrdi adresu e-pošte za svoj račun na {product_name}u klikom na poveznicu ispod:\n\n{verifyUrl}\n\nAko račun na {product_name}u nije tvoj, možeš zanemariti ovu e-poštu.\n\nOva poveznica vrijedi 24 sata.\n\n– Tim {product_name}a"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Poništili smo odluku o tvom računu na platformi {product_name}} other {Ograničenje tvog računa na platformi {product_name} je prestalo}}",
+ "body": "Pozdrav {username},\n\n{outcome, select, reversed {{decision_id, select, null {Ponovno smo razmotrili odluku o tvom računu i poništili je.} other {Ponovno smo razmotrili odluku {decision_id} i poništili je.}} Ispričavamo se zbog neugodnosti.} other {{decision_id, select, null {Ukinuli smo ograničenje tvog računa.} other {Ukinuli smo ograničenje iz odluke {decision_id}.}}}}{restores_access, select, yes { Ponovno se možeš prijaviti i koristiti {product_name}.} other {}}{statement, select, null {} other {\n\nNapomena našeg tima: {statement}}}{content_removed, select, yes {\n\nUklonjeni sadržaj ne može se vratiti.} other {}}\n\nTim platforme {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Obavijest o tvom računu na platformi {product_name}} other {{kind_label, select, warning {Upozorenje u vezi s tvojim računom na platformi {product_name}} suspension {Tvoj račun na platformi {product_name} je suspendiran} ban {Tvoj račun na platformi {product_name} je trajno blokiran} closure {Tvoj račun na platformi {product_name} je zatvoren} feature_limit {Neke funkcije tvog računa na platformi {product_name} su ograničene} content_removal {Uklonili smo tvoje poruke na platformi {product_name}} profile_reset {Vratili smo dijelove tvog profila na platformi {product_name} na zadano} community_removal {Uklonili smo tvoju zajednicu na platformi {product_name}} bot {Obavijest o tvom botu na platformi {product_name}} other {Obavijest o tvom računu na platformi {product_name}}}}}",
+ "body": "Pozdrav {username},\n\n{summary}\n\n{effects}\n\nZašto\nPravilo: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNapomena našeg tima: {statement}}}\n\nKako smo odlučili\n{how_we_decided}{appeals_email, select, null {} other {\n\nKako uložiti žalbu\nAko misliš da smo pogriješili, pošalji e-poruku na {appeals_email} do {appeal_deadline}. Ako možeš, piši s adrese e-pošte povezane s tvojim računom i navedi ID odluke. Žalbe su besplatne i svaku pregledava čovjek.{redress, select, null {} other {\n\n{redress}}}}}\n\nID odluke: {decision_id}\n\nTim platforme {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Pogodnosti tvog iskorištenog poklona su uklonjene",
"body": "Pozdrav {username},\n\nPoklon kod iskorišten na tvom računu izvorno je platio netko drugi. To je plaćanje u međuvremenu poništeno (povrat sredstava putem banke).\n\nZbog toga smo uklonili pogodnosti koje su pri iskorištavanju poklona dodane tvom računu.\n\n{support_email, select, null {Ako misliš da je ovo pogreška, obrati se administratorima ove instance i navedi sve podatke koje imaš o poklon kodu i o vremenu njegova iskorištavanja.} other {Ako misliš da je ovo pogreška, kontaktiraj naš tim za podršku i navedi sve podatke koje imaš o poklon kodu i o vremenu njegova iskorištavanja.}}\n\n– Tim {product_name}a"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Tvoja prijava na {product_name}u je pregledana",
- "body": "Pozdrav {username},\n\nTvoju prijavu (ID: {reportId}) pregledao je naš sigurnosni tim.{hasComment, select, yes {\n\nOdgovor sigurnosnog tima:\n{publicComment}} other {}}\n\nHvala ti što pomažeš da {product_name} bude siguran za sve. Sve prijave shvaćamo ozbiljno i cijenimo tvoj doprinos zajednici.\n\n{safety_email, select, null {Ako imaš bilo kakvih pitanja ili nedoumica u vezi s ovim ishodom, obrati se administratorima ove instance.} other {Ako imaš bilo kakvih pitanja ili nedoumica u vezi s ovim ishodom, kontaktiraj {safety_email}.}}\n\n– Sigurnosni tim {product_name}a"
- },
- "scheduled_deletion_notification": {
- "subject": "Tvoj račun na {product_name}u bit će trajno izbrisan",
- "body": "Pozdrav {username},\n\nTvoj račun na {product_name}u zakazan je za trajno brisanje.\n\nZakazano brisanje: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Razlog: {reason}\n\n}\n}Ovo je ozbiljna mjera. Podaci tvog računa bit će trajno izbrisani na zakazani datum.\n\nAko smatraš da je ova odluka bila netočna, možeš podnijeti žalbu. {appeals_email, select, null {Obrati se administratorima ove instance.} other {Pošalji e-poštu na {appeals_email} s ove adrese e-pošte.}}\n\n– Sigurnosni tim {product_name}a"
+ "body": "Pozdrav {username},\n\nPregledali smo tvoju prijavu (ID: {reportId}).\n\n{outcome, select, removed {Uklonili smo prijavljeni sadržaj jer je kršio naša pravila.} restricted {Utvrdili smo da je prijavljeni račun prekršio naša pravila i ograničili smo ga. Ne dijelimo koje smo mjere poduzeli protiv drugog računa jer su to osobni podaci njegova vlasnika.} action_taken {Utvrdili smo da je prijavljeni sadržaj ili račun prekršio naša pravila i poduzeli smo mjere. Ne dijelimo koje smo mjere poduzeli protiv drugog računa jer su to osobni podaci njegova vlasnika.} no_violation {Utvrdili smo da prijavljeni sadržaj ili račun ne krši naša pravila pa ništa nismo mijenjali.} other {Zatvorili smo tvoju prijavu.}}{hasComment, select, yes {\n\nNapomena našeg tima: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nAko se ne slažeš, pošalji e-poruku na {appeals_email} u roku od 60 dana i navedi ID prijave. Ako si u EU-u, slučaj možeš uputiti i certificiranom tijelu za izvansudsko rješavanje sporova ili podnijeti pritužbu koordinatoru za digitalne usluge u svojoj zemlji.}}\n\nTim platforme {product_name}"
},
"self_deletion_scheduled": {
"subject": "Brisanje tvog računa na {product_name}u je zakazano",
"body": "Pozdrav {username},\n\nPrimili smo tvoj zahtjev za brisanje računa na {product_name}u. Tvoj račun zakazan je za trajno brisanje:\n\n{deletionDate, date, full} u {deletionDate, time, short}\n\nAko ovaj zahtjev ne dolazi od tebe, prijavi se na svoj račun i otkaži brisanje. Također preporučujemo da promijeniš lozinku radi zaštite računa.\n\n– Tim {product_name}a"
- },
- "unban_notification": {
- "subject": "Suspenzija tvog računa na {product_name}u je ukinuta",
- "body": "Pozdrav {username},\n\nDobre vijesti: suspenzija tvog računa na {product_name}u je ukinuta.\n\n{reason, select,\n null {}\n other {Razlog: {reason}\n\n}\n}Sada se možeš ponovno prijaviti i nastaviti koristiti {product_name} kao i obično.\n\n– Sigurnosni tim {product_name}a"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hu.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hu.json
index f39de9c23..e32b1ca20 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hu.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/hu.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "{product_name}-fiókodat inaktivitás miatt törölni fogjuk",
- "body": "Szia, {username}!\n\n{product_name}-fiókod hosszú ideje inaktív, ezért végleges törlése a következő időpontra van ütemezve:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\nIndok: {reason}}}\n\n{safety_email, select, null {Ha meg szeretnéd tartani a fiókodat, még az időpont előtt fordulj ennek a példánynak az adminisztrátoraihoz.} other {Ha meg szeretnéd tartani a fiókodat, még az időpont előtt írj erről az e-mail-címről erre a címre: {safety_email}.}}\n\n– {product_name} csapata"
+ "body": "Szia, {username}!\n\n{product_name}-fiókod hosszú ideje inaktív, ezért ütemeztük a törlését erre az időpontra: {deletion_date}.\n\nHa meg szeretnéd tartani a fiókodat, jelentkezz be az időpont előtt. {support_email, select, null {Ha kérdésed van, fordulj ennek a példánynak az adminisztrátoraihoz.} other {Ha kérdésed van, írj erre a címre: {support_email}.}}\n\n{product_name} csapata"
},
"account_deletion_scheduled_requested": {
"subject": "Ütemeztük {product_name}-fiókod törlését",
- "body": "Szia, {username}!\n\nKérésedre {product_name}-fiókod végleges törlése a következő időpontra van ütemezve:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\nIndok: {reason}}}\n\nAddig a fiókod zárolva van. {safety_email, select, null {Ha nem te kérted ezt, vagy meg szeretnéd tartani a fiókodat, még az időpont előtt fordulj ennek a példánynak az adminisztrátoraihoz.} other {Ha nem te kérted ezt, vagy meg szeretnéd tartani a fiókodat, még az időpont előtt írj erről az e-mail-címről erre a címre: {safety_email}.}}\n\n– {product_name} csapata"
- },
- "account_scheduled_deletion": {
- "subject": "{product_name}-fiókodat véglegesen törölni fogjuk",
- "body": "Szia, {username}!\n\n{product_name}-fiókod végleges törlését ütemeztük a szolgáltatási feltételeink vagy a közösségi irányelveink megsértése miatt.\n\nA törlés tervezett időpontja: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Indok: {reason}\n\n}\n}Ez súlyos moderációs intézkedés. Fiókod adatait a megadott időpontban véglegesen töröljük.\n\n{legalLinks, select,\n both {Kérjük, olvasd át az alábbiakat:\n- Szolgáltatási feltételek: {termsUrl}\n- Közösségi irányelvek: {guidelinesUrl}\n\n}\n terms {Kérjük, olvasd át az alábbiakat:\n- Szolgáltatási feltételek: {termsUrl}\n\n}\n guidelines {Kérjük, olvasd át az alábbiakat:\n- Közösségi irányelvek: {guidelinesUrl}\n\n}\n other {}\n}Fellebbezés:\nHa úgy gondolod, hogy ez a döntés hibás vagy indokolatlan volt, 60 napod van fellebbezni. {appeals_email, select, null {Fordulj ennek a példánynak az adminisztrátoraihoz.} other {Erről az e-mail-címről írj a következő címre: {appeals_email}.}}\n\nA fellebbezésben:\n- Világosan fejtsd ki, miért gondolod, hogy a döntés hibás vagy indokolatlan volt.\n- Add meg a kapcsolódó bizonyítékokat és a körülményeket.\n\nA {product_name} biztonsági csapatának egyik tagja elbírálja a fellebbezésedet, és a végleges döntésig felfüggesztheti a tervezett törlést.\n\n– {product_name} biztonsági csapata"
- },
- "account_temp_banned": {
- "subject": "{product_name}-fiókodat ideiglenesen felfüggesztettük",
- "body": "Szia, {username}!\n\n{product_name}-fiókodat ideiglenesen felfüggesztettük a szolgáltatási feltételeink vagy a közösségi irányelveink megsértése miatt.\n\nIdőtartam: {durationHours, plural,\n =1 {1 óra}\n other {# óra}\n}\nA felfüggesztés vége: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Indok: {reason}\n\n}\n}Ez idő alatt nem férsz hozzá a fiókodhoz.\n\n{legalLinks, select,\n both {Kérjük, olvasd át az alábbiakat:\n- Szolgáltatási feltételek: {termsUrl}\n- Közösségi irányelvek: {guidelinesUrl}\n\n}\n terms {Kérjük, olvasd át az alábbiakat:\n- Szolgáltatási feltételek: {termsUrl}\n\n}\n guidelines {Kérjük, olvasd át az alábbiakat:\n- Közösségi irányelvek: {guidelinesUrl}\n\n}\n other {}\n}Ha úgy gondolod, hogy ez a döntés hibás vagy indokolatlan volt, fellebbezhetsz. {appeals_email, select, null {Fordulj ennek a példánynak az adminisztrátoraihoz, és világosan fejtsd ki, miért tartod hibásnak a döntést.} other {Erről az e-mail-címről írj a következő címre: {appeals_email}, és világosan fejtsd ki, miért tartod hibásnak a döntést.}} Elbíráljuk a fellebbezésedet, és értesítünk a döntésünkről.\n\n– {product_name} biztonsági csapata"
+ "body": "Szia, {username}!\n\nKérésedre ütemeztük {product_name}-fiókod törlését erre az időpontra: {deletion_date}.\n\nHa meg szeretnéd tartani a fiókodat, jelentkezz be {deletion_date} előtt. {safety_email, select, null {Ha nem te kérted ezt, fordulj ennek a példánynak az adminisztrátoraihoz.} other {Ha nem te kérted ezt, írj erre a címre: {safety_email}.}}\n\n{product_name} csapata"
},
"donation_confirmation": {
"subject": "Köszönjük, hogy adományoddal támogatod a {product_name} működését",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Döntést hoztunk a {product_name} felületén tett bejelentésedről",
- "body": "Szia!\n\nBiztonsági csapatunk elbírálta a digitális szolgáltatásokról szóló rendelet szerinti bejelentésedet (azonosító: {reportId}), és döntést hozott.{hasComment, select, yes {\n\nA biztonsági csapat válasza:\n{publicComment}} other {}}\n\nMás személy fiókjával szemben tett intézkedések részleteit nem osztjuk meg, mert azok az ő személyes adatai.\n\nHa nem értesz egyet a döntéssel, 60 napon belül díjmentesen fellebbezhetsz. {appeals_email, select, null {Fordulj ennek a példánynak az adminisztrátoraihoz, add meg a bejelentésed azonosítóját, és fejtsd ki, miért tartod hibásnak a döntést.} other {Erről az e-mail-címről írj a következő címre: {appeals_email}, add meg a bejelentésed azonosítóját, és fejtsd ki, miért tartod hibásnak a döntést.}} Ha az EU-ban tartózkodsz, a vitát tanúsított peren kívüli vitarendezési testület elé is viheted. Mindez nem érinti azt a jogodat, hogy bírósághoz fordulj.\n\n– {product_name} biztonsági csapata"
+ "body": "Szia!\n\nMegvizsgáltuk a bejelentésedet (azonosító: {reportId}).\n\n{outcome, select, removed {Eltávolítottuk a bejelentett tartalmat, mert megsértette a szabályainkat.} restricted {Megállapítottuk, hogy a bejelentett fiók megsértette a szabályainkat, ezért korlátoztuk. Azt nem osztjuk meg, milyen intézkedést hoztunk egy másik fiókkal szemben, mert az az illető személyes adata.} action_taken {Megállapítottuk, hogy amit bejelentettél, megsértette a szabályainkat, ezért intézkedtünk. Azt nem osztjuk meg, milyen intézkedést hoztunk egy másik fiókkal szemben, mert az az illető személyes adata.} no_violation {Megállapítottuk, hogy a bejelentett tartalom vagy fiók nem sérti a szabályainkat, ezért nem változtattunk rajta.} other {Lezártuk a bejelentésedet.}}{hasComment, select, yes {\n\nMegjegyzés a csapatunktól: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nHa nem értesz egyet, 60 napon belül írj a(z) {appeals_email} címre, és add meg a bejelentés azonosítóját. Ha az EU-ban élsz, az ügyet egy tanúsított peren kívüli vitarendezési testület elé is viheted, vagy panaszt tehetsz az országod digitális szolgáltatási koordinátoránál.}}\n\n{product_name} csapata"
},
"dsa_report_verification": {
"subject": "Erősítsd meg e-mail-címedet a DSA-bejelentéshez",
@@ -51,6 +43,14 @@
"subject": "Erősítsd meg {product_name}-fiókod e-mail-címét",
"body": "Szia, {username}!\n\nErősítsd meg a {product_name}-fiókod e-mail-címét az alábbi linkre kattintva:\n\n{verifyUrl}\n\nHa nem hoztál létre {product_name}-fiókot, nyugodtan figyelmen kívül hagyhatod ezt az e-mailt.\n\nEz a link 24 óráig érvényes.\n\n– {product_name} csapata"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Visszavontunk egy {product_name}-fiókodat érintő döntést} other {Véget ért egy {product_name}-fiókodat érintő korlátozás}}",
+ "body": "Szia, {username}!\n\n{outcome, select, reversed {{decision_id, select, null {Újra megvizsgáltunk egy fiókodat érintő döntést, és visszavontuk.} other {Újra megvizsgáltuk a(z) {decision_id} azonosítójú döntést, és visszavontuk.}} Elnézést kérünk a kellemetlenségért.} other {{decision_id, select, null {Feloldottuk a fiókodat érintő korlátozást.} other {Feloldottuk a(z) {decision_id} azonosítójú döntésen alapuló korlátozást.}}}}{restores_access, select, yes { Újra bejelentkezhetsz, és használhatod a(z) {product_name} szolgáltatást.} other {}}{statement, select, null {} other {\n\nMegjegyzés a csapatunktól: {statement}}}{content_removed, select, yes {\n\nAz általunk eltávolított tartalmat nem lehet visszaállítani.} other {}}\n\n{product_name} csapata"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Tájékoztatás {product_name}-fiókodról} other {{kind_label, select, warning {Figyelmeztetés {product_name}-fiókoddal kapcsolatban} suspension {{product_name}-fiókod fel van függesztve} ban {{product_name}-fiókod véglegesen fel van függesztve} closure {{product_name}-fiókod le van zárva} feature_limit {Néhány funkció korlátozva van {product_name}-fiókodon} content_removal {Eltávolítottunk üzeneteket, amelyeket a(z) {product_name} felületén küldtél} profile_reset {Visszaállítottuk {product_name}-profilod egyes részeit} community_removal {Eltávolítottuk a közösségedet a(z) {product_name} felületéről} bot {Tájékoztatás a botodról a(z) {product_name} felületén} other {Tájékoztatás {product_name}-fiókodról}}}}",
+ "body": "Szia, {username}!\n\n{summary}\n\n{effects}\n\nMiért\nSzabály: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nMegjegyzés a csapatunktól: {statement}}}\n\nHogyan döntöttünk\n{how_we_decided}{appeals_email, select, null {} other {\n\nÍgy fellebbezhetsz\nHa úgy gondolod, hogy tévedtünk, írj a(z) {appeals_email} címre. Határidő: {appeal_deadline}. Ha tudsz, a fiókodhoz tartozó e-mail-címről írj, és add meg a döntésazonosítót. A fellebbezés ingyenes, és mindegyiket egy ember bírálja el.{redress, select, null {} other {\n\n{redress}}}}}\n\nDöntésazonosító: {decision_id}\n\n{product_name} csapata"
+ },
"gift_chargeback_notification": {
"subject": "Megszűntek a beváltott ajándékodhoz tartozó előnyök",
"body": "Szia, {username}!\n\nAz általad beváltott ajándékkódot eredetileg valaki más fizette ki. Ezt a fizetést azóta visszaterhelték (chargeback).\n\nEmiatt megszüntettük azokat az előnyöket, amelyeket az ajándék beváltásakor kapott a fiókod.\n\n{support_email, select, null {Ha úgy gondolod, hogy ez tévedés, fordulj ennek a példánynak az adminisztrátoraihoz, és add meg az ajándékkóddal és a beváltás időpontjával kapcsolatos ismert részleteket.} other {Ha úgy gondolod, hogy ez tévedés, vedd fel a kapcsolatot ügyfélszolgálatunkkal, és add meg az ajándékkóddal és a beváltás időpontjával kapcsolatos ismert részleteket.}}\n\n– {product_name} csapata"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Elbíráltuk a {product_name} felületén tett bejelentésedet",
- "body": "Szia, {username}!\n\nBiztonsági csapatunk elbírálta a bejelentésedet (azonosító: {reportId}).{hasComment, select, yes {\n\nA biztonsági csapat válasza:\n{publicComment}} other {}}\n\nKöszönjük, hogy segítesz mindenki számára biztonságossá tenni a {product_name} közösségét. Minden bejelentést komolyan veszünk, és nagyra értékeljük, hogy segíted a közösséget.\n\n{safety_email, select, null {Ha kérdésed vagy aggályod van az eredménnyel kapcsolatban, fordulj ennek a példánynak az adminisztrátoraihoz.} other {Ha kérdésed vagy aggályod van az eredménnyel kapcsolatban, írj erre a címre: {safety_email}.}}\n\n– {product_name} biztonsági csapata"
- },
- "scheduled_deletion_notification": {
- "subject": "{product_name}-fiókodat véglegesen törölni fogjuk",
- "body": "Szia, {username}!\n\nÜtemeztük {product_name}-fiókod végleges törlését.\n\nA törlés tervezett időpontja: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Indok: {reason}\n\n}\n}Ez súlyos moderációs intézkedés. Fiókod adatait a megadott időpontban véglegesen töröljük.\n\nHa úgy gondolod, hogy ez a döntés hibás volt, fellebbezhetsz. {appeals_email, select, null {Fordulj ennek a példánynak az adminisztrátoraihoz.} other {Erről az e-mail-címről írj a következő címre: {appeals_email}.}}\n\n– {product_name} biztonsági csapata"
+ "body": "Szia, {username}!\n\nMegvizsgáltuk a bejelentésedet (azonosító: {reportId}).\n\n{outcome, select, removed {Eltávolítottuk a bejelentett tartalmat, mert megsértette a szabályainkat.} restricted {Megállapítottuk, hogy a bejelentett fiók megsértette a szabályainkat, ezért korlátoztuk. Azt nem osztjuk meg, milyen intézkedést hoztunk egy másik fiókkal szemben, mert az az illető személyes adata.} action_taken {Megállapítottuk, hogy amit bejelentettél, megsértette a szabályainkat, ezért intézkedtünk. Azt nem osztjuk meg, milyen intézkedést hoztunk egy másik fiókkal szemben, mert az az illető személyes adata.} no_violation {Megállapítottuk, hogy a bejelentett tartalom vagy fiók nem sérti a szabályainkat, ezért nem változtattunk rajta.} other {Lezártuk a bejelentésedet.}}{hasComment, select, yes {\n\nMegjegyzés a csapatunktól: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nHa nem értesz egyet, 60 napon belül írj a(z) {appeals_email} címre, és add meg a bejelentés azonosítóját. Ha az EU-ban élsz, az ügyet egy tanúsított peren kívüli vitarendezési testület elé is viheted, vagy panaszt tehetsz az országod digitális szolgáltatási koordinátoránál.}}\n\n{product_name} csapata"
},
"self_deletion_scheduled": {
"subject": "Ütemeztük {product_name}-fiókod törlését",
"body": "Szia, {username}!\n\nKérted a {product_name}-fiókod törlését. Fiókod végleges törlése a következő időpontra van ütemezve:\n\n{deletionDate, date, full} {deletionDate, time, short}\n\nHa nem te kérted ezt, jelentkezz be a fiókodba a törlés visszavonásához. Javasoljuk továbbá, hogy változtasd meg a jelszavadat a fiókod biztonságának megőrzése érdekében.\n\n– {product_name} csapata"
- },
- "unban_notification": {
- "subject": "Feloldottuk {product_name}-fiókod felfüggesztését",
- "body": "Szia, {username}!\n\nJó hír: feloldottuk {product_name}-fiókod felfüggesztését.\n\n{reason, select,\n null {}\n other {Indok: {reason}\n\n}\n}Most már újra bejelentkezhetsz, és a megszokott módon használhatod a {product_name} alkalmazást.\n\n– {product_name} biztonsági csapata"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/id.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/id.json
index 8d81aaced..d6a07db6f 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/id.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/id.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Akun {product_name} kamu akan dihapus karena tidak aktif",
- "body": "Halo {username},\n\nAkun {product_name} kamu sudah lama tidak aktif, sehingga dijadwalkan untuk dihapus permanen pada:\n\n{deletionDate, date, full} pukul {deletionDate, time, short}{reason, select, null {} other {\n\nAlasan: {reason}}}\n\n{safety_email, select, null {Jika kamu ingin mempertahankan akunmu, hubungi administrator instance ini sebelum tanggal tersebut.} other {Jika kamu ingin mempertahankan akunmu, hubungi {safety_email} dari alamat email ini sebelum tanggal tersebut.}}\n\n– Tim {product_name}"
+ "body": "Halo {username},\n\nAkun {product_name} kamu sudah lama tidak aktif, jadi kami menjadwalkan penghapusannya pada {deletion_date}.\n\nUntuk mempertahankan akunmu, masuklah sebelum tanggal tersebut. {support_email, select, null {Jika kamu punya pertanyaan, hubungi administrator instance ini.} other {Jika kamu punya pertanyaan, hubungi {support_email}.}}\n\nTim {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Penghapusan akun {product_name} kamu telah dijadwalkan",
- "body": "Halo {username},\n\nSesuai permintaanmu, akun {product_name} kamu dijadwalkan untuk dihapus permanen pada:\n\n{deletionDate, date, full} pukul {deletionDate, time, short}{reason, select, null {} other {\n\nAlasan: {reason}}}\n\nAkunmu dikunci hingga saat itu. {safety_email, select, null {Jika kamu tidak meminta ini, atau ingin mempertahankan akunmu, hubungi administrator instance ini sebelum tanggal tersebut.} other {Jika kamu tidak meminta ini, atau ingin mempertahankan akunmu, hubungi {safety_email} dari alamat email ini sebelum tanggal tersebut.}}\n\n– Tim {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Akun {product_name} kamu akan dihapus secara permanen",
- "body": "Halo {username},\n\nAkun {product_name} kamu telah dijadwalkan untuk dihapus permanen karena melanggar Ketentuan Layanan atau Pedoman Komunitas kami.\n\nPenghapusan terjadwal: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Alasan: {reason}\n\n}\n}Ini adalah tindakan penegakan yang serius. Data akunmu akan dihapus permanen pada tanggal yang dijadwalkan.\n\n{legalLinks, select,\n both {Silakan tinjau:\n- Ketentuan Layanan: {termsUrl}\n- Pedoman Komunitas: {guidelinesUrl}\n\n}\n terms {Silakan tinjau:\n- Ketentuan Layanan: {termsUrl}\n\n}\n guidelines {Silakan tinjau:\n- Pedoman Komunitas: {guidelinesUrl}\n\n}\n other {}\n}Proses banding:\nJika kamu yakin keputusan ini keliru atau tidak beralasan, kamu punya 60 hari untuk mengajukan banding. {appeals_email, select, null {Hubungi administrator instance ini.} other {Kirim email ke {appeals_email} dari alamat email ini.}}\n\nDalam bandingmu:\n- Uraikan dengan jelas kenapa kamu yakin keputusan ini keliru atau tidak beralasan\n- Berikan bukti atau konteks yang relevan\n\nAnggota Tim Keamanan {product_name} akan meninjau bandingmu dan bisa menunda penghapusan sampai keputusan akhir tercapai.\n\n– Tim Keamanan {product_name}"
- },
- "account_temp_banned": {
- "subject": "Akun {product_name} kamu telah ditangguhkan sementara",
- "body": "Halo {username},\n\nAkun {product_name} kamu telah ditangguhkan sementara karena melanggar Ketentuan Layanan atau Pedoman Komunitas kami.\n\nDurasi: {durationHours, plural,\n =1 {1 jam}\n other {# jam}\n}\nDitangguhkan hingga: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Alasan: {reason}\n\n}\n}Selama waktu ini, kamu tidak akan bisa mengakses akunmu.\n\n{legalLinks, select,\n both {Silakan tinjau:\n- Ketentuan Layanan: {termsUrl}\n- Pedoman Komunitas: {guidelinesUrl}\n\n}\n terms {Silakan tinjau:\n- Ketentuan Layanan: {termsUrl}\n\n}\n guidelines {Silakan tinjau:\n- Pedoman Komunitas: {guidelinesUrl}\n\n}\n other {}\n}Jika kamu yakin keputusan ini keliru atau tidak beralasan, kamu bisa mengajukan banding. {appeals_email, select, null {Hubungi administrator instance ini dan uraikan dengan jelas kenapa kamu yakin keputusan ini keliru.} other {Kirim email ke {appeals_email} dari alamat email ini dan uraikan dengan jelas kenapa kamu yakin keputusan ini keliru.}} Kami akan meninjau bandingmu dan menyampaikan keputusan kami.\n\n– Tim Keamanan {product_name}"
+ "body": "Halo {username},\n\nSesuai permintaanmu, kami menjadwalkan penghapusan akun {product_name} kamu pada {deletion_date}.\n\nUntuk mempertahankan akunmu, masuklah sebelum {deletion_date}. {safety_email, select, null {Jika kamu tidak memintanya, hubungi administrator instance ini.} other {Jika kamu tidak memintanya, hubungi {safety_email}.}}\n\nTim {product_name}"
},
"donation_confirmation": {
"subject": "Terima kasih atas donasimu untuk {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Kami telah mengambil keputusan atas laporanmu di {product_name}",
- "body": "Halo,\n\nTim Keamanan kami telah meninjau laporan Digital Services Act kamu (ID: {reportId}) dan mengambil keputusan.{hasComment, select, yes {\n\nTanggapan dari Tim Keamanan:\n{publicComment}} other {}}\n\nKami tidak membagikan detail tindakan yang diambil terhadap akun orang lain, karena itu adalah data pribadi mereka.\n\nJika kamu tidak setuju dengan keputusan ini, kamu bisa mengajukan banding secara gratis dalam waktu 60 hari. {appeals_email, select, null {Hubungi administrator instance ini, sertakan ID laporanmu, dan jelaskan kenapa menurutmu keputusan ini keliru.} other {Kirim email ke {appeals_email} dari alamat email ini, sertakan ID laporanmu, dan jelaskan kenapa menurutmu keputusan ini keliru.}} Jika kamu berada di Uni Eropa, kamu juga bisa membawa sengketa ini ke badan penyelesaian sengketa di luar pengadilan yang bersertifikat. Semua ini tidak memengaruhi hakmu untuk menempuh jalur pengadilan.\n\n– Tim Keamanan {product_name}"
+ "body": "Halo,\n\nKami telah meninjau laporanmu (ID: {reportId}).\n\n{outcome, select, removed {Kami menghapus konten yang kamu laporkan karena melanggar aturan kami.} restricted {Kami menemukan bahwa akun yang kamu laporkan melanggar aturan kami, dan kami telah membatasinya. Kami tidak membagikan tindakan apa yang kami ambil terhadap akun lain, karena itu adalah data pribadi pemiliknya.} action_taken {Kami menemukan bahwa yang kamu laporkan melanggar aturan kami, dan kami telah mengambil tindakan. Kami tidak membagikan tindakan apa yang kami ambil terhadap akun lain, karena itu adalah data pribadi pemiliknya.} no_violation {Kami menemukan bahwa konten atau akun yang kamu laporkan tidak melanggar aturan kami, jadi kami membiarkannya apa adanya.} other {Kami menutup laporanmu.}}{hasComment, select, yes {\n\nCatatan dari tim kami: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nJika kamu tidak setuju, kirim email ke {appeals_email} dalam 60 hari dan sertakan ID laporan. Jika kamu berada di UE, kamu juga bisa membawa hal ini ke badan penyelesaian sengketa di luar pengadilan yang tersertifikasi atau mengajukan pengaduan ke Koordinator Layanan Digital di negaramu.}}\n\nTim {product_name}"
},
"dsa_report_verification": {
"subject": "Verifikasi emailmu untuk laporan DSA",
@@ -51,6 +43,14 @@
"subject": "Verifikasi alamat email {product_name} kamu",
"body": "Halo {username},\n\nSilakan verifikasi alamat email untuk akun {product_name} kamu dengan mengeklik tautan di bawah ini:\n\n{verifyUrl}\n\nJika kamu tidak membuat akun {product_name}, kamu bisa mengabaikan email ini dengan aman.\n\nTautan ini berlaku selama 24 jam.\n\n– Tim {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Kami membatalkan keputusan tentang akun {product_name} kamu} other {Pembatasan pada akun {product_name} kamu telah berakhir}}",
+ "body": "Halo {username},\n\n{outcome, select, reversed {{decision_id, select, null {Kami meninjau ulang keputusan tentang akunmu dan membatalkannya.} other {Kami meninjau ulang keputusan {decision_id} dan membatalkannya.}} Kami mohon maaf atas ketidaknyamanannya.} other {{decision_id, select, null {Kami telah mencabut pembatasan pada akunmu.} other {Kami telah mencabut pembatasan dari keputusan {decision_id}.}}}}{restores_access, select, yes { Kamu bisa masuk dan menggunakan {product_name} lagi.} other {}}{statement, select, null {} other {\n\nCatatan dari tim kami: {statement}}}{content_removed, select, yes {\n\nKonten yang kami hapus tidak dapat dipulihkan.} other {}}\n\nTim {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Kabar terbaru tentang akun {product_name} kamu} other {{kind_label, select, warning {Peringatan tentang akun {product_name} kamu} suspension {Akun {product_name} kamu ditangguhkan} ban {Akun {product_name} kamu diblokir} closure {Akun {product_name} kamu ditutup} feature_limit {Beberapa fitur di akun {product_name} kamu dibatasi} content_removal {Kami menghapus pesan yang kamu kirim di {product_name}} profile_reset {Kami mengatur ulang sebagian profil {product_name} kamu} community_removal {Kami menghapus komunitasmu di {product_name}} bot {Kabar terbaru tentang botmu di {product_name}} other {Kabar terbaru tentang akun {product_name} kamu}}}}",
+ "body": "Halo {username},\n\n{summary}\n\n{effects}\n\nAlasan\nAturan: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nCatatan dari tim kami: {statement}}}\n\nCara kami memutuskan\n{how_we_decided}{appeals_email, select, null {} other {\n\nCara mengajukan banding\nJika menurutmu kami keliru, kirim email ke {appeals_email} paling lambat {appeal_deadline}. Jika bisa, kirim dari alamat email akunmu, dan sertakan ID keputusan. Banding tidak dipungut biaya, dan setiap banding ditinjau oleh manusia.{redress, select, null {} other {\n\n{redress}}}}}\n\nID keputusan: {decision_id}\n\nTim {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Manfaat dari hadiah yang kamu tukarkan telah dihapus",
"body": "Halo {username},\n\nKode hadiah yang kamu tukarkan awalnya dibayar oleh orang lain. Pembayaran itu kemudian dibatalkan (chargeback).\n\nKarena itu, kami menghapus manfaat yang ditambahkan ke akunmu saat kamu menukarkan hadiah tersebut.\n\n{support_email, select, null {Jika kamu merasa ini keliru, silakan hubungi administrator instance ini dan sertakan detail apa pun yang kamu punya tentang kode hadiah itu dan kapan kamu menukarkannya.} other {Jika kamu merasa ini keliru, silakan hubungi tim dukungan kami dan sertakan detail apa pun yang kamu punya tentang kode hadiah itu dan kapan kamu menukarkannya.}}\n\n– Tim {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Laporanmu di {product_name} telah ditinjau",
- "body": "Halo {username},\n\nLaporanmu (ID: {reportId}) telah ditinjau oleh Tim Keamanan kami.{hasComment, select, yes {\n\nTanggapan dari Tim Keamanan:\n{publicComment}} other {}}\n\nTerima kasih telah membantu menjaga {product_name} tetap aman untuk semua orang. Kami menanggapi semua laporan dengan serius dan menghargai kontribusimu bagi komunitas.\n\n{safety_email, select, null {Jika kamu punya pertanyaan atau kekhawatiran tentang hasil ini, silakan hubungi administrator instance ini.} other {Jika kamu punya pertanyaan atau kekhawatiran tentang hasil ini, silakan hubungi {safety_email}.}}\n\n– Tim Keamanan {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Akun {product_name} kamu akan dihapus secara permanen",
- "body": "Halo {username},\n\nAkun {product_name} kamu telah dijadwalkan untuk dihapus permanen.\n\nPenghapusan terjadwal: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Alasan: {reason}\n\n}\n}Ini adalah tindakan penegakan yang serius. Data akunmu akan dihapus permanen pada tanggal yang dijadwalkan.\n\nJika kamu yakin keputusan ini keliru, kamu bisa mengajukan banding. {appeals_email, select, null {Hubungi administrator instance ini.} other {Kirim email ke {appeals_email} dari alamat email ini.}}\n\n– Tim Keamanan {product_name}"
+ "body": "Halo {username},\n\nKami telah meninjau laporanmu (ID: {reportId}).\n\n{outcome, select, removed {Kami menghapus konten yang kamu laporkan karena melanggar aturan kami.} restricted {Kami menemukan bahwa akun yang kamu laporkan melanggar aturan kami, dan kami telah membatasinya. Kami tidak membagikan tindakan apa yang kami ambil terhadap akun lain, karena itu adalah data pribadi pemiliknya.} action_taken {Kami menemukan bahwa yang kamu laporkan melanggar aturan kami, dan kami telah mengambil tindakan. Kami tidak membagikan tindakan apa yang kami ambil terhadap akun lain, karena itu adalah data pribadi pemiliknya.} no_violation {Kami menemukan bahwa konten atau akun yang kamu laporkan tidak melanggar aturan kami, jadi kami membiarkannya apa adanya.} other {Kami menutup laporanmu.}}{hasComment, select, yes {\n\nCatatan dari tim kami: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nJika kamu tidak setuju, kirim email ke {appeals_email} dalam 60 hari dan sertakan ID laporan. Jika kamu berada di UE, kamu juga bisa membawa hal ini ke badan penyelesaian sengketa di luar pengadilan yang tersertifikasi atau mengajukan pengaduan ke Koordinator Layanan Digital di negaramu.}}\n\nTim {product_name}"
},
"self_deletion_scheduled": {
"subject": "Penghapusan akun {product_name} kamu telah dijadwalkan",
"body": "Halo {username},\n\nKamu meminta agar akun {product_name} kamu dihapus. Akunmu dijadwalkan untuk dihapus permanen pada:\n\n{deletionDate, date, full} pukul {deletionDate, time, short}\n\nJika kamu tidak meminta ini, masuk ke akunmu untuk membatalkan penghapusan. Kami juga menyarankan kamu mengubah kata sandi agar akunmu tetap aman.\n\n– Tim {product_name}"
- },
- "unban_notification": {
- "subject": "Penangguhan akun {product_name} kamu telah dicabut",
- "body": "Halo {username},\n\nKabar baik: penangguhan akun {product_name} kamu telah dicabut.\n\n{reason, select,\n null {}\n other {Alasan: {reason}\n\n}\n}Kamu sekarang bisa masuk lagi dan terus menggunakan {product_name} seperti biasa.\n\n– Tim Keamanan {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/it.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/it.json
index c1a4976a2..c6b19fcd4 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/it.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/it.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Il tuo account {product_name} verrà eliminato per inattività",
- "body": "Ciao {username},\n\nIl tuo account {product_name} è inattivo da molto tempo, quindi verrà eliminato definitivamente in questa data:\n\n{deletionDate, date, full} alle {deletionDate, time, short}{reason, select, null {} other {\n\nMotivo: {reason}}}\n\n{safety_email, select, null {Se vuoi mantenere il tuo account, contatta gli amministratori di questa istanza prima di tale data.} other {Se vuoi mantenere il tuo account, contatta {safety_email} da questo indirizzo email prima di tale data.}}\n\n– Il team di {product_name}"
+ "body": "Ciao {username},\n\nIl tuo account {product_name} è inattivo da molto tempo, quindi ne abbiamo programmato l'eliminazione per il {deletion_date}.\n\nPer mantenere il tuo account, accedi prima di tale data. {support_email, select, null {Se hai domande, contatta gli amministratori di questa istanza.} other {Se hai domande, contatta {support_email}.}}\n\nIl team di {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "L'eliminazione del tuo account {product_name} è programmata",
- "body": "Ciao {username},\n\nCome da tua richiesta, il tuo account {product_name} verrà eliminato definitivamente in questa data:\n\n{deletionDate, date, full} alle {deletionDate, time, short}{reason, select, null {} other {\n\nMotivo: {reason}}}\n\nFino ad allora il tuo account è bloccato. {safety_email, select, null {Se non hai richiesto l'eliminazione o se vuoi mantenere il tuo account, contatta gli amministratori di questa istanza prima di tale data.} other {Se non hai richiesto l'eliminazione o se vuoi mantenere il tuo account, contatta {safety_email} da questo indirizzo email prima di tale data.}}\n\n– Il team di {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Il tuo account {product_name} verrà eliminato definitivamente",
- "body": "Ciao {username},\n\nÈ stata programmata l’eliminazione definitiva del tuo account {product_name} a causa di violazioni dei nostri Termini di servizio o delle Linee guida della community.\n\nEliminazione programmata: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Si tratta di un provvedimento grave. I dati del tuo account verranno eliminati definitivamente alla data programmata.\n\n{legalLinks, select,\n both {Consulta:\n- Termini di servizio: {termsUrl}\n- Linee guida della community: {guidelinesUrl}\n\n}\n terms {Consulta:\n- Termini di servizio: {termsUrl}\n\n}\n guidelines {Consulta:\n- Linee guida della community: {guidelinesUrl}\n\n}\n other {}\n}Procedura di ricorso:\nSe ritieni che questa decisione sia scorretta o ingiustificata, hai 60 giorni per presentare un ricorso. {appeals_email, select, null {Contatta gli amministratori di questa istanza.} other {Invia un'email a {appeals_email} da questo indirizzo email.}}\n\nNel tuo ricorso:\n- Spiega chiaramente perché ritieni che la decisione sia scorretta o ingiustificata\n- Fornisci qualsiasi prova o contesto pertinente\n\nUn membro del team per la sicurezza {product_name} esaminerà il tuo ricorso e potrebbe sospendere l’eliminazione programmata fino a quando non sarà stata raggiunta una decisione finale.\n\n– Il team per la sicurezza di {product_name}"
- },
- "account_temp_banned": {
- "subject": "Il tuo account {product_name} è stato temporaneamente sospeso",
- "body": "Ciao {username},\n\nIl tuo account {product_name} è stato temporaneamente sospeso per aver violato i nostri Termini di servizio o le Linee guida della community.\n\nDurata: {durationHours, plural,\n =1 {1 ora}\n other {# ore}\n}\nSospeso fino a: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Durante questo periodo, non potrai accedere al tuo account.\n\n{legalLinks, select,\n both {Consulta:\n- Termini di servizio: {termsUrl}\n- Linee guida della community: {guidelinesUrl}\n\n}\n terms {Consulta:\n- Termini di servizio: {termsUrl}\n\n}\n guidelines {Consulta:\n- Linee guida della community: {guidelinesUrl}\n\n}\n other {}\n}Se ritieni che questa decisione sia scorretta o ingiustificata, puoi presentare un ricorso. {appeals_email, select, null {Contatta gli amministratori di questa istanza e spiega chiaramente perché ritieni che la decisione sia scorretta.} other {Invia un'email a {appeals_email} da questo indirizzo email e spiega chiaramente perché ritieni che la decisione sia scorretta.}} Esamineremo il tuo ricorso e risponderemo con la nostra decisione.\n\n– Il team per la sicurezza di {product_name}"
+ "body": "Ciao {username},\n\nCome richiesto, abbiamo programmato l'eliminazione del tuo account {product_name} per il {deletion_date}.\n\nPer mantenere il tuo account, accedi prima del {deletion_date}. {safety_email, select, null {Se non l'hai richiesto tu, contatta gli amministratori di questa istanza.} other {Se non l'hai richiesto tu, contatta {safety_email}.}}\n\nIl team di {product_name}"
},
"donation_confirmation": {
"subject": "Grazie per la tua donazione a {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Abbiamo preso una decisione sulla tua segnalazione su {product_name}",
- "body": "Ciao,\n\nIl nostro team per la sicurezza ha esaminato la tua segnalazione ai sensi del Digital Services Act (ID: {reportId}) e ha preso una decisione.{hasComment, select, yes {\n\nRisposta dal team per la sicurezza:\n{publicComment}} other {}}\n\nNon condividiamo i dettagli delle misure adottate nei confronti dell'account di un'altra persona, perché si tratta dei suoi dati personali.\n\nSe non sei d'accordo con questa decisione, puoi presentare un ricorso gratuitamente entro 60 giorni. {appeals_email, select, null {Contatta gli amministratori di questa istanza, indica l'ID della tua segnalazione e spiega perché ritieni che la decisione sia scorretta.} other {Invia un'email a {appeals_email} da questo indirizzo email, indica l'ID della tua segnalazione e spiega perché ritieni che la decisione sia scorretta.}} Se ti trovi nell'UE, puoi anche sottoporre la controversia a un organismo certificato di risoluzione extragiudiziale delle controversie. Tutto questo non pregiudica il tuo diritto di rivolgerti a un tribunale.\n\n– Il team per la sicurezza di {product_name}"
+ "body": "Ciao,\n\nAbbiamo esaminato la tua segnalazione (ID: {reportId}).\n\n{outcome, select, removed {Abbiamo rimosso il contenuto che hai segnalato perché violava le nostre regole.} restricted {Abbiamo verificato che l'account che hai segnalato violava le nostre regole e gli abbiamo applicato una restrizione. Non comunichiamo quali provvedimenti abbiamo preso nei confronti di un altro account, perché si tratta di dati personali del suo titolare.} action_taken {Abbiamo verificato che ciò che hai segnalato violava le nostre regole e abbiamo preso provvedimenti. Non comunichiamo quali provvedimenti abbiamo preso nei confronti di un altro account, perché si tratta di dati personali del suo titolare.} no_violation {Abbiamo verificato che il contenuto o l'account che hai segnalato non viola le nostre regole, quindi non abbiamo cambiato nulla.} other {Abbiamo chiuso la tua segnalazione.}}{hasComment, select, yes {\n\nNota del nostro team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSe non sei d'accordo, scrivi a {appeals_email} entro 60 giorni indicando l'ID della segnalazione. Se ti trovi nell'UE, puoi anche rivolgerti a un organismo certificato di risoluzione extragiudiziale delle controversie o presentare un reclamo al coordinatore dei servizi digitali del tuo paese.}}\n\nIl team di {product_name}"
},
"dsa_report_verification": {
"subject": "Verifica la tua email per una segnalazione DSA",
@@ -51,6 +43,14 @@
"subject": "Verifica il tuo indirizzo email di {product_name}",
"body": "Ciao {username},\n\nVerifica l'indirizzo email del tuo account {product_name} cliccando sul link qui sotto:\n\n{verifyUrl}\n\nSe non hai creato un account {product_name}, puoi ignorare tranquillamente questa email.\n\nQuesto link è valido per 24 ore.\n\n– Il team di {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Abbiamo annullato una decisione sul tuo account {product_name}} other {Una restrizione sul tuo account {product_name} è terminata}}",
+ "body": "Ciao {username},\n\n{outcome, select, reversed {{decision_id, select, null {Abbiamo riesaminato una decisione sul tuo account e l'abbiamo annullata.} other {Abbiamo riesaminato la decisione {decision_id} e l'abbiamo annullata.}} Ci scusiamo per il disagio.} other {{decision_id, select, null {Abbiamo revocato la restrizione sul tuo account.} other {Abbiamo revocato la restrizione della decisione {decision_id}.}}}}{restores_access, select, yes { Puoi di nuovo accedere e usare {product_name}.} other {}}{statement, select, null {} other {\n\nNota del nostro team: {statement}}}{content_removed, select, yes {\n\nI contenuti che abbiamo rimosso non possono essere ripristinati.} other {}}\n\nIl team di {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Un aggiornamento sul tuo account {product_name}} other {{kind_label, select, warning {Un avvertimento sul tuo account {product_name}} suspension {Il tuo account {product_name} è sospeso} ban {Il tuo account {product_name} è bannato} closure {Il tuo account {product_name} è chiuso} feature_limit {Alcune funzionalità del tuo account {product_name} sono limitate} content_removal {Abbiamo rimosso dei messaggi che hai inviato su {product_name}} profile_reset {Abbiamo reimpostato parte del tuo profilo {product_name}} community_removal {Abbiamo rimosso la tua community su {product_name}} bot {Un aggiornamento sul tuo bot su {product_name}} other {Un aggiornamento sul tuo account {product_name}}}}}",
+ "body": "Ciao {username},\n\n{summary}\n\n{effects}\n\nPerché\nRegola: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNota del nostro team: {statement}}}\n\nCome abbiamo deciso\n{how_we_decided}{appeals_email, select, null {} other {\n\nCome presentare ricorso\nSe pensi che abbiamo sbagliato, scrivi a {appeals_email} entro il {appeal_deadline}. Se puoi, scrivi dall'indirizzo email del tuo account e indica l'ID decisione. Il ricorso è gratuito e ogni richiesta viene esaminata da una persona.{redress, select, null {} other {\n\n{redress}}}}}\n\nID decisione: {decision_id}\n\nIl team di {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "I vantaggi del tuo regalo riscattato sono stati rimossi",
"body": "Ciao {username},\n\nUn codice regalo che hai riscattato era stato originariamente pagato da qualcun altro. Tale pagamento è stato successivamente annullato (un chargeback).\n\nPer questo motivo, abbiamo rimosso i vantaggi che erano stati aggiunti al tuo account quando hai riscattato il regalo.\n\n{support_email, select, null {Se ritieni che si tratti di un errore, contatta gli amministratori di questa istanza e includi tutti i dettagli che hai sul codice regalo e su quando lo hai riscattato.} other {Se ritieni che si tratti di un errore, contatta il nostro team di assistenza e includi tutti i dettagli che hai sul codice regalo e su quando lo hai riscattato.}}\n\n– Il team di {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "La tua segnalazione {product_name} è stata esaminata",
- "body": "Ciao {username},\n\nLa tua segnalazione (ID: {reportId}) è stata esaminata dal nostro team per la sicurezza.{hasComment, select, yes {\n\nRisposta dal team per la sicurezza:\n{publicComment}} other {}}\n\nGrazie per aver contribuito a mantenere {product_name} sicuro per tutti. Prendiamo sul serio tutte le segnalazioni e apprezziamo il tuo contributo alla community.\n\n{safety_email, select, null {Se hai domande o preoccupazioni riguardo a questo esito, contatta gli amministratori di questa istanza.} other {Se hai domande o preoccupazioni riguardo a questo esito, contatta {safety_email}.}}\n\n– Il team per la sicurezza di {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Il tuo account {product_name} verrà eliminato definitivamente",
- "body": "Ciao {username},\n\nÈ stata programmata l’eliminazione definitiva del tuo account {product_name}.\n\nEliminazione programmata: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Si tratta di un provvedimento grave. I dati del tuo account verranno eliminati definitivamente alla data programmata.\n\nSe ritieni che questa decisione sia scorretta, puoi presentare un ricorso. {appeals_email, select, null {Contatta gli amministratori di questa istanza.} other {Invia un'email a {appeals_email} da questo indirizzo email.}}\n\n– Il team per la sicurezza di {product_name}"
+ "body": "Ciao {username},\n\nAbbiamo esaminato la tua segnalazione (ID: {reportId}).\n\n{outcome, select, removed {Abbiamo rimosso il contenuto che hai segnalato perché violava le nostre regole.} restricted {Abbiamo verificato che l'account che hai segnalato violava le nostre regole e gli abbiamo applicato una restrizione. Non comunichiamo quali provvedimenti abbiamo preso nei confronti di un altro account, perché si tratta di dati personali del suo titolare.} action_taken {Abbiamo verificato che ciò che hai segnalato violava le nostre regole e abbiamo preso provvedimenti. Non comunichiamo quali provvedimenti abbiamo preso nei confronti di un altro account, perché si tratta di dati personali del suo titolare.} no_violation {Abbiamo verificato che il contenuto o l'account che hai segnalato non viola le nostre regole, quindi non abbiamo cambiato nulla.} other {Abbiamo chiuso la tua segnalazione.}}{hasComment, select, yes {\n\nNota del nostro team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSe non sei d'accordo, scrivi a {appeals_email} entro 60 giorni indicando l'ID della segnalazione. Se ti trovi nell'UE, puoi anche rivolgerti a un organismo certificato di risoluzione extragiudiziale delle controversie o presentare un reclamo al coordinatore dei servizi digitali del tuo paese.}}\n\nIl team di {product_name}"
},
"self_deletion_scheduled": {
"subject": "L'eliminazione del tuo account {product_name} è programmata",
"body": "Ciao {username},\n\nHai richiesto di eliminare il tuo account {product_name}. Il tuo account verrà eliminato definitivamente in questa data:\n\n{deletionDate, date, full} alle {deletionDate, time, short}\n\nSe non hai richiesto l'eliminazione, accedi al tuo account per annullarla. Ti consigliamo anche di cambiare la password per mettere in sicurezza il tuo account.\n\n– Il team di {product_name}"
- },
- "unban_notification": {
- "subject": "La sospensione del tuo account {product_name} è stata revocata",
- "body": "Ciao {username},\n\nBuone notizie: la sospensione del tuo account {product_name} è stata revocata.\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Ora puoi accedere di nuovo e continuare a usare {product_name} normalmente.\n\n– Il team per la sicurezza di {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ja.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ja.json
index b5947f9a1..fee690275 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ja.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ja.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "{product_name}アカウントは非アクティブのため削除されます",
- "body": "こんにちは、{username}さん\n\n{product_name}アカウントは長期間利用されていないため、以下の日時に完全に削除される予定です。\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\n理由: {reason}}}\n\n{safety_email, select, null {アカウントを維持したい場合は、この日時までにこのインスタンスの管理者へご連絡ください。} other {アカウントを維持したい場合は、この日時までにこのメールアドレスから{safety_email}へご連絡ください。}}\n\n– {product_name}チーム"
+ "body": "こんにちは、{username}さん\n\n{product_name}アカウントは長期間利用されていないため、{deletion_date}に削除するよう設定しました。\n\nアカウントを残したい場合は、その日より前にログインしてください。{support_email, select, null {ご質問がございましたら、このインスタンスの管理者にご連絡ください。} other {ご質問がございましたら、{support_email}までご連絡ください。}}\n\n{product_name}チーム"
},
"account_deletion_scheduled_requested": {
"subject": "{product_name}アカウントの削除が予定されています",
- "body": "こんにちは、{username}さん\n\nリクエストに基づき、{product_name}アカウントは以下の日時に完全に削除される予定です。\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\n理由: {reason}}}\n\nそれまでアカウントはロックされます。{safety_email, select, null {ご自身でリクエストしていない場合、またはアカウントを維持したい場合は、この日時までにこのインスタンスの管理者へご連絡ください。} other {ご自身でリクエストしていない場合、またはアカウントを維持したい場合は、この日時までにこのメールアドレスから{safety_email}へご連絡ください。}}\n\n– {product_name}チーム"
- },
- "account_scheduled_deletion": {
- "subject": "{product_name}アカウントは完全に削除されます",
- "body": "こんにちは、{username}さん\n\n{product_name}アカウントは、利用規約またはコミュニティガイドラインへの違反のため、完全な削除が予定されています。\n\n削除予定日時: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {理由: {reason}\n\n}\n}これは重大な措置です。アカウントデータは、予定日に完全に削除されます。\n\n{legalLinks, select,\n both {以下をご確認ください。\n- 利用規約: {termsUrl}\n- コミュニティガイドライン: {guidelinesUrl}\n\n}\n terms {以下をご確認ください。\n- 利用規約: {termsUrl}\n\n}\n guidelines {以下をご確認ください。\n- コミュニティガイドライン: {guidelinesUrl}\n\n}\n other {}\n}異議申し立て手続き:\nこの措置が不正確または不当であると思われる場合は、60日以内に異議申し立てを提出できます。{appeals_email, select, null {このインスタンスの管理者に連絡してください。} other {このメールアドレスから{appeals_email}までメールを送信してください。}}\n\n異議申し立てには、以下を記載してください。\n- 措置が不正確または不当であると考える理由の明確な説明\n- 関連する証拠や背景情報\n\n{product_name}安全チームのメンバーが異議申し立てを審査し、最終決定が下されるまで削除を一時停止する場合があります。\n\n– {product_name}安全チーム"
- },
- "account_temp_banned": {
- "subject": "{product_name}アカウントが一時的に停止されました",
- "body": "こんにちは、{username}さん\n\n{product_name}アカウントは、利用規約またはコミュニティガイドラインへの違反のため、一時的に停止されました。\n\n期間: {durationHours, plural,\n =1 {1時間}\n other {#時間}\n}\n停止解除日時: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {理由: {reason}\n\n}\n}この期間中、アカウントにアクセスすることはできません。\n\n{legalLinks, select,\n both {以下をご確認ください。\n- 利用規約: {termsUrl}\n- コミュニティガイドライン: {guidelinesUrl}\n\n}\n terms {以下をご確認ください。\n- 利用規約: {termsUrl}\n\n}\n guidelines {以下をご確認ください。\n- コミュニティガイドライン: {guidelinesUrl}\n\n}\n other {}\n}この措置が不正確または不当であると思われる場合は、異議申し立てを提出できます。{appeals_email, select, null {このインスタンスの管理者に連絡し、決定が不正確であると考える理由を明確に説明してください。} other {このメールアドレスから{appeals_email}までメールを送信し、決定が不正確であると考える理由を明確に説明してください。}}異議申し立てを審査し、決定をご連絡いたします。\n\n– {product_name}安全チーム"
+ "body": "こんにちは、{username}さん\n\nご依頼のとおり、{product_name}アカウントを{deletion_date}に削除するよう設定しました。\n\nアカウントを残したい場合は、{deletion_date}より前にログインしてください。{safety_email, select, null {ご自身で依頼していない場合は、このインスタンスの管理者にご連絡ください。} other {ご自身で依頼していない場合は、{safety_email}までご連絡ください。}}\n\n{product_name}チーム"
},
"donation_confirmation": {
"subject": "{product_name}へのご寄付ありがとうございます",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "{product_name}への報告について決定しました",
- "body": "こんにちは。\n\nデジタルサービス法に基づくご報告(ID: {reportId})を安全チームが審査し、決定を行いました。{hasComment, select, yes {\n\n安全チームからの回答:\n{publicComment}} other {}}\n\n他の方のアカウントに対して行った措置の詳細は、その方の個人データにあたるため、お伝えしていません。\n\nこの決定に同意できない場合は、60日以内に無料で異議申し立てを行えます。{appeals_email, select, null {このインスタンスの管理者に連絡し、報告IDを記載のうえ、決定が誤っていると考える理由を説明してください。} other {このメールアドレスから{appeals_email}までメールを送信し、報告IDを記載のうえ、決定が誤っていると考える理由を説明してください。}}EU域内にお住まいの場合は、認定を受けた裁判外紛争解決機関に紛争を付託することもできます。これらはいずれも、裁判所に訴える権利に影響しません。\n\n– {product_name}安全チーム"
+ "body": "こんにちは。\n\nご報告(ID: {reportId})を確認しました。\n\n{outcome, select, removed {報告されたコンテンツはルールに違反していたため、削除しました。} restricted {報告されたアカウントがルールに違反していることを確認し、制限しました。他のアカウントに対してどのような措置をとったかは、その方の個人データにあたるため、お伝えしていません。} action_taken {報告された内容がルールに違反していることを確認し、措置をとりました。他のアカウントに対してどのような措置をとったかは、その方の個人データにあたるため、お伝えしていません。} no_violation {報告されたコンテンツまたはアカウントはルールに違反していないことを確認したため、そのままにしています。} other {ご報告の対応を終了しました。}}{hasComment, select, yes {\n\nチームからのコメント: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nこの結果に同意できない場合は、60日以内に報告IDを記載して{appeals_email}までメールでご連絡ください。EU域内の方は、認定を受けた裁判外紛争解決機関にこの件を付託すること、またはお住まいの国のデジタルサービス調整官(Digital Services Coordinator)に苦情を申し立てることもできます。}}\n\n{product_name}チーム"
},
"dsa_report_verification": {
"subject": "DSA報告のためのメールアドレスを確認",
@@ -51,6 +43,14 @@
"subject": "{product_name}のメールアドレスを確認",
"body": "こんにちは、{username}さん\n\n以下のリンクをクリックして、{product_name}アカウントのメールアドレスを確認してください。\n\n{verifyUrl}\n\n{product_name}アカウントを作成していない場合は、このメールを無視して問題ありません。\n\nこのリンクは24時間有効です。\n\n– {product_name}チーム"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {{product_name}アカウントに関する決定を取り消しました} other {{product_name}アカウントの制限が終了しました}}",
+ "body": "こんにちは、{username}さん\n\n{outcome, select, reversed {{decision_id, select, null {アカウントに関する決定を再検討し、取り消しました。} other {決定{decision_id}を再検討し、取り消しました。}}ご迷惑をおかけして申し訳ありません。} other {{decision_id, select, null {アカウントの制限を解除しました。} other {決定{decision_id}による制限を解除しました。}}}}{restores_access, select, yes {再びログインして{product_name}を利用できます。} other {}}{statement, select, null {} other {\n\nチームからのコメント: {statement}}}{content_removed, select, yes {\n\n削除したコンテンツは復元できません。} other {}}\n\n{product_name}チーム"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {{product_name}アカウントに関するお知らせ} other {{kind_label, select, warning {{product_name}アカウントに関する警告} suspension {{product_name}アカウントは一時停止されています} ban {{product_name}アカウントは永久停止されています} closure {{product_name}アカウントは閉鎖されています} feature_limit {{product_name}アカウントの一部の機能が制限されています} content_removal {{product_name}で送信したメッセージを削除しました} profile_reset {{product_name}プロフィールの一部をリセットしました} community_removal {{product_name}のあなたのコミュニティを削除しました} bot {{product_name}のボットに関するお知らせ} other {{product_name}アカウントに関するお知らせ}}}}",
+ "body": "こんにちは、{username}さん\n\n{summary}\n\n{effects}\n\n理由\nルール: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nチームからのコメント: {statement}}}\n\n判断の経緯\n{how_we_decided}{appeals_email, select, null {} other {\n\n異議申し立ての方法\nこの判断が誤りだと思われる場合は、{appeal_deadline}までに{appeals_email}へメールでご連絡ください。可能であればアカウントに登録したメールアドレスから送信し、決定IDを記載してください。異議申し立ては無料で、一件ずつ担当者が審査します。{redress, select, null {} other {\n\n{redress}}}}}\n\n決定ID: {decision_id}\n\n{product_name}チーム"
+ },
"gift_chargeback_notification": {
"subject": "引き換えたギフトの特典が削除されました",
"body": "こんにちは、{username}さん\n\n引き換えたギフトコードは、元は別の方が支払ったものです。その支払いはその後取り消されました(チャージバック)。\n\nそのため、ギフトを引き換えた際にアカウントに追加された特典を削除しました。\n\n{support_email, select, null {これが間違いであると思われる場合は、ギフトコードと引き換え時期に関する詳細を添えて、このインスタンスの管理者にお問い合わせください。} other {これが間違いであると思われる場合は、ギフトコードと引き換え時期に関する詳細を添えて、サポートチームにお問い合わせください。}}\n\n– {product_name}チーム"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "{product_name}への報告の審査が完了しました",
- "body": "こんにちは、{username}さん\n\nご報告いただいた内容(ID: {reportId})を安全チームが審査しました。{hasComment, select, yes {\n\n安全チームからの回答:\n{publicComment}} other {}}\n\n{product_name}をすべての人にとって安全に保つためのご協力ありがとうございます。すべての報告を真剣に受け止め、コミュニティへのご貢献に感謝します。\n\n{safety_email, select, null {この結果についてご質問やご不明な点がございましたら、このインスタンスの管理者にお問い合わせください。} other {この結果についてご質問やご不明な点がございましたら、{safety_email}までお問い合わせください。}}\n\n– {product_name}安全チーム"
- },
- "scheduled_deletion_notification": {
- "subject": "{product_name}アカウントは完全に削除されます",
- "body": "こんにちは、{username}さん\n\n{product_name}アカウントの完全な削除が予定されています。\n\n削除予定日時: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {理由: {reason}\n\n}\n}これは重大な措置です。アカウントデータは、予定日に完全に削除されます。\n\nこの措置が不正確であると思われる場合は、異議申し立てを提出できます。{appeals_email, select, null {このインスタンスの管理者に連絡してください。} other {このメールアドレスから{appeals_email}までメールを送信してください。}}\n\n– {product_name}安全チーム"
+ "body": "こんにちは、{username}さん\n\nご報告(ID: {reportId})を確認しました。\n\n{outcome, select, removed {報告されたコンテンツはルールに違反していたため、削除しました。} restricted {報告されたアカウントがルールに違反していることを確認し、制限しました。他のアカウントに対してどのような措置をとったかは、その方の個人データにあたるため、お伝えしていません。} action_taken {報告された内容がルールに違反していることを確認し、措置をとりました。他のアカウントに対してどのような措置をとったかは、その方の個人データにあたるため、お伝えしていません。} no_violation {報告されたコンテンツまたはアカウントはルールに違反していないことを確認したため、そのままにしています。} other {ご報告の対応を終了しました。}}{hasComment, select, yes {\n\nチームからのコメント: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nこの結果に同意できない場合は、60日以内に報告IDを記載して{appeals_email}までメールでご連絡ください。EU域内の方は、認定を受けた裁判外紛争解決機関にこの件を付託すること、またはお住まいの国のデジタルサービス調整官(Digital Services Coordinator)に苦情を申し立てることもできます。}}\n\n{product_name}チーム"
},
"self_deletion_scheduled": {
"subject": "{product_name}アカウントの削除が予定されています",
"body": "こんにちは、{username}さん\n\n{product_name}アカウントの削除をリクエストされました。アカウントは以下の日時に完全に削除される予定です。\n\n{deletionDate, date, full} {deletionDate, time, short}\n\nご自身でリクエストしていない場合は、アカウントにログインして削除をキャンセルしてください。また、アカウントを保護するためにパスワードの変更をお勧めします。\n\n– {product_name}チーム"
- },
- "unban_notification": {
- "subject": "{product_name}アカウントの停止が解除されました",
- "body": "こんにちは、{username}さん\n\n良いお知らせです。{product_name}アカウントの停止が解除されました。\n\n{reason, select,\n null {}\n other {理由: {reason}\n\n}\n}これで再度ログインして、通常通り{product_name}を利用できます。\n\n– {product_name}安全チーム"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ko.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ko.json
index 21f54e4fd..63665a0b1 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ko.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ko.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "장기간 미접속으로 {product_name} 계정이 삭제될 예정이에요",
- "body": "안녕하세요, {username}님.\n\n{product_name} 계정이 오랫동안 사용되지 않아 다음 날짜에 영구적으로 삭제될 예정이에요:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\n사유: {reason}}}\n\n{safety_email, select, null {계정을 유지하고 싶다면 해당 날짜 전에 이 인스턴스의 관리자에게 문의해 주세요.} other {계정을 유지하고 싶다면 해당 날짜 전에 이 이메일 주소에서 {safety_email}으로 문의해 주세요.}}\n\n– {product_name} 팀"
+ "body": "안녕하세요, {username}님.\n\n{product_name} 계정이 오랫동안 사용되지 않아 {deletion_date}에 삭제하도록 예약했어요.\n\n계정을 유지하려면 그 날짜 전에 로그인해 주세요. {support_email, select, null {궁금한 점이 있다면 이 인스턴스의 관리자에게 문의해 주세요.} other {궁금한 점이 있다면 {support_email} 주소로 문의해 주세요.}}\n\n{product_name} 팀 드림"
},
"account_deletion_scheduled_requested": {
"subject": "{product_name} 계정 삭제가 예정되었어요",
- "body": "안녕하세요, {username}님.\n\n요청하신 대로 {product_name} 계정이 다음 날짜에 영구적으로 삭제될 예정이에요:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\n사유: {reason}}}\n\n그때까지 계정은 잠겨 있어요. {safety_email, select, null {요청하지 않으셨거나 계정을 유지하고 싶다면 해당 날짜 전에 이 인스턴스의 관리자에게 문의해 주세요.} other {요청하지 않으셨거나 계정을 유지하고 싶다면 해당 날짜 전에 이 이메일 주소에서 {safety_email}으로 문의해 주세요.}}\n\n– {product_name} 팀"
- },
- "account_scheduled_deletion": {
- "subject": "{product_name} 계정이 영구적으로 삭제될 예정이에요",
- "body": "안녕하세요, {username}님.\n\n서비스 약관 또는 커뮤니티 가이드라인 위반으로 인해 {product_name} 계정이 영구적으로 삭제될 예정이에요.\n\n삭제 예정일: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {사유: {reason}\n\n}\n}이는 중대한 조치이며, 계정 데이터는 예정된 날짜에 영구적으로 삭제될 예정이에요.\n\n{legalLinks, select,\n both {다음 내용을 확인해 주세요:\n- 서비스 약관: {termsUrl}\n- 커뮤니티 가이드라인: {guidelinesUrl}\n\n}\n terms {다음 내용을 확인해 주세요:\n- 서비스 약관: {termsUrl}\n\n}\n guidelines {다음 내용을 확인해 주세요:\n- 커뮤니티 가이드라인: {guidelinesUrl}\n\n}\n other {}\n}이의 제기 절차:\n이 조치가 잘못되었거나 부당하다고 생각되면 60일 이내에 이의를 제기할 수 있어요. {appeals_email, select, null {이 인스턴스의 관리자에게 연락해 이의를 제기해 주세요.} other {이 이메일 주소에서 {appeals_email}으로 이메일을 보내 이의를 제기해 주세요.}}\n\n이의 제기 시에는:\n- 조치가 잘못되었거나 부당하다고 생각하는 이유를 명확하게 설명해 주세요.\n- 관련 증거 또는 맥락을 제공해 주세요.\n\n{product_name} 안전팀 담당자가 이의 제기를 검토하고 최종 결정이 내려질 때까지 삭제를 일시적으로 보류할 수 있어요.\n\n– {product_name} 안전팀"
- },
- "account_temp_banned": {
- "subject": "{product_name} 계정이 일시적으로 정지되었어요",
- "body": "안녕하세요, {username}님.\n\n서비스 약관 또는 커뮤니티 가이드라인 위반으로 인해 {product_name} 계정이 일시적으로 정지되었어요.\n\n기간: {durationHours, plural,\n =1 {1시간}\n other {#시간}\n}\n정지 해제 일시: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {사유: {reason}\n\n}\n}이 기간 동안에는 계정에 액세스할 수 없어요.\n\n{legalLinks, select,\n both {다음 내용을 확인해 주세요:\n- 서비스 약관: {termsUrl}\n- 커뮤니티 가이드라인: {guidelinesUrl}\n\n}\n terms {다음 내용을 확인해 주세요:\n- 서비스 약관: {termsUrl}\n\n}\n guidelines {다음 내용을 확인해 주세요:\n- 커뮤니티 가이드라인: {guidelinesUrl}\n\n}\n other {}\n}이 조치가 잘못되었거나 부당하다고 생각되면 이의를 제기할 수 있어요. {appeals_email, select, null {이 인스턴스의 관리자에게 연락해 결정이 잘못되었다고 생각하는 이유를 명확하게 설명해 주세요.} other {이 이메일 주소에서 {appeals_email}으로 이메일을 보내 결정이 잘못되었다고 생각하는 이유를 명확하게 설명해 주세요.}} 이의 제기를 검토한 후 결과를 알려 드릴 예정이에요.\n\n– {product_name} 안전팀"
+ "body": "안녕하세요, {username}님.\n\n요청하신 대로 {product_name} 계정을 {deletion_date}에 삭제하도록 예약했어요.\n\n계정을 유지하려면 {deletion_date} 전에 로그인해 주세요. {safety_email, select, null {직접 요청하지 않았다면 이 인스턴스의 관리자에게 문의해 주세요.} other {직접 요청하지 않았다면 {safety_email} 주소로 문의해 주세요.}}\n\n{product_name} 팀 드림"
},
"donation_confirmation": {
"subject": "{product_name} 후원에 감사드려요",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "{product_name} 신고에 대한 결정이 내려졌어요",
- "body": "안녕하세요,\n\n안전팀에서 디지털 서비스법 신고(ID: {reportId})를 검토하고 결정을 내렸어요.{hasComment, select, yes {\n\n안전팀의 답변:\n{publicComment}} other {}}\n\n다른 사람의 계정에 취한 조치의 세부 내용은 그 사람의 개인 정보이므로 공유하지 않아요.\n\n이 결정에 동의하지 않는다면 60일 이내에 무료로 이의를 제기할 수 있어요. {appeals_email, select, null {이 인스턴스의 관리자에게 연락해 신고 ID를 적고 결정이 잘못되었다고 생각하는 이유를 설명해 주세요.} other {이 이메일 주소에서 {appeals_email}으로 이메일을 보내 신고 ID를 적고 결정이 잘못되었다고 생각하는 이유를 설명해 주세요.}} EU에 거주하고 있다면 인증된 법원 외 분쟁 해결 기관에 분쟁을 회부할 수도 있어요. 이 내용은 법원에 소송을 제기할 권리에 영향을 주지 않아요.\n\n– {product_name} 안전팀"
+ "body": "안녕하세요.\n\n접수하신 신고(ID: {reportId})를 검토했어요.\n\n{outcome, select, removed {신고하신 콘텐츠가 규칙을 위반해 삭제했어요.} restricted {신고하신 계정이 규칙을 위반한 것을 확인하고 제한했어요. 다른 계정에 어떤 조치를 했는지는 그 사람의 개인 정보이므로 공유하지 않아요.} action_taken {신고하신 내용이 규칙을 위반한 것을 확인하고 조치했어요. 다른 계정에 어떤 조치를 했는지는 그 사람의 개인 정보이므로 공유하지 않아요.} no_violation {신고하신 콘텐츠나 계정이 규칙을 위반하지 않은 것으로 확인되어 그대로 두었어요.} other {신고 처리를 종료했어요.}}{hasComment, select, yes {\n\n팀에서 남긴 메모: {publicComment}} other {}}{appeals_email, select, null {} other {\n\n이 결과에 동의하지 않는다면 60일 이내에 신고 ID를 적어 {appeals_email} 주소로 이메일을 보내 주세요. EU에 있다면 인증된 재판 외 분쟁 해결 기관에 이 건을 회부하거나, 거주 국가의 디지털 서비스 조정관에게 민원을 제기할 수도 있어요.}}\n\n{product_name} 팀 드림"
},
"dsa_report_verification": {
"subject": "DSA 신고를 위한 이메일 인증",
@@ -51,6 +43,14 @@
"subject": "{product_name} 이메일 주소 인증",
"body": "안녕하세요, {username}님.\n\n아래 링크를 클릭하여 {product_name} 계정의 이메일 주소를 인증해 주세요:\n\n{verifyUrl}\n\n{product_name} 계정을 생성하지 않으셨다면 이 이메일을 무시해도 괜찮아요.\n\n이 링크는 24시간 동안 유효해요.\n\n– {product_name} 팀"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {{product_name} 계정에 대한 결정을 취소했어요} other {{product_name} 계정의 제한이 종료되었어요}}",
+ "body": "안녕하세요, {username}님.\n\n{outcome, select, reversed {{decision_id, select, null {계정에 대한 결정을 다시 검토하고 취소했어요.} other {{decision_id} 결정을 다시 검토하고 취소했어요.}} 불편을 드려 죄송해요.} other {{decision_id, select, null {계정의 제한을 해제했어요.} other {{decision_id} 결정에 따른 제한을 해제했어요.}}}}{restores_access, select, yes { 이제 다시 로그인해 {product_name} 서비스를 이용할 수 있어요.} other {}}{statement, select, null {} other {\n\n팀에서 남긴 메모: {statement}}}{content_removed, select, yes {\n\n삭제된 콘텐츠는 복원할 수 없어요.} other {}}\n\n{product_name} 팀 드림"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {{product_name} 계정 관련 안내} other {{kind_label, select, warning {{product_name} 계정에 대한 경고} suspension {{product_name} 계정이 일시 정지되었어요} ban {{product_name} 계정이 영구 정지되었어요} closure {{product_name} 계정이 폐쇄되었어요} feature_limit {{product_name} 계정의 일부 기능이 제한되었어요} content_removal {{product_name}에서 보낸 메시지를 삭제했어요} profile_reset {{product_name} 프로필의 일부를 초기화했어요} community_removal {{product_name}에서 회원님의 커뮤니티를 삭제했어요} bot {{product_name} 봇 관련 안내} other {{product_name} 계정 관련 안내}}}}",
+ "body": "안녕하세요, {username}님.\n\n{summary}\n\n{effects}\n\n사유\n규칙: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\n팀에서 남긴 메모: {statement}}}\n\n결정 과정\n{how_we_decided}{appeals_email, select, null {} other {\n\n이의 제기 방법\n결정이 잘못되었다고 생각하면 {appeal_deadline}까지 {appeals_email} 주소로 이메일을 보내 주세요. 가능하면 계정에 등록된 이메일 주소로 보내고, 결정 ID를 적어 주세요. 이의 제기는 무료이며, 모든 이의 제기는 담당자가 직접 검토해요.{redress, select, null {} other {\n\n{redress}}}}}\n\n결정 ID: {decision_id}\n\n{product_name} 팀 드림"
+ },
"gift_chargeback_notification": {
"subject": "사용하신 선물 혜택이 제거되었어요",
"body": "안녕하세요, {username}님.\n\n사용하신 선물 코드는 다른 사용자가 결제한 것이었어요. 해당 결제가 취소(차지백)되었어요.\n\n이로 인해 선물을 사용했을 때 계정에 추가되었던 혜택이 제거되었어요.\n\n{support_email, select, null {실수라고 생각되면 이 인스턴스의 관리자에게 문의하여 선물 코드 및 사용 시기에 대한 자세한 정보를 알려 주세요.} other {실수라고 생각되면 고객지원팀에 문의하여 선물 코드 및 사용 시기에 대한 자세한 정보를 알려 주세요.}}\n\n– {product_name} 팀"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "{product_name} 신고 검토가 완료되었어요",
- "body": "안녕하세요, {username}님.\n\n접수하신 신고(ID: {reportId})를 안전팀에서 검토했어요.{hasComment, select, yes {\n\n안전팀의 답변:\n{publicComment}} other {}}\n\n모두를 위해 {product_name}를 안전하게 유지하는 데 도움을 주셔서 감사해요. 모든 신고를 진지하게 검토하고 있으며, 커뮤니티에 기여해 주셔서 감사해요.\n\n{safety_email, select, null {이 결과에 대해 궁금한 점이나 우려 사항이 있다면 이 인스턴스의 관리자에게 문의해 주세요.} other {이 결과에 대해 궁금한 점이나 우려 사항이 있다면 {safety_email}으로 문의해 주세요.}}\n\n– {product_name} 안전팀"
- },
- "scheduled_deletion_notification": {
- "subject": "{product_name} 계정이 영구적으로 삭제될 예정이에요",
- "body": "안녕하세요, {username}님.\n\n{product_name} 계정이 영구적으로 삭제될 예정이에요.\n\n삭제 예정일: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {사유: {reason}\n\n}\n}이는 중대한 조치이며, 계정 데이터는 예정된 날짜에 영구적으로 삭제될 예정이에요.\n\n이 조치가 잘못되었다고 생각되면 이의를 제기할 수 있어요. {appeals_email, select, null {이 인스턴스의 관리자에게 연락해 이의를 제기해 주세요.} other {이 이메일 주소에서 {appeals_email}으로 이메일을 보내 이의를 제기해 주세요.}}\n\n– {product_name} 안전팀"
+ "body": "안녕하세요, {username}님.\n\n접수하신 신고(ID: {reportId})를 검토했어요.\n\n{outcome, select, removed {신고하신 콘텐츠가 규칙을 위반해 삭제했어요.} restricted {신고하신 계정이 규칙을 위반한 것을 확인하고 제한했어요. 다른 계정에 어떤 조치를 했는지는 그 사람의 개인 정보이므로 공유하지 않아요.} action_taken {신고하신 내용이 규칙을 위반한 것을 확인하고 조치했어요. 다른 계정에 어떤 조치를 했는지는 그 사람의 개인 정보이므로 공유하지 않아요.} no_violation {신고하신 콘텐츠나 계정이 규칙을 위반하지 않은 것으로 확인되어 그대로 두었어요.} other {신고 처리를 종료했어요.}}{hasComment, select, yes {\n\n팀에서 남긴 메모: {publicComment}} other {}}{appeals_email, select, null {} other {\n\n이 결과에 동의하지 않는다면 60일 이내에 신고 ID를 적어 {appeals_email} 주소로 이메일을 보내 주세요. EU에 있다면 인증된 재판 외 분쟁 해결 기관에 이 건을 회부하거나, 거주 국가의 디지털 서비스 조정관에게 민원을 제기할 수도 있어요.}}\n\n{product_name} 팀 드림"
},
"self_deletion_scheduled": {
"subject": "{product_name} 계정 삭제가 예정되었어요",
"body": "안녕하세요, {username}님.\n\n{product_name} 계정 삭제를 요청하셨어요. 계정은 다음 날짜에 영구적으로 삭제될 예정이에요:\n\n{deletionDate, date, full} {deletionDate, time, short}\n\n요청하지 않으셨다면 계정에 로그인하여 삭제를 취소해 주세요. 계정을 보호하기 위해 비밀번호를 변경하는 것을 권장해요.\n\n– {product_name} 팀"
- },
- "unban_notification": {
- "subject": "{product_name} 계정 정지가 해제되었어요",
- "body": "안녕하세요, {username}님.\n\n좋은 소식이에요: {product_name} 계정 정지가 해제되었어요.\n\n{reason, select,\n null {}\n other {사유: {reason}\n\n}\n}이제 다시 로그인하여 평소처럼 {product_name}를 계속 사용할 수 있어요.\n\n– {product_name} 안전팀"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/lt.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/lt.json
index c21514d21..f375c1d52 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/lt.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/lt.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Tavo {product_name} paskyra bus ištrinta dėl neaktyvumo",
- "body": "Sveiki, {username},\n\nTavo {product_name} paskyra ilgą laiką buvo neaktyvi, todėl ją numatyta visam laikui ištrinti:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\nPriežastis: {reason}}}\n\n{safety_email, select, null {Jei nori išsaugoti paskyrą, iki šios datos susisiek su šios instancijos administratoriais.} other {Jei nori išsaugoti paskyrą, iki šios datos parašyk adresu {safety_email} iš šio el. pašto adreso.}}\n\n– {product_name} komanda"
+ "body": "Sveiki, {username},\n\nTavo {product_name} paskyra ilgą laiką buvo neaktyvi, todėl numatėme ją ištrinti {deletion_date}.\n\nJei nori išsaugoti paskyrą, prisijunk iki šios datos. {support_email, select, null {Jei turi klausimų, susisiek su šios instancijos administratoriais.} other {Jei turi klausimų, parašyk adresu {support_email}.}}\n\n{product_name} komanda"
},
"account_deletion_scheduled_requested": {
"subject": "Tavo {product_name} paskyros ištrynimas numatytas",
- "body": "Sveiki, {username},\n\nTavo prašymu {product_name} paskyrą numatyta visam laikui ištrinti:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\nPriežastis: {reason}}}\n\nIki tol tavo paskyra užrakinta. {safety_email, select, null {Jei to neprašei arba nori išsaugoti paskyrą, iki šios datos susisiek su šios instancijos administratoriais.} other {Jei to neprašei arba nori išsaugoti paskyrą, iki šios datos parašyk adresu {safety_email} iš šio el. pašto adreso.}}\n\n– {product_name} komanda"
- },
- "account_scheduled_deletion": {
- "subject": "Tavo {product_name} paskyra bus visam laikui ištrinta",
- "body": "Sveiki, {username},\n\nTavo {product_name} paskyrą numatyta visam laikui ištrinti dėl mūsų paslaugų teikimo sąlygų arba bendruomenės gairių pažeidimų.\n\nNumatytas ištrynimas: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Priežastis: {reason}\n\n}\n}Tai rimta priemonė. Tavo paskyros duomenys numatytą dieną bus visam laikui ištrinti.\n\n{legalLinks, select,\n both {Peržiūrėk:\n- Paslaugų teikimo sąlygos: {termsUrl}\n- Bendruomenės gairės: {guidelinesUrl}\n\n}\n terms {Peržiūrėk:\n- Paslaugų teikimo sąlygos: {termsUrl}\n\n}\n guidelines {Peržiūrėk:\n- Bendruomenės gairės: {guidelinesUrl}\n\n}\n other {}\n}Apeliacijos procesas:\nJei manai, kad šis sprendimas neteisingas arba nepagrįstas, apeliaciją gali pateikti per 60 dienų. {appeals_email, select, null {Susisiek su šios instancijos administratoriais.} other {Iš šio el. pašto adreso siųsk el. laišką adresu {appeals_email}.}}\n\nSavo apeliacijoje:\n- Aiškiai paaiškink, kodėl manai, kad sprendimas neteisingas arba nepagrįstas\n- Pateik visus susijusius įrodymus ar kontekstą\n\n{product_name} saugos komandos narys peržiūrės tavo apeliaciją ir gali sustabdyti numatytą ištrynimą, kol bus priimtas galutinis sprendimas.\n\n– {product_name} saugos komanda"
- },
- "account_temp_banned": {
- "subject": "Tavo {product_name} paskyra laikinai sustabdyta",
- "body": "Sveiki, {username},\n\nTavo {product_name} paskyra laikinai sustabdyta dėl mūsų paslaugų teikimo sąlygų arba bendruomenės gairių pažeidimo.\n\nTrukmė: {durationHours, plural,\n one {# valanda} few {# valandos}\n many {# valandos} other {# valandų}\n}\nSustabdyta iki: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Priežastis: {reason}\n\n}\n}Šiuo laikotarpiu negalėsi pasiekti savo paskyros.\n\n{legalLinks, select,\n both {Peržiūrėk:\n- Paslaugų teikimo sąlygos: {termsUrl}\n- Bendruomenės gairės: {guidelinesUrl}\n\n}\n terms {Peržiūrėk:\n- Paslaugų teikimo sąlygos: {termsUrl}\n\n}\n guidelines {Peržiūrėk:\n- Bendruomenės gairės: {guidelinesUrl}\n\n}\n other {}\n}Jei manai, kad šis sprendimas neteisingas arba nepagrįstas, gali pateikti apeliaciją. {appeals_email, select, null {Susisiek su šios instancijos administratoriais ir aiškiai paaiškink, kodėl manai, kad sprendimas neteisingas.} other {Iš šio el. pašto adreso siųsk el. laišką adresu {appeals_email} ir aiškiai paaiškink, kodėl manai, kad sprendimas neteisingas.}} Peržiūrėsime tavo apeliaciją ir pranešime savo sprendimą.\n\n– {product_name} saugos komanda"
+ "body": "Sveiki, {username},\n\nKaip prašei, numatėme ištrinti tavo {product_name} paskyrą {deletion_date}.\n\nJei nori išsaugoti paskyrą, prisijunk iki {deletion_date}. {safety_email, select, null {Jei to neprašei, susisiek su šios instancijos administratoriais.} other {Jei to neprašei, parašyk adresu {safety_email}.}}\n\n{product_name} komanda"
},
"donation_confirmation": {
"subject": "Dėkojame už tavo {product_name} paramą",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Priėmėme sprendimą dėl tavo {product_name} pranešimo",
- "body": "Sveiki,\n\nMūsų saugos komanda peržiūrėjo tavo pranešimą pagal Skaitmeninių paslaugų aktą (ID: {reportId}) ir priėmė sprendimą.{hasComment, select, yes {\n\nSaugos komandos atsakymas:\n{publicComment}} other {}}\n\nNesidalijame informacija apie veiksmus, kurių imtasi dėl kito asmens paskyros, nes tai yra jo asmens duomenys.\n\nJei nesutinki su šiuo sprendimu, per 60 dienų gali nemokamai pateikti apeliaciją. {appeals_email, select, null {Susisiek su šios instancijos administratoriais, nurodyk savo pranešimo ID ir paaiškink, kodėl manai, kad sprendimas neteisingas.} other {Iš šio el. pašto adreso siųsk el. laišką adresu {appeals_email}, nurodyk savo pranešimo ID ir paaiškink, kodėl manai, kad sprendimas neteisingas.}} Jei esi ES, ginčą taip pat gali perduoti sertifikuotai neteisminio ginčų sprendimo įstaigai. Visa tai neturi įtakos tavo teisei kreiptis į teismą.\n\n– {product_name} saugos komanda"
+ "body": "Sveiki,\n\nPeržiūrėjome tavo pranešimą (ID: {reportId}).\n\n{outcome, select, removed {Pašalinome turinį, apie kurį pranešei, nes jis pažeidė mūsų taisykles.} restricted {Nustatėme, kad paskyra, apie kurią pranešei, pažeidė mūsų taisykles, ir ją apribojome. Neatskleidžiame, kokių veiksmų ėmėmės prieš kitą paskyrą, nes tai yra jos savininko asmens duomenys.} action_taken {Nustatėme, kad tai, apie ką pranešei, pažeidė mūsų taisykles, ir ėmėmės veiksmų. Neatskleidžiame, kokių veiksmų ėmėmės prieš kitą paskyrą, nes tai yra jos savininko asmens duomenys.} no_violation {Nustatėme, kad turinys ar paskyra, apie kuriuos pranešei, nepažeidžia mūsų taisyklių, todėl nieko nekeitėme.} other {Uždarėme tavo pranešimą.}}{hasComment, select, yes {\n\nMūsų komandos pastaba: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nJei nesutinki, per 60 dienų parašyk adresu {appeals_email} ir nurodyk pranešimo ID. Jei esi ES, taip pat gali kreiptis į sertifikuotą neteisminio ginčų sprendimo įstaigą arba pateikti skundą savo šalies skaitmeninių paslaugų koordinatoriui.}}\n\n{product_name} komanda"
},
"dsa_report_verification": {
"subject": "Patvirtink savo el. paštą DSA pranešimui pateikti",
@@ -51,6 +43,14 @@
"subject": "Patvirtink savo {product_name} el. pašto adresą",
"body": "Sveiki, {username},\n\nSpustelėk žemiau esančią nuorodą ir patvirtink savo {product_name} paskyros el. pašto adresą:\n\n{verifyUrl}\n\nJei {product_name} paskyros nekūrei, gali saugiai ignoruoti šį el. laišką.\n\nŠi nuoroda galioja 24 valandas.\n\n– {product_name} komanda"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Atšaukėme sprendimą dėl tavo {product_name} paskyros} other {Tavo {product_name} paskyros apribojimas baigėsi}}",
+ "body": "Sveiki, {username},\n\n{outcome, select, reversed {{decision_id, select, null {Dar kartą peržiūrėjome sprendimą dėl tavo paskyros ir jį atšaukėme.} other {Dar kartą peržiūrėjome sprendimą {decision_id} ir jį atšaukėme.}} Atsiprašome už nepatogumus.} other {{decision_id, select, null {Panaikinome tavo paskyros apribojimą.} other {Panaikinome apribojimą, taikytą pagal sprendimą {decision_id}.}}}}{restores_access, select, yes { Vėl gali prisijungti ir naudotis {product_name}.} other {}}{statement, select, null {} other {\n\nMūsų komandos pastaba: {statement}}}{content_removed, select, yes {\n\nMūsų pašalinto turinio atkurti negalima.} other {}}\n\n{product_name} komanda"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Informacija apie tavo {product_name} paskyrą} other {{kind_label, select, warning {Įspėjimas dėl tavo {product_name} paskyros} suspension {Tavo {product_name} paskyra sustabdyta} ban {Tavo {product_name} paskyra visam laikui sustabdyta} closure {Tavo {product_name} paskyra uždaryta} feature_limit {Kai kurios tavo {product_name} paskyros funkcijos apribotos} content_removal {Pašalinome tavo {product_name} platformoje išsiųstas žinutes} profile_reset {Iš naujo nustatėme kai kurias tavo {product_name} profilio dalis} community_removal {Pašalinome tavo bendruomenę iš {product_name}} bot {Informacija apie tavo botą {product_name} platformoje} other {Informacija apie tavo {product_name} paskyrą}}}}",
+ "body": "Sveiki, {username},\n\n{summary}\n\n{effects}\n\nKodėl\nTaisyklė: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nMūsų komandos pastaba: {statement}}}\n\nKaip priėmėme sprendimą\n{how_we_decided}{appeals_email, select, null {} other {\n\nKaip apskųsti sprendimą\nJei manai, kad suklydome, parašyk adresu {appeals_email} iki {appeal_deadline}. Jei gali, rašyk iš savo paskyros el. pašto adreso ir nurodyk sprendimo ID. Skundai nagrinėjami nemokamai, o kiekvieną jų peržiūri žmogus.{redress, select, null {} other {\n\n{redress}}}}}\n\nSprendimo ID: {decision_id}\n\n{product_name} komanda"
+ },
"gift_chargeback_notification": {
"subject": "Privilegijos, gautos už išpirktą dovaną, pašalintos",
"body": "Sveiki, {username},\n\nDovanos kodą, kurį išpirkai, iš pradžių apmokėjo kitas asmuo. Tas mokėjimas vėliau buvo atšauktas (lėšų grąžinimas).\n\nDėl to pašalinome privilegijas, kurios buvo pridėtos prie tavo paskyros, kai išpirkai dovaną.\n\n{support_email, select, null {Jei manai, kad tai klaida, susisiek su šios instancijos administratoriais ir nurodyk visą turimą informaciją apie dovanos kodą ir apie tai, kada jį išpirkai.} other {Jei manai, kad tai klaida, susisiek su mūsų palaikymo komanda ir nurodyk visą turimą informaciją apie dovanos kodą ir apie tai, kada jį išpirkai.}}\n\n– {product_name} komanda"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Tavo {product_name} pranešimas peržiūrėtas",
- "body": "Sveiki, {username},\n\nTavo pranešimą (ID: {reportId}) peržiūrėjo mūsų saugos komanda.{hasComment, select, yes {\n\nSaugos komandos atsakymas:\n{publicComment}} other {}}\n\nDėkojame, kad padedi užtikrinti {product_name} saugumą visiems. Visus pranešimus vertiname rimtai ir esame dėkingi už tavo indėlį į bendruomenę.\n\n{safety_email, select, null {Jei turi klausimų ar abejonių dėl šio sprendimo, susisiek su šios instancijos administratoriais.} other {Jei turi klausimų ar abejonių dėl šio sprendimo, rašyk adresu {safety_email}.}}\n\n– {product_name} saugos komanda"
- },
- "scheduled_deletion_notification": {
- "subject": "Tavo {product_name} paskyra bus visam laikui ištrinta",
- "body": "Sveiki, {username},\n\nTavo {product_name} paskyrą numatyta visam laikui ištrinti.\n\nNumatytas ištrynimas: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Priežastis: {reason}\n\n}\n}Tai rimta priemonė. Tavo paskyros duomenys numatytą dieną bus visam laikui ištrinti.\n\nJei manai, kad šis sprendimas neteisingas, gali pateikti apeliaciją. {appeals_email, select, null {Susisiek su šios instancijos administratoriais.} other {Iš šio el. pašto adreso siųsk el. laišką adresu {appeals_email}.}}\n\n– {product_name} saugos komanda"
+ "body": "Sveiki, {username},\n\nPeržiūrėjome tavo pranešimą (ID: {reportId}).\n\n{outcome, select, removed {Pašalinome turinį, apie kurį pranešei, nes jis pažeidė mūsų taisykles.} restricted {Nustatėme, kad paskyra, apie kurią pranešei, pažeidė mūsų taisykles, ir ją apribojome. Neatskleidžiame, kokių veiksmų ėmėmės prieš kitą paskyrą, nes tai yra jos savininko asmens duomenys.} action_taken {Nustatėme, kad tai, apie ką pranešei, pažeidė mūsų taisykles, ir ėmėmės veiksmų. Neatskleidžiame, kokių veiksmų ėmėmės prieš kitą paskyrą, nes tai yra jos savininko asmens duomenys.} no_violation {Nustatėme, kad turinys ar paskyra, apie kuriuos pranešei, nepažeidžia mūsų taisyklių, todėl nieko nekeitėme.} other {Uždarėme tavo pranešimą.}}{hasComment, select, yes {\n\nMūsų komandos pastaba: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nJei nesutinki, per 60 dienų parašyk adresu {appeals_email} ir nurodyk pranešimo ID. Jei esi ES, taip pat gali kreiptis į sertifikuotą neteisminio ginčų sprendimo įstaigą arba pateikti skundą savo šalies skaitmeninių paslaugų koordinatoriui.}}\n\n{product_name} komanda"
},
"self_deletion_scheduled": {
"subject": "Tavo {product_name} paskyros ištrynimas numatytas",
"body": "Sveiki, {username},\n\nPaprašei ištrinti savo {product_name} paskyrą. Tavo paskyrą numatyta visam laikui ištrinti:\n\n{deletionDate, date, full} {deletionDate, time, short}\n\nJei to neprašei, prisijunk prie savo paskyros ir atšauk ištrynimą. Taip pat rekomenduojame pakeisti slaptažodį, kad apsaugotum savo paskyrą.\n\n– {product_name} komanda"
- },
- "unban_notification": {
- "subject": "Tavo {product_name} paskyros sustabdymas panaikintas",
- "body": "Sveiki, {username},\n\nGeros naujienos: tavo {product_name} paskyros sustabdymas panaikintas.\n\n{reason, select,\n null {}\n other {Priežastis: {reason}\n\n}\n}Dabar gali vėl prisijungti ir toliau naudotis {product_name} kaip įprasta.\n\n– {product_name} saugos komanda"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/nl.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/nl.json
index b931ec45b..02529c844 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/nl.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/nl.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Je {product_name}-account wordt verwijderd wegens inactiviteit",
- "body": "Hallo {username},\n\nJe {product_name}-account is al lange tijd inactief en staat daarom gepland voor permanente verwijdering op:\n\n{deletionDate, date, full} om {deletionDate, time, short}{reason, select, null {} other {\n\nReden: {reason}}}\n\n{safety_email, select, null {Als je je account wilt behouden, neem dan vóór die datum contact op met de beheerders van deze instantie.} other {Als je je account wilt behouden, neem dan vóór die datum vanaf dit e-mailadres contact op met {safety_email}.}}\n\n– Het team van {product_name}"
+ "body": "Hallo {username},\n\nJe {product_name}-account is al lange tijd inactief, dus we hebben het ingepland voor verwijdering op {deletion_date}.\n\nLog vóór die datum in als je je account wilt houden. {support_email, select, null {Als je vragen hebt, neem dan contact op met de beheerders van deze instantie.} other {Als je vragen hebt, neem dan contact op met {support_email}.}}\n\nHet team van {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "De verwijdering van je {product_name}-account staat gepland",
- "body": "Hallo {username},\n\nZoals je hebt verzocht, staat je {product_name}-account gepland voor permanente verwijdering op:\n\n{deletionDate, date, full} om {deletionDate, time, short}{reason, select, null {} other {\n\nReden: {reason}}}\n\nJe account is tot die tijd vergrendeld. {safety_email, select, null {Als je dit niet hebt aangevraagd of je account wilt behouden, neem dan vóór die datum contact op met de beheerders van deze instantie.} other {Als je dit niet hebt aangevraagd of je account wilt behouden, neem dan vóór die datum vanaf dit e-mailadres contact op met {safety_email}.}}\n\n– Het team van {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Je {product_name}-account wordt permanent verwijderd",
- "body": "Hallo {username},\n\nJe {product_name}-account staat gepland voor permanente verwijdering vanwege schendingen van onze Gebruiksvoorwaarden of Communityrichtlijnen.\n\nGeplande verwijdering: {deletionDate, date, full} om {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Reden: {reason}\n\n}\n}Dit is een ingrijpende handhavingsmaatregel. Je accountgegevens worden permanent verwijderd op de geplande datum.\n\n{legalLinks, select,\n both {Bekijk ook:\n- Gebruiksvoorwaarden: {termsUrl}\n- Communityrichtlijnen: {guidelinesUrl}\n\n}\n terms {Bekijk ook:\n- Gebruiksvoorwaarden: {termsUrl}\n\n}\n guidelines {Bekijk ook:\n- Communityrichtlijnen: {guidelinesUrl}\n\n}\n other {}\n}Bezwaarprocedure:\nAls je van mening bent dat deze handhavingsbeslissing onjuist of ongerechtvaardigd was, heb je 60 dagen de tijd om bezwaar te maken. {appeals_email, select, null {Neem contact op met de beheerders van deze instantie.} other {Stuur een e-mail naar {appeals_email} vanaf dit e-mailadres.}}\n\nVermeld in je bezwaar:\n- Een duidelijke uitleg waarom je van mening bent dat de handhavingsbeslissing onjuist of ongerechtvaardigd was\n- Alle relevante bewijzen of context\n\nEen medewerker van het veiligheidsteam van {product_name} zal je bezwaar beoordelen en kan de geplande verwijdering uitstellen totdat een definitieve beslissing is genomen.\n\n– Het veiligheidsteam van {product_name}"
- },
- "account_temp_banned": {
- "subject": "Je {product_name}-account is tijdelijk geschorst",
- "body": "Hallo {username},\n\nJe {product_name}-account is tijdelijk geschorst wegens schending van onze Gebruiksvoorwaarden of Communityrichtlijnen.\n\nDuur: {durationHours, plural,\n =1 {1 uur}\n other {# uur}\n}\nGeschorst tot: {bannedUntil, date, full} om {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Reden: {reason}\n\n}\n}Gedurende deze periode heb je geen toegang tot je account.\n\n{legalLinks, select,\n both {Bekijk ook:\n- Gebruiksvoorwaarden: {termsUrl}\n- Communityrichtlijnen: {guidelinesUrl}\n\n}\n terms {Bekijk ook:\n- Gebruiksvoorwaarden: {termsUrl}\n\n}\n guidelines {Bekijk ook:\n- Communityrichtlijnen: {guidelinesUrl}\n\n}\n other {}\n}Als je van mening bent dat deze handhavingsbeslissing onjuist of ongerechtvaardigd was, kun je bezwaar maken. {appeals_email, select, null {Neem contact op met de beheerders van deze instantie en leg duidelijk uit waarom je van mening bent dat de beslissing onjuist was.} other {Stuur een e-mail naar {appeals_email} vanaf dit e-mailadres en leg duidelijk uit waarom je van mening bent dat de beslissing onjuist was.}} We zullen je bezwaar beoordelen en reageren met onze beslissing.\n\n– Het veiligheidsteam van {product_name}"
+ "body": "Hallo {username},\n\nZoals je hebt gevraagd, hebben we je {product_name}-account ingepland voor verwijdering op {deletion_date}.\n\nLog vóór {deletion_date} in als je je account wilt houden. {safety_email, select, null {Als je hier niet om hebt gevraagd, neem dan contact op met de beheerders van deze instantie.} other {Als je hier niet om hebt gevraagd, neem dan contact op met {safety_email}.}}\n\nHet team van {product_name}"
},
"donation_confirmation": {
"subject": "Bedankt voor je {product_name}-donatie",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "We hebben een beslissing genomen over je melding op {product_name}",
- "body": "Hallo,\n\nOns veiligheidsteam heeft je melding op grond van de Digital Services Act (ID: {reportId}) beoordeeld en een beslissing genomen.{hasComment, select, yes {\n\nReactie van het veiligheidsteam:\n{publicComment}} other {}}\n\nWe delen geen details over maatregelen tegen het account van iemand anders, omdat dat persoonsgegevens van die persoon zijn.\n\nAls je het niet eens bent met deze beslissing, kun je binnen 60 dagen kosteloos bezwaar maken. {appeals_email, select, null {Neem contact op met de beheerders van deze instantie, vermeld je meldings-ID en leg uit waarom je vindt dat de beslissing onjuist is.} other {Stuur een e-mail naar {appeals_email} vanaf dit e-mailadres, vermeld je meldings-ID en leg uit waarom je vindt dat de beslissing onjuist is.}} Als je in de EU bent, kun je het geschil ook voorleggen aan een gecertificeerd orgaan voor buitengerechtelijke geschillenbeslechting. Dit alles doet niets af aan je recht om naar de rechter te stappen.\n\n– Het veiligheidsteam van {product_name}"
+ "body": "Hallo,\n\nWe hebben je melding (ID: {reportId}) beoordeeld.\n\n{outcome, select, removed {We hebben de inhoud die je hebt gemeld verwijderd, omdat die onze regels overtrad.} restricted {We hebben vastgesteld dat het account dat je hebt gemeld onze regels heeft overtreden, en we hebben het beperkt. We delen niet welke maatregel we tegen een ander account hebben genomen, omdat dat persoonsgegevens van die persoon zijn.} action_taken {We hebben vastgesteld dat wat je hebt gemeld onze regels heeft overtreden, en we hebben maatregelen genomen. We delen niet welke maatregel we tegen een ander account hebben genomen, omdat dat persoonsgegevens van die persoon zijn.} no_violation {We hebben vastgesteld dat de inhoud of het account dat je hebt gemeld onze regels niet overtreedt, dus we hebben niets veranderd.} other {We hebben je melding afgesloten.}}{hasComment, select, yes {\n\nOpmerking van ons team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nAls je het er niet mee eens bent, stuur dan binnen 60 dagen een e-mail naar {appeals_email} en vermeld het meldings-ID. Als je in de EU bent, kun je dit ook voorleggen aan een gecertificeerd orgaan voor buitengerechtelijke geschillenbeslechting of een klacht indienen bij de digitaledienstencoördinator in je land.}}\n\nHet team van {product_name}"
},
"dsa_report_verification": {
"subject": "Verifieer je e-mailadres voor een DSA-melding",
@@ -51,6 +43,14 @@
"subject": "Verifieer je e-mailadres op {product_name}",
"body": "Hallo {username},\n\nVerifieer het e-mailadres van je {product_name}-account door op de onderstaande link te klikken:\n\n{verifyUrl}\n\nAls je geen {product_name}-account hebt aangemaakt, kun je deze e-mail veilig negeren.\n\nDeze link is 24 uur geldig.\n\n– Het team van {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {We hebben een beslissing over je {product_name}-account teruggedraaid} other {Een beperking op je {product_name}-account is afgelopen}}",
+ "body": "Hallo {username},\n\n{outcome, select, reversed {{decision_id, select, null {We hebben een beslissing over je account opnieuw bekeken en teruggedraaid.} other {We hebben beslissing {decision_id} opnieuw bekeken en teruggedraaid.}} Sorry voor het ongemak.} other {{decision_id, select, null {We hebben de beperking op je account opgeheven.} other {We hebben de beperking uit beslissing {decision_id} opgeheven.}}}}{restores_access, select, yes { Je kunt weer inloggen en {product_name} gebruiken.} other {}}{statement, select, null {} other {\n\nOpmerking van ons team: {statement}}}{content_removed, select, yes {\n\nInhoud die we hebben verwijderd, kan niet worden hersteld.} other {}}\n\nHet team van {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Een update over je {product_name}-account} other {{kind_label, select, warning {Een waarschuwing over je {product_name}-account} suspension {Je {product_name}-account is geschorst} ban {Je {product_name}-account is verbannen} closure {Je {product_name}-account is gesloten} feature_limit {Sommige functies van je {product_name}-account zijn beperkt} content_removal {We hebben berichten verwijderd die je op {product_name} hebt gestuurd} profile_reset {We hebben delen van je {product_name}-profiel teruggezet} community_removal {We hebben je community op {product_name} verwijderd} bot {Een update over je bot op {product_name}} other {Een update over je {product_name}-account}}}}",
+ "body": "Hallo {username},\n\n{summary}\n\n{effects}\n\nWaarom\nRegel: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nOpmerking van ons team: {statement}}}\n\nZo hebben we besloten\n{how_we_decided}{appeals_email, select, null {} other {\n\nZo maak je bezwaar\nAls je denkt dat we een fout hebben gemaakt, stuur dan uiterlijk {appeal_deadline} een e-mail naar {appeals_email}. Stuur die zo mogelijk vanaf het e-mailadres van je account en vermeld het beslissings-ID. Bezwaar maken is gratis en elk bezwaar wordt door een persoon beoordeeld.{redress, select, null {} other {\n\n{redress}}}}}\n\nBeslissings-ID: {decision_id}\n\nHet team van {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "De voordelen van je ingewisselde cadeau zijn verwijderd",
"body": "Hallo {username},\n\nEen cadeaucode die je hebt ingewisseld, is oorspronkelijk door iemand anders betaald. Die betaling is sindsdien teruggedraaid (een terugboeking).\n\nHierdoor hebben we de voordelen verwijderd die aan je account zijn toegevoegd toen je het cadeau inwisselde.\n\n{support_email, select, null {Als je denkt dat dit een fout is, neem dan contact op met de beheerders van deze instantie en vermeld alle details die je hebt over de cadeaucode en wanneer je deze hebt ingewisseld.} other {Als je denkt dat dit een fout is, neem dan contact op met ons supportteam en vermeld alle details die je hebt over de cadeaucode en wanneer je deze hebt ingewisseld.}}\n\n– Het team van {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Je melding op {product_name} is beoordeeld",
- "body": "Hallo {username},\n\nJe melding (ID: {reportId}) is beoordeeld door ons veiligheidsteam.{hasComment, select, yes {\n\nReactie van het veiligheidsteam:\n{publicComment}} other {}}\n\nBedankt dat je helpt {product_name} veilig te houden voor iedereen. We nemen alle meldingen serieus en waarderen je bijdrage aan de community.\n\n{safety_email, select, null {Als je vragen of opmerkingen hebt over deze uitkomst, neem dan contact op met de beheerders van deze instantie.} other {Als je vragen of opmerkingen hebt over deze uitkomst, neem dan contact op met {safety_email}.}}\n\n– Het veiligheidsteam van {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Je {product_name}-account wordt permanent verwijderd",
- "body": "Hallo {username},\n\nJe {product_name}-account staat gepland voor permanente verwijdering.\n\nGeplande verwijdering: {deletionDate, date, full} om {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Reden: {reason}\n\n}\n}Dit is een ingrijpende handhavingsmaatregel. Je accountgegevens worden permanent verwijderd op de geplande datum.\n\nAls je van mening bent dat deze handhavingsbeslissing onjuist was, kun je bezwaar maken. {appeals_email, select, null {Neem contact op met de beheerders van deze instantie.} other {Stuur een e-mail naar {appeals_email} vanaf dit e-mailadres.}}\n\n– Het veiligheidsteam van {product_name}"
+ "body": "Hallo {username},\n\nWe hebben je melding (ID: {reportId}) beoordeeld.\n\n{outcome, select, removed {We hebben de inhoud die je hebt gemeld verwijderd, omdat die onze regels overtrad.} restricted {We hebben vastgesteld dat het account dat je hebt gemeld onze regels heeft overtreden, en we hebben het beperkt. We delen niet welke maatregel we tegen een ander account hebben genomen, omdat dat persoonsgegevens van die persoon zijn.} action_taken {We hebben vastgesteld dat wat je hebt gemeld onze regels heeft overtreden, en we hebben maatregelen genomen. We delen niet welke maatregel we tegen een ander account hebben genomen, omdat dat persoonsgegevens van die persoon zijn.} no_violation {We hebben vastgesteld dat de inhoud of het account dat je hebt gemeld onze regels niet overtreedt, dus we hebben niets veranderd.} other {We hebben je melding afgesloten.}}{hasComment, select, yes {\n\nOpmerking van ons team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nAls je het er niet mee eens bent, stuur dan binnen 60 dagen een e-mail naar {appeals_email} en vermeld het meldings-ID. Als je in de EU bent, kun je dit ook voorleggen aan een gecertificeerd orgaan voor buitengerechtelijke geschillenbeslechting of een klacht indienen bij de digitaledienstencoördinator in je land.}}\n\nHet team van {product_name}"
},
"self_deletion_scheduled": {
"subject": "De verwijdering van je {product_name}-account staat gepland",
"body": "Hallo {username},\n\nJe hebt verzocht om je {product_name}-account te verwijderen. Je account staat gepland voor permanente verwijdering op:\n\n{deletionDate, date, full} om {deletionDate, time, short}\n\nAls je dit niet hebt aangevraagd, log dan in op je account om de verwijdering te annuleren. We raden ook aan om je wachtwoord te wijzigen om je account te beveiligen.\n\n– Het team van {product_name}"
- },
- "unban_notification": {
- "subject": "De schorsing van je {product_name}-account is opgeheven",
- "body": "Hallo {username},\n\nGoed nieuws: de schorsing van je {product_name}-account is opgeheven.\n\n{reason, select,\n null {}\n other {Reden: {reason}\n\n}\n}Je kunt nu weer inloggen en {product_name} normaal blijven gebruiken.\n\n– Het veiligheidsteam van {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/no.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/no.json
index 2037af311..079c130cf 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/no.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/no.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "{product_name}-kontoen din vil bli slettet på grunn av inaktivitet",
- "body": "Hei {username},\n\n{product_name}-kontoen din har vært inaktiv lenge, så den er planlagt for permanent sletting:\n\n{deletionDate, date, full} kl. {deletionDate, time, short}{reason, select, null {} other {\n\nÅrsak: {reason}}}\n\n{safety_email, select, null {Hvis du vil beholde kontoen din, kan du kontakte administratorene av denne instansen før denne datoen.} other {Hvis du vil beholde kontoen din, kan du kontakte {safety_email} fra denne e-postadressen før denne datoen.}}\n\n– {product_name}-teamet"
+ "body": "Hei {username},\n\n{product_name}-kontoen din har vært inaktiv lenge, så vi har planlagt sletting av kontoen den {deletion_date}.\n\nHvis du vil beholde kontoen din, logger du på før den datoen. {support_email, select, null {Hvis du har spørsmål, kontakt administratorene av denne instansen.} other {Hvis du har spørsmål, kontakt {support_email}.}}\n\n{product_name}-teamet"
},
"account_deletion_scheduled_requested": {
"subject": "Slettingen av {product_name}-kontoen din er planlagt",
- "body": "Hei {username},\n\nSom du ba om, er {product_name}-kontoen din planlagt for permanent sletting:\n\n{deletionDate, date, full} kl. {deletionDate, time, short}{reason, select, null {} other {\n\nÅrsak: {reason}}}\n\nKontoen din er låst frem til da. {safety_email, select, null {Hvis du ikke ba om dette, eller hvis du vil beholde kontoen din, kan du kontakte administratorene av denne instansen før denne datoen.} other {Hvis du ikke ba om dette, eller hvis du vil beholde kontoen din, kan du kontakte {safety_email} fra denne e-postadressen før denne datoen.}}\n\n– {product_name}-teamet"
- },
- "account_scheduled_deletion": {
- "subject": "{product_name}-kontoen din blir permanent slettet",
- "body": "Hei {username},\n\nVi har planlagt permanent sletting av {product_name}-kontoen din på grunn av brudd på våre vilkår for bruk eller retningslinjer for fellesskapet.\n\nPlanlagt sletting: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Årsak: {reason}\n\n}\n}Dette er et alvorlig tiltak. Kontodataene dine blir permanent slettet på den planlagte datoen.\n\n{legalLinks, select,\n both {Les gjennom:\n- Vilkår for bruk: {termsUrl}\n- Retningslinjer for fellesskapet: {guidelinesUrl}\n\n}\n terms {Les gjennom:\n- Vilkår for bruk: {termsUrl}\n\n}\n guidelines {Les gjennom:\n- Retningslinjer for fellesskapet: {guidelinesUrl}\n\n}\n other {}\n}Klageprosessen:\nHvis du mener avgjørelsen var feil eller uberettiget, har du 60 dager på deg til å sende inn en klage. {appeals_email, select, null {Kontakt administratorene av denne instansen.} other {Send en e-post til {appeals_email} fra denne e-postadressen.}}\n\nI klagen din:\n- Forklar tydelig hvorfor du mener avgjørelsen var feil eller uberettiget\n- Legg ved relevante bevis eller opplysninger\n\nEt medlem av sikkerhetsteamet hos {product_name} vil vurdere klagen din og kan utsette slettingen til en endelig avgjørelse er tatt.\n\n– Sikkerhetsteamet hos {product_name}"
- },
- "account_temp_banned": {
- "subject": "{product_name}-kontoen din er midlertidig suspendert",
- "body": "Hei {username},\n\n{product_name}-kontoen din er midlertidig suspendert på grunn av brudd på våre vilkår for bruk eller retningslinjer for fellesskapet.\n\nVarighet: {durationHours, plural,\n =1 {1 time}\n other {# timer}\n}\nSuspendert til: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Årsak: {reason}\n\n}\n}Du har ikke tilgang til kontoen din i denne perioden.\n\n{legalLinks, select,\n both {Les gjennom:\n- Vilkår for bruk: {termsUrl}\n- Retningslinjer for fellesskapet: {guidelinesUrl}\n\n}\n terms {Les gjennom:\n- Vilkår for bruk: {termsUrl}\n\n}\n guidelines {Les gjennom:\n- Retningslinjer for fellesskapet: {guidelinesUrl}\n\n}\n other {}\n}Hvis du mener avgjørelsen var feil eller uberettiget, kan du sende inn en klage. {appeals_email, select, null {Kontakt administratorene av denne instansen, og forklar tydelig hvorfor du mener avgjørelsen var feil.} other {Send en e-post til {appeals_email} fra denne e-postadressen, og forklar tydelig hvorfor du mener avgjørelsen var feil.}} Vi vil vurdere klagen din og gi deg beskjed om avgjørelsen vår.\n\n– Sikkerhetsteamet hos {product_name}"
+ "body": "Hei {username},\n\nSom du ba om, har vi planlagt sletting av {product_name}-kontoen din den {deletion_date}.\n\nHvis du vil beholde kontoen din, logger du på før {deletion_date}. {safety_email, select, null {Hvis du ikke ba om dette, kontakt administratorene av denne instansen.} other {Hvis du ikke ba om dette, kontakt {safety_email}.}}\n\n{product_name}-teamet"
},
"donation_confirmation": {
"subject": "Takk for bidraget ditt til {product_name}",
@@ -28,8 +20,8 @@
"body": "Hei,\n\nKlikk på lenken nedenfor for å få tilgang til giverportalen din:\n\n{manageUrl}\n\nI portalen kan du administrere abonnementer, laste ned fakturaer og se bidragshistorikken din.\n\nDenne lenken utløper {expiresAt, date, full} kl. {expiresAt, time, short}.\n\nHvis du ikke ba om denne lenken, kan du trygt ignorere denne e-posten.\n\n– {product_name}-teamet"
},
"dsa_report_resolved": {
- "subject": "Vi har tatt en avgjørelse om {product_name}-rapporten din",
- "body": "Hei,\n\nSikkerhetsteamet vårt har gjennomgått rapporten din i henhold til Digital Services Act (ID: {reportId}) og tatt en avgjørelse.{hasComment, select, yes {\n\nSvar fra sikkerhetsteamet:\n{publicComment}} other {}}\n\nVi deler ikke detaljer om tiltak mot en annen persons konto, fordi det er personopplysningene til den personen.\n\nHvis du er uenig i avgjørelsen, kan du klage gratis innen 60 dager. {appeals_email, select, null {Kontakt administratorene av denne instansen, oppgi rapport-ID-en din, og forklar hvorfor du mener avgjørelsen er feil.} other {Send en e-post til {appeals_email} fra denne e-postadressen, oppgi rapport-ID-en din, og forklar hvorfor du mener avgjørelsen er feil.}} Hvis du befinner deg i EU, kan du også bringe tvisten inn for et sertifisert organ for utenrettslig tvisteløsning. Ingenting av dette påvirker retten din til å gå til domstolene.\n\n– Sikkerhetsteamet hos {product_name}"
+ "subject": "Vi har tatt en avgjørelse om rapporten din på {product_name}",
+ "body": "Hei,\n\nVi har gått gjennom rapporten din (ID: {reportId}).\n\n{outcome, select, removed {Vi har fjernet innholdet du rapporterte, fordi det brøt reglene våre.} restricted {Vi fant ut at kontoen du rapporterte, brøt reglene våre, og vi har begrenset den. Vi oppgir ikke hvilke tiltak vi har iverksatt mot en annen konto, fordi det er personopplysningene til den personen.} action_taken {Vi fant ut at det du rapporterte, brøt reglene våre, og vi har grepet inn. Vi oppgir ikke hvilke tiltak vi har iverksatt mot en annen konto, fordi det er personopplysningene til den personen.} no_violation {Vi fant ut at innholdet eller kontoen du rapporterte, ikke bryter reglene våre, så vi har ikke gjort noe.} other {Vi har lukket rapporten din.}}{hasComment, select, yes {\n\nMerknad fra teamet vårt: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nHvis du er uenig, send en e-post til {appeals_email} innen 60 dager og oppgi rapport-ID-en. Hvis du er i EU, kan du også bringe saken inn for et sertifisert organ for utenrettslig tvisteløsning eller klage til koordinatoren for digitale tjenester i landet ditt.}}\n\n{product_name}-teamet"
},
"dsa_report_verification": {
"subject": "Bekreft e-postadressen din for en DSA-rapport",
@@ -51,6 +43,14 @@
"subject": "Bekreft e-postadressen din for {product_name}",
"body": "Hei {username},\n\nBekreft e-postadressen til {product_name}-kontoen din ved å klikke på lenken nedenfor:\n\n{verifyUrl}\n\nHvis du ikke opprettet en {product_name}-konto, kan du trygt se bort fra denne e-posten.\n\nDenne lenken er gyldig i 24 timer.\n\n– {product_name}-teamet"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Vi har omgjort en avgjørelse om {product_name}-kontoen din} other {En begrensning på {product_name}-kontoen din er opphevet}}",
+ "body": "Hei {username},\n\n{outcome, select, reversed {{decision_id, select, null {Vi har sett på en avgjørelse om kontoen din på nytt og omgjort den.} other {Vi har sett på avgjørelse {decision_id} på nytt og omgjort den.}} Vi beklager bryderiet.} other {{decision_id, select, null {Vi har opphevet begrensningen på kontoen din.} other {Vi har opphevet begrensningen fra avgjørelse {decision_id}.}}}}{restores_access, select, yes { Du kan logge på og bruke {product_name} igjen.} other {}}{statement, select, null {} other {\n\nMerknad fra teamet vårt: {statement}}}{content_removed, select, yes {\n\nInnhold vi har fjernet, kan ikke gjenopprettes.} other {}}\n\n{product_name}-teamet"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Informasjon om {product_name}-kontoen din} other {{kind_label, select, warning {En advarsel om {product_name}-kontoen din} suspension {{product_name}-kontoen din er suspendert} ban {{product_name}-kontoen din er utestengt} closure {{product_name}-kontoen din er stengt} feature_limit {Noen funksjoner er begrenset på {product_name}-kontoen din} content_removal {Vi har fjernet meldinger du sendte på {product_name}} profile_reset {Vi har tilbakestilt deler av {product_name}-profilen din} community_removal {Vi har fjernet fellesskapet ditt på {product_name}} bot {Informasjon om boten din på {product_name}} other {Informasjon om {product_name}-kontoen din}}}}",
+ "body": "Hei {username},\n\n{summary}\n\n{effects}\n\nHvorfor\nRegel: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nMerknad fra teamet vårt: {statement}}}\n\nSlik tok vi avgjørelsen\n{how_we_decided}{appeals_email, select, null {} other {\n\nSlik klager du\nHvis du mener at vi tok feil, send en e-post til {appeals_email} innen {appeal_deadline}. Skriv fra e-postadressen på kontoen din hvis du kan, og oppgi avgjørelses-ID-en. Det er gratis å klage, og en person går gjennom hver klage.{redress, select, null {} other {\n\n{redress}}}}}\n\nAvgjørelses-ID: {decision_id}\n\n{product_name}-teamet"
+ },
"gift_chargeback_notification": {
"subject": "Fordelene fra gaven du løste inn, er fjernet",
"body": "Hei {username},\n\nDu løste inn en gavekode som opprinnelig var betalt av noen andre. Betalingen har senere blitt tilbakeført.\n\nDerfor har vi fjernet fordelene som ble lagt til kontoen din da du løste inn gaven.\n\n{support_email, select, null {Hvis du mener dette er en feil, kan du kontakte administratorene av denne instansen. Ta med opplysningene du har om gavekoden og når du løste den inn.} other {Hvis du mener dette er en feil, kan du kontakte kundestøtten vår. Ta med opplysningene du har om gavekoden og når du løste den inn.}}\n\n– {product_name}-teamet"
@@ -84,19 +84,11 @@
"body": "Hei,\n\nVi har mottatt rapporten din i henhold til Digital Services Act om {targetKind, select, message {en melding} user {en konto} guild {et fellesskap} other {innhold}} på {product_name}.\n\nRapport-ID: {reportId}\n\nSikkerhetsteamet vårt går gjennom rapporten din, og vi sender deg en e-post på denne adressen når vi har tatt en avgjørelse. Ta vare på denne e-posten.\n\n– Sikkerhetsteamet hos {product_name}"
},
"report_resolved": {
- "subject": "{product_name}-rapporten din er gjennomgått",
- "body": "Hei {username},\n\nRapporten din (ID: {reportId}) er gjennomgått av sikkerhetsteamet vårt.{hasComment, select, yes {\n\nSvar fra sikkerhetsteamet:\n{publicComment}} other {}}\n\nTakk for at du bidrar til å holde {product_name} trygt for alle. Vi tar alle rapporter på alvor og setter pris på bidraget ditt til fellesskapet.\n\n{safety_email, select, null {Hvis du har spørsmål eller er bekymret for utfallet, kan du kontakte administratorene av denne instansen.} other {Hvis du har spørsmål eller er bekymret for utfallet, kan du kontakte {safety_email}.}}\n\n– Sikkerhetsteamet hos {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "{product_name}-kontoen din blir permanent slettet",
- "body": "Hei {username},\n\n{product_name}-kontoen din er planlagt for permanent sletting.\n\nPlanlagt sletting: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Årsak: {reason}\n\n}\n}Dette er et alvorlig tiltak. Kontodataene dine blir permanent slettet på den planlagte datoen.\n\nHvis du mener avgjørelsen var feil, kan du sende inn en klage. {appeals_email, select, null {Kontakt administratorene av denne instansen.} other {Send en e-post til {appeals_email} fra denne e-postadressen.}}\n\n– Sikkerhetsteamet hos {product_name}"
+ "subject": "Rapporten din på {product_name} er gjennomgått",
+ "body": "Hei {username},\n\nVi har gått gjennom rapporten din (ID: {reportId}).\n\n{outcome, select, removed {Vi har fjernet innholdet du rapporterte, fordi det brøt reglene våre.} restricted {Vi fant ut at kontoen du rapporterte, brøt reglene våre, og vi har begrenset den. Vi oppgir ikke hvilke tiltak vi har iverksatt mot en annen konto, fordi det er personopplysningene til den personen.} action_taken {Vi fant ut at det du rapporterte, brøt reglene våre, og vi har grepet inn. Vi oppgir ikke hvilke tiltak vi har iverksatt mot en annen konto, fordi det er personopplysningene til den personen.} no_violation {Vi fant ut at innholdet eller kontoen du rapporterte, ikke bryter reglene våre, så vi har ikke gjort noe.} other {Vi har lukket rapporten din.}}{hasComment, select, yes {\n\nMerknad fra teamet vårt: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nHvis du er uenig, send en e-post til {appeals_email} innen 60 dager og oppgi rapport-ID-en. Hvis du er i EU, kan du også bringe saken inn for et sertifisert organ for utenrettslig tvisteløsning eller klage til koordinatoren for digitale tjenester i landet ditt.}}\n\n{product_name}-teamet"
},
"self_deletion_scheduled": {
"subject": "Slettingen av {product_name}-kontoen din er planlagt",
"body": "Hei {username},\n\nDu ba om å slette {product_name}-kontoen din. Kontoen din er planlagt for permanent sletting:\n\n{deletionDate, date, full} kl. {deletionDate, time, short}\n\nHvis du ikke ba om dette, kan du logge inn på kontoen din for å avbryte slettingen. Vi anbefaler også å endre passordet ditt for å sikre kontoen din.\n\n– {product_name}-teamet"
- },
- "unban_notification": {
- "subject": "Suspensjonen av {product_name}-kontoen din er opphevet",
- "body": "Hei {username},\n\nGode nyheter! Suspensjonen av {product_name}-kontoen din er opphevet.\n\n{reason, select,\n null {}\n other {Årsak: {reason}\n\n}\n}Du kan nå logge inn igjen og fortsette å bruke {product_name} som normalt.\n\n– Sikkerhetsteamet hos {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/pl.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/pl.json
index a208dceb8..c77a72335 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/pl.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/pl.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Twoje konto {product_name} zostanie usunięte z powodu braku aktywności",
- "body": "Witaj {username},\n\nTwoje konto {product_name} od dawna jest nieaktywne, dlatego zostało zaplanowane do trwałego usunięcia. Termin usunięcia:\n\n{deletionDate, date, full} o {deletionDate, time, short}{reason, select, null {} other {\n\nPowód: {reason}}}\n\n{safety_email, select, null {Jeśli chcesz zachować konto, skontaktuj się z administratorami tej instancji przed tym terminem.} other {Jeśli chcesz zachować konto, skontaktuj się z {safety_email} z tego adresu e-mail przed tym terminem.}}\n\n– Zespół {product_name}"
+ "body": "Witaj {username},\n\nTwoje konto {product_name} od dawna jest nieaktywne, dlatego zaplanowaliśmy jego usunięcie na dzień {deletion_date}.\n\nAby zachować konto, zaloguj się przed tym dniem. {support_email, select, null {Jeśli masz pytania, skontaktuj się z administratorami tej instancji.} other {Jeśli masz pytania, napisz na adres {support_email}.}}\n\nZespół {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Usunięcie Twojego konta {product_name} zostało zaplanowane",
- "body": "Witaj {username},\n\nZgodnie z Twoją prośbą zaplanowaliśmy trwałe usunięcie konta {product_name}. Termin usunięcia:\n\n{deletionDate, date, full} o {deletionDate, time, short}{reason, select, null {} other {\n\nPowód: {reason}}}\n\nDo tego czasu Twoje konto jest zablokowane. {safety_email, select, null {Jeśli nie prosiłeś o to lub chcesz zachować konto, skontaktuj się z administratorami tej instancji przed tym terminem.} other {Jeśli nie prosiłeś o to lub chcesz zachować konto, skontaktuj się z {safety_email} z tego adresu e-mail przed tym terminem.}}\n\n– Zespół {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Twoje konto {product_name} zostanie trwale usunięte",
- "body": "Witaj {username},\n\nZaplanowaliśmy trwałe usunięcie Twojego konta {product_name} z powodu naruszenia naszych warunków korzystania z usługi lub zasad społeczności.\n\nZaplanowane usunięcie: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Powód: {reason}\n\n}\n}Jest to poważna sankcja. Dane Twojego konta zostaną usunięte na stałe w zaplanowanym terminie.\n\n{legalLinks, select,\n both {Sprawdź:\n- Warunki korzystania z usługi: {termsUrl}\n- Zasady społeczności: {guidelinesUrl}\n\n}\n terms {Sprawdź:\n- Warunki korzystania z usługi: {termsUrl}\n\n}\n guidelines {Sprawdź:\n- Zasady społeczności: {guidelinesUrl}\n\n}\n other {}\n}Proces odwoławczy:\nJeśli uważasz, że ta decyzja była błędna lub nieuzasadniona, masz 60 dni na złożenie odwołania. {appeals_email, select, null {Skontaktuj się z administratorami tej instancji.} other {Wyślij e-mail na adres {appeals_email} z tego adresu e-mail.}}\n\nW swoim odwołaniu:\n- Wyjaśnij jasno, dlaczego uważasz, że decyzja była błędna lub nieuzasadniona\n- Przedstaw wszelkie istotne dowody lub kontekst\n\nCzłonek zespołu ds. bezpieczeństwa {product_name} rozpatrzy Twoje odwołanie i może wstrzymać usunięcie do czasu podjęcia ostatecznej decyzji.\n\n– Zespół ds. bezpieczeństwa {product_name}"
- },
- "account_temp_banned": {
- "subject": "Twoje konto {product_name} zostało tymczasowo zawieszone",
- "body": "Witaj {username},\n\nTwoje konto {product_name} zostało tymczasowo zawieszone za naruszenie naszych warunków korzystania z usługi lub zasad społeczności.\n\nCzas trwania: {durationHours, plural,\n one {1 godzina} few {# godziny}\n many {# godzin} other {# godziny}\n}\nZawieszone do: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Powód: {reason}\n\n}\n}W tym czasie nie będziesz mieć dostępu do swojego konta.\n\n{legalLinks, select,\n both {Sprawdź:\n- Warunki korzystania z usługi: {termsUrl}\n- Zasady społeczności: {guidelinesUrl}\n\n}\n terms {Sprawdź:\n- Warunki korzystania z usługi: {termsUrl}\n\n}\n guidelines {Sprawdź:\n- Zasady społeczności: {guidelinesUrl}\n\n}\n other {}\n}Jeśli uważasz, że ta decyzja była błędna lub nieuzasadniona, możesz złożyć odwołanie. {appeals_email, select, null {Skontaktuj się z administratorami tej instancji i jasno wyjaśnij, dlaczego uważasz, że decyzja była błędna.} other {Wyślij e-mail na adres {appeals_email} z tego adresu e-mail i jasno wyjaśnij, dlaczego uważasz, że decyzja była błędna.}} Rozpatrzymy Twoje odwołanie i poinformujemy Cię o naszej decyzji.\n\n– Zespół ds. bezpieczeństwa {product_name}"
+ "body": "Witaj {username},\n\nZgodnie z Twoją prośbą zaplanowaliśmy usunięcie Twojego konta {product_name} na dzień {deletion_date}.\n\nAby zachować konto, zaloguj się przed dniem {deletion_date}. {safety_email, select, null {Jeśli ta prośba nie pochodzi od Ciebie, skontaktuj się z administratorami tej instancji.} other {Jeśli ta prośba nie pochodzi od Ciebie, napisz na adres {safety_email}.}}\n\nZespół {product_name}"
},
"donation_confirmation": {
"subject": "Dziękujemy za darowiznę dla {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Podjęliśmy decyzję w sprawie Twojego zgłoszenia w {product_name}",
- "body": "Witaj,\n\nNasz zespół ds. bezpieczeństwa rozpatrzył Twoje zgłoszenie w ramach aktu o usługach cyfrowych (ID: {reportId}) i podjął decyzję.{hasComment, select, yes {\n\nOdpowiedź od zespołu ds. bezpieczeństwa:\n{publicComment}} other {}}\n\nNie udostępniamy szczegółów działań podjętych wobec konta innej osoby, ponieważ są to jej dane osobowe.\n\nJeśli nie zgadzasz się z tą decyzją, możesz bezpłatnie złożyć odwołanie w ciągu 60 dni. {appeals_email, select, null {Skontaktuj się z administratorami tej instancji, podaj ID zgłoszenia i wyjaśnij, dlaczego uważasz, że decyzja jest błędna.} other {Wyślij e-mail na adres {appeals_email} z tego adresu e-mail, podaj ID zgłoszenia i wyjaśnij, dlaczego uważasz, że decyzja jest błędna.}} Jeśli przebywasz w UE, możesz też skierować spór do certyfikowanego organu pozasądowego rozstrzygania sporów. Nic z tego nie wpływa na Twoje prawo do skierowania sprawy do sądu.\n\n– Zespół ds. bezpieczeństwa {product_name}"
+ "body": "Dzień dobry,\n\nRozpatrzyliśmy Twoje zgłoszenie (ID: {reportId}).\n\n{outcome, select, removed {Usunęliśmy zgłoszone treści, ponieważ naruszały nasze zasady.} restricted {Ustaliliśmy, że zgłoszone konto naruszyło nasze zasady, i nałożyliśmy na nie ograniczenia. Nie informujemy, jakie działania podjęliśmy wobec innego konta, ponieważ są to dane osobowe jego właściciela.} action_taken {Ustaliliśmy, że zgłoszona treść lub konto naruszyły nasze zasady, i podjęliśmy działania. Nie informujemy, jakie działania podjęliśmy wobec innego konta, ponieważ są to dane osobowe jego właściciela.} no_violation {Ustaliliśmy, że zgłoszone treści lub konto nie naruszają naszych zasad, więc pozostawiliśmy je bez zmian.} other {Zamknęliśmy Twoje zgłoszenie.}}{hasComment, select, yes {\n\nKomentarz naszego zespołu: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nJeśli się nie zgadzasz, napisz na adres {appeals_email} w ciągu 60 dni i podaj identyfikator zgłoszenia. Jeśli jesteś w UE, możesz też skierować sprawę do certyfikowanego organu pozasądowego rozstrzygania sporów lub złożyć skargę do koordynatora ds. usług cyfrowych w swoim kraju.}}\n\nZespół {product_name}"
},
"dsa_report_verification": {
"subject": "Zweryfikuj adres e-mail na potrzeby zgłoszenia DSA",
@@ -51,6 +43,14 @@
"subject": "Zweryfikuj adres e-mail w {product_name}",
"body": "Witaj {username},\n\nZweryfikuj adres e-mail swojego konta {product_name}, klikając poniższy link:\n\n{verifyUrl}\n\nJeśli nie utworzyłeś konta {product_name}, możesz bezpiecznie zignorować tę wiadomość e-mail.\n\nTen link jest ważny przez 24 godziny.\n\n– Zespół {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Cofnęliśmy decyzję dotyczącą Twojego konta {product_name}} other {Ograniczenie Twojego konta {product_name} przestało obowiązywać}}",
+ "body": "Witaj {username},\n\n{outcome, select, reversed {{decision_id, select, null {Ponownie przeanalizowaliśmy decyzję dotyczącą Twojego konta i ją cofnęliśmy.} other {Ponownie przeanalizowaliśmy decyzję {decision_id} i ją cofnęliśmy.}} Przepraszamy za kłopot.} other {{decision_id, select, null {Zdjęliśmy ograniczenie z Twojego konta.} other {Zdjęliśmy ograniczenie nałożone decyzją {decision_id}.}}}}{restores_access, select, yes { Możesz znowu logować się i korzystać z {product_name}.} other {}}{statement, select, null {} other {\n\nKomentarz naszego zespołu: {statement}}}{content_removed, select, yes {\n\nUsuniętych przez nas treści nie można przywrócić.} other {}}\n\nZespół {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Informacja o Twoim koncie {product_name}} other {{kind_label, select, warning {Ostrzeżenie dotyczące Twojego konta {product_name}} suspension {Twoje konto {product_name} zostało zawieszone} ban {Twoje konto {product_name} zostało zablokowane} closure {Twoje konto {product_name} zostało zamknięte} feature_limit {Niektóre funkcje Twojego konta {product_name} są ograniczone} content_removal {Usunęliśmy Twoje wiadomości w {product_name}} profile_reset {Zresetowaliśmy część Twojego profilu {product_name}} community_removal {Usunęliśmy Twoją społeczność w {product_name}} bot {Informacja o Twoim bocie w {product_name}} other {Informacja o Twoim koncie {product_name}}}}}",
+ "body": "Witaj {username},\n\n{summary}\n\n{effects}\n\nDlaczego\nZasada: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nKomentarz naszego zespołu: {statement}}}\n\nJak podjęliśmy decyzję\n{how_we_decided}{appeals_email, select, null {} other {\n\nJak się odwołać\nJeśli uważasz, że popełniliśmy błąd, napisz na adres {appeals_email} do {appeal_deadline}. Jeśli możesz, napisz z adresu e-mail przypisanego do Twojego konta i podaj identyfikator decyzji. Odwołania są bezpłatne, a każde z nich rozpatruje człowiek.{redress, select, null {} other {\n\n{redress}}}}}\n\nIdentyfikator decyzji: {decision_id}\n\nZespół {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Usunięto bonusy z wykorzystanego prezentu",
"body": "Witaj {username},\n\nKod podarunkowy wykorzystany na Twoim koncie został pierwotnie opłacony przez inną osobę. Płatność ta została następnie cofnięta (chargeback).\n\nZ tego powodu usunęliśmy bonusy, które zostały dodane do Twojego konta po wykorzystaniu prezentu.\n\n{support_email, select, null {Jeśli uważasz, że to pomyłka, skontaktuj się z administratorami tej instancji i podaj wszelkie szczegóły dotyczące kodu podarunkowego oraz daty jego wykorzystania.} other {Jeśli uważasz, że to pomyłka, skontaktuj się z naszym zespołem wsparcia i podaj wszelkie szczegóły dotyczące kodu podarunkowego oraz daty jego wykorzystania.}}\n\n– Zespół {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Twoje zgłoszenie w {product_name} zostało rozpatrzone",
- "body": "Witaj {username},\n\nTwoje zgłoszenie (ID: {reportId}) zostało rozpatrzone przez nasz zespół ds. bezpieczeństwa.{hasComment, select, yes {\n\nOdpowiedź od zespołu ds. bezpieczeństwa:\n{publicComment}} other {}}\n\nDziękujemy za pomoc w utrzymaniu bezpieczeństwa {product_name} dla wszystkich. Traktujemy wszystkie zgłoszenia poważnie i doceniamy Twój wkład w społeczność.\n\n{safety_email, select, null {Jeśli masz pytania lub wątpliwości dotyczące tej decyzji, skontaktuj się z administratorami tej instancji.} other {Jeśli masz pytania lub wątpliwości dotyczące tej decyzji, skontaktuj się z {safety_email}.}}\n\n– Zespół ds. bezpieczeństwa {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Twoje konto {product_name} zostanie trwale usunięte",
- "body": "Witaj {username},\n\nZaplanowaliśmy trwałe usunięcie Twojego konta {product_name}.\n\nZaplanowane usunięcie: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Powód: {reason}\n\n}\n}Jest to poważna sankcja. Dane Twojego konta zostaną usunięte na stałe w zaplanowanym terminie.\n\nJeśli uważasz, że ta decyzja była błędna, możesz złożyć odwołanie. {appeals_email, select, null {Skontaktuj się z administratorami tej instancji.} other {Wyślij e-mail na adres {appeals_email} z tego adresu e-mail.}}\n\n– Zespół ds. bezpieczeństwa {product_name}"
+ "body": "Witaj {username},\n\nRozpatrzyliśmy Twoje zgłoszenie (ID: {reportId}).\n\n{outcome, select, removed {Usunęliśmy zgłoszone treści, ponieważ naruszały nasze zasady.} restricted {Ustaliliśmy, że zgłoszone konto naruszyło nasze zasady, i nałożyliśmy na nie ograniczenia. Nie informujemy, jakie działania podjęliśmy wobec innego konta, ponieważ są to dane osobowe jego właściciela.} action_taken {Ustaliliśmy, że zgłoszona treść lub konto naruszyły nasze zasady, i podjęliśmy działania. Nie informujemy, jakie działania podjęliśmy wobec innego konta, ponieważ są to dane osobowe jego właściciela.} no_violation {Ustaliliśmy, że zgłoszone treści lub konto nie naruszają naszych zasad, więc pozostawiliśmy je bez zmian.} other {Zamknęliśmy Twoje zgłoszenie.}}{hasComment, select, yes {\n\nKomentarz naszego zespołu: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nJeśli się nie zgadzasz, napisz na adres {appeals_email} w ciągu 60 dni i podaj identyfikator zgłoszenia. Jeśli jesteś w UE, możesz też skierować sprawę do certyfikowanego organu pozasądowego rozstrzygania sporów lub złożyć skargę do koordynatora ds. usług cyfrowych w swoim kraju.}}\n\nZespół {product_name}"
},
"self_deletion_scheduled": {
"subject": "Usunięcie Twojego konta {product_name} zostało zaplanowane",
"body": "Witaj {username},\n\nOtrzymaliśmy Twoją prośbę o usunięcie konta {product_name}. Termin trwałego usunięcia konta:\n\n{deletionDate, date, full} o {deletionDate, time, short}\n\nJeśli nie prosiłeś o to, zaloguj się na swoje konto, aby anulować usunięcie. Zalecamy również zmianę hasła w celu zabezpieczenia konta.\n\n– Zespół {product_name}"
- },
- "unban_notification": {
- "subject": "Zawieszenie Twojego konta {product_name} zostało zniesione",
- "body": "Witaj {username},\n\nDobre wieści: zawieszenie Twojego konta {product_name} zostało zniesione.\n\n{reason, select,\n null {}\n other {Powód: {reason}\n\n}\n}Możesz teraz ponownie się zalogować i kontynuować korzystanie z {product_name} jak zwykle.\n\n– Zespół ds. bezpieczeństwa {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/pt-BR.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/pt-BR.json
index 624e289a7..a90df4fa5 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/pt-BR.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/pt-BR.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "A sua conta do {product_name} será excluída devido à inatividade",
- "body": "Olá, {username},\n\nSua conta do {product_name} está inativa há muito tempo, por isso está agendada para exclusão permanente em:\n\n{deletionDate, date, full} às {deletionDate, time, short}{reason, select, null {} other {\n\nMotivo: {reason}}}\n\n{safety_email, select, null {Se quiser manter sua conta, entre em contato com os administradores desta instância antes dessa data.} other {Se quiser manter sua conta, entre em contato com {safety_email} usando este endereço de e-mail antes dessa data.}}\n\n– Equipe do {product_name}"
+ "body": "Olá, {username},\n\nSua conta do {product_name} está inativa há muito tempo, por isso agendamos a exclusão dela para {deletion_date}.\n\nPara manter sua conta, entre antes dessa data. {support_email, select, null {Se tiver dúvidas, entre em contato com os administradores desta instância.} other {Se tiver dúvidas, entre em contato com {support_email}.}}\n\nEquipe do {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "A exclusão da sua conta do {product_name} está agendada",
- "body": "Olá, {username},\n\nConforme solicitado, sua conta do {product_name} está agendada para exclusão permanente em:\n\n{deletionDate, date, full} às {deletionDate, time, short}{reason, select, null {} other {\n\nMotivo: {reason}}}\n\nSua conta permanecerá bloqueada até lá. {safety_email, select, null {Se você não solicitou isso, ou se quiser manter sua conta, entre em contato com os administradores desta instância antes dessa data.} other {Se você não solicitou isso, ou se quiser manter sua conta, entre em contato com {safety_email} usando este endereço de e-mail antes dessa data.}}\n\n– Equipe do {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Sua conta do {product_name} será excluída permanentemente",
- "body": "Olá, {username},\n\nA exclusão permanente da sua conta do {product_name} foi agendada devido a violações de nossos Termos de serviço ou Diretrizes da comunidade.\n\nExclusão agendada: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Esta é uma medida séria. Os dados da sua conta serão excluídos permanentemente na data agendada.\n\n{legalLinks, select,\n both {Por favor, revise:\n- Termos de serviço: {termsUrl}\n- Diretrizes da comunidade: {guidelinesUrl}\n\n}\n terms {Por favor, revise:\n- Termos de serviço: {termsUrl}\n\n}\n guidelines {Por favor, revise:\n- Diretrizes da comunidade: {guidelinesUrl}\n\n}\n other {}\n}Processo de recurso:\nSe você acredita que esta decisão foi incorreta ou injustificada, você tem 60 dias para enviar um recurso. {appeals_email, select, null {Entre em contato com os administradores desta instância.} other {Envie um e-mail para {appeals_email} a partir deste endereço de e-mail.}}\n\nEm seu recurso:\n- Explique claramente por que você acredita que a decisão foi incorreta ou injustificada\n- Forneça quaisquer evidências ou contexto relevantes\n\nUm membro da equipe de segurança do {product_name} revisará seu recurso e poderá pausar a exclusão pendente até que uma decisão final seja tomada.\n\n– equipe de segurança do {product_name}"
- },
- "account_temp_banned": {
- "subject": "Sua conta do {product_name} foi suspensa temporariamente",
- "body": "Olá, {username},\n\nSua conta do {product_name} foi suspensa temporariamente por violar nossos Termos de serviço ou Diretrizes da comunidade.\n\nDuração: {durationHours, plural,\n =1 {1 hora} other {# horas}}\nSuspensa até: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {} other {Motivo: {reason}\n\n}}Durante este período, você não poderá acessar sua conta.\n\n{legalLinks, select,\n both {Por favor, revise:\n- Termos de serviço: {termsUrl}\n- Diretrizes da comunidade: {guidelinesUrl}\n\n}\n terms {Por favor, revise:\n- Termos de serviço: {termsUrl}\n\n}\n guidelines {Por favor, revise:\n- Diretrizes da comunidade: {guidelinesUrl}\n\n}\n other {}\n}Se você acredita que esta decisão foi incorreta ou injustificada, você pode enviar um recurso. {appeals_email, select, null {Entre em contato com os administradores desta instância e explique claramente por que você acredita que a decisão foi incorreta.} other {Envie um e-mail para {appeals_email} a partir deste endereço de e-mail e explique claramente por que você acredita que a decisão foi incorreta.}} Revisaremos seu recurso e responderemos com nossa decisão.\n\n– equipe de segurança do {product_name}"
+ "body": "Olá, {username},\n\nConforme você pediu, agendamos a exclusão da sua conta do {product_name} para {deletion_date}.\n\nPara manter sua conta, entre antes de {deletion_date}. {safety_email, select, null {Se você não pediu isso, entre em contato com os administradores desta instância.} other {Se você não pediu isso, entre em contato com {safety_email}.}}\n\nEquipe do {product_name}"
},
"donation_confirmation": {
"subject": "Agradecemos pela sua doação ao {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Tomamos uma decisão sobre sua denúncia no {product_name}",
- "body": "Olá,\n\nNossa equipe de segurança analisou sua denúncia nos termos da Lei dos Serviços Digitais (ID: {reportId}) e tomou uma decisão.{hasComment, select, yes {\n\nResposta da equipe de segurança:\n{publicComment}} other {}}\n\nNão compartilhamos detalhes de medidas tomadas contra a conta de outra pessoa, pois são dados pessoais dela.\n\nSe você não concordar com esta decisão, pode enviar um recurso gratuitamente em até 60 dias. {appeals_email, select, null {Entre em contato com os administradores desta instância, inclua o ID da sua denúncia e explique por que você acredita que a decisão está incorreta.} other {Envie um e-mail para {appeals_email} a partir deste endereço de e-mail, inclua o ID da sua denúncia e explique por que você acredita que a decisão está incorreta.}} Se você estiver na UE, também pode encaminhar a disputa a um órgão certificado de resolução extrajudicial de litígios. Nada disso afeta seu direito de recorrer à Justiça.\n\n– equipe de segurança do {product_name}"
+ "body": "Olá,\n\nAnalisamos sua denúncia (ID: {reportId}).\n\n{outcome, select, removed {Removemos o conteúdo que você denunciou porque ele violava nossas regras.} restricted {Constatamos que a conta que você denunciou violava nossas regras e aplicamos uma restrição a ela. Não informamos que medida tomamos contra outra conta, porque isso é um dado pessoal do titular.} action_taken {Constatamos que o que você denunciou violava nossas regras e tomamos uma medida. Não informamos que medida tomamos contra outra conta, porque isso é um dado pessoal do titular.} no_violation {Constatamos que o conteúdo ou a conta que você denunciou não viola nossas regras, então não fizemos nenhuma alteração.} other {Encerramos sua denúncia.}}{hasComment, select, yes {\n\nNota da nossa equipe: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSe você discordar, envie um e-mail para {appeals_email} em até 60 dias informando o ID da denúncia. Se você estiver na UE, também pode submeter a questão a um organismo de resolução extrajudicial de litígios certificado ou apresentar uma reclamação ao coordenador dos serviços digitais do seu país.}}\n\nEquipe do {product_name}"
},
"dsa_report_verification": {
"subject": "Verifique seu e-mail para enviar uma denúncia nos termos do DSA",
@@ -51,6 +43,14 @@
"subject": "Verifique o endereço de e-mail da sua conta do {product_name}",
"body": "Olá, {username},\n\nPor favor, verifique o endereço de e-mail da sua conta do {product_name} clicando no link abaixo:\n\n{verifyUrl}\n\nSe você não criou uma conta do {product_name}, pode ignorar este e-mail com segurança.\n\nEste link é válido por 24 horas.\n\n– Equipe do {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Revertemos uma decisão sobre sua conta do {product_name}} other {Uma restrição na sua conta do {product_name} terminou}}",
+ "body": "Olá, {username},\n\n{outcome, select, reversed {{decision_id, select, null {Analisamos novamente uma decisão sobre sua conta e a revertemos.} other {Analisamos novamente a decisão {decision_id} e a revertemos.}} Pedimos desculpas pelo transtorno.} other {{decision_id, select, null {Removemos a restrição da sua conta.} other {Removemos a restrição da decisão {decision_id}.}}}}{restores_access, select, yes { Você já pode entrar e usar o {product_name} novamente.} other {}}{statement, select, null {} other {\n\nNota da nossa equipe: {statement}}}{content_removed, select, yes {\n\nO conteúdo que removemos não pode ser restaurado.} other {}}\n\nEquipe do {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Uma atualização sobre sua conta do {product_name}} other {{kind_label, select, warning {Um aviso sobre sua conta do {product_name}} suspension {Sua conta do {product_name} está suspensa} ban {Sua conta do {product_name} está banida} closure {Sua conta do {product_name} foi encerrada} feature_limit {Alguns recursos da sua conta do {product_name} estão limitados} content_removal {Removemos mensagens que você enviou no {product_name}} profile_reset {Redefinimos partes do seu perfil do {product_name}} community_removal {Removemos sua comunidade no {product_name}} bot {Uma atualização sobre seu bot no {product_name}} other {Uma atualização sobre sua conta do {product_name}}}}}",
+ "body": "Olá, {username},\n\n{summary}\n\n{effects}\n\nPor quê\nRegra: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNota da nossa equipe: {statement}}}\n\nComo decidimos\n{how_we_decided}{appeals_email, select, null {} other {\n\nComo recorrer\nSe você acha que erramos, envie um e-mail para {appeals_email} até {appeal_deadline}. Se puder, escreva do endereço de e-mail da sua conta e informe o ID da decisão. O recurso é gratuito, e uma pessoa analisa cada pedido.{redress, select, null {} other {\n\n{redress}}}}}\n\nID da decisão: {decision_id}\n\nEquipe do {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Os benefícios do presente que você resgatou foram removidos",
"body": "Olá, {username},\n\nUm código de presente que você resgatou foi originalmente pago por outra pessoa. Esse pagamento foi revertido (um estorno).\n\nPor causa disso, removemos os benefícios que foram adicionados à sua conta quando você resgatou o presente.\n\n{support_email, select, null {Se você acha que isso é um erro, entre em contato com os administradores desta instância e inclua quaisquer detalhes que você tenha sobre o código do presente e quando você o resgatou.} other {Se você acha que isso é um erro, entre em contato com nossa equipe de suporte e inclua quaisquer detalhes que você tenha sobre o código do presente e quando você o resgatou.}}\n\n– Equipe do {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Sua denúncia no {product_name} foi analisada",
- "body": "Olá, {username},\n\nSua denúncia (ID: {reportId}) foi analisada por nossa equipe de segurança.{hasComment, select, yes {\n\nResposta da equipe de segurança:\n{publicComment}} other {}}\n\nAgradecemos por ajudar a manter o {product_name} seguro para todos. Levamos todas as denúncias a sério e agradecemos sua contribuição para a comunidade.\n\n{safety_email, select, null {Se você tiver alguma dúvida ou preocupação sobre este resultado, entre em contato com os administradores desta instância.} other {Se você tiver alguma dúvida ou preocupação sobre este resultado, entre em contato com {safety_email}.}}\n\n– equipe de segurança do {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Sua conta do {product_name} será excluída permanentemente",
- "body": "Olá, {username},\n\nA exclusão permanente da sua conta do {product_name} foi agendada.\n\nExclusão agendada: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Esta é uma medida séria. Os dados da sua conta serão excluídos permanentemente na data agendada.\n\nSe você acredita que esta decisão foi incorreta, você pode enviar um recurso. {appeals_email, select, null {Entre em contato com os administradores desta instância.} other {Envie um e-mail para {appeals_email} a partir deste endereço de e-mail.}}\n\n– equipe de segurança do {product_name}"
+ "body": "Olá, {username},\n\nAnalisamos sua denúncia (ID: {reportId}).\n\n{outcome, select, removed {Removemos o conteúdo que você denunciou porque ele violava nossas regras.} restricted {Constatamos que a conta que você denunciou violava nossas regras e aplicamos uma restrição a ela. Não informamos que medida tomamos contra outra conta, porque isso é um dado pessoal do titular.} action_taken {Constatamos que o que você denunciou violava nossas regras e tomamos uma medida. Não informamos que medida tomamos contra outra conta, porque isso é um dado pessoal do titular.} no_violation {Constatamos que o conteúdo ou a conta que você denunciou não viola nossas regras, então não fizemos nenhuma alteração.} other {Encerramos sua denúncia.}}{hasComment, select, yes {\n\nNota da nossa equipe: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nSe você discordar, envie um e-mail para {appeals_email} em até 60 dias informando o ID da denúncia. Se você estiver na UE, também pode submeter a questão a um organismo de resolução extrajudicial de litígios certificado ou apresentar uma reclamação ao coordenador dos serviços digitais do seu país.}}\n\nEquipe do {product_name}"
},
"self_deletion_scheduled": {
"subject": "A exclusão da sua conta do {product_name} está agendada",
"body": "Olá, {username},\n\nVocê solicitou a exclusão da sua conta do {product_name}. Sua conta está agendada para exclusão permanente em:\n\n{deletionDate, date, full} às {deletionDate, time, short}\n\nSe você não solicitou isso, entre em sua conta para cancelar a exclusão. Também recomendamos alterar sua senha para proteger sua conta.\n\n– Equipe do {product_name}"
- },
- "unban_notification": {
- "subject": "A suspensão da sua conta do {product_name} foi encerrada",
- "body": "Olá, {username},\n\nBoas notícias: a suspensão da sua conta do {product_name} foi encerrada.\n\n{reason, select,\n null {}\n other {Motivo: {reason}\n\n}\n}Agora você pode entrar novamente e continuar usando o {product_name} normalmente.\n\n– equipe de segurança do {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ro.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ro.json
index 308fd6288..a6e531642 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ro.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ro.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Contul tău {product_name} va fi șters din cauza inactivității",
- "body": "Salut {username},\n\nContul tău {product_name} a fost inactiv o perioadă lungă, așa că este programat pentru ștergere permanentă la:\n\n{deletionDate, date, full} la ora {deletionDate, time, short}{reason, select, null {} other {\n\nMotiv: {reason}}}\n\n{safety_email, select, null {Dacă vrei să îți păstrezi contul, contactează administratorii acestei instanțe înainte de această dată.} other {Dacă vrei să îți păstrezi contul, scrie la {safety_email} de pe această adresă de e-mail înainte de această dată.}}\n\n– Echipa {product_name}"
+ "body": "Salut {username},\n\nContul tău {product_name} a fost inactiv o perioadă lungă, așa că am programat ștergerea lui pentru {deletion_date}.\n\nCa să îți păstrezi contul, conectează-te înainte de această dată. {support_email, select, null {Dacă ai întrebări, contactează administratorii acestei instanțe.} other {Dacă ai întrebări, contactează {support_email}.}}\n\nEchipa {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Ștergerea contului {product_name} a fost programată",
- "body": "Salut {username},\n\nConform solicitării tale, contul tău {product_name} este programat pentru ștergere permanentă la:\n\n{deletionDate, date, full} la ora {deletionDate, time, short}{reason, select, null {} other {\n\nMotiv: {reason}}}\n\nPână atunci, contul tău este blocat. {safety_email, select, null {Dacă nu ai solicitat acest lucru sau vrei să îți păstrezi contul, contactează administratorii acestei instanțe înainte de această dată.} other {Dacă nu ai solicitat acest lucru sau vrei să îți păstrezi contul, scrie la {safety_email} de pe această adresă de e-mail înainte de această dată.}}\n\n– Echipa {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Contul tău {product_name} va fi șters permanent",
- "body": "Salut {username},\n\nContul tău {product_name} a fost programat pentru ștergere permanentă din cauza încălcării Termenilor și condițiilor sau a regulilor comunității.\n\nȘtergere programată: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motiv: {reason}\n\n}\n}Aceasta este o măsură disciplinară serioasă. Datele contului tău vor fi șterse permanent la data programată.\n\n{legalLinks, select,\n both {Te rugăm să consulți:\n- Termeni și condiții: {termsUrl}\n- Regulile comunității: {guidelinesUrl}\n\n}\n terms {Te rugăm să consulți:\n- Termeni și condiții: {termsUrl}\n\n}\n guidelines {Te rugăm să consulți:\n- Regulile comunității: {guidelinesUrl}\n\n}\n other {}\n}Procesul de contestare:\nDacă crezi că această decizie a fost incorectă sau nejustificată, ai la dispoziție 60 de zile pentru a depune o contestație. {appeals_email, select, null {Contactează administratorii acestei instanțe.} other {Trimite un e-mail la {appeals_email} de la această adresă.}}\n\nÎn contestația ta:\n- Explică clar de ce crezi că decizia a fost incorectă sau nejustificată\n- Adaugă orice dovadă sau context relevant\n\nUn membru al echipei de siguranță {product_name} va analiza contestația ta și poate suspenda ștergerea programată până la luarea unei decizii finale.\n\n– Echipa de siguranță {product_name}"
- },
- "account_temp_banned": {
- "subject": "Contul tău {product_name} a fost suspendat temporar",
- "body": "Salut {username},\n\nContul tău {product_name} a fost suspendat temporar pentru încălcarea Termenilor și condițiilor sau a regulilor comunității.\n\nDurată: {durationHours, plural,\n one {1 oră}\n few {# ore}\n other {# de ore}\n}\nSuspendat până la: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Motiv: {reason}\n\n}\n}În acest timp, nu vei putea accesa contul.\n\n{legalLinks, select,\n both {Te rugăm să consulți:\n- Termeni și condiții: {termsUrl}\n- Regulile comunității: {guidelinesUrl}\n\n}\n terms {Te rugăm să consulți:\n- Termeni și condiții: {termsUrl}\n\n}\n guidelines {Te rugăm să consulți:\n- Regulile comunității: {guidelinesUrl}\n\n}\n other {}\n}Dacă crezi că această decizie a fost incorectă sau nejustificată, poți depune o contestație. {appeals_email, select, null {Contactează administratorii acestei instanțe și explică clar de ce crezi că decizia a fost incorectă.} other {Trimite un e-mail la {appeals_email} de la această adresă și explică clar de ce crezi că decizia a fost incorectă.}} Vom analiza contestația ta și îți vom comunica decizia noastră.\n\n– Echipa de siguranță {product_name}"
+ "body": "Salut {username},\n\nAșa cum ai cerut, am programat ștergerea contului tău {product_name} pentru {deletion_date}.\n\nCa să îți păstrezi contul, conectează-te înainte de {deletion_date}. {safety_email, select, null {Dacă nu ai cerut acest lucru, contactează administratorii acestei instanțe.} other {Dacă nu ai cerut acest lucru, contactează {safety_email}.}}\n\nEchipa {product_name}"
},
"donation_confirmation": {
"subject": "Îți mulțumim pentru donația către {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Am luat o decizie cu privire la raportul tău de pe {product_name}",
- "body": "Salut,\n\nEchipa noastră de siguranță a analizat raportul tău conform Digital Services Act (ID: {reportId}) și a luat o decizie.{hasComment, select, yes {\n\nRăspuns de la echipa de siguranță:\n{publicComment}} other {}}\n\nNu oferim detalii despre măsurile luate împotriva contului altei persoane, deoarece acestea sunt datele sale personale.\n\nDacă nu ești de acord cu această decizie, poți depune gratuit o contestație în termen de 60 de zile. {appeals_email, select, null {Contactează administratorii acestei instanțe, include ID-ul raportului tău și explică de ce crezi că decizia este incorectă.} other {Trimite un e-mail la {appeals_email} de la această adresă, include ID-ul raportului tău și explică de ce crezi că decizia este incorectă.}} Dacă te afli în UE, poți, de asemenea, să înaintezi litigiul unui organism certificat de soluționare extrajudiciară a litigiilor. Nimic din toate acestea nu îți afectează dreptul de a te adresa instanței.\n\n– Echipa de siguranță {product_name}"
+ "body": "Salut,\n\nAm analizat raportul tău (ID: {reportId}).\n\n{outcome, select, removed {Am eliminat conținutul raportat de tine, deoarece încălca regulile noastre.} restricted {Am constatat că contul raportat de tine a încălcat regulile noastre și l-am restricționat. Nu dezvăluim ce măsuri am luat împotriva altui cont, deoarece acestea sunt date personale ale titularului său.} action_taken {Am constatat că ceea ce ai raportat a încălcat regulile noastre și am luat măsuri. Nu dezvăluim ce măsuri am luat împotriva altui cont, deoarece acestea sunt date personale ale titularului său.} no_violation {Am constatat că conținutul sau contul raportat de tine nu încalcă regulile noastre, așa că nu am schimbat nimic.} other {Am închis raportul tău.}}{hasComment, select, yes {\n\nNotă de la echipa noastră: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nDacă nu ești de acord, scrie la {appeals_email} în termen de 60 de zile și include ID-ul raportului. Dacă te afli în UE, poți să te adresezi și unui organism certificat de soluționare extrajudiciară a litigiilor sau să depui o plângere la coordonatorul serviciilor digitale din țara ta.}}\n\nEchipa {product_name}"
},
"dsa_report_verification": {
"subject": "Verifică-ți e-mailul pentru un raport DSA",
@@ -51,6 +43,14 @@
"subject": "Verifică-ți adresa de e-mail pentru {product_name}",
"body": "Salut {username},\n\nTe rugăm să verifici adresa de e-mail a contului tău {product_name} apăsând pe linkul de mai jos:\n\n{verifyUrl}\n\nDacă nu ai creat un cont {product_name}, poți ignora în siguranță acest e-mail.\n\nAcest link este valabil 24 de ore.\n\n– Echipa {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Am anulat o decizie privind contul tău {product_name}} other {O restricție asupra contului tău {product_name} s-a încheiat}}",
+ "body": "Salut {username},\n\n{outcome, select, reversed {{decision_id, select, null {Am reanalizat o decizie privind contul tău și am anulat-o.} other {Am reanalizat decizia {decision_id} și am anulat-o.}} Ne pare rău pentru neplăcerile create.} other {{decision_id, select, null {Am ridicat restricția asupra contului tău.} other {Am ridicat restricția din decizia {decision_id}.}}}}{restores_access, select, yes { Te poți conecta din nou și poți folosi {product_name}.} other {}}{statement, select, null {} other {\n\nNotă de la echipa noastră: {statement}}}{content_removed, select, yes {\n\nConținutul pe care l-am eliminat nu poate fi restaurat.} other {}}\n\nEchipa {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {O actualizare despre contul tău {product_name}} other {{kind_label, select, warning {Un avertisment privind contul tău {product_name}} suspension {Contul tău {product_name} este suspendat} ban {Contul tău {product_name} este suspendat permanent} closure {Contul tău {product_name} este închis} feature_limit {Unele funcții ale contului tău {product_name} sunt limitate} content_removal {Am eliminat mesaje pe care le-ai trimis pe {product_name}} profile_reset {Am resetat unele părți ale profilului tău {product_name}} community_removal {Am eliminat comunitatea ta de pe {product_name}} bot {O actualizare despre botul tău de pe {product_name}} other {O actualizare despre contul tău {product_name}}}}}",
+ "body": "Salut {username},\n\n{summary}\n\n{effects}\n\nDe ce\nRegulă: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNotă de la echipa noastră: {statement}}}\n\nCum am decis\n{how_we_decided}{appeals_email, select, null {} other {\n\nCum poți contesta decizia\nDacă crezi că am greșit, scrie la {appeals_email} până la {appeal_deadline}. Dacă poți, scrie de pe adresa de e-mail asociată contului și include ID-ul deciziei. Contestațiile sunt gratuite, iar fiecare este analizată de o persoană.{redress, select, null {} other {\n\n{redress}}}}}\n\nID decizie: {decision_id}\n\nEchipa {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Beneficiile din cadoul pe care l-ai valorificat au fost eliminate",
"body": "Salut {username},\n\nUn cod cadou pe care l-ai valorificat a fost plătit inițial de altcineva. De atunci, plata respectivă a fost retrasă (o anulare a plății).\n\nDin această cauză, am eliminat beneficiile care au fost adăugate contului tău atunci când ai valorificat cadoul.\n\n{support_email, select, null {Dacă crezi că este o greșeală, te rugăm să contactezi administratorii acestei instanțe și să incluzi orice detalii ai despre codul cadou și despre momentul în care l-ai valorificat.} other {Dacă crezi că este o greșeală, te rugăm să contactezi asistența și să incluzi orice detalii ai despre codul cadou și despre momentul în care l-ai valorificat.}}\n\n– Echipa {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Raportul tău de pe {product_name} a fost analizat",
- "body": "Salut {username},\n\nRaportul tău (ID: {reportId}) a fost analizat de echipa noastră de siguranță.{hasComment, select, yes {\n\nRăspuns de la echipa de siguranță:\n{publicComment}} other {}}\n\nÎți mulțumim că ne ajuți să păstrăm {product_name} în siguranță pentru toată lumea. Luăm în serios toate rapoartele și apreciem contribuția ta la comunitate.\n\n{safety_email, select, null {Dacă ai întrebări sau nelămuriri cu privire la acest rezultat, te rugăm să contactezi administratorii acestei instanțe.} other {Dacă ai întrebări sau nelămuriri cu privire la acest rezultat, te rugăm să scrii la {safety_email}.}}\n\n– Echipa de siguranță {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Contul tău {product_name} va fi șters permanent",
- "body": "Salut {username},\n\nContul tău {product_name} a fost programat pentru ștergere permanentă.\n\nȘtergere programată: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Motiv: {reason}\n\n}\n}Aceasta este o măsură disciplinară serioasă. Datele contului tău vor fi șterse permanent la data programată.\n\nDacă crezi că această decizie a fost incorectă, poți depune o contestație. {appeals_email, select, null {Contactează administratorii acestei instanțe.} other {Trimite un e-mail la {appeals_email} de la această adresă.}}\n\n– Echipa de siguranță {product_name}"
+ "body": "Salut {username},\n\nAm analizat raportul tău (ID: {reportId}).\n\n{outcome, select, removed {Am eliminat conținutul raportat de tine, deoarece încălca regulile noastre.} restricted {Am constatat că contul raportat de tine a încălcat regulile noastre și l-am restricționat. Nu dezvăluim ce măsuri am luat împotriva altui cont, deoarece acestea sunt date personale ale titularului său.} action_taken {Am constatat că ceea ce ai raportat a încălcat regulile noastre și am luat măsuri. Nu dezvăluim ce măsuri am luat împotriva altui cont, deoarece acestea sunt date personale ale titularului său.} no_violation {Am constatat că conținutul sau contul raportat de tine nu încalcă regulile noastre, așa că nu am schimbat nimic.} other {Am închis raportul tău.}}{hasComment, select, yes {\n\nNotă de la echipa noastră: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nDacă nu ești de acord, scrie la {appeals_email} în termen de 60 de zile și include ID-ul raportului. Dacă te afli în UE, poți să te adresezi și unui organism certificat de soluționare extrajudiciară a litigiilor sau să depui o plângere la coordonatorul serviciilor digitale din țara ta.}}\n\nEchipa {product_name}"
},
"self_deletion_scheduled": {
"subject": "Ștergerea contului {product_name} a fost programată",
"body": "Salut {username},\n\nAi solicitat ștergerea contului tău {product_name}. Contul tău este programat pentru ștergere permanentă la:\n\n{deletionDate, date, full} la ora {deletionDate, time, short}\n\nDacă nu ai solicitat acest lucru, conectează-te la contul tău pentru a anula ștergerea. De asemenea, îți recomandăm să-ți schimbi parola pentru a-ți securiza contul.\n\n– Echipa {product_name}"
- },
- "unban_notification": {
- "subject": "Suspendarea contului {product_name} a fost ridicată",
- "body": "Salut {username},\n\nVești bune: suspendarea contului tău {product_name} a fost ridicată.\n\n{reason, select,\n null {}\n other {Motiv: {reason}\n\n}\n}Acum te poți conecta din nou și poți continua să folosești {product_name} în mod normal.\n\n– Echipa de siguranță {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ru.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ru.json
index d5ef72ae6..ed8268aed 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ru.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/ru.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Твой аккаунт {product_name} будет удалён из-за неактивности",
- "body": "Привет, {username},\n\nТвой аккаунт {product_name} долгое время был неактивен, поэтому его безвозвратное удаление запланировано на:\n\n{deletionDate, date, full} в {deletionDate, time, short}{reason, select, null {} other {\n\nПричина: {reason}}}\n\n{safety_email, select, null {Если хочешь сохранить аккаунт, свяжись с администраторами этого экземпляра до этой даты.} other {Если хочешь сохранить аккаунт, напиши на {safety_email} с этого адреса электронной почты до этой даты.}}\n\n– Команда {product_name}"
+ "body": "Привет, {username},\n\nТвой аккаунт {product_name} долгое время был неактивен, поэтому мы запланировали его удаление на {deletion_date}.\n\nЧтобы сохранить аккаунт, войди в него до этой даты. {support_email, select, null {Если у тебя есть вопросы, свяжись с администраторами этого экземпляра.} other {Если у тебя есть вопросы, напиши на {support_email}.}}\n\nКоманда {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Запланировано удаление твоего аккаунта {product_name}",
- "body": "Привет, {username},\n\nПо твоему запросу безвозвратное удаление аккаунта {product_name} запланировано на:\n\n{deletionDate, date, full} в {deletionDate, time, short}{reason, select, null {} other {\n\nПричина: {reason}}}\n\nДо этого момента твой аккаунт заблокирован. {safety_email, select, null {Если ты не запрашивал удаление или хочешь сохранить аккаунт, свяжись с администраторами этого экземпляра до этой даты.} other {Если ты не запрашивал удаление или хочешь сохранить аккаунт, напиши на {safety_email} с этого адреса электронной почты до этой даты.}}\n\n– Команда {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Твой аккаунт {product_name} будет безвозвратно удалён",
- "body": "Привет, {username},\n\nМы запланировали безвозвратное удаление твоего аккаунта {product_name} из-за нарушения наших Условий использования или Правил сообщества.\n\nЗапланированное удаление: {deletionDate, date, full} в {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Это серьёзная мера. Данные твоего аккаунта будут безвозвратно удалены в запланированную дату.\n\n{legalLinks, select,\n both {Пожалуйста, ознакомься:\n- Условия использования: {termsUrl}\n- Правила сообщества: {guidelinesUrl}\n\n}\n terms {Пожалуйста, ознакомься:\n- Условия использования: {termsUrl}\n\n}\n guidelines {Пожалуйста, ознакомься:\n- Правила сообщества: {guidelinesUrl}\n\n}\n other {}\n}Процесс апелляции:\nЕсли ты считаешь, что это решение было неверным или необоснованным, у тебя есть 60 дней, чтобы подать апелляцию. {appeals_email, select, null {Свяжись с администраторами этого экземпляра.} other {Отправь письмо на {appeals_email} с этого адреса электронной почты.}}\n\nВ своей апелляции:\n- Чётко объясни, почему ты считаешь, что решение было неверным или необоснованным\n- Предоставь любые соответствующие доказательства или контекст\n\nСотрудник команды безопасности {product_name} рассмотрит твою апелляцию и может приостановить запланированное удаление до принятия окончательного решения.\n\n– Команда безопасности {product_name}"
- },
- "account_temp_banned": {
- "subject": "Твой аккаунт {product_name} временно заблокирован",
- "body": "Привет, {username},\n\nТвой аккаунт {product_name} временно заблокирован за нарушение наших Условий использования или Правил сообщества.\n\nДлительность: {durationHours, plural,\n one {# час}\n few {# часа}\n many {# часов}\n other {# часа}\n}\nЗаблокирован до: {bannedUntil, date, full} в {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}В течение этого времени ты не сможешь получить доступ к своему аккаунту.\n\n{legalLinks, select,\n both {Пожалуйста, ознакомься:\n- Условия использования: {termsUrl}\n- Правила сообщества: {guidelinesUrl}\n\n}\n terms {Пожалуйста, ознакомься:\n- Условия использования: {termsUrl}\n\n}\n guidelines {Пожалуйста, ознакомься:\n- Правила сообщества: {guidelinesUrl}\n\n}\n other {}\n}Если ты считаешь, что это решение было неверным или необоснованным, ты можешь подать апелляцию. {appeals_email, select, null {Свяжись с администраторами этого экземпляра и чётко объясни, почему ты считаешь решение неверным.} other {Отправь письмо на {appeals_email} с этого адреса электронной почты и чётко объясни, почему ты считаешь решение неверным.}} Мы рассмотрим твою апелляцию и сообщим о нашем решении.\n\n– Команда безопасности {product_name}"
+ "body": "Привет, {username},\n\nПо твоей просьбе мы запланировали удаление твоего аккаунта {product_name} на {deletion_date}.\n\nЧтобы сохранить аккаунт, войди в него до {deletion_date}. {safety_email, select, null {Если запрос был не от тебя, свяжись с администраторами этого экземпляра.} other {Если запрос был не от тебя, напиши на {safety_email}.}}\n\nКоманда {product_name}"
},
"donation_confirmation": {
"subject": "Спасибо за твоё пожертвование для {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Мы приняли решение по твоей жалобе в {product_name}",
- "body": "Привет,\n\nНаша команда безопасности рассмотрела твою жалобу по Закону о цифровых услугах (ID: {reportId}) и приняла решение.{hasComment, select, yes {\n\nОтвет команды безопасности:\n{publicComment}} other {}}\n\nМы не раскрываем подробности мер, принятых в отношении аккаунта другого человека, так как это его персональные данные.\n\nЕсли ты не согласен с этим решением, ты можешь бесплатно подать апелляцию в течение 60 дней. {appeals_email, select, null {Свяжись с администраторами этого экземпляра, укажи ID жалобы и объясни, почему считаешь решение неверным.} other {Отправь письмо на {appeals_email} с этого адреса электронной почты, укажи ID жалобы и объясни, почему считаешь решение неверным.}} Если ты находишься в ЕС, ты также можешь передать спор в сертифицированный орган по внесудебному урегулированию споров. Всё это не влияет на твоё право обратиться в суд.\n\n– Команда безопасности {product_name}"
+ "body": "Привет!\n\nМы рассмотрели твою жалобу (ID: {reportId}).\n\n{outcome, select, removed {Мы удалили контент, указанный в твоей жалобе, потому что он нарушал наши правила.} restricted {Мы установили, что аккаунт, указанный в твоей жалобе, нарушил наши правила, и ограничили его. Мы не сообщаем, какие меры приняты в отношении другого аккаунта, потому что это персональные данные его владельца.} action_taken {Мы установили, что указанное в твоей жалобе нарушило наши правила, и приняли меры. Мы не сообщаем, какие меры приняты в отношении другого аккаунта, потому что это персональные данные его владельца.} no_violation {Мы установили, что контент или аккаунт, указанный в твоей жалобе, не нарушает наши правила, поэтому оставили всё как есть.} other {Мы закрыли твою жалобу.}}{hasComment, select, yes {\n\nКомментарий нашей команды: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nЕсли решение кажется тебе неверным, напиши на {appeals_email} в течение 60 дней и укажи ID жалобы. Если ты находишься в ЕС, ты также можешь передать спор в сертифицированный орган внесудебного разрешения споров или подать жалобу координатору цифровых услуг в своей стране.}}\n\nКоманда {product_name}"
},
"dsa_report_verification": {
"subject": "Подтверди свой адрес электронной почты для жалобы по DSA",
@@ -51,6 +43,14 @@
"subject": "Подтверди адрес электронной почты для {product_name}",
"body": "Привет, {username},\n\nПожалуйста, подтверди адрес электронной почты своего аккаунта {product_name}, нажав на ссылку ниже:\n\n{verifyUrl}\n\nЕсли ты не создавал аккаунт {product_name}, можешь смело проигнорировать это письмо.\n\nЭта ссылка действительна в течение 24 часов.\n\n– Команда {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Мы отменили решение по твоему аккаунту {product_name}} other {Ограничение твоего аккаунта {product_name} больше не действует}}",
+ "body": "Привет, {username},\n\n{outcome, select, reversed {{decision_id, select, null {Мы повторно рассмотрели решение по твоему аккаунту и отменили его.} other {Мы повторно рассмотрели решение {decision_id} и отменили его.}} Приносим извинения за неудобства.} other {{decision_id, select, null {Мы сняли ограничение с твоего аккаунта.} other {Мы сняли ограничение, введённое решением {decision_id}.}}}}{restores_access, select, yes { Ты снова можешь входить в аккаунт и пользоваться {product_name}.} other {}}{statement, select, null {} other {\n\nКомментарий нашей команды: {statement}}}{content_removed, select, yes {\n\nУдалённый контент восстановить нельзя.} other {}}\n\nКоманда {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Информация о твоём аккаунте {product_name}} other {{kind_label, select, warning {Предупреждение по твоему аккаунту {product_name}} suspension {Твой аккаунт {product_name} временно заблокирован} ban {Твой аккаунт {product_name} заблокирован} closure {Твой аккаунт {product_name} закрыт} feature_limit {Некоторые функции твоего аккаунта {product_name} ограничены} content_removal {Мы удалили твои сообщения в {product_name}} profile_reset {Мы сбросили часть данных твоего профиля {product_name}} community_removal {Мы удалили твоё сообщество в {product_name}} bot {Информация о твоём боте в {product_name}} other {Информация о твоём аккаунте {product_name}}}}}",
+ "body": "Привет, {username},\n\n{summary}\n\n{effects}\n\nПочему\nПравило: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nКомментарий нашей команды: {statement}}}\n\nКак мы приняли решение\n{how_we_decided}{appeals_email, select, null {} other {\n\nКак обжаловать решение\nЕсли ты считаешь, что мы ошиблись, напиши на {appeals_email} до {appeal_deadline}. По возможности пиши с адреса электронной почты, привязанного к твоему аккаунту, и укажи ID решения. Апелляции бесплатны, и каждую из них рассматривает человек.{redress, select, null {} other {\n\n{redress}}}}}\n\nID решения: {decision_id}\n\nКоманда {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Привилегии за активированный подарок были удалены",
"body": "Привет, {username},\n\nПодарочный код, который ты активировал, изначально был оплачен другим человеком. Этот платёж был впоследствии отменён (возвратный платёж).\n\nИз-за этого мы удалили привилегии, которые были добавлены в твой аккаунт при активации подарка.\n\n{support_email, select, null {Если ты считаешь, что это ошибка, пожалуйста, свяжись с администраторами этого экземпляра и укажи все имеющиеся детали о подарочном коде и дате его активации.} other {Если ты считаешь, что это ошибка, пожалуйста, свяжись с нашей службой поддержки и укажи все имеющиеся детали о подарочном коде и дате его активации.}}\n\n– Команда {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Твоя жалоба в {product_name} рассмотрена",
- "body": "Привет, {username},\n\nТвоя жалоба (ID: {reportId}) была рассмотрена нашей командой безопасности.{hasComment, select, yes {\n\nОтвет команды безопасности:\n{publicComment}} other {}}\n\nСпасибо за помощь в обеспечении безопасности {product_name} для всех. Мы серьёзно относимся ко всем жалобам и ценим твой вклад в сообщество.\n\n{safety_email, select, null {Если у тебя есть вопросы или сомнения по поводу этого результата, пожалуйста, свяжись с администраторами этого экземпляра.} other {Если у тебя есть вопросы или сомнения по поводу этого результата, пожалуйста, напиши на {safety_email}.}}\n\n– Команда безопасности {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Твой аккаунт {product_name} будет безвозвратно удалён",
- "body": "Привет, {username},\n\nМы запланировали безвозвратное удаление твоего аккаунта {product_name}.\n\nЗапланированное удаление: {deletionDate, date, full} в {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Это серьёзная мера. Данные твоего аккаунта будут безвозвратно удалены в запланированную дату.\n\nЕсли ты считаешь, что это решение было неверным, ты можешь подать апелляцию. {appeals_email, select, null {Свяжись с администраторами этого экземпляра.} other {Отправь письмо на {appeals_email} с этого адреса электронной почты.}}\n\n– Команда безопасности {product_name}"
+ "body": "Привет, {username},\n\nМы рассмотрели твою жалобу (ID: {reportId}).\n\n{outcome, select, removed {Мы удалили контент, указанный в твоей жалобе, потому что он нарушал наши правила.} restricted {Мы установили, что аккаунт, указанный в твоей жалобе, нарушил наши правила, и ограничили его. Мы не сообщаем, какие меры приняты в отношении другого аккаунта, потому что это персональные данные его владельца.} action_taken {Мы установили, что указанное в твоей жалобе нарушило наши правила, и приняли меры. Мы не сообщаем, какие меры приняты в отношении другого аккаунта, потому что это персональные данные его владельца.} no_violation {Мы установили, что контент или аккаунт, указанный в твоей жалобе, не нарушает наши правила, поэтому оставили всё как есть.} other {Мы закрыли твою жалобу.}}{hasComment, select, yes {\n\nКомментарий нашей команды: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nЕсли решение кажется тебе неверным, напиши на {appeals_email} в течение 60 дней и укажи ID жалобы. Если ты находишься в ЕС, ты также можешь передать спор в сертифицированный орган внесудебного разрешения споров или подать жалобу координатору цифровых услуг в своей стране.}}\n\nКоманда {product_name}"
},
"self_deletion_scheduled": {
"subject": "Запланировано удаление твоего аккаунта {product_name}",
"body": "Привет, {username},\n\nТы запросил удаление своего аккаунта {product_name}. Безвозвратное удаление запланировано на:\n\n{deletionDate, date, full} в {deletionDate, time, short}\n\nЕсли ты не запрашивал это, войди в свой аккаунт, чтобы отменить удаление. Также рекомендуем сменить пароль, чтобы защитить свой аккаунт.\n\n– Команда {product_name}"
- },
- "unban_notification": {
- "subject": "Блокировка твоего аккаунта {product_name} снята",
- "body": "Привет, {username},\n\nХорошие новости: блокировка твоего аккаунта {product_name} снята.\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Теперь ты можешь снова войти в аккаунт и продолжить пользоваться {product_name} как обычно.\n\n– Команда безопасности {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/sv-SE.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/sv-SE.json
index 9ed08ad9f..53818cd1d 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/sv-SE.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/sv-SE.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Ditt {product_name}-konto kommer att raderas på grund av inaktivitet",
- "body": "Hej {username},\n\nDitt {product_name}-konto har varit inaktivt länge, så permanent radering av kontot är planerad till följande tidpunkt:\n\n{deletionDate, date, full} kl. {deletionDate, time, short}{reason, select, null {} other {\n\nAnledning: {reason}}}\n\n{safety_email, select, null {Om du vill behålla ditt konto, kontakta administratörerna för den här instansen före det datumet.} other {Om du vill behålla ditt konto, kontakta {safety_email} från den här e-postadressen före det datumet.}}\n\n– {product_name}-teamet"
+ "body": "Hej {username},\n\nDitt {product_name}-konto har varit inaktivt länge, så vi har schemalagt radering av kontot den {deletion_date}.\n\nLogga in före det datumet om du vill behålla ditt konto. {support_email, select, null {Om du har frågor, kontakta administratörerna för den här instansen.} other {Om du har frågor, kontakta {support_email}.}}\n\n{product_name}-teamet"
},
"account_deletion_scheduled_requested": {
"subject": "Raderingen av ditt {product_name}-konto är schemalagd",
- "body": "Hej {username},\n\nSom du har begärt är permanent radering av ditt {product_name}-konto planerad till följande tidpunkt:\n\n{deletionDate, date, full} kl. {deletionDate, time, short}{reason, select, null {} other {\n\nAnledning: {reason}}}\n\nDitt konto är låst fram till dess. {safety_email, select, null {Om du inte begärde detta, eller om du vill behålla ditt konto, kontakta administratörerna för den här instansen före det datumet.} other {Om du inte begärde detta, eller om du vill behålla ditt konto, kontakta {safety_email} från den här e-postadressen före det datumet.}}\n\n– {product_name}-teamet"
- },
- "account_scheduled_deletion": {
- "subject": "Ditt {product_name}-konto kommer att raderas permanent",
- "body": "Hej {username},\n\nDitt {product_name}-konto har schemalagts för permanent radering på grund av brott mot våra användarvillkor eller communityriktlinjer.\n\nSchemalagd radering: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Anledning: {reason}\n\n}\n}Detta är en allvarlig åtgärd. Dina kontodata kommer att raderas permanent på det schemalagda datumet.\n\n{legalLinks, select,\n both {Granska:\n- Användarvillkor: {termsUrl}\n- Communityriktlinjer: {guidelinesUrl}\n\n}\n terms {Granska:\n- Användarvillkor: {termsUrl}\n\n}\n guidelines {Granska:\n- Communityriktlinjer: {guidelinesUrl}\n\n}\n other {}\n}Överklagandeprocess:\nOm du anser att detta beslut var felaktigt eller obefogat har du 60 dagar på dig att överklaga. {appeals_email, select, null {Kontakta administratörerna för den här instansen.} other {Mejla {appeals_email} från den här e-postadressen.}}\n\nI ditt överklagande:\n- Förklara tydligt varför du anser att beslutet var felaktigt eller obefogat\n- Bifoga relevanta bevis eller bakgrundsinformation\n\nEn medarbetare i säkerhetsteamet på {product_name} kommer att granska ditt överklagande och kan pausa den planerade raderingen tills ett slutgiltigt beslut har fattats.\n\n– Säkerhetsteamet på {product_name}"
- },
- "account_temp_banned": {
- "subject": "Ditt {product_name}-konto har tillfälligt stängts av",
- "body": "Hej {username},\n\nDitt {product_name}-konto har tillfälligt stängts av på grund av brott mot våra användarvillkor eller communityriktlinjer.\n\nVaraktighet: {durationHours, plural,\n =1 {1 timme}\n other {# timmar}\n}\nAvstängningen upphör: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Anledning: {reason}\n\n}\n}Under denna tid kommer du inte att kunna komma åt ditt konto.\n\n{legalLinks, select,\n both {Granska:\n- Användarvillkor: {termsUrl}\n- Communityriktlinjer: {guidelinesUrl}\n\n}\n terms {Granska:\n- Användarvillkor: {termsUrl}\n\n}\n guidelines {Granska:\n- Communityriktlinjer: {guidelinesUrl}\n\n}\n other {}\n}Om du anser att detta beslut var felaktigt eller obefogat kan du överklaga. {appeals_email, select, null {Kontakta administratörerna för den här instansen och förklara tydligt varför du anser att beslutet var felaktigt.} other {Kontakta vårt supportteam på {appeals_email} från den här e-postadressen och förklara tydligt varför du anser att beslutet var felaktigt.}} Vi kommer att granska ditt överklagande och svara med vårt beslut.\n\n– Säkerhetsteamet på {product_name}"
+ "body": "Hej {username},\n\nSom du begärde har vi schemalagt radering av ditt {product_name}-konto den {deletion_date}.\n\nLogga in före den {deletion_date} om du vill behålla ditt konto. {safety_email, select, null {Om du inte har begärt detta, kontakta administratörerna för den här instansen.} other {Om du inte har begärt detta, kontakta {safety_email}.}}\n\n{product_name}-teamet"
},
"donation_confirmation": {
"subject": "Tack för din donation till {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Vi har fattat ett beslut om din anmälan på {product_name}",
- "body": "Hej,\n\nVårt säkerhetsteam har granskat din anmälan enligt förordningen om digitala tjänster (ID: {reportId}) och fattat ett beslut.{hasComment, select, yes {\n\nSvar från säkerhetsteamet:\n{publicComment}} other {}}\n\nVi delar inte uppgifter om åtgärder mot någon annans konto, eftersom det är den personens personuppgifter.\n\nOm du inte håller med om beslutet kan du överklaga kostnadsfritt inom 60 dagar. {appeals_email, select, null {Kontakta administratörerna för den här instansen, ange ditt anmälnings-ID och förklara varför du anser att beslutet är felaktigt.} other {Mejla {appeals_email} från den här e-postadressen, ange ditt anmälnings-ID och förklara varför du anser att beslutet är felaktigt.}} Om du befinner dig i EU kan du också hänskjuta tvisten till ett certifierat organ för tvistlösning utanför domstol. Inget av detta påverkar din rätt att vända dig till domstol.\n\n– Säkerhetsteamet på {product_name}"
+ "body": "Hej,\n\nVi har granskat din anmälan (ID: {reportId}).\n\n{outcome, select, removed {Vi har tagit bort innehållet som du anmälde eftersom det bröt mot våra regler.} restricted {Vi har kommit fram till att kontot som du anmälde bröt mot våra regler, och vi har begränsat det. Vi berättar inte vilken åtgärd vi har vidtagit mot ett annat konto, eftersom det är den personens personuppgifter.} action_taken {Vi har kommit fram till att det du anmälde bröt mot våra regler, och vi har vidtagit åtgärder. Vi berättar inte vilken åtgärd vi har vidtagit mot ett annat konto, eftersom det är den personens personuppgifter.} no_violation {Vi har kommit fram till att innehållet eller kontot som du anmälde inte bryter mot våra regler, så vi har inte gjort något.} other {Vi har avslutat din anmälan.}}{hasComment, select, yes {\n\nKommentar från vårt team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nOm du inte håller med kan du mejla {appeals_email} inom 60 dagar och ange anmälnings-ID:t. Om du befinner dig i EU kan du också hänskjuta ärendet till ett certifierat organ för tvistlösning utanför domstol eller klaga hos samordnaren för digitala tjänster i ditt land.}}\n\n{product_name}-teamet"
},
"dsa_report_verification": {
"subject": "Verifiera din e-postadress för en DSA-anmälan",
@@ -51,6 +43,14 @@
"subject": "Verifiera din e-postadress på {product_name}",
"body": "Hej {username},\n\nVerifiera e-postadressen för ditt {product_name}-konto genom att klicka på länken nedan:\n\n{verifyUrl}\n\nOm du inte skapade ett {product_name}-konto kan du tryggt ignorera det här mejlet.\n\nDen här länken är giltig i 24 timmar.\n\n– {product_name}-teamet"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Vi har upphävt ett beslut om ditt {product_name}-konto} other {En begränsning på ditt {product_name}-konto har upphört}}",
+ "body": "Hej {username},\n\n{outcome, select, reversed {{decision_id, select, null {Vi har tittat på ett beslut om ditt konto igen och upphävt det.} other {Vi har tittat på beslut {decision_id} igen och upphävt det.}} Vi ber om ursäkt för besväret.} other {{decision_id, select, null {Vi har tagit bort begränsningen på ditt konto.} other {Vi har tagit bort begränsningen från beslut {decision_id}.}}}}{restores_access, select, yes { Du kan logga in och använda {product_name} igen.} other {}}{statement, select, null {} other {\n\nKommentar från vårt team: {statement}}}{content_removed, select, yes {\n\nInnehåll som vi har tagit bort kan inte återställas.} other {}}\n\n{product_name}-teamet"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Information om ditt {product_name}-konto} other {{kind_label, select, warning {En varning om ditt {product_name}-konto} suspension {Ditt {product_name}-konto är avstängt} ban {Ditt {product_name}-konto är bannlyst} closure {Ditt {product_name}-konto är stängt} feature_limit {Vissa funktioner är begränsade på ditt {product_name}-konto} content_removal {Vi har tagit bort meddelanden som du skickade på {product_name}} profile_reset {Vi har återställt delar av din {product_name}-profil} community_removal {Vi har tagit bort din community på {product_name}} bot {Information om din bot på {product_name}} other {Information om ditt {product_name}-konto}}}}",
+ "body": "Hej {username},\n\n{summary}\n\n{effects}\n\nVarför\nRegel: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nKommentar från vårt team: {statement}}}\n\nSå fattade vi beslutet\n{how_we_decided}{appeals_email, select, null {} other {\n\nSå överklagar du\nOm du tror att vi har gjort fel kan du mejla {appeals_email} senast {appeal_deadline}. Skriv från e-postadressen på ditt konto om du kan, och ange besluts-ID:t. Det är gratis att överklaga, och en person granskar varje överklagande.{redress, select, null {} other {\n\n{redress}}}}}\n\nBesluts-ID: {decision_id}\n\n{product_name}-teamet"
+ },
"gift_chargeback_notification": {
"subject": "Förmånerna från din inlösta present har tagits bort",
"body": "Hej {username},\n\nEn presentkod du löste in betalades ursprungligen av någon annan. Den betalningen har sedan dess återförts genom en kortreklamation (chargeback).\n\nPå grund av detta har vi tagit bort de förmåner som lades till ditt konto när du löste in presenten.\n\n{support_email, select, null {Om du tror att detta är ett misstag, kontakta administratörerna för den här instansen och ta med den information du har om presentkoden och när du löste in den.} other {Om du tror att detta är ett misstag, kontakta vårt supportteam och ta med den information du har om presentkoden och när du löste in den.}}\n\n– {product_name}-teamet"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Din anmälan på {product_name} har granskats",
- "body": "Hej {username},\n\nDin anmälan (ID: {reportId}) har granskats av vårt säkerhetsteam.{hasComment, select, yes {\n\nSvar från säkerhetsteamet:\n{publicComment}} other {}}\n\nTack för att du hjälper till att göra {product_name} tryggt för alla. Vi tar alla anmälningar på allvar och uppskattar ditt bidrag till communityn.\n\n{safety_email, select, null {Om du har några frågor eller funderingar kring detta resultat, kontakta administratörerna för den här instansen.} other {Om du har några frågor eller funderingar kring detta resultat, kontakta oss på {safety_email}.}}\n\n– Säkerhetsteamet på {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Ditt {product_name}-konto kommer att raderas permanent",
- "body": "Hej {username},\n\nDitt {product_name}-konto har schemalagts för permanent radering.\n\nSchemalagd radering: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Anledning: {reason}\n\n}\n}Detta är en allvarlig åtgärd. Dina kontodata kommer att raderas permanent på det schemalagda datumet.\n\nOm du anser att detta beslut var felaktigt kan du överklaga. {appeals_email, select, null {Kontakta administratörerna för den här instansen.} other {Mejla {appeals_email} från den här e-postadressen.}}\n\n– Säkerhetsteamet på {product_name}"
+ "body": "Hej {username},\n\nVi har granskat din anmälan (ID: {reportId}).\n\n{outcome, select, removed {Vi har tagit bort innehållet som du anmälde eftersom det bröt mot våra regler.} restricted {Vi har kommit fram till att kontot som du anmälde bröt mot våra regler, och vi har begränsat det. Vi berättar inte vilken åtgärd vi har vidtagit mot ett annat konto, eftersom det är den personens personuppgifter.} action_taken {Vi har kommit fram till att det du anmälde bröt mot våra regler, och vi har vidtagit åtgärder. Vi berättar inte vilken åtgärd vi har vidtagit mot ett annat konto, eftersom det är den personens personuppgifter.} no_violation {Vi har kommit fram till att innehållet eller kontot som du anmälde inte bryter mot våra regler, så vi har inte gjort något.} other {Vi har avslutat din anmälan.}}{hasComment, select, yes {\n\nKommentar från vårt team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nOm du inte håller med kan du mejla {appeals_email} inom 60 dagar och ange anmälnings-ID:t. Om du befinner dig i EU kan du också hänskjuta ärendet till ett certifierat organ för tvistlösning utanför domstol eller klaga hos samordnaren för digitala tjänster i ditt land.}}\n\n{product_name}-teamet"
},
"self_deletion_scheduled": {
"subject": "Raderingen av ditt {product_name}-konto är schemalagd",
"body": "Hej {username},\n\nDu har begärt att ditt {product_name}-konto ska raderas. Permanent radering av kontot är planerad till följande tidpunkt:\n\n{deletionDate, date, full} kl. {deletionDate, time, short}\n\nOm du inte begärde detta, logga in på ditt konto för att avbryta raderingen. Vi rekommenderar också att du ändrar ditt lösenord för att säkra ditt konto.\n\n– {product_name}-teamet"
- },
- "unban_notification": {
- "subject": "Avstängningen av ditt {product_name}-konto har hävts",
- "body": "Hej {username},\n\nGoda nyheter: avstängningen av ditt {product_name}-konto har hävts.\n\n{reason, select,\n null {}\n other {Anledning: {reason}\n\n}\n}Du kan nu logga in igen och fortsätta använda {product_name} som vanligt.\n\n– Säkerhetsteamet på {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/th.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/th.json
index 27362d63d..394071108 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/th.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/th.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "บัญชี {product_name} ของคุณจะถูกลบเนื่องจากไม่มีการใช้งาน",
- "body": "สวัสดี {username},\n\nบัญชี {product_name} ของคุณไม่มีการใช้งานมาเป็นเวลานาน จึงถูกกำหนดให้ลบอย่างถาวรในวันที่:\n\n{deletionDate, date, full} เวลา {deletionDate, time, short}{reason, select, null {} other {\n\nเหตุผล: {reason}}}\n\n{safety_email, select, null {หากคุณต้องการเก็บบัญชีไว้ โปรดติดต่อผู้ดูแลระบบของอินสแตนซ์นี้ก่อนวันดังกล่าว} other {หากคุณต้องการเก็บบัญชีไว้ โปรดติดต่อ {safety_email} จากที่อยู่อีเมลนี้ก่อนวันดังกล่าว}}\n\n– ทีม {product_name}"
+ "body": "สวัสดี {username},\n\nบัญชี {product_name} ของคุณไม่มีการใช้งานมาเป็นเวลานาน เราจึงกำหนดให้ลบบัญชีในวันที่ {deletion_date}\n\nหากต้องการเก็บบัญชีไว้ โปรดลงชื่อเข้าใช้ก่อนวันดังกล่าว {support_email, select, null {หากมีคำถาม โปรดติดต่อผู้ดูแลระบบของอินสแตนซ์นี้} other {หากมีคำถาม โปรดติดต่อ {support_email}}}\n\nทีม {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "บัญชี {product_name} ของคุณถูกกำหนดให้ลบแล้ว",
- "body": "สวัสดี {username},\n\nตามที่คุณร้องขอ บัญชี {product_name} ของคุณถูกกำหนดให้ลบอย่างถาวรในวันที่:\n\n{deletionDate, date, full} เวลา {deletionDate, time, short}{reason, select, null {} other {\n\nเหตุผล: {reason}}}\n\nบัญชีของคุณจะถูกล็อกจนถึงวันนั้น {safety_email, select, null {หากคุณไม่ได้ร้องขอ หรือต้องการเก็บบัญชีไว้ โปรดติดต่อผู้ดูแลระบบของอินสแตนซ์นี้ก่อนวันดังกล่าว} other {หากคุณไม่ได้ร้องขอ หรือต้องการเก็บบัญชีไว้ โปรดติดต่อ {safety_email} จากที่อยู่อีเมลนี้ก่อนวันดังกล่าว}}\n\n– ทีม {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "บัญชี {product_name} ของคุณจะถูกลบอย่างถาวร",
- "body": "สวัสดี {username},\n\nบัญชี {product_name} ของคุณถูกกำหนดให้ลบอย่างถาวรเนื่องจากละเมิดข้อกำหนดในการให้บริการหรือแนวทางปฏิบัติของคอมมูนิตี้ของเรา\n\nกำหนดการลบ: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {เหตุผล: {reason}\n\n}\n}นี่เป็นการดำเนินการบังคับใช้ที่ร้ายแรง ข้อมูลบัญชีของคุณจะถูกลบอย่างถาวรตามวันที่กำหนด\n\n{legalLinks, select,\n both {โปรดตรวจสอบ:\n- ข้อกำหนดในการให้บริการ: {termsUrl}\n- แนวทางปฏิบัติของคอมมูนิตี้: {guidelinesUrl}\n\n}\n terms {โปรดตรวจสอบ:\n- ข้อกำหนดในการให้บริการ: {termsUrl}\n\n}\n guidelines {โปรดตรวจสอบ:\n- แนวทางปฏิบัติของคอมมูนิตี้: {guidelinesUrl}\n\n}\n other {}\n}กระบวนการอุทธรณ์:\nหากคุณเชื่อว่าการตัดสินใจนี้ไม่ถูกต้องหรือไม่ยุติธรรม คุณมีเวลา 60 วันในการยื่นอุทธรณ์ {appeals_email, select, null {ติดต่อผู้ดูแลระบบของอินสแตนซ์นี้} other {ส่งอีเมลไปที่ {appeals_email} จากที่อยู่อีเมลนี้}}\n\nในการอุทธรณ์ของคุณ:\n- อธิบายให้ชัดเจนว่าทำไมคุณถึงเชื่อว่าการตัดสินใจนั้นไม่ถูกต้องหรือไม่ยุติธรรม\n- แนบหลักฐานหรือบริบทที่เกี่ยวข้อง\n\nสมาชิกของทีมความปลอดภัย {product_name} จะตรวจสอบคำอุทธรณ์ของคุณและอาจระงับการลบที่รอดำเนินการไว้จนกว่าจะมีการตัดสินใจขั้นสุดท้าย\n\n– ทีมความปลอดภัย {product_name}"
- },
- "account_temp_banned": {
- "subject": "บัญชี {product_name} ของคุณถูกระงับชั่วคราว",
- "body": "สวัสดี {username},\n\nบัญชี {product_name} ของคุณถูกระงับชั่วคราวเนื่องจากละเมิดข้อกำหนดในการให้บริการหรือแนวทางปฏิบัติของคอมมูนิตี้ของเรา\n\nระยะเวลา: {durationHours, plural,\n =1 {1 ชั่วโมง}\n other {# ชั่วโมง}\n}\nระงับจนถึง: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {เหตุผล: {reason}\n\n}\n}ในช่วงเวลานี้ คุณจะไม่สามารถเข้าถึงบัญชีของคุณได้\n\n{legalLinks, select,\n both {โปรดตรวจสอบ:\n- ข้อกำหนดในการให้บริการ: {termsUrl}\n- แนวทางปฏิบัติของคอมมูนิตี้: {guidelinesUrl}\n\n}\n terms {โปรดตรวจสอบ:\n- ข้อกำหนดในการให้บริการ: {termsUrl}\n\n}\n guidelines {โปรดตรวจสอบ:\n- แนวทางปฏิบัติของคอมมูนิตี้: {guidelinesUrl}\n\n}\n other {}\n}หากคุณเชื่อว่าการตัดสินใจนี้ไม่ถูกต้องหรือไม่ยุติธรรม คุณสามารถยื่นอุทธรณ์ได้ {appeals_email, select, null {ติดต่อผู้ดูแลระบบของอินสแตนซ์นี้และอธิบายให้ชัดเจนว่าทำไมคุณถึงเชื่อว่าการตัดสินใจนั้นไม่ถูกต้อง} other {ส่งอีเมลไปที่ {appeals_email} จากที่อยู่อีเมลนี้และอธิบายให้ชัดเจนว่าทำไมคุณถึงเชื่อว่าการตัดสินใจนั้นไม่ถูกต้อง}} เราจะตรวจสอบคำอุทธรณ์ของคุณและตอบกลับด้วยการตัดสินใจของเรา\n\n– ทีมความปลอดภัย {product_name}"
+ "body": "สวัสดี {username},\n\nตามที่คุณขอ เราได้กำหนดให้ลบบัญชี {product_name} ของคุณในวันที่ {deletion_date}\n\nหากต้องการเก็บบัญชีไว้ โปรดลงชื่อเข้าใช้ก่อนวันที่ {deletion_date} {safety_email, select, null {หากคุณไม่ได้ขอเรื่องนี้ โปรดติดต่อผู้ดูแลระบบของอินสแตนซ์นี้} other {หากคุณไม่ได้ขอเรื่องนี้ โปรดติดต่อ {safety_email}}}\n\nทีม {product_name}"
},
"donation_confirmation": {
"subject": "ขอบคุณสำหรับการบริจาคให้ {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "เราได้ตัดสินใจเกี่ยวกับรายงานของคุณใน {product_name} แล้ว",
- "body": "สวัสดี,\n\nทีมความปลอดภัยของเราได้ตรวจสอบรายงานตามกฎหมายบริการดิจิทัล (Digital Services Act) ของคุณ (ID: {reportId}) และตัดสินใจแล้ว{hasComment, select, yes {\n\nการตอบกลับจากทีมความปลอดภัย:\n{publicComment}} other {}}\n\nเราไม่เปิดเผยรายละเอียดการดำเนินการกับบัญชีของบุคคลอื่น เนื่องจากเป็นข้อมูลส่วนบุคคลของบุคคลนั้น\n\nหากคุณไม่เห็นด้วยกับการตัดสินใจนี้ คุณสามารถยื่นอุทธรณ์ได้โดยไม่มีค่าใช้จ่ายภายใน 60 วัน {appeals_email, select, null {ติดต่อผู้ดูแลระบบของอินสแตนซ์นี้ ระบุ ID รายงานของคุณ และอธิบายว่าทำไมคุณถึงคิดว่าการตัดสินใจนั้นไม่ถูกต้อง} other {ส่งอีเมลไปที่ {appeals_email} จากที่อยู่อีเมลนี้ ระบุ ID รายงานของคุณ และอธิบายว่าทำไมคุณถึงคิดว่าการตัดสินใจนั้นไม่ถูกต้อง}} หากคุณอยู่ในสหภาพยุโรป คุณยังสามารถส่งข้อพิพาทไปยังหน่วยงานระงับข้อพิพาทนอกศาลที่ได้รับการรับรองได้ ทั้งหมดนี้ไม่กระทบต่อสิทธิ์ของคุณในการฟ้องร้องต่อศาล\n\n– ทีมความปลอดภัย {product_name}"
+ "body": "สวัสดี,\n\nเราได้ตรวจสอบรายงานของคุณแล้ว (รหัส: {reportId})\n\n{outcome, select, removed {เราได้ลบเนื้อหาที่คุณรายงานแล้ว เนื่องจากเนื้อหานั้นละเมิดกฎของเรา} restricted {เราพบว่าบัญชีที่คุณรายงานละเมิดกฎของเรา และเราได้จำกัดบัญชีนั้นแล้ว เราไม่เปิดเผยว่าได้ดำเนินการใดกับบัญชีอื่น เนื่องจากเป็นข้อมูลส่วนบุคคลของเจ้าของบัญชี} action_taken {เราพบว่าสิ่งที่คุณรายงานละเมิดกฎของเรา และเราได้ดำเนินการแล้ว เราไม่เปิดเผยว่าได้ดำเนินการใดกับบัญชีอื่น เนื่องจากเป็นข้อมูลส่วนบุคคลของเจ้าของบัญชี} no_violation {เราพบว่าเนื้อหาหรือบัญชีที่คุณรายงานไม่ได้ละเมิดกฎของเรา จึงปล่อยไว้ตามเดิม} other {เราได้ปิดรายงานของคุณแล้ว}}{hasComment, select, yes {\n\nหมายเหตุจากทีมของเรา: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nหากคุณไม่เห็นด้วย โปรดส่งอีเมลไปที่ {appeals_email} ภายใน 60 วัน และระบุรหัสรายงาน หากคุณอยู่ในสหภาพยุโรป คุณยังสามารถส่งเรื่องนี้ไปยังหน่วยงานระงับข้อพิพาทนอกศาลที่ได้รับการรับรอง หรือร้องเรียนต่อผู้ประสานงานบริการดิจิทัลในประเทศของคุณได้}}\n\nทีม {product_name}"
},
"dsa_report_verification": {
"subject": "ยืนยันอีเมลสำหรับการรายงาน DSA",
@@ -51,6 +43,14 @@
"subject": "ยืนยันที่อยู่อีเมลสำหรับ {product_name}",
"body": "สวัสดี {username},\n\nโปรดยืนยันที่อยู่อีเมลสำหรับบัญชี {product_name} ของคุณโดยคลิกที่ลิงก์ด้านล่าง:\n\n{verifyUrl}\n\nหากคุณไม่ได้สร้างบัญชี {product_name} คุณสามารถเพิกเฉยต่ออีเมลนี้ได้เลย\n\nลิงก์นี้ใช้ได้เป็นเวลา 24 ชั่วโมง\n\n– ทีม {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {เรากลับคำตัดสินเกี่ยวกับบัญชี {product_name} ของคุณแล้ว} other {ข้อจำกัดบนบัญชี {product_name} ของคุณสิ้นสุดแล้ว}}",
+ "body": "สวัสดี {username},\n\n{outcome, select, reversed {{decision_id, select, null {เราได้ทบทวนคำตัดสินเกี่ยวกับบัญชีของคุณอีกครั้งและกลับคำตัดสินนั้นแล้ว} other {เราได้ทบทวนคำตัดสิน {decision_id} อีกครั้งและกลับคำตัดสินนั้นแล้ว}} ขออภัยในความไม่สะดวก} other {{decision_id, select, null {เราได้ยกเลิกข้อจำกัดบนบัญชีของคุณแล้ว} other {เราได้ยกเลิกข้อจำกัดจากคำตัดสิน {decision_id} แล้ว}}}}{restores_access, select, yes { คุณสามารถลงชื่อเข้าใช้และใช้งาน {product_name} ได้อีกครั้ง} other {}}{statement, select, null {} other {\n\nหมายเหตุจากทีมของเรา: {statement}}}{content_removed, select, yes {\n\nเนื้อหาที่เราลบไปแล้วไม่สามารถกู้คืนได้} other {}}\n\nทีม {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {ข้อมูลอัปเดตเกี่ยวกับบัญชี {product_name} ของคุณ} other {{kind_label, select, warning {คำเตือนเกี่ยวกับบัญชี {product_name} ของคุณ} suspension {บัญชี {product_name} ของคุณถูกระงับชั่วคราว} ban {บัญชี {product_name} ของคุณถูกแบน} closure {บัญชี {product_name} ของคุณถูกปิด} feature_limit {ฟีเจอร์บางอย่างในบัญชี {product_name} ของคุณถูกจำกัด} content_removal {เราได้ลบข้อความที่คุณส่งใน {product_name}} profile_reset {เราได้รีเซ็ตบางส่วนของโปรไฟล์ {product_name} ของคุณ} community_removal {เราได้ลบคอมมูนิตี้ของคุณใน {product_name}} bot {ข้อมูลอัปเดตเกี่ยวกับบอทของคุณใน {product_name}} other {ข้อมูลอัปเดตเกี่ยวกับบัญชี {product_name} ของคุณ}}}}",
+ "body": "สวัสดี {username},\n\n{summary}\n\n{effects}\n\nเหตุผล\nกฎ: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nหมายเหตุจากทีมของเรา: {statement}}}\n\nวิธีที่เราตัดสิน\n{how_we_decided}{appeals_email, select, null {} other {\n\nวิธีอุทธรณ์\nหากคุณคิดว่าเราตัดสินผิด โปรดส่งอีเมลไปที่ {appeals_email} ภายใน {appeal_deadline} หากเป็นไปได้ โปรดส่งจากอีเมลที่ใช้กับบัญชีของคุณ และระบุรหัสคำตัดสิน การอุทธรณ์ไม่มีค่าใช้จ่าย และเจ้าหน้าที่จะตรวจสอบทุกคำอุทธรณ์ด้วยตนเอง{redress, select, null {} other {\n\n{redress}}}}}\n\nรหัสคำตัดสิน: {decision_id}\n\nทีม {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "สิทธิประโยชน์จากของขวัญที่คุณแลกรับถูกนำออกแล้ว",
"body": "สวัสดี {username},\n\nรหัสของขวัญที่คุณแลกรับนั้นเดิมทีชำระโดยผู้อื่น การชำระเงินดังกล่าวถูกยกเลิกในภายหลัง (การเรียกเก็บเงินคืน)\n\nด้วยเหตุนี้ เราจึงลบสิทธิประโยชน์ที่เพิ่มเข้าบัญชีของคุณตอนที่คุณแลกรับของขวัญ\n\n{support_email, select, null {หากคุณคิดว่านี่เป็นข้อผิดพลาด โปรดติดต่อผู้ดูแลระบบของอินสแตนซ์นี้และระบุรายละเอียดใด ๆ ที่คุณมีเกี่ยวกับรหัสของขวัญและเวลาที่คุณแลกรับ} other {หากคุณคิดว่านี่เป็นข้อผิดพลาด โปรดติดต่อทีมสนับสนุนของเราและระบุรายละเอียดใด ๆ ที่คุณมีเกี่ยวกับรหัสของขวัญและเวลาที่คุณแลกรับ}}\n\n– ทีม {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "รายงานของคุณใน {product_name} ได้รับการตรวจสอบแล้ว",
- "body": "สวัสดี {username},\n\nทีมความปลอดภัยของเราได้ตรวจสอบรายงานของคุณ (ID: {reportId}) แล้ว{hasComment, select, yes {\n\nการตอบกลับจากทีมความปลอดภัย:\n{publicComment}} other {}}\n\nขอบคุณที่ช่วยให้ {product_name} ปลอดภัยสำหรับทุกคน เราให้ความสำคัญกับรายงานทั้งหมดและขอขอบคุณสำหรับการมีส่วนร่วมของคุณในคอมมูนิตี้\n\n{safety_email, select, null {หากคุณมีคำถามหรือข้อกังวลใด ๆ เกี่ยวกับผลลัพธ์นี้ โปรดติดต่อผู้ดูแลระบบของอินสแตนซ์นี้} other {หากคุณมีคำถามหรือข้อกังวลใด ๆ เกี่ยวกับผลลัพธ์นี้ โปรดติดต่อ {safety_email}}}\n\n– ทีมความปลอดภัย {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "บัญชี {product_name} ของคุณจะถูกลบอย่างถาวร",
- "body": "สวัสดี {username},\n\nบัญชี {product_name} ของคุณถูกกำหนดให้ลบอย่างถาวร\n\nกำหนดการลบ: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {เหตุผล: {reason}\n\n}\n}นี่เป็นการดำเนินการบังคับใช้ที่ร้ายแรง ข้อมูลบัญชีของคุณจะถูกลบอย่างถาวรตามวันที่กำหนด\n\nหากคุณเชื่อว่าการตัดสินใจนี้ไม่ถูกต้อง คุณสามารถยื่นอุทธรณ์ได้ {appeals_email, select, null {ติดต่อผู้ดูแลระบบของอินสแตนซ์นี้} other {ส่งอีเมลไปที่ {appeals_email} จากที่อยู่อีเมลนี้}}\n\n– ทีมความปลอดภัย {product_name}"
+ "body": "สวัสดี {username},\n\nเราได้ตรวจสอบรายงานของคุณแล้ว (รหัส: {reportId})\n\n{outcome, select, removed {เราได้ลบเนื้อหาที่คุณรายงานแล้ว เนื่องจากเนื้อหานั้นละเมิดกฎของเรา} restricted {เราพบว่าบัญชีที่คุณรายงานละเมิดกฎของเรา และเราได้จำกัดบัญชีนั้นแล้ว เราไม่เปิดเผยว่าได้ดำเนินการใดกับบัญชีอื่น เนื่องจากเป็นข้อมูลส่วนบุคคลของเจ้าของบัญชี} action_taken {เราพบว่าสิ่งที่คุณรายงานละเมิดกฎของเรา และเราได้ดำเนินการแล้ว เราไม่เปิดเผยว่าได้ดำเนินการใดกับบัญชีอื่น เนื่องจากเป็นข้อมูลส่วนบุคคลของเจ้าของบัญชี} no_violation {เราพบว่าเนื้อหาหรือบัญชีที่คุณรายงานไม่ได้ละเมิดกฎของเรา จึงปล่อยไว้ตามเดิม} other {เราได้ปิดรายงานของคุณแล้ว}}{hasComment, select, yes {\n\nหมายเหตุจากทีมของเรา: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nหากคุณไม่เห็นด้วย โปรดส่งอีเมลไปที่ {appeals_email} ภายใน 60 วัน และระบุรหัสรายงาน หากคุณอยู่ในสหภาพยุโรป คุณยังสามารถส่งเรื่องนี้ไปยังหน่วยงานระงับข้อพิพาทนอกศาลที่ได้รับการรับรอง หรือร้องเรียนต่อผู้ประสานงานบริการดิจิทัลในประเทศของคุณได้}}\n\nทีม {product_name}"
},
"self_deletion_scheduled": {
"subject": "บัญชี {product_name} ของคุณถูกกำหนดให้ลบแล้ว",
"body": "สวัสดี {username},\n\nคุณได้ร้องขอให้ลบบัญชี {product_name} ของคุณ บัญชีนี้ถูกกำหนดให้ลบอย่างถาวรในวันที่:\n\n{deletionDate, date, full} เวลา {deletionDate, time, short}\n\nหากคุณไม่ได้ร้องขอ ให้เข้าสู่ระบบบัญชีของคุณเพื่อยกเลิกการลบ เราขอแนะนำให้คุณเปลี่ยนรหัสผ่านด้วยเพื่อรักษาความปลอดภัยบัญชี\n\n– ทีม {product_name}"
- },
- "unban_notification": {
- "subject": "การระงับบัญชี {product_name} ของคุณถูกยกเลิกแล้ว",
- "body": "สวัสดี {username},\n\nข่าวดี: การระงับบัญชี {product_name} ของคุณถูกยกเลิกแล้ว\n\n{reason, select,\n null {}\n other {เหตุผล: {reason}\n\n}\n}ตอนนี้คุณสามารถเข้าสู่ระบบอีกครั้งและใช้งาน {product_name} ได้ตามปกติ\n\n– ทีมความปลอดภัย {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/tr.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/tr.json
index 2dc19d556..a47f2f1d7 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/tr.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/tr.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "{product_name} hesabın hareketsizlik nedeniyle silinecek",
- "body": "Merhaba {username},\n\n{product_name} hesabın uzun süredir hareketsiz olduğu için şu tarihte kalıcı olarak silinmek üzere planlandı:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\nSebep: {reason}}}\n\n{safety_email, select, null {Hesabını korumak istiyorsan bu tarihten önce bu kurulumun yöneticileriyle iletişime geç.} other {Hesabını korumak istiyorsan bu tarihten önce bu e-posta adresinden {safety_email} adresine ulaş.}}\n\n– {product_name} Ekibi"
+ "body": "Merhaba {username},\n\n{product_name} hesabın uzun süredir hareketsiz olduğu için {deletion_date} tarihinde silinmek üzere planladık.\n\nHesabını korumak istiyorsan bu tarihten önce giriş yap. {support_email, select, null {Soruların varsa bu kurulumun yöneticileriyle iletişime geç.} other {Soruların varsa {support_email} adresiyle iletişime geç.}}\n\n{product_name} ekibi"
},
"account_deletion_scheduled_requested": {
"subject": "{product_name} hesabının silinmesi planlandı",
- "body": "Merhaba {username},\n\nTalebin doğrultusunda {product_name} hesabın şu tarihte kalıcı olarak silinmek üzere planlandı:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\nSebep: {reason}}}\n\nHesabın o zamana kadar kilitli. {safety_email, select, null {Bunu sen talep etmediysen ya da hesabını korumak istiyorsan bu tarihten önce bu kurulumun yöneticileriyle iletişime geç.} other {Bunu sen talep etmediysen ya da hesabını korumak istiyorsan bu tarihten önce bu e-posta adresinden {safety_email} adresine ulaş.}}\n\n– {product_name} Ekibi"
- },
- "account_scheduled_deletion": {
- "subject": "{product_name} hesabın kalıcı olarak silinecek",
- "body": "Merhaba {username},\n\nHizmet Şartlarımızı veya Topluluk Kurallarımızı ihlal ettiğin için {product_name} hesabın kalıcı olarak silinmek üzere planlandı.\n\nPlanlanan silme tarihi: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Sebep: {reason}\n\n}\n}Bu, ciddi bir yaptırım işlemidir. Hesap verilerin planlanan tarihte kalıcı olarak silinecektir.\n\n{legalLinks, select,\n both {Lütfen şunları incele:\n- Hizmet Şartları: {termsUrl}\n- Topluluk Kuralları: {guidelinesUrl}\n\n}\n terms {Lütfen şunları incele:\n- Hizmet Şartları: {termsUrl}\n\n}\n guidelines {Lütfen şunları incele:\n- Topluluk Kuralları: {guidelinesUrl}\n\n}\n other {}\n}İtiraz süreci:\nBu yaptırım kararının yanlış veya haksız olduğuna inanıyorsan, itiraz göndermek için 60 günün var. {appeals_email, select, null {Bu kurulumun yöneticileriyle iletişime geç.} other {Bu e-posta adresinden {appeals_email} adresine e-posta gönder.}}\n\nİtirazında:\n- Yaptırım kararının neden yanlış veya haksız olduğunu düşündüğünü açıkça anlat\n- İlgili kanıtı veya bağlamı paylaş\n\n{product_name} Güvenlik Ekibinden bir üye itirazını inceleyecek ve nihai karar verilene kadar bekleyen silme işlemini duraklatabilir.\n\n– {product_name} Güvenlik Ekibi"
- },
- "account_temp_banned": {
- "subject": "{product_name} hesabın geçici olarak askıya alındı",
- "body": "Merhaba {username},\n\nHizmet Şartlarımızı veya Topluluk Kurallarımızı ihlal ettiğin için {product_name} hesabını geçici olarak askıya aldık.\n\nSüre: {durationHours, plural,\n =1 {1 saat}\n other {# saat}\n}\nŞu tarihe kadar askıda: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Sebep: {reason}\n\n}\n}Bu süre boyunca hesabına erişemeyeceksin.\n\n{legalLinks, select,\n both {Lütfen şunları incele:\n- Hizmet Şartları: {termsUrl}\n- Topluluk Kuralları: {guidelinesUrl}\n\n}\n terms {Lütfen şunları incele:\n- Hizmet Şartları: {termsUrl}\n\n}\n guidelines {Lütfen şunları incele:\n- Topluluk Kuralları: {guidelinesUrl}\n\n}\n other {}\n}Bu yaptırım kararının yanlış veya haksız olduğuna inanıyorsan, itiraz gönderebilirsin. {appeals_email, select, null {Bu kurulumun yöneticileriyle iletişime geç ve kararın neden yanlış olduğunu düşündüğünü açıkça anlat.} other {Bu e-posta adresinden {appeals_email} adresine e-posta gönder ve kararın neden yanlış olduğunu düşündüğünü açıkça anlat.}} İtirazını inceleyip kararımızı sana bildireceğiz.\n\n– {product_name} Güvenlik Ekibi"
+ "body": "Merhaba {username},\n\nİsteğin üzerine {product_name} hesabını {deletion_date} tarihinde silinmek üzere planladık.\n\nHesabını korumak istiyorsan {deletion_date} tarihinden önce giriş yap. {safety_email, select, null {Bunu sen istemediysen bu kurulumun yöneticileriyle iletişime geç.} other {Bunu sen istemediysen {safety_email} adresiyle iletişime geç.}}\n\n{product_name} ekibi"
},
"donation_confirmation": {
"subject": "{product_name}'a yaptığın bağış için teşekkürler",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "{product_name} raporun hakkında karar verdik",
- "body": "Merhaba,\n\nGüvenlik Ekibimiz Dijital Hizmetler Yasası raporunu (Kimlik: {reportId}) inceledi ve bir karar verdi.{hasComment, select, yes {\n\nGüvenlik Ekibinin yanıtı:\n{publicComment}} other {}}\n\nBaşka bir kişinin hesabına uygulanan işlemlerin ayrıntılarını paylaşmıyoruz çünkü bunlar o kişinin kişisel verileridir.\n\nBu karara katılmıyorsan 60 gün içinde ücretsiz olarak itiraz edebilirsin. {appeals_email, select, null {Bu kurulumun yöneticileriyle iletişime geç, rapor kimliğini ekle ve kararın neden yanlış olduğunu düşündüğünü açıkla.} other {Bu e-posta adresinden {appeals_email} adresine e-posta gönder, rapor kimliğini ekle ve kararın neden yanlış olduğunu düşündüğünü açıkla.}} AB'deysen anlaşmazlığı sertifikalı bir mahkeme dışı uyuşmazlık çözüm kuruluşuna da götürebilirsin. Bunların hiçbiri mahkemeye başvurma hakkını etkilemez.\n\n– {product_name} Güvenlik Ekibi"
+ "body": "Merhaba,\n\nRaporunu inceledik (Kimlik: {reportId}).\n\n{outcome, select, removed {Bildirdiğin içeriği kurallarımızı ihlal ettiği için kaldırdık.} restricted {Bildirdiğin hesabın kurallarımızı ihlal ettiğini tespit ettik ve hesabı kısıtladık. Başka bir hesaba karşı hangi işlemi yaptığımızı paylaşmıyoruz, çünkü bu bilgi o kişinin kişisel verisidir.} action_taken {Bildirdiğin şeyin kurallarımızı ihlal ettiğini tespit ettik ve işlem yaptık. Başka bir hesaba karşı hangi işlemi yaptığımızı paylaşmıyoruz, çünkü bu bilgi o kişinin kişisel verisidir.} no_violation {Bildirdiğin içeriğin veya hesabın kurallarımızı ihlal etmediğini tespit ettik, bu yüzden herhangi bir değişiklik yapmadık.} other {Raporunu kapattık.}}{hasComment, select, yes {\n\nEkibimizden not: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nKatılmıyorsan 60 gün içinde {appeals_email} adresine e-posta gönder ve rapor kimliğini belirt. AB içindeysen, konuyu sertifikalı bir mahkeme dışı uyuşmazlık çözüm kuruluşuna da taşıyabilir veya ülkendeki Dijital Hizmetler Koordinatörüne şikâyette bulunabilirsin.}}\n\n{product_name} ekibi"
},
"dsa_report_verification": {
"subject": "DSA raporu için e-postanı doğrula",
@@ -51,6 +43,14 @@
"subject": "{product_name} e-posta adresini doğrula",
"body": "Merhaba {username},\n\n{product_name} hesabının e-posta adresini aşağıdaki bağlantıya tıklayarak doğrula:\n\n{verifyUrl}\n\nBir {product_name} hesabı oluşturmadıysan, bu e-postayı güvenle yok sayabilirsin.\n\nBu bağlantı 24 saat geçerlidir.\n\n– {product_name} Ekibi"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {{product_name} hesabınla ilgili bir kararı geri aldık} other {{product_name} hesabındaki bir kısıtlama sona erdi}}",
+ "body": "Merhaba {username},\n\n{outcome, select, reversed {{decision_id, select, null {Hesabınla ilgili bir kararı yeniden inceledik ve geri aldık.} other {{decision_id} kimlikli kararı yeniden inceledik ve geri aldık.}} Yaşattığımız sorun için özür dileriz.} other {{decision_id, select, null {Hesabındaki kısıtlamayı kaldırdık.} other {{decision_id} kimlikli karardan kaynaklanan kısıtlamayı kaldırdık.}}}}{restores_access, select, yes { Artık yeniden giriş yapıp {product_name} hizmetini kullanabilirsin.} other {}}{statement, select, null {} other {\n\nEkibimizden not: {statement}}}{content_removed, select, yes {\n\nKaldırdığımız içerik geri yüklenemez.} other {}}\n\n{product_name} ekibi"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {{product_name} hesabınla ilgili bir güncelleme} other {{kind_label, select, warning {{product_name} hesabınla ilgili bir uyarı} suspension {{product_name} hesabın askıya alındı} ban {{product_name} hesabın kalıcı olarak askıya alındı} closure {{product_name} hesabın kapatıldı} feature_limit {{product_name} hesabındaki bazı özellikler kısıtlandı} content_removal {{product_name} üzerinde gönderdiğin mesajları kaldırdık} profile_reset {{product_name} profilinin bazı bölümlerini sıfırladık} community_removal {{product_name} üzerindeki topluluğunu kaldırdık} bot {{product_name} üzerindeki botunla ilgili bir güncelleme} other {{product_name} hesabınla ilgili bir güncelleme}}}}",
+ "body": "Merhaba {username},\n\n{summary}\n\n{effects}\n\nNeden\nKural: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nEkibimizden not: {statement}}}\n\nNasıl karar verdik\n{how_we_decided}{appeals_email, select, null {} other {\n\nNasıl itiraz edebilirsin\nHata yaptığımızı düşünüyorsan en geç {appeal_deadline} tarihine kadar {appeals_email} adresine e-posta gönder. Mümkünse hesabındaki e-posta adresinden yaz ve karar kimliğini belirt. İtirazlar ücretsizdir ve her birini bir insan inceler.{redress, select, null {} other {\n\n{redress}}}}}\n\nKarar kimliği: {decision_id}\n\n{product_name} ekibi"
+ },
"gift_chargeback_notification": {
"subject": "Kullandığın hediyenin avantajları kaldırıldı",
"body": "Merhaba {username},\n\nKullandığın bir hediye kodunun ödemesi başlangıçta başka biri tarafından yapılmıştı. Bu ödeme daha sonra geri alındı (ters ibraz).\n\nBu nedenle, hediyeyi kullandığında hesabına eklenen avantajlar kaldırıldı.\n\n{support_email, select, null {Bunun bir hata olduğunu düşünüyorsan, lütfen bu kurulumun yöneticileriyle iletişime geç ve hediye koduyla ilgili sahip olduğun tüm detayları ve ne zaman kullandığını belirt.} other {Bunun bir hata olduğunu düşünüyorsan, lütfen destek ekibimizle iletişime geç ve hediye koduyla ilgili sahip olduğun tüm detayları ve ne zaman kullandığını belirt.}}\n\n– {product_name} Ekibi"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "{product_name} raporun incelendi",
- "body": "Merhaba {username},\n\nRaporun (Kimlik: {reportId}) Güvenlik Ekibimiz tarafından incelendi.{hasComment, select, yes {\n\nGüvenlik Ekibinin yanıtı:\n{publicComment}} other {}}\n\n{product_name}'ı herkes için güvenli tutmaya yardımcı olduğun için teşekkür ederiz. Tüm raporları ciddiye alıyoruz ve topluluğa katkını takdir ediyoruz.\n\n{safety_email, select, null {Bu sonuç hakkında herhangi bir sorun veya endişen varsa, lütfen bu kurulumun yöneticileriyle iletişime geç.} other {Bu sonuç hakkında herhangi bir sorun veya endişen varsa, lütfen {safety_email} adresine ulaş.}}\n\n– {product_name} Güvenlik Ekibi"
- },
- "scheduled_deletion_notification": {
- "subject": "{product_name} hesabın kalıcı olarak silinecek",
- "body": "Merhaba {username},\n\n{product_name} hesabın kalıcı olarak silinmek üzere planlandı.\n\nPlanlanan silme tarihi: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Sebep: {reason}\n\n}\n}Bu, ciddi bir yaptırım işlemidir. Hesap verilerin planlanan tarihte kalıcı olarak silinecektir.\n\nBu yaptırım kararının yanlış olduğuna inanıyorsan, itiraz gönderebilirsin. {appeals_email, select, null {Bu kurulumun yöneticileriyle iletişime geç.} other {Bu e-posta adresinden {appeals_email} adresine e-posta gönder.}}\n\n– {product_name} Güvenlik Ekibi"
+ "body": "Merhaba {username},\n\nRaporunu inceledik (Kimlik: {reportId}).\n\n{outcome, select, removed {Bildirdiğin içeriği kurallarımızı ihlal ettiği için kaldırdık.} restricted {Bildirdiğin hesabın kurallarımızı ihlal ettiğini tespit ettik ve hesabı kısıtladık. Başka bir hesaba karşı hangi işlemi yaptığımızı paylaşmıyoruz, çünkü bu bilgi o kişinin kişisel verisidir.} action_taken {Bildirdiğin şeyin kurallarımızı ihlal ettiğini tespit ettik ve işlem yaptık. Başka bir hesaba karşı hangi işlemi yaptığımızı paylaşmıyoruz, çünkü bu bilgi o kişinin kişisel verisidir.} no_violation {Bildirdiğin içeriğin veya hesabın kurallarımızı ihlal etmediğini tespit ettik, bu yüzden herhangi bir değişiklik yapmadık.} other {Raporunu kapattık.}}{hasComment, select, yes {\n\nEkibimizden not: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nKatılmıyorsan 60 gün içinde {appeals_email} adresine e-posta gönder ve rapor kimliğini belirt. AB içindeysen, konuyu sertifikalı bir mahkeme dışı uyuşmazlık çözüm kuruluşuna da taşıyabilir veya ülkendeki Dijital Hizmetler Koordinatörüne şikâyette bulunabilirsin.}}\n\n{product_name} ekibi"
},
"self_deletion_scheduled": {
"subject": "{product_name} hesabının silinmesi planlandı",
"body": "Merhaba {username},\n\n{product_name} hesabını silme talebinde bulundun. Hesabın şu tarihte kalıcı olarak silinmek üzere planlandı:\n\n{deletionDate, date, full} {deletionDate, time, short}\n\nBunu sen talep etmediysen, silme işlemini iptal etmek için hesabına giriş yap. Ayrıca hesabını güvence altına almak için şifreni değiştirmeni öneririz.\n\n– {product_name} Ekibi"
- },
- "unban_notification": {
- "subject": "{product_name} hesabının askıya alınması kaldırıldı",
- "body": "Merhaba {username},\n\nİyi haber: {product_name} hesabının askıya alınması kaldırıldı.\n\n{reason, select,\n null {}\n other {Sebep: {reason}\n\n}\n}Artık tekrar giriş yapabilir ve {product_name}'ı normal şekilde kullanmaya devam edebilirsin.\n\n– {product_name} Güvenlik Ekibi"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/uk.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/uk.json
index 76e98807f..dde717baf 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/uk.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/uk.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Твій акаунт {product_name} буде видалено через неактивність",
- "body": "Привіт, {username},\n\nТвій акаунт {product_name} тривалий час був неактивним, тому його остаточне видалення заплановано на:\n\n{deletionDate, date, full} о {deletionDate, time, short}{reason, select, null {} other {\n\nПричина: {reason}}}\n\n{safety_email, select, null {Якщо хочеш зберегти акаунт, звернися до адміністраторів цього екземпляра до цієї дати.} other {Якщо хочеш зберегти акаунт, напиши на {safety_email} з цієї електронної адреси до цієї дати.}}\n\n– Команда {product_name}"
+ "body": "Привіт, {username},\n\nТвій акаунт {product_name} тривалий час був неактивним, тому ми запланували його видалення на {deletion_date}.\n\nЩоб зберегти акаунт, увійди в нього до цієї дати. {support_email, select, null {Якщо маєш запитання, звернися до адміністраторів цього екземпляра.} other {Якщо маєш запитання, напиши на {support_email}.}}\n\nКоманда {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Видалення акаунта {product_name} заплановано",
- "body": "Привіт, {username},\n\nНа твій запит остаточне видалення акаунта {product_name} заплановано на:\n\n{deletionDate, date, full} о {deletionDate, time, short}{reason, select, null {} other {\n\nПричина: {reason}}}\n\nДо того часу твій акаунт заблоковано. {safety_email, select, null {Якщо цей запит не від тебе або ти хочеш зберегти акаунт, звернися до адміністраторів цього екземпляра до цієї дати.} other {Якщо цей запит не від тебе або ти хочеш зберегти акаунт, напиши на {safety_email} з цієї електронної адреси до цієї дати.}}\n\n– Команда {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Твій акаунт {product_name} буде остаточно видалено",
- "body": "Привіт, {username},\n\nМи запланували остаточне видалення твого акаунта {product_name} через порушення наших Умов використання або Правил спільноти.\n\nВидалення заплановано на: {deletionDate, date, full} о {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Це серйозне рішення. Дані твого акаунта буде остаточно видалено у заплановану дату.\n\n{legalLinks, select,\n both {Будь ласка, переглянь:\n- Умови використання: {termsUrl}\n- Правила спільноти: {guidelinesUrl}\n\n}\n terms {Будь ласка, переглянь:\n- Умови використання: {termsUrl}\n\n}\n guidelines {Будь ласка, переглянь:\n- Правила спільноти: {guidelinesUrl}\n\n}\n other {}\n}Процес апеляції:\nЯкщо ти вважаєш, що це рішення було неправильним або необґрунтованим, у тебе є 60 днів, щоб подати апеляцію. {appeals_email, select, null {Звернися до адміністраторів цього екземпляра.} other {Надішли електронний лист на {appeals_email} з цієї електронної адреси.}}\n\nУ твоїй апеляції:\n- Чітко поясни, чому ти вважаєш, що рішення було неправильним або необґрунтованим\n- Надай будь-які відповідні докази або контекст\n\nКоманда безпеки {product_name} розгляне твою апеляцію та може призупинити видалення до ухвалення остаточного рішення.\n\n– Команда безпеки {product_name}"
- },
- "account_temp_banned": {
- "subject": "Твій акаунт {product_name} тимчасово призупинено",
- "body": "Привіт, {username},\n\nТвій акаунт {product_name} тимчасово призупинено за порушення наших Умов використання або Правил спільноти.\n\nТривалість: {durationHours, plural,\n one {# година}\n few {# години}\n many {# годин}\n other {# години}\n}\nПризупинено до: {bannedUntil, date, full} о {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Протягом цього часу ти не зможеш отримати доступ до свого акаунта.\n\n{legalLinks, select,\n both {Будь ласка, переглянь:\n- Умови використання: {termsUrl}\n- Правила спільноти: {guidelinesUrl}\n\n}\n terms {Будь ласка, переглянь:\n- Умови використання: {termsUrl}\n\n}\n guidelines {Будь ласка, переглянь:\n- Правила спільноти: {guidelinesUrl}\n\n}\n other {}\n}Якщо ти вважаєш, що це рішення було неправильним або необґрунтованим, ти можеш подати апеляцію. {appeals_email, select, null {Звернися до адміністраторів цього екземпляра та чітко поясни, чому ти вважаєш рішення неправильним.} other {Надішли електронний лист на {appeals_email} з цієї електронної адреси та чітко поясни, чому ти вважаєш рішення неправильним.}} Ми розглянемо твою апеляцію та повідомимо про своє рішення.\n\n– Команда безпеки {product_name}"
+ "body": "Привіт, {username},\n\nНа твоє прохання ми запланували видалення твого акаунта {product_name} на {deletion_date}.\n\nЩоб зберегти акаунт, увійди в нього до {deletion_date}. {safety_email, select, null {Якщо це був не твій запит, звернися до адміністраторів цього екземпляра.} other {Якщо це був не твій запит, напиши на {safety_email}.}}\n\nКоманда {product_name}"
},
"donation_confirmation": {
"subject": "Дякуємо за твою пожертву для {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Ми ухвалили рішення щодо твого звіту в {product_name}",
- "body": "Привіт,\n\nНаша команда безпеки розглянула твій звіт за Законом про цифрові послуги (ID: {reportId}) та ухвалила рішення.{hasComment, select, yes {\n\nВідповідь команди безпеки:\n{publicComment}} other {}}\n\nМи не розголошуємо подробиць заходів, ужитих щодо акаунта іншої людини, оскільки це її персональні дані.\n\nЯкщо ти не погоджуєшся з цим рішенням, ти можеш безкоштовно подати апеляцію протягом 60 днів. {appeals_email, select, null {Звернися до адміністраторів цього екземпляра, вкажи ID свого звіту та поясни, чому вважаєш рішення неправильним.} other {Надішли електронний лист на {appeals_email} з цієї електронної адреси, вкажи ID свого звіту та поясни, чому вважаєш рішення неправильним.}} Якщо ти перебуваєш у ЄС, ти також можеш передати спір до сертифікованого органу позасудового врегулювання спорів. Усе це не впливає на твоє право звернутися до суду.\n\n– Команда безпеки {product_name}"
+ "body": "Привіт!\n\nМи розглянули твою скаргу (ID: {reportId}).\n\n{outcome, select, removed {Ми видалили вміст, указаний у твоїй скарзі, бо він порушував наші правила.} restricted {Ми встановили, що акаунт, указаний у твоїй скарзі, порушив наші правила, і обмежили його. Ми не повідомляємо, яких заходів ужили щодо іншого акаунта, бо це персональні дані його власника.} action_taken {Ми встановили, що вказане у твоїй скарзі порушило наші правила, і вжили заходів. Ми не повідомляємо, яких заходів ужили щодо іншого акаунта, бо це персональні дані його власника.} no_violation {Ми встановили, що вміст або акаунт, указаний у твоїй скарзі, не порушує наших правил, тому залишили все як є.} other {Ми закрили твою скаргу.}}{hasComment, select, yes {\n\nКоментар нашої команди: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nЯкщо рішення здається тобі неправильним, напиши на {appeals_email} протягом 60 днів і вкажи ID скарги. Якщо ти перебуваєш у ЄС, ти також можеш передати спір до сертифікованого органу позасудового врегулювання спорів або подати скаргу координатору цифрових послуг у своїй країні.}}\n\nКоманда {product_name}"
},
"dsa_report_verification": {
"subject": "Підтвердь свою електронну адресу для звіту DSA",
@@ -51,6 +43,14 @@
"subject": "Підтвердь свою електронну адресу для {product_name}",
"body": "Привіт, {username},\n\nБудь ласка, підтвердь електронну адресу свого акаунта {product_name}, натиснувши посилання нижче:\n\n{verifyUrl}\n\nЯкщо акаунт {product_name} не твій, можеш сміливо проігнорувати цей лист.\n\nЦе посилання діє протягом 24 годин.\n\n– Команда {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Ми скасували рішення щодо твого акаунта {product_name}} other {Обмеження твого акаунта {product_name} більше не діє}}",
+ "body": "Привіт, {username},\n\n{outcome, select, reversed {{decision_id, select, null {Ми повторно розглянули рішення щодо твого акаунта і скасували його.} other {Ми повторно розглянули рішення {decision_id} і скасували його.}} Просимо вибачення за незручності.} other {{decision_id, select, null {Ми зняли обмеження з твого акаунта.} other {Ми зняли обмеження, накладене рішенням {decision_id}.}}}}{restores_access, select, yes { Ти знову можеш входити в акаунт і користуватися {product_name}.} other {}}{statement, select, null {} other {\n\nКоментар нашої команди: {statement}}}{content_removed, select, yes {\n\nВидалений вміст відновити не можна.} other {}}\n\nКоманда {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Інформація про твій акаунт {product_name}} other {{kind_label, select, warning {Попередження щодо твого акаунта {product_name}} suspension {Твій акаунт {product_name} тимчасово заблоковано} ban {Твій акаунт {product_name} заблоковано} closure {Твій акаунт {product_name} закрито} feature_limit {Деякі функції твого акаунта {product_name} обмежено} content_removal {Ми видалили твої повідомлення в {product_name}} profile_reset {Ми скинули частину даних твого профілю {product_name}} community_removal {Ми видалили твою спільноту в {product_name}} bot {Інформація про твого бота в {product_name}} other {Інформація про твій акаунт {product_name}}}}}",
+ "body": "Привіт, {username},\n\n{summary}\n\n{effects}\n\nЧому\nПравило: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nКоментар нашої команди: {statement}}}\n\nЯк ми ухвалили рішення\n{how_we_decided}{appeals_email, select, null {} other {\n\nЯк оскаржити рішення\nЯкщо ти вважаєш, що ми помилилися, напиши на {appeals_email} до {appeal_deadline}. За можливості пиши з електронної адреси, прив'язаної до твого акаунта, і вкажи ID рішення. Апеляції безкоштовні, і кожну з них розглядає людина.{redress, select, null {} other {\n\n{redress}}}}}\n\nID рішення: {decision_id}\n\nКоманда {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Видалено переваги активованого подарунка",
"body": "Привіт, {username},\n\nПодарунковий код, активований на твоєму акаунті, спочатку оплатила інша людина. Цей платіж згодом скасовано (повернення коштів).\n\nЧерез це видалено переваги, які були додані до твого акаунта під час активації подарунка.\n\n{support_email, select, null {Якщо ти вважаєш, що це помилка, будь ласка, зв'яжися з адміністраторами цього екземпляра та надай будь-які деталі про подарунковий код та час його активації.} other {Якщо ти вважаєш, що це помилка, будь ласка, зв'яжися з нашою службою підтримки та надай будь-які деталі про подарунковий код та час його активації.}}\n\n– Команда {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Твій звіт у {product_name} розглянуто",
- "body": "Привіт, {username},\n\nНаша команда безпеки розглянула твій звіт (ID: {reportId}).{hasComment, select, yes {\n\nВідповідь команди безпеки:\n{publicComment}} other {}}\n\nДякуємо, що допомагаєш зберігати {product_name} безпечним для всіх. Ми серйозно ставимося до кожного звіту та цінуємо твій внесок у спільноту.\n\n{safety_email, select, null {Якщо у тебе є запитання чи зауваження щодо цього рішення, звернися до адміністраторів цього екземпляра.} other {Якщо у тебе є запитання чи зауваження щодо цього рішення, напиши на {safety_email}.}}\n\n– Команда безпеки {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Твій акаунт {product_name} буде остаточно видалено",
- "body": "Привіт, {username},\n\nМи запланували остаточне видалення твого акаунта {product_name}.\n\nВидалення заплановано на: {deletionDate, date, full} о {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Це серйозне рішення. Дані твого акаунта буде остаточно видалено у заплановану дату.\n\nЯкщо ти вважаєш, що це рішення було неправильним, ти можеш подати апеляцію. {appeals_email, select, null {Звернися до адміністраторів цього екземпляра.} other {Надішли електронний лист на {appeals_email} з цієї електронної адреси.}}\n\n– Команда безпеки {product_name}"
+ "body": "Привіт, {username},\n\nМи розглянули твою скаргу (ID: {reportId}).\n\n{outcome, select, removed {Ми видалили вміст, указаний у твоїй скарзі, бо він порушував наші правила.} restricted {Ми встановили, що акаунт, указаний у твоїй скарзі, порушив наші правила, і обмежили його. Ми не повідомляємо, яких заходів ужили щодо іншого акаунта, бо це персональні дані його власника.} action_taken {Ми встановили, що вказане у твоїй скарзі порушило наші правила, і вжили заходів. Ми не повідомляємо, яких заходів ужили щодо іншого акаунта, бо це персональні дані його власника.} no_violation {Ми встановили, що вміст або акаунт, указаний у твоїй скарзі, не порушує наших правил, тому залишили все як є.} other {Ми закрили твою скаргу.}}{hasComment, select, yes {\n\nКоментар нашої команди: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nЯкщо рішення здається тобі неправильним, напиши на {appeals_email} протягом 60 днів і вкажи ID скарги. Якщо ти перебуваєш у ЄС, ти також можеш передати спір до сертифікованого органу позасудового врегулювання спорів або подати скаргу координатору цифрових послуг у своїй країні.}}\n\nКоманда {product_name}"
},
"self_deletion_scheduled": {
"subject": "Видалення акаунта {product_name} заплановано",
"body": "Привіт, {username},\n\nМи отримали твій запит на видалення акаунта {product_name}. Остаточне видалення твого акаунта заплановано на:\n\n{deletionDate, date, full} о {deletionDate, time, short}\n\nЯкщо цей запит не від тебе, увійди до свого акаунта, щоб скасувати видалення. Ми також рекомендуємо змінити пароль, щоб захистити акаунт.\n\n– Команда {product_name}"
- },
- "unban_notification": {
- "subject": "Призупинення твого акаунта {product_name} скасовано",
- "body": "Привіт, {username},\n\nГарні новини: призупинення твого акаунта {product_name} скасовано.\n\n{reason, select,\n null {}\n other {Причина: {reason}\n\n}\n}Тепер ти можеш знову увійти та продовжувати користуватися {product_name} як зазвичай.\n\n– Команда безпеки {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/vi.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/vi.json
index 09e3fb884..58fce2232 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/vi.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/vi.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Tài khoản {product_name} của bạn sẽ bị xóa do không hoạt động",
- "body": "Xin chào {username},\n\nTài khoản {product_name} của bạn đã không hoạt động trong thời gian dài, vì vậy tài khoản được lên lịch xóa vĩnh viễn vào:\n\n{deletionDate, date, full} lúc {deletionDate, time, short}{reason, select, null {} other {\n\nLý do: {reason}}}\n\n{safety_email, select, null {Nếu bạn muốn giữ tài khoản, hãy liên hệ quản trị viên của máy chủ này trước ngày đó.} other {Nếu bạn muốn giữ tài khoản, hãy liên hệ {safety_email} từ địa chỉ email này trước ngày đó.}}\n\n– Đội ngũ {product_name}"
+ "body": "Xin chào {username},\n\nTài khoản {product_name} của bạn đã không hoạt động trong thời gian dài, vì vậy chúng tôi đã lên lịch xóa tài khoản vào {deletion_date}.\n\nĐể giữ lại tài khoản, hãy đăng nhập trước ngày đó. {support_email, select, null {Nếu bạn có câu hỏi, hãy liên hệ quản trị viên của máy chủ này.} other {Nếu bạn có câu hỏi, hãy liên hệ {support_email}.}}\n\nĐội ngũ {product_name}"
},
"account_deletion_scheduled_requested": {
"subject": "Tài khoản {product_name} của bạn đã được lên lịch xóa",
- "body": "Xin chào {username},\n\nTheo yêu cầu của bạn, tài khoản {product_name} của bạn được lên lịch xóa vĩnh viễn vào:\n\n{deletionDate, date, full} lúc {deletionDate, time, short}{reason, select, null {} other {\n\nLý do: {reason}}}\n\nTài khoản của bạn sẽ bị khóa cho đến lúc đó. {safety_email, select, null {Nếu bạn không yêu cầu điều này, hoặc bạn muốn giữ tài khoản, hãy liên hệ quản trị viên của máy chủ này trước ngày đó.} other {Nếu bạn không yêu cầu điều này, hoặc bạn muốn giữ tài khoản, hãy liên hệ {safety_email} từ địa chỉ email này trước ngày đó.}}\n\n– Đội ngũ {product_name}"
- },
- "account_scheduled_deletion": {
- "subject": "Tài khoản {product_name} của bạn sẽ bị xóa vĩnh viễn",
- "body": "Xin chào {username},\n\nTài khoản {product_name} của bạn đã được lên lịch xóa vĩnh viễn do vi phạm Điều khoản dịch vụ hoặc Nguyên tắc cộng đồng của chúng tôi.\n\nThời gian xóa theo lịch: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Lý do: {reason}\n\n}\n}Đây là một biện pháp xử lý nghiêm trọng. Dữ liệu tài khoản của bạn sẽ bị xóa vĩnh viễn vào ngày đã lên lịch.\n\n{legalLinks, select,\n both {Vui lòng xem lại:\n- Điều khoản dịch vụ: {termsUrl}\n- Nguyên tắc cộng đồng: {guidelinesUrl}\n\n}\n terms {Vui lòng xem lại:\n- Điều khoản dịch vụ: {termsUrl}\n\n}\n guidelines {Vui lòng xem lại:\n- Nguyên tắc cộng đồng: {guidelinesUrl}\n\n}\n other {}\n}Quy trình khiếu nại:\nNếu bạn cho rằng quyết định này không chính xác hoặc không hợp lý, bạn có 60 ngày để gửi khiếu nại. {appeals_email, select, null {Liên hệ quản trị viên của máy chủ này.} other {Gửi email đến {appeals_email} từ địa chỉ email này.}}\n\nTrong khiếu nại của bạn:\n- Giải thích rõ ràng lý do bạn cho rằng quyết định này không chính xác hoặc không hợp lý\n- Cung cấp bằng chứng hoặc thông tin liên quan nếu có\n\nMột thành viên của Đội ngũ An toàn {product_name} sẽ xem xét khiếu nại của bạn và có thể tạm dừng việc xóa đang chờ xử lý cho đến khi có quyết định cuối cùng.\n\n– Đội ngũ An toàn {product_name}"
- },
- "account_temp_banned": {
- "subject": "Tài khoản {product_name} của bạn đã bị đình chỉ tạm thời",
- "body": "Xin chào {username},\n\nTài khoản {product_name} của bạn đã bị đình chỉ tạm thời do vi phạm Điều khoản dịch vụ hoặc Nguyên tắc cộng đồng của chúng tôi.\n\nThời gian: {durationHours, plural,\n =1 {1 giờ}\n other {# giờ}\n}\nBị đình chỉ cho đến: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Lý do: {reason}\n\n}\n}Trong thời gian này, bạn sẽ không thể truy cập tài khoản của mình.\n\n{legalLinks, select,\n both {Vui lòng xem lại:\n- Điều khoản dịch vụ: {termsUrl}\n- Nguyên tắc cộng đồng: {guidelinesUrl}\n\n}\n terms {Vui lòng xem lại:\n- Điều khoản dịch vụ: {termsUrl}\n\n}\n guidelines {Vui lòng xem lại:\n- Nguyên tắc cộng đồng: {guidelinesUrl}\n\n}\n other {}\n}Nếu bạn cho rằng quyết định này không chính xác hoặc không hợp lý, bạn có thể gửi khiếu nại. {appeals_email, select, null {Liên hệ quản trị viên của máy chủ này và giải thích rõ ràng lý do bạn cho rằng quyết định đó không chính xác.} other {Gửi email đến {appeals_email} từ địa chỉ email này và giải thích rõ ràng lý do bạn cho rằng quyết định đó không chính xác.}} Chúng tôi sẽ xem xét khiếu nại của bạn và thông báo quyết định của chúng tôi cho bạn.\n\n– Đội ngũ An toàn {product_name}"
+ "body": "Xin chào {username},\n\nTheo yêu cầu của bạn, chúng tôi đã lên lịch xóa tài khoản {product_name} của bạn vào {deletion_date}.\n\nĐể giữ lại tài khoản, hãy đăng nhập trước {deletion_date}. {safety_email, select, null {Nếu bạn không yêu cầu việc này, hãy liên hệ quản trị viên của máy chủ này.} other {Nếu bạn không yêu cầu việc này, hãy liên hệ {safety_email}.}}\n\nĐội ngũ {product_name}"
},
"donation_confirmation": {
"subject": "Cảm ơn bạn đã ủng hộ {product_name}",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "Chúng tôi đã có quyết định về báo cáo của bạn trên {product_name}",
- "body": "Xin chào,\n\nĐội ngũ An toàn của chúng tôi đã xem xét báo cáo theo Đạo luật Dịch vụ kỹ thuật số của bạn (ID: {reportId}) và đã đưa ra quyết định.{hasComment, select, yes {\n\nPhản hồi từ Đội ngũ An toàn:\n{publicComment}} other {}}\n\nChúng tôi không chia sẻ chi tiết về biện pháp áp dụng với tài khoản của người khác, vì đó là dữ liệu cá nhân của họ.\n\nNếu không đồng ý với quyết định này, bạn có thể gửi khiếu nại miễn phí trong vòng 60 ngày. {appeals_email, select, null {Liên hệ quản trị viên của máy chủ này, ghi rõ ID báo cáo của bạn và giải thích lý do bạn cho rằng quyết định đó không chính xác.} other {Gửi email đến {appeals_email} từ địa chỉ email này, ghi rõ ID báo cáo của bạn và giải thích lý do bạn cho rằng quyết định đó không chính xác.}} Nếu bạn ở EU, bạn cũng có thể đưa tranh chấp đến một cơ quan giải quyết tranh chấp ngoài tòa án đã được chứng nhận. Những điều này không ảnh hưởng đến quyền khởi kiện ra tòa của bạn.\n\n– Đội ngũ An toàn {product_name}"
+ "body": "Xin chào,\n\nChúng tôi đã xem xét báo cáo của bạn (ID: {reportId}).\n\n{outcome, select, removed {Chúng tôi đã xóa nội dung bạn báo cáo vì nội dung đó vi phạm quy tắc của chúng tôi.} restricted {Chúng tôi xác định tài khoản bạn báo cáo đã vi phạm quy tắc của chúng tôi và đã hạn chế tài khoản đó. Chúng tôi không chia sẻ biện pháp đã áp dụng với tài khoản khác, vì đó là dữ liệu cá nhân của họ.} action_taken {Chúng tôi xác định những gì bạn báo cáo đã vi phạm quy tắc của chúng tôi và đã có biện pháp xử lý. Chúng tôi không chia sẻ biện pháp đã áp dụng với tài khoản khác, vì đó là dữ liệu cá nhân của họ.} no_violation {Chúng tôi xác định nội dung hoặc tài khoản bạn báo cáo không vi phạm quy tắc của chúng tôi, vì vậy chúng tôi giữ nguyên.} other {Chúng tôi đã đóng báo cáo của bạn.}}{hasComment, select, yes {\n\nGhi chú từ đội ngũ của chúng tôi: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nNếu bạn không đồng ý, hãy gửi email đến {appeals_email} trong vòng 60 ngày và ghi kèm ID báo cáo. Nếu bạn ở EU, bạn cũng có thể đưa việc này đến một cơ quan giải quyết tranh chấp ngoài tòa án đã được chứng nhận hoặc khiếu nại với Điều phối viên Dịch vụ Kỹ thuật số tại quốc gia của bạn.}}\n\nĐội ngũ {product_name}"
},
"dsa_report_verification": {
"subject": "Xác minh email của bạn cho báo cáo DSA",
@@ -51,6 +43,14 @@
"subject": "Xác minh địa chỉ email của bạn trên {product_name}",
"body": "Xin chào {username},\n\nVui lòng xác minh địa chỉ email cho tài khoản {product_name} của bạn bằng cách nhấp vào liên kết bên dưới:\n\n{verifyUrl}\n\nNếu bạn không tạo tài khoản {product_name}, bạn có thể bỏ qua email này.\n\nLiên kết này có hiệu lực trong 24 giờ.\n\n– Đội ngũ {product_name}"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {Chúng tôi đã đảo ngược một quyết định về tài khoản {product_name} của bạn} other {Một hạn chế trên tài khoản {product_name} của bạn đã kết thúc}}",
+ "body": "Xin chào {username},\n\n{outcome, select, reversed {{decision_id, select, null {Chúng tôi đã xem xét lại một quyết định về tài khoản của bạn và đã đảo ngược quyết định đó.} other {Chúng tôi đã xem xét lại quyết định {decision_id} và đã đảo ngược quyết định đó.}} Chúng tôi xin lỗi vì sự phiền toái này.} other {{decision_id, select, null {Chúng tôi đã gỡ bỏ hạn chế trên tài khoản của bạn.} other {Chúng tôi đã gỡ bỏ hạn chế từ quyết định {decision_id}.}}}}{restores_access, select, yes { Bạn có thể đăng nhập và sử dụng {product_name} trở lại.} other {}}{statement, select, null {} other {\n\nGhi chú từ đội ngũ của chúng tôi: {statement}}}{content_removed, select, yes {\n\nNội dung chúng tôi đã xóa không thể khôi phục.} other {}}\n\nĐội ngũ {product_name}"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {Thông báo về tài khoản {product_name} của bạn} other {{kind_label, select, warning {Cảnh báo về tài khoản {product_name} của bạn} suspension {Tài khoản {product_name} của bạn bị đình chỉ} ban {Tài khoản {product_name} của bạn bị cấm} closure {Tài khoản {product_name} của bạn đã bị đóng} feature_limit {Một số tính năng trên tài khoản {product_name} của bạn bị giới hạn} content_removal {Chúng tôi đã xóa tin nhắn bạn gửi trên {product_name}} profile_reset {Chúng tôi đã đặt lại một phần hồ sơ {product_name} của bạn} community_removal {Chúng tôi đã xóa cộng đồng của bạn trên {product_name}} bot {Thông báo về bot của bạn trên {product_name}} other {Thông báo về tài khoản {product_name} của bạn}}}}",
+ "body": "Xin chào {username},\n\n{summary}\n\n{effects}\n\nLý do\nQuy tắc: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nGhi chú từ đội ngũ của chúng tôi: {statement}}}\n\nCách chúng tôi quyết định\n{how_we_decided}{appeals_email, select, null {} other {\n\nCách kháng nghị\nNếu bạn cho rằng chúng tôi đã sai, hãy gửi email đến {appeals_email} chậm nhất vào {appeal_deadline}. Nếu có thể, hãy gửi từ địa chỉ email của tài khoản và ghi kèm ID quyết định. Kháng nghị là miễn phí và mỗi kháng nghị đều được một người trong đội ngũ của chúng tôi xem xét.{redress, select, null {} other {\n\n{redress}}}}}\n\nID quyết định: {decision_id}\n\nĐội ngũ {product_name}"
+ },
"gift_chargeback_notification": {
"subject": "Các đặc quyền từ quà tặng đã đổi của bạn đã bị gỡ bỏ",
"body": "Xin chào {username},\n\nMã quà tặng bạn đã đổi vốn do người khác thanh toán. Khoản thanh toán đó sau đó đã bị đảo ngược (chargeback).\n\nVì lý do này, chúng tôi đã gỡ bỏ các đặc quyền đã được thêm vào tài khoản của bạn khi bạn đổi quà tặng.\n\n{support_email, select, null {Nếu bạn cho rằng đây là nhầm lẫn, vui lòng liên hệ quản trị viên của máy chủ này và cung cấp bất kỳ chi tiết nào bạn có về mã quà tặng và thời điểm bạn đổi mã đó.} other {Nếu bạn cho rằng đây là nhầm lẫn, vui lòng liên hệ đội ngũ hỗ trợ của chúng tôi và cung cấp bất kỳ chi tiết nào bạn có về mã quà tặng và thời điểm bạn đổi mã đó.}}\n\n– Đội ngũ {product_name}"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Báo cáo {product_name} của bạn đã được xem xét",
- "body": "Xin chào {username},\n\nBáo cáo của bạn (ID: {reportId}) đã được Đội ngũ An toàn của chúng tôi xem xét.{hasComment, select, yes {\n\nPhản hồi từ Đội ngũ An toàn:\n{publicComment}} other {}}\n\nCảm ơn bạn đã giúp giữ cho {product_name} an toàn cho mọi người. Chúng tôi xem xét nghiêm túc mọi báo cáo và đánh giá cao đóng góp của bạn cho cộng đồng.\n\n{safety_email, select, null {Nếu bạn có bất kỳ câu hỏi hoặc lo ngại nào về kết quả này, vui lòng liên hệ quản trị viên của máy chủ này.} other {Nếu bạn có bất kỳ câu hỏi hoặc lo ngại nào về kết quả này, vui lòng liên hệ {safety_email}.}}\n\n– Đội ngũ An toàn {product_name}"
- },
- "scheduled_deletion_notification": {
- "subject": "Tài khoản {product_name} của bạn sẽ bị xóa vĩnh viễn",
- "body": "Xin chào {username},\n\nTài khoản {product_name} của bạn đã được lên lịch xóa vĩnh viễn.\n\nThời gian xóa theo lịch: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Lý do: {reason}\n\n}\n}Đây là một biện pháp xử lý nghiêm trọng. Dữ liệu tài khoản của bạn sẽ bị xóa vĩnh viễn vào ngày đã lên lịch.\n\nNếu bạn cho rằng quyết định này không chính xác, bạn có thể gửi khiếu nại. {appeals_email, select, null {Liên hệ quản trị viên của máy chủ này.} other {Gửi email đến {appeals_email} từ địa chỉ email này.}}\n\n– Đội ngũ An toàn {product_name}"
+ "body": "Xin chào {username},\n\nChúng tôi đã xem xét báo cáo của bạn (ID: {reportId}).\n\n{outcome, select, removed {Chúng tôi đã xóa nội dung bạn báo cáo vì nội dung đó vi phạm quy tắc của chúng tôi.} restricted {Chúng tôi xác định tài khoản bạn báo cáo đã vi phạm quy tắc của chúng tôi và đã hạn chế tài khoản đó. Chúng tôi không chia sẻ biện pháp đã áp dụng với tài khoản khác, vì đó là dữ liệu cá nhân của họ.} action_taken {Chúng tôi xác định những gì bạn báo cáo đã vi phạm quy tắc của chúng tôi và đã có biện pháp xử lý. Chúng tôi không chia sẻ biện pháp đã áp dụng với tài khoản khác, vì đó là dữ liệu cá nhân của họ.} no_violation {Chúng tôi xác định nội dung hoặc tài khoản bạn báo cáo không vi phạm quy tắc của chúng tôi, vì vậy chúng tôi giữ nguyên.} other {Chúng tôi đã đóng báo cáo của bạn.}}{hasComment, select, yes {\n\nGhi chú từ đội ngũ của chúng tôi: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nNếu bạn không đồng ý, hãy gửi email đến {appeals_email} trong vòng 60 ngày và ghi kèm ID báo cáo. Nếu bạn ở EU, bạn cũng có thể đưa việc này đến một cơ quan giải quyết tranh chấp ngoài tòa án đã được chứng nhận hoặc khiếu nại với Điều phối viên Dịch vụ Kỹ thuật số tại quốc gia của bạn.}}\n\nĐội ngũ {product_name}"
},
"self_deletion_scheduled": {
"subject": "Tài khoản {product_name} của bạn đã được lên lịch xóa",
"body": "Xin chào {username},\n\nBạn đã yêu cầu xóa tài khoản {product_name} của mình. Tài khoản của bạn được lên lịch xóa vĩnh viễn vào:\n\n{deletionDate, date, full} lúc {deletionDate, time, short}\n\nNếu bạn không yêu cầu điều này, hãy đăng nhập vào tài khoản của bạn để hủy việc xóa. Chúng tôi cũng khuyên bạn nên thay đổi mật khẩu để bảo mật tài khoản của mình.\n\n– Đội ngũ {product_name}"
- },
- "unban_notification": {
- "subject": "Lệnh đình chỉ tài khoản {product_name} của bạn đã được gỡ bỏ",
- "body": "Xin chào {username},\n\nTin tốt: lệnh đình chỉ tài khoản {product_name} của bạn đã được gỡ bỏ.\n\n{reason, select,\n null {}\n other {Lý do: {reason}\n\n}\n}Bây giờ bạn có thể đăng nhập lại và tiếp tục sử dụng {product_name} như bình thường.\n\n– Đội ngũ An toàn {product_name}"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/zh-CN.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/zh-CN.json
index fd0dc5a32..cce7429f4 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/zh-CN.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/zh-CN.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "你的 {product_name} 账号将因长期未活动而被删除",
- "body": "你好 {username},\n\n你的 {product_name} 账号已长期未活动,因此将于以下时间永久删除:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\n原因:{reason}}}\n\n{safety_email, select, null {如果你想保留账号,请在该日期前联系此实例的管理员。} other {如果你想保留账号,请在该日期前使用此邮箱地址联系 {safety_email}。}}\n\n– {product_name} 团队"
+ "body": "你好 {username},\n\n你的 {product_name} 账号已长期未活动,因此我们已安排在 {deletion_date} 删除该账号。\n\n如果想保留账号,请在该日期前登录。{support_email, select, null {如有疑问,请联系此实例的管理员。} other {如有疑问,请联系 {support_email}。}}\n\n{product_name} 团队"
},
"account_deletion_scheduled_requested": {
"subject": "你的 {product_name} 账号已安排删除",
- "body": "你好 {username},\n\n根据你的请求,你的 {product_name} 账号将于以下时间永久删除:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\n原因:{reason}}}\n\n在此之前,你的账号将被锁定。{safety_email, select, null {如果你未请求此操作,或者想保留账号,请在该日期前联系此实例的管理员。} other {如果你未请求此操作,或者想保留账号,请在该日期前使用此邮箱地址联系 {safety_email}。}}\n\n– {product_name} 团队"
- },
- "account_scheduled_deletion": {
- "subject": "你的 {product_name} 账号将被永久删除",
- "body": "你好 {username},\n\n由于违反了我们的《服务条款》或《社区准则》,你的 {product_name} 账号已被安排永久删除。\n\n计划删除时间:{deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {原因:{reason}\n\n}\n}这是一项严重的处罚措施。你的账号数据将在预定日期被永久删除。\n\n{legalLinks, select,\n both {请查阅:\n- 服务条款:{termsUrl}\n- 社区准则:{guidelinesUrl}\n\n}\n terms {请查阅:\n- 服务条款:{termsUrl}\n\n}\n guidelines {请查阅:\n- 社区准则:{guidelinesUrl}\n\n}\n other {}\n}申诉流程:\n如果你认为此处罚决定不正确或不合理,你有 60 天时间提交申诉。{appeals_email, select, null {请联系此实例的管理员。} other {请使用此邮箱地址发送邮件至 {appeals_email}。}}\n\n在你的申诉中:\n- 清楚说明你认为处罚决定不正确或不合理的原因\n- 提供任何相关证据或背景信息\n\n{product_name} 安全团队成员将审核你的申诉,并可能在做出最终决定前暂停此次删除。\n\n– {product_name} 安全团队"
- },
- "account_temp_banned": {
- "subject": "你的 {product_name} 账号已被暂时封禁",
- "body": "你好 {username},\n\n你的 {product_name} 账号因违反我们的《服务条款》或《社区准则》已被暂时封禁。\n\n封禁时长:{durationHours, plural,\n =1 {1 小时}\n other {# 小时}\n}\n封禁至:{bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {原因:{reason}\n\n}\n}在此期间,你将无法访问你的账号。\n\n{legalLinks, select,\n both {请查阅:\n- 服务条款:{termsUrl}\n- 社区准则:{guidelinesUrl}\n\n}\n terms {请查阅:\n- 服务条款:{termsUrl}\n\n}\n guidelines {请查阅:\n- 社区准则:{guidelinesUrl}\n\n}\n other {}\n}如果你认为此处罚决定不正确或不合理,你可以提交申诉。{appeals_email, select, null {请联系此实例的管理员,并清楚说明你认为该决定不正确的原因。} other {请使用此邮箱地址发送邮件至 {appeals_email},并清楚说明你认为该决定不正确的原因。}}我们会审核你的申诉,并将决定回复你。\n\n– {product_name} 安全团队"
+ "body": "你好 {username},\n\n根据你的请求,我们已安排在 {deletion_date} 删除你的 {product_name} 账号。\n\n如果想保留账号,请在 {deletion_date} 前登录。{safety_email, select, null {如果你没有提出此请求,请联系此实例的管理员。} other {如果你没有提出此请求,请联系 {safety_email}。}}\n\n{product_name} 团队"
},
"donation_confirmation": {
"subject": "感谢你的 {product_name} 捐赠",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "我们已对你的 {product_name} 举报做出决定",
- "body": "你好,\n\n我们的安全团队已审核你根据《数字服务法》提交的举报(ID:{reportId})并做出决定。{hasComment, select, yes {\n\n安全团队的回复:\n{publicComment}} other {}}\n\n我们不会透露对他人账号所采取措施的详情,因为这属于对方的个人数据。\n\n如果你不同意此决定,可以在 60 天内免费提交申诉。{appeals_email, select, null {请联系此实例的管理员,注明你的举报 ID,并说明你认为该决定不正确的原因。} other {请使用此邮箱地址发送邮件至 {appeals_email},注明你的举报 ID,并说明你认为该决定不正确的原因。}}如果你身在欧盟,还可以将争议提交给经认证的庭外争议解决机构。以上内容均不影响你向法院提起诉讼的权利。\n\n– {product_name} 安全团队"
+ "body": "你好,\n\n我们已审核你的举报(ID:{reportId})。\n\n{outcome, select, removed {你举报的内容违反了我们的规则,我们已将其删除。} restricted {我们确认你举报的账号违反了我们的规则,并已对其进行限制。我们不会透露对其他账号采取了什么措施,因为这属于对方的个人数据。} action_taken {我们确认你举报的对象违反了我们的规则,并已采取措施。我们不会透露对其他账号采取了什么措施,因为这属于对方的个人数据。} no_violation {我们确认你举报的内容或账号没有违反我们的规则,因此未做处理。} other {我们已结束处理你的举报。}}{hasComment, select, yes {\n\n团队留言:{publicComment}} other {}}{appeals_email, select, null {} other {\n\n如果你不同意,请在 60 天内发送邮件至 {appeals_email},并附上举报 ID。如果你身在欧盟,还可以将此事提交给经认证的庭外争议解决机构,或向你所在国家的数字服务协调员投诉。}}\n\n{product_name} 团队"
},
"dsa_report_verification": {
"subject": "验证邮箱以提交 DSA 举报",
@@ -51,6 +43,14 @@
"subject": "验证你的 {product_name} 邮箱地址",
"body": "你好 {username},\n\n请点击下方链接验证你的 {product_name} 账号邮箱地址:\n\n{verifyUrl}\n\n如果你未创建 {product_name} 账号,可以放心忽略此邮件。\n\n此链接 24 小时内有效。\n\n– {product_name} 团队"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {我们撤销了关于你的 {product_name} 账号的一项决定} other {你的 {product_name} 账号的限制已结束}}",
+ "body": "你好 {username},\n\n{outcome, select, reversed {{decision_id, select, null {我们重新审视了关于你账号的一项决定,并已将其撤销。} other {我们重新审视了决定 {decision_id},并已将其撤销。}}给你带来不便,我们深表歉意。} other {{decision_id, select, null {我们已解除你账号上的限制。} other {我们已解除决定 {decision_id} 中的限制。}}}}{restores_access, select, yes {你可以重新登录并使用 {product_name} 了。} other {}}{statement, select, null {} other {\n\n团队留言:{statement}}}{content_removed, select, yes {\n\n我们删除的内容无法恢复。} other {}}\n\n{product_name} 团队"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {关于你的 {product_name} 账号的通知} other {{kind_label, select, warning {关于你的 {product_name} 账号的警告} suspension {你的 {product_name} 账号已被暂时封禁} ban {你的 {product_name} 账号已被永久封禁} closure {你的 {product_name} 账号已关闭} feature_limit {你的 {product_name} 账号的部分功能已受限} content_removal {我们删除了你在 {product_name} 上发送的消息} profile_reset {我们重置了你的 {product_name} 个人资料的部分内容} community_removal {我们删除了你在 {product_name} 上的社区} bot {关于你在 {product_name} 上的机器人的通知} other {关于你的 {product_name} 账号的通知}}}}",
+ "body": "你好 {username},\n\n{summary}\n\n{effects}\n\n原因\n规则:{rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\n团队留言:{statement}}}\n\n我们如何做出决定\n{how_we_decided}{appeals_email, select, null {} other {\n\n如何申诉\n如果你认为我们判断有误,请最迟于 {appeal_deadline} 发送邮件至 {appeals_email}。如果可以,请使用你账号绑定的邮箱地址发送,并附上决定 ID。申诉免费,每一项申诉都由专人审核。{redress, select, null {} other {\n\n{redress}}}}}\n\n决定 ID:{decision_id}\n\n{product_name} 团队"
+ },
"gift_chargeback_notification": {
"subject": "已移除你兑换礼品所获得的福利",
"body": "你好 {username},\n\n你兑换的礼品码最初由他人支付。该付款现已被撤销(退单)。\n\n因此,我们已移除你在兑换礼品时添加到你账号的福利。\n\n{support_email, select, null {如果你认为此操作有误,请联系此实例的管理员,并提供有关礼品码以及兑换时间的任何详细信息。} other {如果你认为此操作有误,请联系我们的支持团队,并提供有关礼品码以及兑换时间的任何详细信息。}}\n\n– {product_name} 团队"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "你的 {product_name} 举报已完成审核",
- "body": "你好 {username},\n\n你的举报(ID:{reportId})已由我们的安全团队完成审核。{hasComment, select, yes {\n\n安全团队的回复:\n{publicComment}} other {}}\n\n感谢你帮助维护 {product_name} 的安全环境。我们会认真对待每一份举报,也感谢你为社区做出的贡献。\n\n{safety_email, select, null {如果你对此结果有任何疑问或意见,请联系此实例的管理员。} other {如果你对此结果有任何疑问或意见,请联系 {safety_email}。}}\n\n– {product_name} 安全团队"
- },
- "scheduled_deletion_notification": {
- "subject": "你的 {product_name} 账号将被永久删除",
- "body": "你好 {username},\n\n你的 {product_name} 账号已被安排永久删除。\n\n计划删除时间:{deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {原因:{reason}\n\n}\n}这是一项严重的处罚措施。你的账号数据将在预定日期被永久删除。\n\n如果你认为此处罚决定不正确,可以提交申诉。{appeals_email, select, null {请联系此实例的管理员。} other {请使用此邮箱地址发送邮件至 {appeals_email}。}}\n\n– {product_name} 安全团队"
+ "body": "你好 {username},\n\n我们已审核你的举报(ID:{reportId})。\n\n{outcome, select, removed {你举报的内容违反了我们的规则,我们已将其删除。} restricted {我们确认你举报的账号违反了我们的规则,并已对其进行限制。我们不会透露对其他账号采取了什么措施,因为这属于对方的个人数据。} action_taken {我们确认你举报的对象违反了我们的规则,并已采取措施。我们不会透露对其他账号采取了什么措施,因为这属于对方的个人数据。} no_violation {我们确认你举报的内容或账号没有违反我们的规则,因此未做处理。} other {我们已结束处理你的举报。}}{hasComment, select, yes {\n\n团队留言:{publicComment}} other {}}{appeals_email, select, null {} other {\n\n如果你不同意,请在 60 天内发送邮件至 {appeals_email},并附上举报 ID。如果你身在欧盟,还可以将此事提交给经认证的庭外争议解决机构,或向你所在国家的数字服务协调员投诉。}}\n\n{product_name} 团队"
},
"self_deletion_scheduled": {
"subject": "你的 {product_name} 账号已安排删除",
"body": "你好 {username},\n\n你已申请删除你的 {product_name} 账号。账号将于以下时间永久删除:\n\n{deletionDate, date, full} {deletionDate, time, short}\n\n如果你未请求此操作,请登录账号取消删除。建议同时更改密码以保护账号安全。\n\n– {product_name} 团队"
- },
- "unban_notification": {
- "subject": "你的 {product_name} 账号已解除封禁",
- "body": "你好 {username},\n\n好消息:你的 {product_name} 账号已解除封禁。\n\n{reason, select,\n null {}\n other {原因:{reason}\n\n}\n}你现在可以重新登录,继续正常使用 {product_name}。\n\n– {product_name} 安全团队"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/zh-TW.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/zh-TW.json
index e7759d850..865d0d668 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/zh-TW.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/locales/zh-TW.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "您的 {product_name} 帳號將因長期未使用而刪除",
- "body": "哈囉 {username},\n\n您的 {product_name} 帳號已長期未使用,因此已排定於以下時間永久刪除:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\n原因:{reason}}}\n\n{safety_email, select, null {如果您想保留帳號,請在該日期前聯絡此實例的管理員。} other {如果您想保留帳號,請在該日期前使用此電子郵件地址聯絡 {safety_email}。}}\n\n– {product_name} 團隊"
+ "body": "哈囉 {username},\n\n您的 {product_name} 帳號已長期未使用,因此我們已排定在 {deletion_date} 刪除該帳號。\n\n如果想保留帳號,請在該日期前登入。{support_email, select, null {如有疑問,請聯絡此實例的管理員。} other {如有疑問,請聯絡 {support_email}。}}\n\n{product_name} 團隊"
},
"account_deletion_scheduled_requested": {
"subject": "您的 {product_name} 帳號已排定刪除",
- "body": "哈囉 {username},\n\n依照您的要求,您的 {product_name} 帳號已排定於以下時間永久刪除:\n\n{deletionDate, date, full} {deletionDate, time, short}{reason, select, null {} other {\n\n原因:{reason}}}\n\n在此之前,您的帳號將被鎖定。{safety_email, select, null {如果您沒有提出此要求,或想保留帳號,請在該日期前聯絡此實例的管理員。} other {如果您沒有提出此要求,或想保留帳號,請在該日期前使用此電子郵件地址聯絡 {safety_email}。}}\n\n– {product_name} 團隊"
- },
- "account_scheduled_deletion": {
- "subject": "您的 {product_name} 帳號將被永久刪除",
- "body": "哈囉 {username},\n\n由於您違反了我們的服務條款或社群準則,您的 {product_name} 帳號已排定永久刪除。\n\n排定刪除時間:{deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {原因:{reason}\n\n}\n}這是一項嚴重的處分。您的帳號資料將在排定日期永久刪除。\n\n{legalLinks, select,\n both {請參閱:\n- 服務條款:{termsUrl}\n- 社群準則:{guidelinesUrl}\n\n}\n terms {請參閱:\n- 服務條款:{termsUrl}\n\n}\n guidelines {請參閱:\n- 社群準則:{guidelinesUrl}\n\n}\n other {}\n}申訴流程:\n如果您認為此處分不正確或不合理,您有 60 天的時間可以提交申訴。{appeals_email, select, null {請聯絡此實例的管理員。} other {請使用此電子郵件地址寄信至 {appeals_email}。}}\n\n在您的申訴中:\n- 請清楚說明您認為此處分不正確或不合理的原因\n- 提供任何相關證據或背景資訊\n\n{product_name} 安全團隊的成員將會審查您的申訴,並可能在做出最終決定前暫停這項刪除。\n\n– {product_name} 安全團隊"
- },
- "account_temp_banned": {
- "subject": "您的 {product_name} 帳號已暫時停權",
- "body": "哈囉 {username},\n\n由於您違反了我們的服務條款或社群準則,您的 {product_name} 帳號已暫時停權。\n\n持續時間:{durationHours, plural,\n =1 {1 小時}\n other {# 小時}\n}\n停權至:{bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {原因:{reason}\n\n}\n}在此期間,您將無法存取您的帳號。\n\n{legalLinks, select,\n both {請參閱:\n- 服務條款:{termsUrl}\n- 社群準則:{guidelinesUrl}\n\n}\n terms {請參閱:\n- 服務條款:{termsUrl}\n\n}\n guidelines {請參閱:\n- 社群準則:{guidelinesUrl}\n\n}\n other {}\n}如果您認為此處分不正確或不合理,可以提交申訴。{appeals_email, select, null {請聯絡此實例的管理員,並清楚說明您認為此處分不正確的原因。} other {請使用此電子郵件地址寄信至 {appeals_email},並清楚說明您認為此處分不正確的原因。}}我們會審查您的申訴,並回覆我們的決定。\n\n– {product_name} 安全團隊"
+ "body": "哈囉 {username},\n\n依照您的要求,我們已排定在 {deletion_date} 刪除您的 {product_name} 帳號。\n\n如果想保留帳號,請在 {deletion_date} 前登入。{safety_email, select, null {如果您沒有提出此要求,請聯絡此實例的管理員。} other {如果您沒有提出此要求,請聯絡 {safety_email}。}}\n\n{product_name} 團隊"
},
"donation_confirmation": {
"subject": "感謝您對 {product_name} 的捐款",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "我們已對您的 {product_name} 檢舉做出決定",
- "body": "哈囉,\n\n我們的安全團隊已審核您依據數位服務法提出的檢舉(ID:{reportId})並做出決定。{hasComment, select, yes {\n\n安全團隊的回覆:\n{publicComment}} other {}}\n\n我們不會透露對他人帳號所採取措施的細節,因為這屬於對方的個人資料。\n\n如果您不同意此決定,可以在 60 天內免費提交申訴。{appeals_email, select, null {請聯絡此實例的管理員,註明您的檢舉 ID,並說明您認為此決定不正確的原因。} other {請使用此電子郵件地址寄信至 {appeals_email},註明您的檢舉 ID,並說明您認為此決定不正確的原因。}}如果您身在歐盟,也可以將爭議提交給經認證的訴訟外爭議解決機構。以上內容均不影響您向法院提起訴訟的權利。\n\n– {product_name} 安全團隊"
+ "body": "哈囉,\n\n我們已審核您的檢舉(ID:{reportId})。\n\n{outcome, select, removed {您檢舉的內容違反了我們的規則,我們已將其移除。} restricted {我們確認您檢舉的帳號違反了我們的規則,並已對其施加限制。我們不會透露對其他帳號採取了什麼措施,因為這屬於對方的個人資料。} action_taken {我們確認您檢舉的對象違反了我們的規則,並已採取措施。我們不會透露對其他帳號採取了什麼措施,因為這屬於對方的個人資料。} no_violation {我們確認您檢舉的內容或帳號沒有違反我們的規則,因此維持原狀。} other {我們已結束處理您的檢舉。}}{hasComment, select, yes {\n\n團隊留言:{publicComment}} other {}}{appeals_email, select, null {} other {\n\n如果您不同意,請在 60 天內寄信至 {appeals_email},並附上檢舉 ID。如果您身在歐盟,也可以將此事提交給經認證的訴訟外爭議解決機構,或向您所在國家的數位服務協調官提出申訴。}}\n\n{product_name} 團隊"
},
"dsa_report_verification": {
"subject": "驗證您的電子郵件以送出 DSA 檢舉",
@@ -51,6 +43,14 @@
"subject": "驗證您的 {product_name} 電子郵件地址",
"body": "哈囉 {username},\n\n請點擊下方連結以驗證您的 {product_name} 帳號電子郵件地址:\n\n{verifyUrl}\n\n如果您沒有建立 {product_name} 帳號,可以直接忽略這封電子郵件。\n\n此連結在 24 小時內有效。\n\n– {product_name} 團隊"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {我們撤銷了一項關於您 {product_name} 帳號的決定} other {您 {product_name} 帳號的限制已結束}}",
+ "body": "哈囉 {username},\n\n{outcome, select, reversed {{decision_id, select, null {我們重新審視了一項關於您帳號的決定,並已將其撤銷。} other {我們重新審視了決定 {decision_id},並已將其撤銷。}}造成您的困擾,我們深感抱歉。} other {{decision_id, select, null {我們已解除您帳號的限制。} other {我們已解除決定 {decision_id} 的限制。}}}}{restores_access, select, yes {您可以重新登入並使用 {product_name}。} other {}}{statement, select, null {} other {\n\n團隊留言:{statement}}}{content_removed, select, yes {\n\n我們移除的內容無法復原。} other {}}\n\n{product_name} 團隊"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {關於您 {product_name} 帳號的通知} other {{kind_label, select, warning {關於您 {product_name} 帳號的警告} suspension {您的 {product_name} 帳號已遭暫時停權} ban {您的 {product_name} 帳號已遭永久停權} closure {您的 {product_name} 帳號已關閉} feature_limit {您 {product_name} 帳號的部分功能已受到限制} content_removal {我們移除了您在 {product_name} 上傳送的訊息} profile_reset {我們重設了您 {product_name} 個人檔案的部分內容} community_removal {我們移除了您在 {product_name} 上的社群} bot {關於您在 {product_name} 上的機器人的通知} other {關於您 {product_name} 帳號的通知}}}}",
+ "body": "哈囉 {username},\n\n{summary}\n\n{effects}\n\n原因\n規則:{rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\n團隊留言:{statement}}}\n\n我們如何做出決定\n{how_we_decided}{appeals_email, select, null {} other {\n\n如何申訴\n如果您認為我們判斷有誤,請最遲於 {appeal_deadline} 寄信至 {appeals_email}。可以的話,請使用您帳號的電子郵件地址寄信,並附上決定 ID。申訴不收取任何費用,且每件申訴都會由專人審核。{redress, select, null {} other {\n\n{redress}}}}}\n\n決定 ID:{decision_id}\n\n{product_name} 團隊"
+ },
"gift_chargeback_notification": {
"subject": "您兌換禮物取得的福利已移除",
"body": "哈囉 {username},\n\n您兌換的禮物代碼原本是由其他人付款購買的。該筆付款後來已被撤銷(拒付)。\n\n因此,我們已移除兌換該禮物時加到您帳號的福利。\n\n{support_email, select, null {如果您認為這是誤判,請聯絡此實例的管理員,並提供您所知道關於該禮物代碼與兌換時間的任何資訊。} other {如果您認為這是誤判,請聯絡我們的支援團隊,並提供您所知道關於該禮物代碼與兌換時間的任何資訊。}}\n\n– {product_name} 團隊"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "您的 {product_name} 檢舉已審核完成",
- "body": "哈囉 {username},\n\n您的檢舉(ID:{reportId})已由我們的安全團隊審核。{hasComment, select, yes {\n\n安全團隊的回覆:\n{publicComment}} other {}}\n\n感謝您協助維護 {product_name} 的安全。我們會認真看待每一則檢舉,並感謝您對社群的貢獻。\n\n{safety_email, select, null {如果您對此結果有任何疑問或疑慮,請聯絡此實例的管理員。} other {如果您對此結果有任何疑問或疑慮,請聯絡 {safety_email}。}}\n\n– {product_name} 安全團隊"
- },
- "scheduled_deletion_notification": {
- "subject": "您的 {product_name} 帳號將被永久刪除",
- "body": "哈囉 {username},\n\n您的 {product_name} 帳號已排定永久刪除。\n\n排定刪除時間:{deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {原因:{reason}\n\n}\n}這是一項嚴重的處分。您的帳號資料將在排定日期永久刪除。\n\n如果您認為此處分不正確,可以提交申訴。{appeals_email, select, null {請聯絡此實例的管理員。} other {請使用此電子郵件地址寄信至 {appeals_email}。}}\n\n– {product_name} 安全團隊"
+ "body": "哈囉 {username},\n\n我們已審核您的檢舉(ID:{reportId})。\n\n{outcome, select, removed {您檢舉的內容違反了我們的規則,我們已將其移除。} restricted {我們確認您檢舉的帳號違反了我們的規則,並已對其施加限制。我們不會透露對其他帳號採取了什麼措施,因為這屬於對方的個人資料。} action_taken {我們確認您檢舉的對象違反了我們的規則,並已採取措施。我們不會透露對其他帳號採取了什麼措施,因為這屬於對方的個人資料。} no_violation {我們確認您檢舉的內容或帳號沒有違反我們的規則,因此維持原狀。} other {我們已結束處理您的檢舉。}}{hasComment, select, yes {\n\n團隊留言:{publicComment}} other {}}{appeals_email, select, null {} other {\n\n如果您不同意,請在 60 天內寄信至 {appeals_email},並附上檢舉 ID。如果您身在歐盟,也可以將此事提交給經認證的訴訟外爭議解決機構,或向您所在國家的數位服務協調官提出申訴。}}\n\n{product_name} 團隊"
},
"self_deletion_scheduled": {
"subject": "您的 {product_name} 帳號已排定刪除",
"body": "哈囉 {username},\n\n您已要求刪除您的 {product_name} 帳號。您的帳號已排定於以下時間永久刪除:\n\n{deletionDate, date, full} {deletionDate, time, short}\n\n如果您沒有提出此要求,請登入您的帳號以取消刪除。我們也建議您變更密碼以保護您的帳號安全。\n\n– {product_name} 團隊"
- },
- "unban_notification": {
- "subject": "您的 {product_name} 帳號停權已解除",
- "body": "哈囉 {username},\n\n好消息:您的 {product_name} 帳號停權已解除。\n\n{reason, select,\n null {}\n other {原因:{reason}\n\n}\n}您現在可以重新登入並繼續正常使用 {product_name}。\n\n– {product_name} 安全團隊"
}
}
diff --git a/fluxer_api/pkgs/email/src/email_i18n/weblate/messages.json b/fluxer_api/pkgs/email/src/email_i18n/weblate/messages.json
index 40353f936..ce91d698c 100644
--- a/fluxer_api/pkgs/email/src/email_i18n/weblate/messages.json
+++ b/fluxer_api/pkgs/email/src/email_i18n/weblate/messages.json
@@ -5,19 +5,11 @@
},
"account_deletion_scheduled_inactivity": {
"subject": "Your {product_name} account will be deleted due to inactivity",
- "body": "Hello {username},\n\nYour {product_name} account has been inactive for a long time, so it is scheduled for permanent deletion on:\n\n{deletionDate, date, full} at {deletionDate, time, short}{reason, select, null {} other {\n\nReason: {reason}}}\n\n{safety_email, select, null {If you want to keep your account, contact the administrators of this instance before that date.} other {If you want to keep your account, contact {safety_email} from this email address before that date.}}\n\n– {product_name} Team"
+ "body": "Hello {username},\n\nYour {product_name} account has been inactive for a long time, so we scheduled it for deletion on {deletion_date}.\n\nTo keep your account, sign in before that date. {support_email, select, null {If you have questions, contact the administrators of this instance.} other {If you have questions, contact {support_email}.}}\n\nThe {product_name} team"
},
"account_deletion_scheduled_requested": {
"subject": "Your {product_name} account deletion is scheduled",
- "body": "Hello {username},\n\nAs you requested, your {product_name} account is scheduled for permanent deletion on:\n\n{deletionDate, date, full} at {deletionDate, time, short}{reason, select, null {} other {\n\nReason: {reason}}}\n\nYour account is locked until then. {safety_email, select, null {If you didn't request this, or you want to keep your account, contact the administrators of this instance before that date.} other {If you didn't request this, or you want to keep your account, contact {safety_email} from this email address before that date.}}\n\n– {product_name} Team"
- },
- "account_scheduled_deletion": {
- "subject": "Your {product_name} account will be permanently deleted",
- "body": "Hello {username},\n\nYour {product_name} account has been scheduled for permanent deletion due to violations of our Terms of Service or Community Guidelines.\n\nScheduled deletion: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}This is a serious enforcement action. Your account data will be permanently deleted on the scheduled date.\n\n{legalLinks, select,\n both {Please review:\n- Terms of Service: {termsUrl}\n- Community Guidelines: {guidelinesUrl}\n\n}\n terms {Please review:\n- Terms of Service: {termsUrl}\n\n}\n guidelines {Please review:\n- Community Guidelines: {guidelinesUrl}\n\n}\n other {}\n}Appeals process:\nIf you believe this enforcement decision was incorrect or unjustified, you have 60 days to submit an appeal. {appeals_email, select, null {Contact the administrators of this instance.} other {Email {appeals_email} from this email address.}}\n\nIn your appeal:\n- Clearly explain why you believe the enforcement decision was incorrect or unjustified\n- Provide any relevant evidence or context\n\nA member of the {product_name} Safety Team will review your appeal and may pause the pending deletion until a final decision has been reached.\n\n– {product_name} Safety Team"
- },
- "account_temp_banned": {
- "subject": "Your {product_name} account has been temporarily suspended",
- "body": "Hello {username},\n\nYour {product_name} account has been temporarily suspended for violating our Terms of Service or Community Guidelines.\n\nDuration: {durationHours, plural,\n =1 {1 hour}\n other {# hours}\n}\nSuspended until: {bannedUntil, date, full} {bannedUntil, time, short}\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}During this time, you won't be able to access your account.\n\n{legalLinks, select,\n both {Please review:\n- Terms of Service: {termsUrl}\n- Community Guidelines: {guidelinesUrl}\n\n}\n terms {Please review:\n- Terms of Service: {termsUrl}\n\n}\n guidelines {Please review:\n- Community Guidelines: {guidelinesUrl}\n\n}\n other {}\n}If you believe this enforcement decision was incorrect or unjustified, you can submit an appeal. {appeals_email, select, null {Contact the administrators of this instance and clearly explain why you believe the decision was incorrect.} other {Email {appeals_email} from this email address and clearly explain why you believe the decision was incorrect.}} We'll review your appeal and respond with our decision.\n\n– {product_name} Safety Team"
+ "body": "Hello {username},\n\nAs you asked, we scheduled your {product_name} account for deletion on {deletion_date}.\n\nTo keep your account, sign in before {deletion_date}. {safety_email, select, null {If you didn't ask for this, contact the administrators of this instance.} other {If you didn't ask for this, contact {safety_email}.}}\n\nThe {product_name} team"
},
"donation_confirmation": {
"subject": "Thank you for your {product_name} donation",
@@ -29,7 +21,7 @@
},
"dsa_report_resolved": {
"subject": "We made a decision on your {product_name} report",
- "body": "Hello,\n\nOur Safety Team has reviewed your Digital Services Act report (ID: {reportId}) and made a decision.{hasComment, select, yes {\n\nResponse from the Safety Team:\n{publicComment}} other {}}\n\nWe don't share details of any action taken against another person's account, because that is their personal data.\n\nIf you disagree with this decision, you can appeal free of charge within 60 days. {appeals_email, select, null {Contact the administrators of this instance, include your report ID, and explain why you think the decision is wrong.} other {Email {appeals_email} from this email address, include your report ID, and explain why you think the decision is wrong.}} If you are in the EU, you can also refer the dispute to a certified out-of-court dispute settlement body. None of this affects your right to go to court.\n\n– {product_name} Safety Team"
+ "body": "Hello,\n\nWe reviewed your report (ID: {reportId}).\n\n{outcome, select, removed {We removed the content you reported because it broke our rules.} restricted {We found that the account you reported broke our rules, and we restricted it. We don't share what action we took against another account, because that is their personal data.} action_taken {We found that what you reported broke our rules, and we took action. We don't share what action we took against another account, because that is their personal data.} no_violation {We found that the content or account you reported doesn't break our rules, so we left it as it is.} other {We closed your report.}}{hasComment, select, yes {\n\nNote from our team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nIf you disagree, email {appeals_email} within 60 days and include the report ID. If you're in the EU, you can also refer this to a certified out-of-court dispute settlement body or complain to the Digital Services Coordinator in your country.}}\n\nThe {product_name} team"
},
"dsa_report_verification": {
"subject": "Verify your email for a DSA report",
@@ -51,6 +43,14 @@
"subject": "Verify your {product_name} email address",
"body": "Hello {username},\n\nPlease verify the email address for your {product_name} account by clicking the link below:\n\n{verifyUrl}\n\nIf you didn't create a {product_name} account, you can safely ignore this email.\n\nThis link is valid for 24 hours.\n\n– {product_name} Team"
},
+ "enforcement_ended": {
+ "subject": "{outcome, select, reversed {We reversed a decision about your {product_name} account} other {A restriction on your {product_name} account has ended}}",
+ "body": "Hello {username},\n\n{outcome, select, reversed {{decision_id, select, null {We looked again at a decision about your account and reversed it.} other {We looked again at decision {decision_id} and reversed it.}} We're sorry for the trouble.} other {{decision_id, select, null {We lifted the restriction on your account.} other {We lifted the restriction from decision {decision_id}.}}}}{restores_access, select, yes { You can sign in and use {product_name} again.} other {}}{statement, select, null {} other {\n\nNote from our team: {statement}}}{content_removed, select, yes {\n\nContent we removed can't be restored.} other {}}\n\nThe {product_name} team"
+ },
+ "enforcement_notice": {
+ "subject": "{neutral, select, yes {An update about your {product_name} account} other {{kind_label, select, warning {A warning about your {product_name} account} suspension {Your {product_name} account is suspended} ban {Your {product_name} account is banned} closure {Your {product_name} account is closed} feature_limit {Some features are limited on your {product_name} account} content_removal {We removed messages you sent on {product_name}} profile_reset {We reset parts of your {product_name} profile} community_removal {We removed your community on {product_name}} bot {An update about your bot on {product_name}} other {An update about your {product_name} account}}}}",
+ "body": "Hello {username},\n\n{summary}\n\n{effects}\n\nWhy\nRule: {rule_title}{rule_url, select, null {} other { ({rule_url})}}\n{facts}{statement, select, null {} other {\n\nNote from our team: {statement}}}\n\nHow we decided\n{how_we_decided}{appeals_email, select, null {} other {\n\nHow to appeal\nIf you think we got this wrong, email {appeals_email} by {appeal_deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one.{redress, select, null {} other {\n\n{redress}}}}}\n\nDecision ID: {decision_id}\n\nThe {product_name} team"
+ },
"gift_chargeback_notification": {
"subject": "Perks from your redeemed gift have been removed",
"body": "Hello {username},\n\nA gift code you redeemed was originally paid for by someone else. That payment has since been reversed (a chargeback).\n\nBecause of this, we've removed the perks that were added to your account when you redeemed the gift.\n\n{support_email, select, null {If you think this is a mistake, please contact the administrators of this instance and include any details you have about the gift code and when you redeemed it.} other {If you think this is a mistake, please contact our support team and include any details you have about the gift code and when you redeemed it.}}\n\n– {product_name} Team"
@@ -85,18 +85,10 @@
},
"report_resolved": {
"subject": "Your {product_name} report has been reviewed",
- "body": "Hello {username},\n\nYour report (ID: {reportId}) has been reviewed by our Safety Team.{hasComment, select, yes {\n\nResponse from the Safety Team:\n{publicComment}} other {}}\n\nThanks for helping keep {product_name} safe for everyone. We take all reports seriously and appreciate your contribution to the community.\n\n{safety_email, select, null {If you have any questions or concerns about this outcome, please contact the administrators of this instance.} other {If you have any questions or concerns about this outcome, please contact {safety_email}.}}\n\n– {product_name} Safety Team"
- },
- "scheduled_deletion_notification": {
- "subject": "Your {product_name} account will be permanently deleted",
- "body": "Hello {username},\n\nYour {product_name} account has been scheduled for permanent deletion.\n\nScheduled deletion: {deletionDate, date, full} {deletionDate, time, short}\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}This is a serious enforcement action. Your account data will be permanently deleted on the scheduled date.\n\nIf you believe this enforcement decision was incorrect, you can submit an appeal. {appeals_email, select, null {Contact the administrators of this instance.} other {Email {appeals_email} from this email address.}}\n\n– {product_name} Safety Team"
+ "body": "Hello {username},\n\nWe reviewed your report (ID: {reportId}).\n\n{outcome, select, removed {We removed the content you reported because it broke our rules.} restricted {We found that the account you reported broke our rules, and we restricted it. We don't share what action we took against another account, because that is their personal data.} action_taken {We found that what you reported broke our rules, and we took action. We don't share what action we took against another account, because that is their personal data.} no_violation {We found that the content or account you reported doesn't break our rules, so we left it as it is.} other {We closed your report.}}{hasComment, select, yes {\n\nNote from our team: {publicComment}} other {}}{appeals_email, select, null {} other {\n\nIf you disagree, email {appeals_email} within 60 days and include the report ID. If you're in the EU, you can also refer this to a certified out-of-court dispute settlement body or complain to the Digital Services Coordinator in your country.}}\n\nThe {product_name} team"
},
"self_deletion_scheduled": {
"subject": "Your {product_name} account deletion is scheduled",
"body": "Hello {username},\n\nYou requested to delete your {product_name} account. Your account is scheduled for permanent deletion on:\n\n{deletionDate, date, full} at {deletionDate, time, short}\n\nIf you didn't request this, sign in to your account to cancel the deletion. We also recommend changing your password to secure your account.\n\n– {product_name} Team"
- },
- "unban_notification": {
- "subject": "Your {product_name} account suspension has been lifted",
- "body": "Hello {username},\n\nGood news: your {product_name} account suspension has been lifted.\n\n{reason, select,\n null {}\n other {Reason: {reason}\n\n}\n}You can now log back in and continue using {product_name} as normal.\n\n– {product_name} Safety Team"
}
}
diff --git a/fluxer_api/src/api/ApiContext.ts b/fluxer_api/src/api/ApiContext.ts
index 43acc2c03..56d1cb225 100644
--- a/fluxer_api/src/api/ApiContext.ts
+++ b/fluxer_api/src/api/ApiContext.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {Config} from '@app/api/Config';
+import type {NetworkBlock} from '@app/api/enforcement/NetworkBlockError';
import type {EmailDnsValidationService} from '@app/api/infrastructure/EmailDnsValidationService';
import type {IGatewayService} from '@app/api/infrastructure/IGatewayService';
import type {IMediaService} from '@app/api/infrastructure/IMediaService';
@@ -37,6 +38,8 @@ export interface RequestScope {
requestId: string;
clientIp: string | null;
userAgent: string | null;
+ locale: string;
+ blockedNetworkSignIn: NetworkBlock | null;
}
export interface ApiContext {
diff --git a/fluxer_api/src/api/CreateApiContext.ts b/fluxer_api/src/api/CreateApiContext.ts
index 0fb5c7ffc..35c9013e2 100644
--- a/fluxer_api/src/api/CreateApiContext.ts
+++ b/fluxer_api/src/api/CreateApiContext.ts
@@ -19,6 +19,7 @@ import {
getUserActivityBuffer,
getUserRepository,
} from '@app/api/middleware/ServiceSingletons';
+import {Locales} from '@fluxer/constants/src/Locales';
let cachedServices: ApiServices | null = null;
let cachedConfigRef: typeof Config | null = null;
@@ -56,6 +57,8 @@ const ANONYMOUS_REQUEST_SCOPE: RequestScope = {
requestId: 'anonymous',
clientIp: null,
userAgent: null,
+ locale: Locales.EN_US,
+ blockedNetworkSignIn: null,
};
export function createApiContext(scope: RequestScope = ANONYMOUS_REQUEST_SCOPE): ApiContext {
diff --git a/fluxer_api/src/api/Tables.ts b/fluxer_api/src/api/Tables.ts
index d4f9a95cf..5d3afbe19 100644
--- a/fluxer_api/src/api/Tables.ts
+++ b/fluxer_api/src/api/Tables.ts
@@ -131,6 +131,18 @@ import {
type WebhooksBySourceChannelRow,
} from '@app/api/database/types/ChannelTypes';
import {USER_CONNECTION_STORAGE_COLUMNS, type UserConnectionStorageRow} from '@app/api/database/types/ConnectionTypes';
+import {
+ ENFORCEMENT_DECISION_BY_SUBJECT_COLUMNS,
+ ENFORCEMENT_DECISION_COLUMNS,
+ ENFORCEMENT_DECISION_EVIDENCE_COLUMNS,
+ ENFORCEMENT_DECISION_NOTE_COLUMNS,
+ ENFORCEMENT_REVIEW_QUEUE_COLUMNS,
+ type EnforcementDecisionBySubjectRow,
+ type EnforcementDecisionEvidenceRow,
+ type EnforcementDecisionNoteRow,
+ type EnforcementDecisionRow,
+ type EnforcementReviewQueueRow,
+} from '@app/api/database/types/EnforcementTypes';
import {
GUILD_DISCOVERY_BY_STATUS_COLUMNS,
GUILD_DISCOVERY_COLUMNS,
@@ -846,6 +858,44 @@ export const AdminApiKeysByCreator = defineTable<AdminApiKeyByCreatorRow, 'creat
primaryKey: ['created_by_user_id', 'key_id'],
partitionKey: ['created_by_user_id'],
});
+export const EnforcementDecisions = defineTable<EnforcementDecisionRow, 'decision_id'>({
+ name: 'enforcement_decisions',
+ columns: ENFORCEMENT_DECISION_COLUMNS,
+ primaryKey: ['decision_id'],
+});
+export const EnforcementDecisionsBySubject = defineTable<
+ EnforcementDecisionBySubjectRow,
+ 'subject_type' | 'subject_id' | 'decision_id',
+ 'subject_type' | 'subject_id'
+>({
+ name: 'enforcement_decisions_by_subject',
+ columns: ENFORCEMENT_DECISION_BY_SUBJECT_COLUMNS,
+ primaryKey: ['subject_type', 'subject_id', 'decision_id'],
+ partitionKey: ['subject_type', 'subject_id'],
+});
+export const EnforcementDecisionEvidence = defineTable<EnforcementDecisionEvidenceRow, 'decision_id'>({
+ name: 'enforcement_decision_evidence',
+ columns: ENFORCEMENT_DECISION_EVIDENCE_COLUMNS,
+ primaryKey: ['decision_id'],
+ defaultTtlSeconds: seconds('365 days'),
+});
+export const EnforcementDecisionNotes = defineTable<
+ EnforcementDecisionNoteRow,
+ 'decision_id' | 'note_id',
+ 'decision_id'
+>({
+ name: 'enforcement_decision_notes',
+ columns: ENFORCEMENT_DECISION_NOTE_COLUMNS,
+ primaryKey: ['decision_id', 'note_id'],
+ partitionKey: ['decision_id'],
+ defaultTtlSeconds: seconds('365 days'),
+});
+export const EnforcementReviewQueue = defineTable<EnforcementReviewQueueRow, 'bucket' | 'decision_id', 'bucket'>({
+ name: 'enforcement_review_queue',
+ columns: ENFORCEMENT_REVIEW_QUEUE_COLUMNS,
+ primaryKey: ['bucket', 'decision_id'],
+ partitionKey: ['bucket'],
+});
export const BannedIps = defineTable<BannedIpRow, 'ip'>({
name: 'banned_ips',
columns: BANNED_IP_COLUMNS,
diff --git a/fluxer_api/src/api/admin/AdminAuditActions.ts b/fluxer_api/src/api/admin/AdminAuditActions.ts
index f9b083837..0bf58ba80 100644
--- a/fluxer_api/src/api/admin/AdminAuditActions.ts
+++ b/fluxer_api/src/api/admin/AdminAuditActions.ts
@@ -32,6 +32,7 @@ export const AdminAuditReadActions = {
LIST_DISCOVERY_CATEGORIES: 'list_discovery_categories',
LIST_DISCOVERY_CATEGORY_LISTINGS: 'list_discovery_category_listings',
LIST_DISCOVERY_LISTINGS: 'list_discovery_listings',
+ LIST_ENFORCEMENT_DECISIONS: 'list_enforcement_decisions',
LIST_GUILD_APPLICATIONS: 'list_guild_applications',
LIST_GUILD_AUDIT_LOGS: 'list_guild_audit_logs',
LIST_GUILD_EMOJIS: 'list_guild_emojis',
@@ -39,6 +40,7 @@ export const AdminAuditReadActions = {
LIST_GUILD_MEMORY_STATS: 'list_guild_memory_stats',
LIST_GUILD_STICKERS: 'list_guild_stickers',
LIST_GUILD_THREADS: 'list_guild_threads',
+ LIST_NETWORK_BLOCK_CANDIDATES: 'list_network_block_candidates',
LIST_PENDING_REGISTRATIONS: 'list_pending_registrations',
LIST_REPORT_REASONS: 'list_report_reasons',
LIST_USER_APPLICATIONS: 'list_user_applications',
@@ -56,6 +58,7 @@ export const AdminAuditReadActions = {
SEARCH_MESSAGES: 'search_messages',
SEARCH_REPORTS: 'search_reports',
SEARCH_USERS: 'search_users',
+ VIEW_ENFORCEMENT_DECISION: 'view_enforcement_decision',
} as const;
export type AdminAuditReadAction = ValueOf<typeof AdminAuditReadActions>;
diff --git a/fluxer_api/src/api/admin/AdminRepository.ts b/fluxer_api/src/api/admin/AdminRepository.ts
index 2fc9a3fa2..67531000a 100644
--- a/fluxer_api/src/api/admin/AdminRepository.ts
+++ b/fluxer_api/src/api/admin/AdminRepository.ts
@@ -14,6 +14,7 @@ import type {
AdminAuditLogRow,
BannedAvatarHashRow,
BannedFileShaRow,
+ BannedIpRow,
BannedProfileSubstringRow,
BannedProfileSubstringScope,
BannedUrlDomainRow,
@@ -53,6 +54,7 @@ export interface BannedIpEntry {
reason: string | null;
expiresAt: Date | null;
createdAt: Date | null;
+ decisionId: bigint | null;
}
const FETCH_AUDIT_LOG_BY_ID_QUERY = AdminAuditLogs.select({
@@ -62,6 +64,9 @@ const FETCH_AUDIT_LOGS_BY_IDS_QUERY = AdminAuditLogs.select({
where: AdminAuditLogs.where.in('log_id', 'log_ids'),
});
const LOAD_ALL_BANNED_IPS_QUERY = BannedIps.select();
+const FETCH_BANNED_IP_QUERY = BannedIps.select({
+ where: BannedIps.where.eq('ip'),
+});
const IS_EMAIL_BANNED_QUERY = BannedEmails.select({
where: BannedEmails.where.eq('email_lower'),
});
@@ -104,6 +109,17 @@ function canonicalizeBannedIpEntry(value: string): string {
return parseIpBanEntry(value)?.canonical ?? value;
}
+function toBannedIpEntry(row: BannedIpRow): BannedIpEntry {
+ return {
+ ip: row.ip,
+ kind: parseBannedIpKind(row.ban_kind),
+ reason: row.reason ?? null,
+ expiresAt: row.expires_at ?? null,
+ createdAt: row.created_at ?? null,
+ decisionId: row.decision_id ?? null,
+ };
+}
+
export class AdminRepository {
async createAuditLog(log: AdminAuditLogRow): Promise<AdminAuditLog> {
await upsertOne(AdminAuditLogs.insert(log));
@@ -174,6 +190,87 @@ export class AdminRepository {
await this.writeIpBan(ip, 'abusive_api_access_patterns', ttlSeconds);
}
+ async findIpBanDecision(ip: string): Promise<bigint | null> {
+ const row = await this.fetchActiveIpBanRow(canonicalizeBannedIpEntry(ip));
+ return row?.decision_id ?? null;
+ }
+
+ async banIpForDecision(ip: string, decisionId: bigint, expiresAt: Date): Promise<BannedIpEntry | null> {
+ if (isIpBanExempt(ip)) {
+ return null;
+ }
+ const canonicalIp = canonicalizeBannedIpEntry(ip);
+ const existing = await this.fetchActiveIpBanRow(canonicalIp);
+ if (existing && (existing.decision_id ?? decisionId) !== decisionId) {
+ return null;
+ }
+ if (existing && !existing.expires_at) {
+ return null;
+ }
+ const createdAt = new Date();
+ const existingExpiry = existing?.expires_at ?? null;
+ const expiry = existingExpiry && existingExpiry.getTime() > expiresAt.getTime() ? existingExpiry : expiresAt;
+ const row: BannedIpRow = {
+ ip: canonicalIp,
+ ban_kind: 'temporary_24h',
+ reason: 'enforcement_decision',
+ expires_at: expiry,
+ created_at: createdAt,
+ decision_id: decisionId,
+ };
+ const ttlSeconds = Math.ceil((expiry.getTime() - createdAt.getTime()) / 1000);
+ await upsertOne(BannedIps.insertWithTtl(row, ttlSeconds));
+ return toBannedIpEntry(row);
+ }
+
+ async listDecisionIpBans(decisionId: bigint): Promise<Array<BannedIpEntry>> {
+ const entries = await this.loadAllBannedIpEntries();
+ return entries.filter((entry) => entry.decisionId === decisionId);
+ }
+
+ async relinkDecisionIpBans(fromDecisionId: bigint, toDecisionId: bigint): Promise<Array<BannedIpEntry>> {
+ const now = Date.now();
+ const entries = (await this.listDecisionIpBans(fromDecisionId)).filter(
+ (entry) => entry.expiresAt && entry.expiresAt.getTime() > now,
+ );
+ const relinked = entries.map((entry) => ({...entry, decisionId: toDecisionId}));
+ await Promise.all(
+ relinked.map((entry) =>
+ upsertOne(
+ BannedIps.insertWithTtl(
+ {
+ ip: entry.ip,
+ ban_kind: entry.kind,
+ reason: entry.reason,
+ expires_at: entry.expiresAt,
+ created_at: entry.createdAt,
+ decision_id: toDecisionId,
+ },
+ Math.ceil((entry.expiresAt!.getTime() - now) / 1000),
+ ),
+ ),
+ ),
+ );
+ return relinked;
+ }
+
+ async removeDecisionIpBans(decisionIds: ReadonlyArray<bigint>): Promise<Array<BannedIpEntry>> {
+ const ids = new Set(decisionIds);
+ const entries = (await this.loadAllBannedIpEntries()).filter(
+ (entry) => entry.decisionId !== null && ids.has(entry.decisionId),
+ );
+ await Promise.all(entries.map((entry) => deleteOneOrMany(BannedIps.deleteByPk({ip: entry.ip}))));
+ return entries;
+ }
+
+ private async fetchActiveIpBanRow(canonicalIp: string): Promise<BannedIpRow | null> {
+ const row = await fetchOne<BannedIpRow>(FETCH_BANNED_IP_QUERY.bind({ip: canonicalIp}));
+ if (!row || (row.expires_at && row.expires_at.getTime() <= Date.now())) {
+ return null;
+ }
+ return row;
+ }
+
private async writeIpBan(ip: string, reason: string, ttlSeconds: number | null): Promise<void> {
if (ttlSeconds !== null && (!Number.isInteger(ttlSeconds) || ttlSeconds <= 0)) {
throw new RangeError('Temporary IP ban TTL must be a positive integer');
@@ -182,6 +279,9 @@ export class AdminRepository {
return;
}
const canonicalIp = canonicalizeBannedIpEntry(ip);
+ if ((await this.fetchActiveIpBanRow(canonicalIp))?.decision_id != null) {
+ return;
+ }
const createdAt = new Date();
if (ttlSeconds === null) {
await upsertOne(
@@ -191,6 +291,7 @@ export class AdminRepository {
reason,
expires_at: null,
created_at: createdAt,
+ decision_id: null,
}),
);
return;
@@ -203,6 +304,7 @@ export class AdminRepository {
reason,
expires_at: new Date(createdAt.getTime() + ttlSeconds * 1000),
created_at: createdAt,
+ decision_id: null,
},
ttlSeconds,
),
@@ -226,23 +328,9 @@ export class AdminRepository {
}
async loadAllBannedIpEntries(): Promise<Array<BannedIpEntry>> {
- const rows = await fetchMany<{
- ip: string;
- ban_kind?: string | null;
- reason?: string | null;
- expires_at?: Date | null;
- created_at?: Date | null;
- }>(LOAD_ALL_BANNED_IPS_QUERY.bind({}));
+ const rows = await fetchMany<BannedIpRow>(LOAD_ALL_BANNED_IPS_QUERY.bind({}));
const now = Date.now();
- return rows
- .filter((row) => !row.expires_at || row.expires_at.getTime() > now)
- .map((row) => ({
- ip: row.ip,
- kind: parseBannedIpKind(row.ban_kind),
- reason: row.reason ?? null,
- expiresAt: row.expires_at ?? null,
- createdAt: row.created_at ?? null,
- }));
+ return rows.filter((row) => !row.expires_at || row.expires_at.getTime() > now).map(toBannedIpEntry);
}
async isEmailBanned(email: string): Promise<boolean> {
diff --git a/fluxer_api/src/api/admin/AdminService.ts b/fluxer_api/src/api/admin/AdminService.ts
index 2e85bd599..f578b7721 100644
--- a/fluxer_api/src/api/admin/AdminService.ts
+++ b/fluxer_api/src/api/admin/AdminService.ts
@@ -13,6 +13,7 @@ import {AdminMessageService} from '@app/api/admin/services/AdminMessageService';
import {AdminMessageShredService} from '@app/api/admin/services/AdminMessageShredService';
import {AdminReportService} from '@app/api/admin/services/AdminReportService';
import {AdminSearchService} from '@app/api/admin/services/AdminSearchService';
+import {AdminUserBanService} from '@app/api/admin/services/AdminUserBanService';
import {AdminUserRelationshipService} from '@app/api/admin/services/AdminUserRelationshipService';
import {AdminUserService} from '@app/api/admin/services/AdminUserService';
import {AdminVoiceService} from '@app/api/admin/services/AdminVoiceService';
@@ -20,6 +21,8 @@ import {ReporterResolutionNotifier} from '@app/api/admin/services/ReporterResolu
import type {UserID} from '@app/api/BrandedTypes';
import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
import type {ChannelService} from '@app/api/channel/services/ChannelService';
+import {EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
+import {EnforcementNoticeDelivery} from '@app/api/enforcement/EnforcementNoticeDelivery';
import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
import type {GuildService} from '@app/api/guild/services/GuildService';
import type {DiscriminatorService} from '@app/api/infrastructure/DiscriminatorService';
@@ -31,7 +34,11 @@ import type {UserCacheService} from '@app/api/infrastructure/UserCacheService';
import type {InviteRepository} from '@app/api/invite/InviteRepository';
import {JobAdminService} from '@app/api/jobs/JobAdminService';
import type {JobLedgerRepository} from '@app/api/jobs/JobLedgerRepository';
-import {getGuildDiscoveryRepository, getKVAccountDeletionQueue} from '@app/api/middleware/ServiceSingletons';
+import {
+ getEnforcementDecisionRepository,
+ getGuildDiscoveryRepository,
+ getKVAccountDeletionQueue,
+} from '@app/api/middleware/ServiceSingletons';
import type {ApplicationRepository} from '@app/api/oauth/repositories/ApplicationRepository';
import type {ReportService} from '@app/api/report/ReportService';
import type {StoreEntitlementService} from '@app/api/store_billing/StoreEntitlementService';
@@ -49,6 +56,8 @@ export class AdminService {
readonly messageShredService: AdminMessageShredService;
readonly messageDeletionService: AdminMessageDeletionService;
readonly reportServiceAggregate: AdminReportService;
+ readonly enforcementService: EnforcementDecisionService;
+ readonly banService: AdminUserBanService;
readonly voiceService: AdminVoiceService;
readonly searchService: AdminSearchService;
readonly codeGenerationService: AdminCodeGenerationService;
@@ -90,29 +99,57 @@ export class AdminService {
adminRepository: this.adminRepository,
auditService: this.auditService,
});
- const reporterResolutionNotifier = new ReporterResolutionNotifier({
+ const systemDm = {
+ channelService: this.channelService,
+ userChannelService: this.runtimeUserService.channelService,
+ userCacheService: this.userCacheService,
+ };
+ const reporterResolutionNotifier = new ReporterResolutionNotifier({apiContext: this.apiContext, systemDm});
+ this.assetPurgeService = new AdminAssetPurgeService({
+ guildRepository: this.guildRepository,
+ gatewayService: gateway,
+ assetDeletionQueue: this.assetDeletionQueue,
+ auditService: this.auditService,
+ });
+ this.messageService = new AdminMessageService({
apiContext: this.apiContext,
- systemDm: {
- channelService: this.channelService,
- userChannelService: this.runtimeUserService.channelService,
- userCacheService: this.userCacheService,
- },
+ channelRepository: this.channelRepository,
+ guildRepository: this.guildRepository,
+ auditService: this.auditService,
});
- this.userService = new AdminUserService({
+ this.reportServiceAggregate = new AdminReportService({
apiContext: this.apiContext,
+ reportService: this.reportService,
guildRepository: this.guildRepository,
channelRepository: this.channelRepository,
- discriminatorService: this.discriminatorService,
- entityAssetService: this.entityAssetService,
+ storageService: this.storageService,
auditService: this.auditService,
userCacheService: this.userCacheService,
- banManagementService: this.banManagementService,
+ reporterResolutionNotifier,
+ });
+ const userUpdateDeps = {
+ userCacheService: this.userCacheService,
+ userRepository: users,
+ guildRepository: this.guildRepository,
+ gatewayService: gateway,
+ };
+ const delivery = new EnforcementNoticeDelivery({
+ apiContext: this.apiContext,
+ applicationRepository: this.applicationRepository,
+ systemDm,
+ });
+ this.enforcementService = new EnforcementDecisionService({
+ apiContext: this.apiContext,
+ userUpdateDeps,
kvDeletionQueue: getKVAccountDeletionQueue(),
- bulkMessageDeletionQueue: this.bulkMessageDeletionQueue,
- stripe: this.stripe,
+ repository: getEnforcementDecisionRepository(),
+ delivery,
+ auditService: this.auditService,
+ banManagementService: this.banManagementService,
+ channelRepository: this.channelRepository,
+ guildRepository: this.guildRepository,
reportService: this.reportService,
- storeEntitlementService: this.storeEntitlementService,
- reporterResolutionNotifier,
+ adminReportService: this.reportServiceAggregate,
});
this.guildServiceAggregate = new AdminGuildService({
guildRepository: this.guildRepository,
@@ -124,37 +161,44 @@ export class AdminService {
entityAssetService: this.entityAssetService,
auditService: this.auditService,
discoveryRepository: getGuildDiscoveryRepository(),
- });
- this.assetPurgeService = new AdminAssetPurgeService({
- guildRepository: this.guildRepository,
- gatewayService: gateway,
- assetDeletionQueue: this.assetDeletionQueue,
- auditService: this.auditService,
- });
- this.messageService = new AdminMessageService({
- apiContext: this.apiContext,
- channelRepository: this.channelRepository,
- guildRepository: this.guildRepository,
- auditService: this.auditService,
+ enforcement: this.enforcementService,
});
this.messageShredService = new AdminMessageShredService({
apiContext: this.apiContext,
auditService: this.auditService,
+ enforcement: this.enforcementService,
});
this.messageDeletionService = new AdminMessageDeletionService({
+ apiContext: this.apiContext,
channelRepository: this.channelRepository,
- messageShredService: this.messageShredService,
auditService: this.auditService,
+ enforcement: this.enforcementService,
});
- this.reportServiceAggregate = new AdminReportService({
+ this.userService = new AdminUserService({
apiContext: this.apiContext,
- reportService: this.reportService,
guildRepository: this.guildRepository,
channelRepository: this.channelRepository,
- storageService: this.storageService,
+ discriminatorService: this.discriminatorService,
+ entityAssetService: this.entityAssetService,
auditService: this.auditService,
userCacheService: this.userCacheService,
+ banManagementService: this.banManagementService,
+ kvDeletionQueue: getKVAccountDeletionQueue(),
+ bulkMessageDeletionQueue: this.bulkMessageDeletionQueue,
+ stripe: this.stripe,
+ reportService: this.reportService,
+ storeEntitlementService: this.storeEntitlementService,
reporterResolutionNotifier,
+ enforcement: this.enforcementService,
+ delivery,
+ });
+ this.banService = new AdminUserBanService({
+ apiContext: this.apiContext,
+ userUpdateDeps,
+ kvDeletionQueue: getKVAccountDeletionQueue(),
+ auditService: this.auditService,
+ enforcement: this.enforcementService,
+ delivery,
});
this.voiceService = new AdminVoiceService({
apiContext: this.apiContext,
diff --git a/fluxer_api/src/api/admin/controllers/BanAdminController.ts b/fluxer_api/src/api/admin/controllers/BanAdminController.ts
index 8480c3e3c..a603a8f34 100644
--- a/fluxer_api/src/api/admin/controllers/BanAdminController.ts
+++ b/fluxer_api/src/api/admin/controllers/BanAdminController.ts
@@ -229,7 +229,7 @@ async function checkBlocklistEntry(
listType: AdminBlocklistListType,
entryValue: string,
scope: ProfileSubstringScope | undefined,
-): Promise<{banned: boolean; expires_at?: string | null}> {
+): Promise<{banned: boolean; expires_at?: string | null; decision_id?: string | null}> {
switch (listType) {
case 'ip':
return bans.checkIpBan({ip: entryValue});
@@ -336,7 +336,7 @@ export function BanAdminController(app: HonoApp) {
tags: ['Admin'],
requestSchema: AdminBlocklistEntryCreateRequest,
description:
- 'Add a value to a blocklist. The request body is the shape the blocklist named by list_type accepts, and the value is validated and canonicalized for that blocklist. Adding an IP address that is on the instance exemption list is refused with 400 IP_BAN_DECLINED and recorded in the audit log.',
+ 'Add a value to a blocklist. The request body is the shape the blocklist named by list_type accepts, and the value is validated and canonicalized for that blocklist. Adding an IP address that is on the instance exemption list is refused with 400 IP_BAN_DECLINED and recorded in the audit log. An IP address blocked by an enforcement decision returns 409 IP_BAN_LINKED_TO_DECISION with the decision ID, because only an account decision creates or changes such a block.',
}),
async (ctx) => {
const adminService = ctx.get('adminService');
@@ -504,7 +504,11 @@ export function BanAdminController(app: HonoApp) {
banned: result.banned,
},
});
- return ctx.json({banned: result.banned, expires_at: result.expires_at ?? null});
+ return ctx.json({
+ banned: result.banned,
+ expires_at: result.expires_at ?? null,
+ decision_id: result.decision_id ?? null,
+ });
},
);
app.patch(
@@ -577,7 +581,7 @@ export function BanAdminController(app: HonoApp) {
security: ['adminApiKey'],
tags: ['Admin'],
description:
- 'Remove an entry from a blocklist. The value is percent-encoded in the path and is canonicalized the same way it was on add, so an IP covered only by a broader CIDR entry cannot be removed through the narrower address. The profile-substring blocklist requires a scope.',
+ 'Remove an entry from a blocklist. The value is percent-encoded in the path and is canonicalized the same way it was on add, so an IP covered only by a broader CIDR entry cannot be removed through the narrower address. An IP block that belongs to an enforcement decision returns 409 IP_BAN_LINKED_TO_DECISION with the decision ID, and is removed by ending that decision. The profile-substring blocklist requires a scope.',
}),
async (ctx) => {
const adminService = ctx.get('adminService');
diff --git a/fluxer_api/src/api/admin/controllers/BulkAdminController.ts b/fluxer_api/src/api/admin/controllers/BulkAdminController.ts
index 39db8a69d..923ee942c 100644
--- a/fluxer_api/src/api/admin/controllers/BulkAdminController.ts
+++ b/fluxer_api/src/api/admin/controllers/BulkAdminController.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {recordAdminWrite} from '@app/api/admin/AdminAuditRecorder';
+import {assertNoRestrictionFlagsAdded} from '@app/api/admin/services/AdminUserSecurityService';
import type {UserID} from '@app/api/BrandedTypes';
import {requireAnyAdminACL, requireGrantedAdminACLs} from '@app/api/middleware/AdminMiddleware';
import {RateLimitMiddleware} from '@app/api/middleware/RateLimitMiddleware';
@@ -10,6 +11,8 @@ import {RateLimitConfigs} from '@app/api/RateLimitConfig';
import type {HonoApp} from '@app/api/types/HonoEnv';
import {Validator} from '@app/api/Validator';
import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
import {AdminBulkJobCreateRequest, AdminBulkTaskType} from '@fluxer/schema/src/domains/admin/AdminBulkSchemas';
import {BulkJobResponse} from '@fluxer/schema/src/domains/admin/AdminSchemas';
@@ -69,10 +72,8 @@ async function queueBulkJob(
'bulkScheduleUserDeletion',
{
user_ids: body.user_ids.map((id) => id.toString()),
- reason_code: body.reason_code,
days_until_deletion: body.days_until_deletion,
- public_reason: body.public_reason ?? null,
- notify_user: body.notify_user,
+ basis: body.basis,
admin_user_id: adminUserId.toString(),
audit_log_reason: auditLogReason,
},
@@ -83,6 +84,7 @@ async function queueBulkJob(
'bulkDeleteMessagesForUsers',
{
user_ids: body.user_ids.map((id) => id.toString()),
+ basis: body.basis,
admin_user_id: adminUserId.toString(),
audit_log_reason: auditLogReason,
},
@@ -120,6 +122,15 @@ export function BulkAdminController(app: HonoApp) {
const body = ctx.req.valid('json');
const requiredAcl = BULK_TASK_ACLS[body.task];
requireGrantedAdminACLs(adminAcls, [requiredAcl]);
+ if (body.task === AdminBulkTaskType.UPDATE_USER_FLAGS) {
+ assertNoRestrictionFlagsAdded(body.add_flags.map((flag) => BigInt(flag)));
+ }
+ if ('basis' in body && body.basis.type === 'enforcement' && !auditLogReason) {
+ throw InputValidationError.fromCode(
+ 'X-Audit-Log-Reason',
+ ValidationErrorCodes.ENFORCEMENT_INTERNAL_NOTE_REQUIRED,
+ );
+ }
const jobId = await queueBulkJob(body, adminUserId, auditLogReason);
await recordAdminWrite(ctx, {
targetType: 'bulk_job',
diff --git a/fluxer_api/src/api/admin/controllers/EnforcementAdminController.ts b/fluxer_api/src/api/admin/controllers/EnforcementAdminController.ts
new file mode 100644
index 000000000..db0d9a18e
--- /dev/null
+++ b/fluxer_api/src/api/admin/controllers/EnforcementAdminController.ts
@@ -0,0 +1,165 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {AdminAuditReadActions} from '@app/api/admin/AdminAuditActions';
+import {recordAdminRead} from '@app/api/admin/AdminAuditRecorder';
+import {enforcementActor} from '@app/api/enforcement/EnforcementActor';
+import {requireAdminACL} from '@app/api/middleware/AdminMiddleware';
+import {RateLimitMiddleware} from '@app/api/middleware/RateLimitMiddleware';
+import {OpenAPI} from '@app/api/middleware/ResponseTypeMiddleware';
+import {RateLimitConfigs} from '@app/api/RateLimitConfig';
+import type {HonoApp} from '@app/api/types/HonoEnv';
+import {Validator} from '@app/api/Validator';
+import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {
+ EnforcementDecisionEndRequest,
+ EnforcementDecisionIdParam,
+ EnforcementDecisionListQuery,
+ EnforcementDecisionListResponse,
+ EnforcementDecisionNoteRequest,
+ EnforcementDecisionNoteResponse,
+ EnforcementDecisionResponse,
+ NetworkBlockCandidatesResponse,
+} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
+import {UserIdParam} from '@fluxer/schema/src/domains/common/CommonParamSchemas';
+
+export function EnforcementAdminController(app: HonoApp) {
+ app.get(
+ '/admin/users/:user_id/network-block-candidates',
+ RateLimitMiddleware(RateLimitConfigs.ADMIN_LOOKUP),
+ requireAdminACL(AdminACLs.USER_VIEW_IP),
+ Validator('param', UserIdParam),
+ OpenAPI({
+ operationId: 'list_admin_user_network_block_candidates',
+ summary: 'List networks a suspension or closure can block',
+ responseSchema: NetworkBlockCandidatesResponse,
+ statusCode: 200,
+ security: 'adminApiKey',
+ tags: 'Admin',
+ description:
+ 'Lists the addresses the account used in the last 30 days, most recent first, with how many other accounts that are not suspended or closed were last active on each. These are the addresses block_networks accepts on the suspend and close routes. Requires USER_VIEW_IP permission.',
+ }),
+ async (ctx) => {
+ const {user_id: userId} = ctx.req.valid('param');
+ const result = await ctx.get('adminService').enforcementService.listNetworkBlockCandidates(userId);
+ await recordAdminRead(ctx, {
+ targetType: 'user',
+ targetId: userId,
+ action: AdminAuditReadActions.LIST_NETWORK_BLOCK_CANDIDATES,
+ metadata: {result_count: result.networks.length},
+ });
+ return ctx.json(result);
+ },
+ );
+ app.get(
+ '/admin/enforcement-decisions',
+ RateLimitMiddleware(RateLimitConfigs.ADMIN_LOOKUP),
+ requireAdminACL(AdminACLs.ENFORCEMENT_VIEW),
+ Validator('query', EnforcementDecisionListQuery),
+ OpenAPI({
+ operationId: 'list_admin_enforcement_decisions',
+ summary: 'List enforcement decisions',
+ responseSchema: EnforcementDecisionListResponse,
+ statusCode: 200,
+ security: 'adminApiKey',
+ tags: 'Admin',
+ description:
+ 'Lists the enforcement decisions about one user or community, newest first, without notes or evidence. With review_queue=true it lists the automated decisions waiting for a person instead, such as purchase limits after a chargeback. A person takes one out of the queue by ending it or by recording a warning, suspension or closure on the same account. Report IDs are empty without REPORT_VIEW. Requires ENFORCEMENT_VIEW permission.',
+ }),
+ async (ctx) => {
+ const query = ctx.req.valid('query');
+ const result = await ctx.get('adminService').enforcementService.list(query, ctx.get('adminUserAcls'));
+ await recordAdminRead(
+ ctx,
+ query.review_queue || query.subject_type === undefined || query.subject_id === undefined
+ ? {
+ targetType: 'enforcement_decision',
+ targetId: 0n,
+ action: AdminAuditReadActions.LIST_ENFORCEMENT_DECISIONS,
+ metadata: {list: 'review_queue', result_count: result.decisions.length},
+ }
+ : {
+ targetType: query.subject_type,
+ targetId: query.subject_id,
+ action: AdminAuditReadActions.LIST_ENFORCEMENT_DECISIONS,
+ metadata: {list: 'subject', result_count: result.decisions.length},
+ },
+ );
+ return ctx.json(result);
+ },
+ );
+ app.get(
+ '/admin/enforcement-decisions/:decision_id',
+ RateLimitMiddleware(RateLimitConfigs.ADMIN_LOOKUP),
+ requireAdminACL(AdminACLs.ENFORCEMENT_VIEW),
+ Validator('param', EnforcementDecisionIdParam),
+ OpenAPI({
+ operationId: 'get_admin_enforcement_decision',
+ summary: 'Get enforcement decision',
+ responseSchema: EnforcementDecisionResponse,
+ statusCode: 200,
+ security: 'adminApiKey',
+ tags: 'Admin',
+ description:
+ 'Returns one enforcement decision with its notes, evidence and the notice the holder sees now. Evidence content and profile values are null without MESSAGE_LOOKUP, and report IDs are empty without REPORT_VIEW. Requires ENFORCEMENT_VIEW permission.',
+ }),
+ async (ctx) => {
+ const {decision_id: decisionId} = ctx.req.valid('param');
+ const result = await ctx.get('adminService').enforcementService.get(decisionId, ctx.get('adminUserAcls'));
+ await recordAdminRead(ctx, {
+ targetType: 'enforcement_decision',
+ targetId: decisionId,
+ action: AdminAuditReadActions.VIEW_ENFORCEMENT_DECISION,
+ metadata: {decision_id: decisionId, kind: result.kind},
+ });
+ return ctx.json(result);
+ },
+ );
+ app.post(
+ '/admin/enforcement-decisions/:decision_id/notes',
+ RateLimitMiddleware(RateLimitConfigs.ADMIN_USER_MODIFY),
+ requireAdminACL(AdminACLs.ENFORCEMENT_ANNOTATE),
+ Validator('param', EnforcementDecisionIdParam),
+ Validator('json', EnforcementDecisionNoteRequest),
+ OpenAPI({
+ operationId: 'annotate_admin_enforcement_decision',
+ summary: 'Add a note to an enforcement decision',
+ responseSchema: EnforcementDecisionNoteResponse,
+ statusCode: 200,
+ security: 'adminApiKey',
+ tags: 'Admin',
+ description:
+ 'Appends an internal note to an enforcement decision. Notes are staff only, never change and expire with the evidence after a year. Creates audit log entry. Requires ENFORCEMENT_ANNOTATE permission.',
+ }),
+ async (ctx) => {
+ const {decision_id: decisionId} = ctx.req.valid('param');
+ return ctx.json(
+ await ctx
+ .get('adminService')
+ .enforcementService.addNote(decisionId, ctx.req.valid('json').body, enforcementActor(ctx)),
+ );
+ },
+ );
+ app.post(
+ '/admin/enforcement-decisions/:decision_id/end',
+ RateLimitMiddleware(RateLimitConfigs.ADMIN_USER_MODIFY),
+ requireAdminACL(AdminACLs.ENFORCEMENT_VIEW),
+ Validator('param', EnforcementDecisionIdParam),
+ Validator('json', EnforcementDecisionEndRequest),
+ OpenAPI({
+ operationId: 'end_admin_enforcement_decision',
+ summary: 'End an enforcement decision',
+ responseSchema: EnforcementDecisionResponse,
+ statusCode: 200,
+ security: 'adminApiKey',
+ tags: 'Admin',
+ description:
+ 'Ends an active decision as lifted or reversed, undoes what can be undone and emails the holder. Ending a suspension lifts it, and returns 409 when a later decision replaced it. Warnings, removals and suspensions that ended as expired can only be reversed. Creates audit log entry. Requires ENFORCEMENT_VIEW permission plus the permission of the route that made the decision, such as USER_TEMP_BAN for a suspension or USER_UPDATE_FLAGS for a warning.',
+ }),
+ async (ctx) => {
+ const {decision_id: decisionId} = ctx.req.valid('param');
+ return ctx.json(
+ await ctx.get('adminService').enforcementService.end(decisionId, ctx.req.valid('json'), enforcementActor(ctx)),
+ );
+ },
+ );
+}
diff --git a/fluxer_api/src/api/admin/controllers/GuildAdminController.ts b/fluxer_api/src/api/admin/controllers/GuildAdminController.ts
index 7592c582c..b9927c14c 100644
--- a/fluxer_api/src/api/admin/controllers/GuildAdminController.ts
+++ b/fluxer_api/src/api/admin/controllers/GuildAdminController.ts
@@ -3,6 +3,7 @@
import {AdminAuditReadActions} from '@app/api/admin/AdminAuditActions';
import {recordAdminRead, recordAdminWrite} from '@app/api/admin/AdminAuditRecorder';
import {createGuildID} from '@app/api/BrandedTypes';
+import {enforcementActor} from '@app/api/enforcement/EnforcementActor';
import {requireAdminACL, requireAnyAdminACL, requireGrantedAdminACLs} from '@app/api/middleware/AdminMiddleware';
import {RateLimitMiddleware} from '@app/api/middleware/RateLimitMiddleware';
import {OpenAPI} from '@app/api/middleware/ResponseTypeMiddleware';
@@ -12,6 +13,7 @@ import {Validator} from '@app/api/Validator';
import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
import {UnknownGuildError} from '@fluxer/errors/src/domains/guild/UnknownGuildError';
import {
+ AdminGuildDeleteRequest,
BanGuildMemberBody,
ListGuildAuditLogsResponse,
ListGuildMembersQuery,
@@ -249,26 +251,26 @@ export function GuildAdminController(app: HonoApp) {
RateLimitMiddleware(AdminRateLimitConfigs.ADMIN_GUILD_MODIFY),
requireAdminACL(AdminACLs.GUILD_DELETE),
Validator('param', GuildIdParam),
+ Validator('json', AdminGuildDeleteRequest),
OpenAPI({
operationId: 'delete_admin_guild',
summary: 'Delete guild',
description:
- 'Permanently deletes a guild. The guild becomes unavailable at once, and a background job deletes all channels, messages, and settings. Irreversible operation with no recovery window. Logged to audit log. Requires GUILD_DELETE permission.',
+ 'Permanently deletes a guild. The guild becomes unavailable at once, and a background job deletes all channels, messages, and settings. Irreversible operation with no recovery window. The basis is enforcement or holder_request. An enforcement basis records a community removal decision and sends its notice to the owner, and is refused for child safety and violent extremism reasons. Logged to audit log. Requires GUILD_DELETE permission.',
responseSchema: SuccessResponse,
statusCode: 200,
security: 'adminApiKey',
tags: 'Admin',
}),
async (ctx) => {
- const adminService = ctx.get('adminService');
- const adminUserId = ctx.get('adminUserId');
- const auditLogReason = ctx.get('auditLogReason');
return ctx.json(
- await adminService.guildServiceAggregate.managementService.deleteGuild(
- ctx.req.valid('param').guild_id,
- adminUserId,
- auditLogReason,
- ),
+ await ctx
+ .get('adminService')
+ .guildServiceAggregate.managementService.deleteGuild(
+ createGuildID(ctx.req.valid('param').guild_id),
+ ctx.req.valid('json'),
+ enforcementActor(ctx),
+ ),
);
},
);
diff --git a/fluxer_api/src/api/admin/controllers/MessageAdminController.ts b/fluxer_api/src/api/admin/controllers/MessageAdminController.ts
index 6009fea0d..fac137ddd 100644
--- a/fluxer_api/src/api/admin/controllers/MessageAdminController.ts
+++ b/fluxer_api/src/api/admin/controllers/MessageAdminController.ts
@@ -2,6 +2,8 @@
import {AdminAuditReadActions} from '@app/api/admin/AdminAuditActions';
import {recordAdminRead} from '@app/api/admin/AdminAuditRecorder';
+import {createChannelID, createMessageID, createUserID} from '@app/api/BrandedTypes';
+import {enforcementActor} from '@app/api/enforcement/EnforcementActor';
import {requireAdminACL} from '@app/api/middleware/AdminMiddleware';
import {RateLimitMiddleware} from '@app/api/middleware/RateLimitMiddleware';
import {OpenAPI} from '@app/api/middleware/ResponseTypeMiddleware';
@@ -18,8 +20,10 @@ import {
BrowseChannelResponse,
} from '@fluxer/schema/src/domains/admin/AdminMessageBrowseSchemas';
import {
+ AdminMessageDeleteRequest,
AdminMessageDetailQuery,
AdminUserMessageDeleteQuery,
+ AdminUserMessageDeleteRequest,
AdminUserMessageShredRequest,
DeleteAllUserMessagesResponse,
MessageShredJobIdParam,
@@ -234,11 +238,12 @@ export function MessageAdminController(app: HonoApp) {
RateLimitMiddleware(RateLimitConfigs.ADMIN_MESSAGE_OPERATION),
requireAdminACL(AdminACLs.MESSAGE_DELETE),
Validator('param', ChannelIdMessageIdParam),
+ Validator('json', AdminMessageDeleteRequest),
OpenAPI({
operationId: 'delete_admin_message',
summary: 'Delete message',
description:
- 'Deletes a single message permanently and purges its attachments. Used for removing inappropriate or harmful content. Logged to audit log. Requires MESSAGE_DELETE permission.',
+ 'Deletes a single message permanently and purges its attachments. The basis is holder_request or housekeeping, such as cleanup of webhook or system messages. To remove a message for breaking a rule, shred it with an enforcement basis so a decision records it. Logged to audit log with the basis. Requires MESSAGE_DELETE permission.',
responseSchema: DeleteMessageResponse,
statusCode: 200,
security: 'adminApiKey',
@@ -250,7 +255,13 @@ export function MessageAdminController(app: HonoApp) {
const auditLogReason = ctx.get('auditLogReason');
const {channel_id, message_id} = ctx.req.valid('param');
return ctx.json(
- await adminService.messageService.deleteMessage({channel_id, message_id}, adminUserId, auditLogReason),
+ await adminService.messageService.deleteMessage(
+ createChannelID(channel_id),
+ createMessageID(message_id),
+ ctx.req.valid('json'),
+ adminUserId,
+ auditLogReason,
+ ),
);
},
);
@@ -264,20 +275,18 @@ export function MessageAdminController(app: HonoApp) {
operationId: 'shred_admin_user_messages',
summary: 'Shred user messages',
description:
- 'Queues bulk shredding of the given messages of a user, with attachment deletion. Returns a job ID to track progress asynchronously. Used for large-scale content removal. Requires MESSAGE_SHRED permission.',
+ 'Queues bulk shredding of the given messages of a user, with attachment deletion. Returns a job ID to track progress asynchronously. With an enforcement basis the first 50 entries are snapshotted as the evidence of a content removal decision before the job is queued, every entry for child safety and violent extremism reasons, and the user is sent its notice. Requires MESSAGE_SHRED permission.',
responseSchema: MessageShredResponse,
statusCode: 200,
security: 'adminApiKey',
tags: 'Admin',
}),
async (ctx) => {
- const adminService = ctx.get('adminService');
- const adminUserId = ctx.get('adminUserId');
- const auditLogReason = ctx.get('auditLogReason');
const {user_id} = ctx.req.valid('param');
- const {entries} = ctx.req.valid('json');
return ctx.json(
- await adminService.messageShredService.queueMessageShred({user_id, entries}, adminUserId, auditLogReason),
+ await ctx
+ .get('adminService')
+ .messageShredService.queueMessageShred(createUserID(user_id), ctx.req.valid('json'), enforcementActor(ctx)),
);
},
);
@@ -287,28 +296,27 @@ export function MessageAdminController(app: HonoApp) {
requireAdminACL(AdminACLs.MESSAGE_DELETE_ALL),
Validator('param', UserIdParam),
Validator('query', AdminUserMessageDeleteQuery),
+ Validator('json', AdminUserMessageDeleteRequest),
OpenAPI({
operationId: 'delete_admin_user_messages',
summary: 'Delete all user messages',
description:
- 'Deletes all messages from a specific user across all channels. Permanent operation used for account suspension or policy violation. Pass dry_run=false to delete; the default counts without deleting. Requires MESSAGE_DELETE_ALL permission.',
+ 'Deletes all messages from a specific user across all channels. Pass dry_run=false to delete, with a basis in the body. The default counts without deleting and records nothing. An enforcement basis records a content removal decision and sends its notice, and is refused for child safety and violent extremism reasons, which must shred explicit entries instead. Requires MESSAGE_DELETE_ALL permission.',
responseSchema: DeleteAllUserMessagesResponse,
statusCode: 200,
security: 'adminApiKey',
tags: 'Admin',
}),
async (ctx) => {
- const adminService = ctx.get('adminService');
- const adminUserId = ctx.get('adminUserId');
- const auditLogReason = ctx.get('auditLogReason');
const {user_id} = ctx.req.valid('param');
- const {dry_run} = ctx.req.valid('query');
return ctx.json(
- await adminService.messageDeletionService.deleteAllUserMessages(
- {user_id, dry_run},
- adminUserId,
- auditLogReason,
- ),
+ await ctx
+ .get('adminService')
+ .messageDeletionService.deleteAllUserMessages(
+ createUserID(user_id),
+ {dryRun: ctx.req.valid('query').dry_run, basis: ctx.req.valid('json').basis},
+ enforcementActor(ctx),
+ ),
);
},
);
diff --git a/fluxer_api/src/api/admin/controllers/ReportAdminController.ts b/fluxer_api/src/api/admin/controllers/ReportAdminController.ts
index 3ca2e6b24..de7ce5c3c 100644
--- a/fluxer_api/src/api/admin/controllers/ReportAdminController.ts
+++ b/fluxer_api/src/api/admin/controllers/ReportAdminController.ts
@@ -209,7 +209,7 @@ export function ReportAdminController(app: HonoApp) {
operationId: 'update_admin_report',
summary: 'Update report',
description:
- 'Moves a report to the resolved status. The reporter is always told the report was reviewed: an account reporter by system DM and email, a Digital Services Act notifier by email. notify_reporter false leaves the public comment out of that notice. Nothing is sent when the reporter account is deleted or barred from reporting. Creates an audit log entry. Requires REPORT_RESOLVE permission.',
+ 'Moves a report to the resolved status. resolution is required. actioned also needs the outcome for the reported item, and no_violation sets the outcome no_violation. duplicate needs duplicate_of and takes the outcome stored on that report. The reporter is told the outcome: an account reporter by system DM and email, a Digital Services Act notifier by email. A duplicate of a report with no outcome yet is resolved without telling the reporter. notify_reporter false leaves the public comment out of that notice. Nothing is sent when the reporter account is deleted, or barred from reporting when the report was filed. Creates an audit log entry. Requires REPORT_RESOLVE permission.',
responseSchema: ResolveReportResponse,
statusCode: 200,
security: 'adminApiKey',
@@ -220,16 +220,17 @@ export function ReportAdminController(app: HonoApp) {
const adminUserId = ctx.get('adminUserId');
const auditLogReason = ctx.get('auditLogReason');
const {report_id} = ctx.req.valid('param');
- const {public_comment, notify_reporter, resolution} = ctx.req.valid('json');
+ const {public_comment, notify_reporter, resolution, outcome, duplicate_of} = ctx.req.valid('json');
return ctx.json(
- await adminService.reportServiceAggregate.resolveReport(
- createReportID(report_id),
+ await adminService.reportServiceAggregate.resolveReport(createReportID(report_id), {
adminUserId,
- public_comment || null,
+ publicComment: public_comment || null,
auditLogReason,
- notify_reporter,
+ notifyReporter: notify_reporter,
resolution,
- ),
+ outcome,
+ duplicateOf: duplicate_of === undefined ? undefined : createReportID(duplicate_of),
+ }),
);
},
);
diff --git a/fluxer_api/src/api/admin/controllers/UserAdminController.ts b/fluxer_api/src/api/admin/controllers/UserAdminController.ts
index 79fc65c3a..651ecb0b9 100644
--- a/fluxer_api/src/api/admin/controllers/UserAdminController.ts
+++ b/fluxer_api/src/api/admin/controllers/UserAdminController.ts
@@ -4,6 +4,7 @@ import {AdminAuditReadActions} from '@app/api/admin/AdminAuditActions';
import {recordAdminRead} from '@app/api/admin/AdminAuditRecorder';
import {mapUserToAdminResponse} from '@app/api/admin/models/UserTypes';
import {createUserID} from '@app/api/BrandedTypes';
+import {enforcementActor} from '@app/api/enforcement/EnforcementActor';
import {
RequireEmailAccountIdentity,
RequireUsernameAccountIdentity,
@@ -22,8 +23,6 @@ import {
AdminAclListResponse,
AdminPasswordResetLinkResponse,
AdminUserAclsRequest,
- AdminUserBanNoteRequest,
- AdminUserBanRequest,
AdminUserBotStatusRequest,
AdminUserChangeLogQuery,
AdminUserClearFieldsRequest,
@@ -42,7 +41,6 @@ import {
AdminUserSystemStatusRequest,
AdminUsersMeResponse,
AdminUserTraitsRequest,
- AdminUserUnbanRequest,
AdminUserUsernameUpdateRequest,
AdminUserWebAuthnCredentialParam,
ListUserChangeLogResponseSchema,
@@ -53,7 +51,14 @@ import {
RemoveUserRelationshipsResponse,
TerminateSessionsResponse,
UserMutationResponse,
+ UserRestrictionResponse,
} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
+import {
+ AdminUserBanRequest,
+ AdminUserFeatureLimitRequest,
+ AdminUserWarningRequest,
+ AdminUserWarningResponse,
+} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
import {WebAuthnCredentialListResponse} from '@fluxer/schema/src/domains/auth/AuthSchemas';
import {UserIdParam} from '@fluxer/schema/src/domains/common/CommonParamSchemas';
@@ -580,21 +585,18 @@ export function UserAdminController(app: HonoApp) {
security: 'adminApiKey',
tags: 'Admin',
description:
- 'Clear or reset user profile fields such as bio, avatar, or status. Creates audit log entry. Requires USER_UPDATE_PROFILE permission.',
+ 'Clears profile fields such as the bio, avatar or display name. An enforcement basis saves the old values as evidence, records a profile reset decision and sends its notice by system DM and email. Creates audit log entry. Requires USER_UPDATE_PROFILE permission.',
}),
async (ctx) => {
- const adminService = ctx.get('adminService');
- const adminUserId = ctx.get('adminUserId');
- const auditLogReason = ctx.get('auditLogReason');
- const adminUserAcls = ctx.get('adminUserAcls');
const {user_id: userId} = ctx.req.valid('param');
return ctx.json(
- await adminService.userService.profileService.clearUserFields(
- {user_id: userId, ...ctx.req.valid('json')},
- adminUserId,
- auditLogReason,
- adminUserAcls,
- ),
+ await ctx
+ .get('adminService')
+ .userService.profileService.clearUserFields(
+ createUserID(userId),
+ ctx.req.valid('json'),
+ enforcementActor(ctx),
+ ),
);
},
);
@@ -880,27 +882,20 @@ export function UserAdminController(app: HonoApp) {
Validator('json', AdminUserBanRequest),
OpenAPI({
operationId: 'ban_admin_user',
- summary: 'Ban user',
- responseSchema: UserMutationResponse,
+ summary: 'Suspend user',
+ responseSchema: UserRestrictionResponse,
statusCode: 200,
security: 'adminApiKey',
tags: 'Admin',
description:
- 'Apply temporary ban to user account for specified duration, or permanently with a duration of zero. Prevents login and guild operations. Automatically lifts after expiry. Creates audit log entry. Requires USER_TEMP_BAN permission. Emails the user for temporary bans unless notify_user is false. Permanent bans are never emailed.',
+ 'Suspend the account for duration_hours, or permanently with a duration of zero, and record the enforcement decision behind it. The decision is written first, then the suspension, then linked reports are resolved and the notice is sent. The X-Audit-Log-Reason header is required and becomes the first note. remove_evidence queues removal of the evidence messages after they are snapshotted. block_networks blocks addresses the account used in the last 30 days, for 90 days unless days says otherwise, and only with a permanent suspension. Exempt and special-purpose addresses, and addresses already blocked permanently or by another decision, are skipped and listed in skipped_ips. An address on which another account that is not suspended or closed was last active is refused with ENFORCEMENT_NETWORK_SHARED. Returns 409 when the account is closed. Requires USER_TEMP_BAN permission, plus MESSAGE_LOOKUP for evidence, REPORT_VIEW and REPORT_RESOLVE for reports, MESSAGE_SHRED for remove_evidence, and BAN_IP_ADD and USER_VIEW_IP for block_networks.',
}),
async (ctx) => {
- const adminService = ctx.get('adminService');
- const adminUserId = ctx.get('adminUserId');
- const auditLogReason = ctx.get('auditLogReason');
- const adminUserAcls = ctx.get('adminUserAcls');
const {user_id: userId} = ctx.req.valid('param');
return ctx.json(
- await adminService.userService.banService.tempBanUser(
- {user_id: userId, ...ctx.req.valid('json')},
- adminUserId,
- auditLogReason,
- adminUserAcls,
- ),
+ await ctx
+ .get('adminService')
+ .banService.tempBanUser(createUserID(userId), ctx.req.valid('json'), enforcementActor(ctx)),
);
},
);
@@ -909,55 +904,69 @@ export function UserAdminController(app: HonoApp) {
RateLimitMiddleware(RateLimitConfigs.ADMIN_USER_MODIFY),
requireAdminACL(AdminACLs.USER_TEMP_BAN),
Validator('param', UserIdParam),
- Validator('json', AdminUserUnbanRequest),
OpenAPI({
operationId: 'unban_admin_user',
- summary: 'Unban user',
+ summary: 'Lift a suspension without a decision',
responseSchema: UserMutationResponse,
statusCode: 200,
security: 'adminApiKey',
tags: 'Admin',
description:
- 'Immediately remove the ban from the user account. Emails the user only when notify_user is true, the ban was still in force and the account is not closed or pending deletion. The email shows public_reason and never the audit log reason. Creates audit log entry. Requires USER_TEMP_BAN permission.',
+ 'Lift a suspension that no enforcement decision owns, such as one from before decisions existed. Returns 409 with the decision ID when a decision owns the suspension, which is then ended through its end route. Emails the user that the restriction ended when the suspension was still in force. Creates audit log entry. Requires USER_TEMP_BAN permission.',
+ }),
+ async (ctx) => {
+ const {user_id: userId} = ctx.req.valid('param');
+ return ctx.json(await ctx.get('adminService').banService.unbanUser(createUserID(userId), enforcementActor(ctx)));
+ },
+ );
+ app.post(
+ '/admin/users/:user_id/warnings',
+ RateLimitMiddleware(RateLimitConfigs.ADMIN_USER_MODIFY),
+ requireAdminACL(AdminACLs.USER_UPDATE_FLAGS),
+ Validator('param', UserIdParam),
+ Validator('json', AdminUserWarningRequest),
+ OpenAPI({
+ operationId: 'warn_admin_user',
+ summary: 'Warn user',
+ responseSchema: AdminUserWarningResponse,
+ statusCode: 200,
+ security: 'adminApiKey',
+ tags: 'Admin',
+ description:
+ 'Record a warning decision and send its notice by email and system DM. Nothing about the account changes. The X-Audit-Log-Reason header is required and becomes the first note. Refused for reasons that only allow a suspension or content removal. Requires USER_UPDATE_FLAGS permission, plus MESSAGE_LOOKUP for evidence and REPORT_VIEW and REPORT_RESOLVE for reports.',
}),
async (ctx) => {
- const adminService = ctx.get('adminService');
- const adminUserId = ctx.get('adminUserId');
- const auditLogReason = ctx.get('auditLogReason');
- const adminUserAcls = ctx.get('adminUserAcls');
const {user_id: userId} = ctx.req.valid('param');
return ctx.json(
- await adminService.userService.banService.unbanUser(
- {user_id: userId, ...ctx.req.valid('json')},
- adminUserId,
- auditLogReason,
- adminUserAcls,
- ),
+ await ctx
+ .get('adminService')
+ .banService.warnUser(createUserID(userId), ctx.req.valid('json'), enforcementActor(ctx)),
);
},
);
- app.post(
- '/admin/users/:user_id/ban/notes',
+ app.put(
+ '/admin/users/:user_id/feature-limits',
RateLimitMiddleware(RateLimitConfigs.ADMIN_USER_MODIFY),
- requireAdminACL(AdminACLs.USER_TEMP_BAN),
+ requireAdminACL(AdminACLs.USER_UPDATE_FLAGS),
Validator('param', UserIdParam),
- Validator('json', AdminUserBanNoteRequest),
+ Validator('json', AdminUserFeatureLimitRequest),
OpenAPI({
- operationId: 'annotate_admin_user_ban',
- summary: 'Add a note to a user ban',
- responseSchema: null,
- statusCode: 204,
+ operationId: 'limit_admin_user_features',
+ summary: 'Limit user features',
+ responseSchema: UserMutationResponse,
+ statusCode: 200,
security: 'adminApiKey',
tags: 'Admin',
description:
- 'Append a note to the current ban of a user. The note is recorded as the reason of a new annotate_ban audit log entry whose metadata names the ban audit log entry. Earlier entries are never changed. Requires USER_TEMP_BAN permission.',
+ 'Record an enforcement decision that limits one feature and send its notice by email and system DM. Direct messages set SPAMMER and are allowed for spam, automation, fraud and malware reasons only. Reports set REPORT_BANNED until ends_at, 90 days by default and at most 365, and expire on their own. Purchases set PURCHASE_DISABLED for payment reasons. The X-Audit-Log-Reason header is required and becomes the first note. Requires USER_UPDATE_FLAGS permission, plus MESSAGE_LOOKUP for evidence and REPORT_VIEW and REPORT_RESOLVE for reports.',
}),
async (ctx) => {
- const adminService = ctx.get('adminService');
- const adminUserId = ctx.get('adminUserId');
const {user_id: userId} = ctx.req.valid('param');
- await adminService.userService.banService.annotateBan({user_id: userId, ...ctx.req.valid('json')}, adminUserId);
- return ctx.body(null, 204);
+ return ctx.json(
+ await ctx
+ .get('adminService')
+ .banService.limitFeatures(createUserID(userId), ctx.req.valid('json'), enforcementActor(ctx)),
+ );
},
);
app.put(
@@ -969,26 +978,23 @@ export function UserAdminController(app: HonoApp) {
OpenAPI({
operationId: 'schedule_admin_user_deletion',
summary: 'Schedule user deletion',
- responseSchema: UserMutationResponse,
+ responseSchema: UserRestrictionResponse,
statusCode: 200,
security: 'adminApiKey',
tags: 'Admin',
description:
- 'Schedule user account for deletion after grace period. Account will be fully deleted with all content unless cancellation is executed. When a deletion is already scheduled, the request must name it in replace_pending_deletion_at or it returns 409. Records who scheduled the deletion. Creates audit log entry. Requires USER_DELETE permission. Emails the user unless notify_user is false. The email depends on reason_code: user requested and inactivity get neutral wording, other codes get enforcement wording with an appeal path.',
+ 'Close the account and schedule its deletion. The basis says why. A broken rule records an enforcement decision kind closure, keeps the account for at least 74 days so an appeal can be reviewed first (14 days on a self-hosted instance, which has no appeals), sends the notice and, when the rule bars new accounts, bans the account email. The X-Audit-Log-Reason header is then required and becomes the first note. A holder request or housekeeping keeps the account for at least 14 days, sends a neutral email, and is cancelled when the holder signs in. Those two return 409 while an enforcement decision owns the account state. When a deletion is already scheduled, the request must name it in replace_pending_deletion_at or it returns 409. block_networks works as on the suspend route and is refused for the other bases. Executing the deletion removes the blocks. Creates audit log entry. Requires USER_DELETE permission, plus MESSAGE_LOOKUP for evidence, REPORT_VIEW and REPORT_RESOLVE for reports, MESSAGE_SHRED for remove_evidence, and BAN_IP_ADD and USER_VIEW_IP for block_networks.',
}),
async (ctx) => {
- const adminService = ctx.get('adminService');
- const adminUserId = ctx.get('adminUserId');
- const auditLogReason = ctx.get('auditLogReason');
- const adminUserAcls = ctx.get('adminUserAcls');
const {user_id: userId} = ctx.req.valid('param');
return ctx.json(
- await adminService.userService.deletionService.scheduleAccountDeletion(
- {user_id: userId, ...ctx.req.valid('json')},
- adminUserId,
- auditLogReason,
- adminUserAcls,
- ),
+ await ctx
+ .get('adminService')
+ .userService.deletionService.scheduleAccountDeletion(
+ createUserID(userId),
+ ctx.req.valid('json'),
+ enforcementActor(ctx),
+ ),
);
},
);
@@ -1006,21 +1012,18 @@ export function UserAdminController(app: HonoApp) {
security: 'adminApiKey',
tags: 'Admin',
description:
- 'Cancel the scheduled account deletion named by expected_pending_deletion_at. Returns 409 when a different deletion is pending and 400 when none is. The user is emailed only when notify_user is true, and the email never includes the audit log reason. Creates audit log entry recording the cancelled deletion. Requires USER_DELETE permission.',
+ 'Cancel a scheduled deletion that no enforcement decision owns, named by expected_pending_deletion_at, such as one the holder asked for, an inactivity deletion or a closure from before decisions existed. Returns 409 with the decision ID when a decision owns the deletion, which is then ended through its end route, 409 when a different deletion is pending and 400 when none is. Emails the user that the deletion was cancelled, or that the restriction ended for a closure from before decisions existed. Creates audit log entry recording the cancelled deletion. Requires USER_DELETE permission.',
}),
async (ctx) => {
- const adminService = ctx.get('adminService');
- const adminUserId = ctx.get('adminUserId');
- const auditLogReason = ctx.get('auditLogReason');
- const adminUserAcls = ctx.get('adminUserAcls');
const {user_id: userId} = ctx.req.valid('param');
return ctx.json(
- await adminService.userService.deletionService.cancelAccountDeletion(
- {user_id: userId, ...ctx.req.valid('json')},
- adminUserId,
- auditLogReason,
- adminUserAcls,
- ),
+ await ctx
+ .get('adminService')
+ .userService.deletionService.cancelAccountDeletion(
+ createUserID(userId),
+ ctx.req.valid('json'),
+ enforcementActor(ctx),
+ ),
);
},
);
@@ -1133,7 +1136,7 @@ export function UserAdminController(app: HonoApp) {
security: 'adminApiKey',
tags: 'Admin',
description:
- 'Add or remove user flags to control account features and restrictions. Flags determine verification status and special properties. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.',
+ 'Add or remove user flags. Flags that record a restriction go through their own routes: adding DISABLED, DELETED, SPAMMER or REPORT_BANNED and removing DELETED return 400, removing DISABLED while a suspension is set returns 400, and removing SPAMMER or REPORT_BANNED while an enforcement decision holds it returns 409 with the decision ID. A self-disabled account can still have DISABLED removed. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.',
}),
async (ctx) => {
const adminService = ctx.get('adminService');
@@ -1169,7 +1172,7 @@ export function UserAdminController(app: HonoApp) {
security: 'adminApiKey',
tags: 'Admin',
description:
- 'Add or remove premium-related flags on a user account (badge visibility, override, purchase block, etc). Creates audit log entry. Requires USER_UPDATE_FLAGS permission.',
+ 'Add or remove premium-related flags on a user account (badge visibility, override, purchase block, etc). Adding PURCHASE_DISABLED returns 400, because a purchase limit is recorded through the feature limits route, and removing it while an enforcement decision holds it returns 409 with the decision ID. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.',
}),
async (ctx) => {
const adminService = ctx.get('adminService');
diff --git a/fluxer_api/src/api/admin/controllers/index.ts b/fluxer_api/src/api/admin/controllers/index.ts
index 283531654..8d8663d1c 100644
--- a/fluxer_api/src/api/admin/controllers/index.ts
+++ b/fluxer_api/src/api/admin/controllers/index.ts
@@ -9,6 +9,7 @@ import {BanAdminController} from '@app/api/admin/controllers/BanAdminController'
import {BulkAdminController} from '@app/api/admin/controllers/BulkAdminController';
import {CodesAdminController} from '@app/api/admin/controllers/CodesAdminController';
import {DiscoveryAdminController} from '@app/api/admin/controllers/DiscoveryAdminController';
+import {EnforcementAdminController} from '@app/api/admin/controllers/EnforcementAdminController';
import {GatewayAdminController} from '@app/api/admin/controllers/GatewayAdminController';
import {GuildAdminController} from '@app/api/admin/controllers/GuildAdminController';
import {InstanceConfigAdminController} from '@app/api/admin/controllers/InstanceConfigAdminController';
@@ -28,6 +29,7 @@ export function registerAdminControllers(app: HonoApp) {
AdminApiKeyAdminController(app);
ApplicationAdminController(app);
UserAdminController(app);
+ EnforcementAdminController(app);
StoreBillingAdminController(app);
CodesAdminController(app);
GuildAdminController(app);
diff --git a/fluxer_api/src/api/admin/models/UserTypes.ts b/fluxer_api/src/api/admin/models/UserTypes.ts
index d3d3f19b3..82f7b45ad 100644
--- a/fluxer_api/src/api/admin/models/UserTypes.ts
+++ b/fluxer_api/src/api/admin/models/UserTypes.ts
@@ -6,10 +6,18 @@ import type {User} from '@app/api/models/User';
import type {UserRepository} from '@app/api/user/repositories/UserRepository';
import {getIpAddressReverse, lookupGeoip} from '@app/api/utils/IpUtils';
import {AdminACLs, filterKnownAdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import type {ValueOf} from '@fluxer/constants/src/ValueOf';
import type {AdminResolvedUser, UserAdminResponse} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
import type {ICacheService} from '@pkgs/cache/src/ICacheService';
import {formatGeoipLocation} from '@pkgs/geoip/src/GeoipLookup';
+const DELETION_REASON_CODES: ReadonlySet<number> = new Set(Object.values(DeletionReasons));
+
+function deletionReasonCode(code: number | null): ValueOf<typeof DeletionReasons> | null {
+ return code !== null && DELETION_REASON_CODES.has(code) ? (code as ValueOf<typeof DeletionReasons>) : null;
+}
+
export async function mapUserToAdminResponse(
user: User,
cacheService?: ICacheService,
@@ -59,11 +67,12 @@ export async function mapUserToAdminResponse(
user.tempBannedUntil && user.tempBannedUntil.getTime() > Date.now() ? user.tempBannedUntil.toISOString() : null,
pending_deletion_at: user.pendingDeletionAt?.toISOString() ?? null,
pending_bulk_message_deletion_at: user.pendingBulkMessageDeletionAt?.toISOString() ?? null,
- deletion_reason_code: user.deletionReasonCode,
+ deletion_reason_code: deletionReasonCode(user.deletionReasonCode),
deletion_public_reason: user.deletionPublicReason,
deletion_audit_log_reason: canViewAuditLog ? user.deletionAuditLogReason : null,
deletion_scheduled_by: user.deletionScheduledBy?.toString() ?? null,
deletion_scheduled_at: user.deletionScheduledAt?.toISOString() ?? null,
+ enforcement_decision_id: user.enforcementDecisionId?.toString() ?? null,
acls: user.acls ? filterKnownAdminACLs(user.acls) : [],
traits: Array.from(user.traits).sort(),
has_totp: user.totpSecret !== null,
diff --git a/fluxer_api/src/api/admin/services/AdminAuditService.ts b/fluxer_api/src/api/admin/services/AdminAuditService.ts
index 66a031a10..632a53677 100644
--- a/fluxer_api/src/api/admin/services/AdminAuditService.ts
+++ b/fluxer_api/src/api/admin/services/AdminAuditService.ts
@@ -65,10 +65,6 @@ export class AdminAuditService {
}
}
- async findAuditLog(logId: bigint): Promise<AdminAuditLog | null> {
- return this.adminRepository.getAuditLog(logId);
- }
-
async getAuditLog(logId: bigint): Promise<AdminAuditLogResponse | null> {
const log = await this.adminRepository.getAuditLog(logId);
if (!log) {
diff --git a/fluxer_api/src/api/admin/services/AdminBanManagementService.ts b/fluxer_api/src/api/admin/services/AdminBanManagementService.ts
index fef1a5737..4ba9fcb45 100644
--- a/fluxer_api/src/api/admin/services/AdminBanManagementService.ts
+++ b/fluxer_api/src/api/admin/services/AdminBanManagementService.ts
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {ApiContext} from '@app/api/ApiContext';
-import type {AdminRepository} from '@app/api/admin/AdminRepository';
+import type {AdminRepository, BannedIpEntry} from '@app/api/admin/AdminRepository';
import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
import {createUserID, type UserID} from '@app/api/BrandedTypes';
import {isIpBanExempt} from '@app/api/ban/IpBanExemptions';
@@ -32,6 +32,7 @@ import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
import {BadRequestError} from '@fluxer/errors/src/domains/core/BadRequestError';
import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
import {NotFoundError} from '@fluxer/errors/src/domains/core/NotFoundError';
+import {IpBanLinkedToDecisionError} from '@fluxer/errors/src/domains/moderation/IpBanLinkedToDecisionError';
import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
import type {AdminBlocklistListType} from '@fluxer/schema/src/domains/admin/AdminBlocklistSchemas';
@@ -128,7 +129,6 @@ export class AdminBanManagementService {
auditLogReason: string | null,
) {
const {adminRepository, auditService} = this.deps;
- const {cache: cacheService} = this.deps.apiContext.services;
if (isIpBanExempt(data.ip)) {
await auditService.createAuditLog({
adminUserId,
@@ -143,6 +143,7 @@ export class AdminBanManagementService {
message: 'This IP address is on the instance exemption list',
});
}
+ await this.assertIpBanNotLinked(data.ip);
const durationHours = data.duration_hours ?? 0;
const metadata = new Map([['ip', data.ip]]);
if (durationHours > 0) {
@@ -153,8 +154,7 @@ export class AdminBanManagementService {
} else {
await adminRepository.banIp(data.ip);
}
- await ipBanCache.refresh();
- await cacheService.publish(IP_BAN_REFRESH_CHANNEL, 'refresh');
+ await this.refreshIpBans();
await this.deps.auditService.createAuditLog({
targetId: 0n,
adminUserId,
@@ -174,6 +174,7 @@ export class AdminBanManagementService {
) {
const {adminRepository} = this.deps;
const {cache: cacheService} = this.deps.apiContext.services;
+ await this.assertIpBanNotLinked(data.ip);
await adminRepository.unbanIp(data.ip);
ipBanCache.unban(data.ip);
await cacheService.publish(IP_BAN_REFRESH_CHANNEL, 'refresh');
@@ -190,9 +191,67 @@ export class AdminBanManagementService {
async checkIpBan(data: {ip: string}): Promise<{
banned: boolean;
expires_at: string | null;
+ decision_id: string | null;
}> {
const match = ipBanCache.getMatch(data.ip);
- return {banned: match !== null, expires_at: toIsoString(match?.expiresAt)};
+ return {
+ banned: match !== null,
+ expires_at: toIsoString(match?.expiresAt),
+ decision_id: toSnowflakeString(match?.decision?.decisionId),
+ };
+ }
+
+ async blockNetworksForDecision(
+ ips: ReadonlyArray<string>,
+ decisionId: bigint,
+ expiresAt: Date,
+ ): Promise<{blocked: Array<BannedIpEntry>; alreadyBlocked: Array<string>}> {
+ const blocked: Array<BannedIpEntry> = [];
+ const alreadyBlocked: Array<string> = [];
+ for (const ip of ips) {
+ const entry = await this.deps.adminRepository.banIpForDecision(ip, decisionId, expiresAt);
+ if (entry) {
+ blocked.push(entry);
+ } else {
+ alreadyBlocked.push(ip);
+ }
+ }
+ if (blocked.length > 0) {
+ await this.refreshIpBans();
+ }
+ return {blocked, alreadyBlocked};
+ }
+
+ async listDecisionNetworkBlocks(decisionId: bigint): Promise<Array<BannedIpEntry>> {
+ return this.deps.adminRepository.listDecisionIpBans(decisionId);
+ }
+
+ async removeDecisionNetworkBlocks(decisionIds: ReadonlyArray<bigint>): Promise<Array<BannedIpEntry>> {
+ const removed = await this.deps.adminRepository.removeDecisionIpBans(decisionIds);
+ if (removed.length > 0) {
+ await this.refreshIpBans();
+ }
+ return removed;
+ }
+
+ async relinkDecisionNetworkBlocks(fromDecisionId: bigint, toDecisionId: bigint): Promise<Array<BannedIpEntry>> {
+ const relinked = await this.deps.adminRepository.relinkDecisionIpBans(fromDecisionId, toDecisionId);
+ if (relinked.length > 0) {
+ await this.refreshIpBans();
+ }
+ return relinked;
+ }
+
+ private async refreshIpBans(): Promise<void> {
+ await ipBanCache.refresh();
+ await this.deps.apiContext.services.cache.publish(IP_BAN_REFRESH_CHANNEL, 'refresh');
+ }
+
+ private async assertIpBanNotLinked(ip: string): Promise<void> {
+ const decisionId = await this.deps.adminRepository.findIpBanDecision(ip);
+ if (decisionId !== null) {
+ throw new IpBanLinkedToDecisionError(decisionId);
+ }
}
async banEmail(
diff --git a/fluxer_api/src/api/admin/services/AdminGuildService.ts b/fluxer_api/src/api/admin/services/AdminGuildService.ts
index 8721a8d88..350e75a99 100644
--- a/fluxer_api/src/api/admin/services/AdminGuildService.ts
+++ b/fluxer_api/src/api/admin/services/AdminGuildService.ts
@@ -9,6 +9,7 @@ import {AdminGuildUpdateService} from '@app/api/admin/services/guild/AdminGuildU
import {AdminGuildVanityService} from '@app/api/admin/services/guild/AdminGuildVanityService';
import {createGuildID, createUserID} from '@app/api/BrandedTypes';
import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
+import type {EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
import type {GuildDiscoveryRepository} from '@app/api/guild/repositories/GuildDiscoveryRepository';
import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
import type {GuildService} from '@app/api/guild/services/GuildService';
@@ -29,6 +30,7 @@ interface AdminGuildServiceDeps {
entityAssetService: EntityAssetService;
auditService: AdminAuditService;
discoveryRepository: GuildDiscoveryRepository;
+ enforcement: EnforcementDecisionService;
}
export class AdminGuildService {
@@ -75,6 +77,7 @@ export class AdminGuildService {
gatewayService: deps.gatewayService,
guildService: deps.guildService,
auditService: deps.auditService,
+ enforcement: deps.enforcement,
});
}
diff --git a/fluxer_api/src/api/admin/services/AdminMessageDeletionService.ts b/fluxer_api/src/api/admin/services/AdminMessageDeletionService.ts
index 99f21a838..2d64711ac 100644
--- a/fluxer_api/src/api/admin/services/AdminMessageDeletionService.ts
+++ b/fluxer_api/src/api/admin/services/AdminMessageDeletionService.ts
@@ -1,20 +1,30 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import type {ApiContext} from '@app/api/ApiContext';
import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
-import type {AdminMessageShredService} from '@app/api/admin/services/AdminMessageShredService';
+import {queueMessageShredJob} from '@app/api/admin/services/AdminMessageShredService';
import type {ChannelID, MessageID, UserID} from '@app/api/BrandedTypes';
-import {createUserID} from '@app/api/BrandedTypes';
import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
-import {Logger} from '@app/api/Logger';
-import type {
- DeleteAllUserMessagesRequest,
- DeleteAllUserMessagesResponse,
-} from '@fluxer/schema/src/domains/admin/AdminMessageSchemas';
+import type {EnforcementDecisionRow} from '@app/api/database/types/EnforcementTypes';
+import type {EnforcementActor} from '@app/api/enforcement/EnforcementActor';
+import {decisionAuditMetadata, type EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
+import type {User} from '@app/api/models/User';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
+import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
+import type {DeleteAllUserMessagesResponse} from '@fluxer/schema/src/domains/admin/AdminMessageSchemas';
+import type {ModerationBasis} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
interface AdminMessageDeletionServiceDeps {
+ apiContext: ApiContext;
channelRepository: ChannelRepository;
- messageShredService: AdminMessageShredService;
auditService: AdminAuditService;
+ enforcement: EnforcementDecisionService;
+}
+
+interface DeleteAllUserMessages {
+ dryRun: boolean;
+ basis: ModerationBasis | undefined;
}
const FETCH_CHUNK_SIZE = 200;
@@ -23,52 +33,68 @@ export class AdminMessageDeletionService {
constructor(private readonly deps: AdminMessageDeletionServiceDeps) {}
async deleteAllUserMessages(
- data: DeleteAllUserMessagesRequest,
- adminUserId: UserID,
- auditLogReason: string | null,
+ userId: UserID,
+ {dryRun, basis}: DeleteAllUserMessages,
+ actor: EnforcementActor,
): Promise<DeleteAllUserMessagesResponse> {
- const authorId = createUserID(data.user_id);
- const {entries, channelCount, messageCount} = await this.collectMessageRefs(authorId, !data.dry_run);
- const metadata = new Map<string, string>([
- ['user_id', data.user_id.toString()],
- ['channel_count', channelCount.toString()],
- ['message_count', messageCount.toString()],
- ['dry_run', data.dry_run ? 'true' : 'false'],
- ]);
- const action = data.dry_run ? 'delete_all_user_messages_dry_run' : 'delete_all_user_messages';
- await this.deps.auditService.createAuditLog({
- adminUserId,
- targetType: 'message_deletion',
- targetId: data.user_id,
- action,
- auditLogReason,
- metadata,
- });
- Logger.debug(
- {user_id: data.user_id, channel_count: channelCount, message_count: messageCount, dry_run: data.dry_run},
- 'Computed delete-all-messages stats',
- );
+ if (!dryRun && !basis) {
+ throw InputValidationError.fromCode('basis', ValidationErrorCodes.MODERATION_BASIS_REQUIRED);
+ }
+ const {entries, channelCount, messageCount} = await this.collectMessageRefs(userId, !dryRun);
const response: DeleteAllUserMessagesResponse = {
success: true,
- dry_run: data.dry_run,
+ dry_run: dryRun,
channel_count: channelCount,
message_count: messageCount,
};
- if (data.dry_run || messageCount === 0) {
- return response;
+ let decision: EnforcementDecisionRow | null = null;
+ if (basis && !dryRun && messageCount > 0) {
+ const queue = async () => {
+ response.job_id = await queueMessageShredJob(this.deps.apiContext, actor.adminUserId, userId, entries);
+ };
+ if (basis.type === 'enforcement') {
+ ({decision} = await this.deps.enforcement.record(
+ {
+ subject: {type: 'user', user: await this.requireUser(userId)},
+ kind: 'content_removal',
+ input: basis.decision,
+ removal: {type: 'all_messages'},
+ actor,
+ },
+ queue,
+ ));
+ response.decision_id = decision.decision_id.toString();
+ } else {
+ await queue();
+ }
}
- const shredResult = await this.deps.messageShredService.queueMessageShred(
- {
- user_id: data.user_id,
- entries,
- },
- adminUserId,
- auditLogReason,
- );
- response.job_id = shredResult.job_id;
+ await this.deps.auditService.createAuditLog({
+ adminUserId: actor.adminUserId,
+ targetType: 'message_deletion',
+ targetId: userId,
+ action: dryRun ? 'delete_all_user_messages_dry_run' : 'delete_all_user_messages',
+ auditLogReason: actor.internalNote,
+ metadata: new Map([
+ ['user_id', userId.toString()],
+ ['channel_count', channelCount.toString()],
+ ['message_count', messageCount.toString()],
+ ['dry_run', dryRun ? 'true' : 'false'],
+ ...(basis && !dryRun ? ([['basis', basis.type]] as Array<[string, string]>) : []),
+ ...(response.job_id ? ([['job_id', response.job_id]] as Array<[string, string]>) : []),
+ ...(decision ? decisionAuditMetadata(decision) : []),
+ ]),
+ });
return response;
}
+ private async requireUser(userId: UserID): Promise<User> {
+ const user = await this.deps.apiContext.services.users.findUnique(userId);
+ if (!user) {
+ throw new UnknownUserError();
+ }
+ return user;
+ }
+
private async collectMessageRefs(authorId: UserID, includeEntries: boolean) {
let lastMessageId: MessageID | undefined;
const entries: Array<{
diff --git a/fluxer_api/src/api/admin/services/AdminMessageService.ts b/fluxer_api/src/api/admin/services/AdminMessageService.ts
index ee10276a8..6e8815b22 100644
--- a/fluxer_api/src/api/admin/services/AdminMessageService.ts
+++ b/fluxer_api/src/api/admin/services/AdminMessageService.ts
@@ -34,7 +34,7 @@ import type {
SearchChannelMessagesRequest,
} from '@fluxer/schema/src/domains/admin/AdminMessageBrowseSchemas';
import type {
- DeleteMessageRequest,
+ AdminMessageDeleteRequest,
LookupMessageByAttachmentRequest,
LookupMessageRequest,
} from '@fluxer/schema/src/domains/admin/AdminMessageSchemas';
@@ -106,11 +106,15 @@ export class AdminMessageService {
};
}
- async deleteMessage(data: DeleteMessageRequest, adminUserId: UserID, auditLogReason: string | null) {
+ async deleteMessage(
+ channelId: ChannelID,
+ messageId: MessageID,
+ {basis}: AdminMessageDeleteRequest,
+ adminUserId: UserID,
+ auditLogReason: string | null,
+ ) {
const {channelRepository, auditService} = this.deps;
const {gateway: gatewayService, worker: workerService} = this.deps.apiContext.services;
- const channelId = createChannelID(data.channel_id);
- const messageId = createMessageID(data.message_id);
const channel = await channelRepository.channelData.findUnique(channelId);
const message = await channelRepository.messages.getMessage(channelId, messageId);
if (message) {
@@ -158,6 +162,7 @@ export class AdminMessageService {
metadata: new Map([
['channel_id', channelId.toString()],
['message_id', messageId.toString()],
+ ['basis', basis.type],
]),
});
return {
diff --git a/fluxer_api/src/api/admin/services/AdminMessageShredService.ts b/fluxer_api/src/api/admin/services/AdminMessageShredService.ts
index bf3ce9e63..b2d5660ed 100644
--- a/fluxer_api/src/api/admin/services/AdminMessageShredService.ts
+++ b/fluxer_api/src/api/admin/services/AdminMessageShredService.ts
@@ -3,10 +3,15 @@
import type {ApiContext} from '@app/api/ApiContext';
import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
import type {UserID} from '@app/api/BrandedTypes';
+import type {EnforcementDecisionRow} from '@app/api/database/types/EnforcementTypes';
+import type {EnforcementActor} from '@app/api/enforcement/EnforcementActor';
+import {decisionAuditMetadata, type EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
import {Logger} from '@app/api/Logger';
-import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
-import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
-import type {MessageShredRequest} from '@fluxer/schema/src/domains/admin/AdminMessageSchemas';
+import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
+import type {
+ AdminUserMessageShredRequest,
+ MessageShredResponse,
+} from '@fluxer/schema/src/domains/admin/AdminMessageSchemas';
import type {WorkerJobPayload} from '@pkgs/worker/src/contracts/WorkerTypes';
type MessageShredStatusCacheEntry = {
@@ -29,6 +34,7 @@ type MessageShredStatusResult =
interface AdminMessageShredServiceDeps {
apiContext: ApiContext;
auditService: AdminAuditService;
+ enforcement: EnforcementDecisionService;
}
interface QueueMessageShredJobPayload extends WorkerJobPayload {
@@ -41,54 +47,82 @@ interface QueueMessageShredJobPayload extends WorkerJobPayload {
}>;
}
+export async function queueMessageShredJob(
+ apiContext: ApiContext,
+ adminUserId: UserID,
+ targetUserId: bigint,
+ entries: ReadonlyArray<{channel_id: bigint; message_id: bigint}>,
+): Promise<string> {
+ const {snowflake: snowflakeService, worker: workerService} = apiContext.services;
+ const jobId = (await snowflakeService.generate()).toString();
+ const payload: QueueMessageShredJobPayload = {
+ job_id: jobId,
+ admin_user_id: adminUserId.toString(),
+ target_user_id: targetUserId.toString(),
+ entries: entries.map((entry) => ({
+ channel_id: entry.channel_id.toString(),
+ message_id: entry.message_id.toString(),
+ })),
+ };
+ await workerService.addJob('messageShred', payload, {
+ jobKey: `message_shred_${targetUserId.toString()}_${jobId}`,
+ maxAttempts: 1,
+ });
+ Logger.debug({target_user_id: targetUserId, job_id: jobId}, 'Queued message shred job');
+ return jobId;
+}
+
export class AdminMessageShredService {
constructor(private readonly deps: AdminMessageShredServiceDeps) {}
async queueMessageShred(
- data: MessageShredRequest,
- adminUserId: UserID,
- auditLogReason: string | null,
- ): Promise<{
- success: true;
- job_id: string;
- requested: number;
- }> {
- if (data.entries.length === 0) {
- throw InputValidationError.fromCode('entries', ValidationErrorCodes.AT_LEAST_ONE_ENTRY_IS_REQUIRED);
- }
- const {snowflake: snowflakeService, worker: workerService} = this.deps.apiContext.services;
- const jobId = (await snowflakeService.generate()).toString();
- const payload: QueueMessageShredJobPayload = {
- job_id: jobId,
- admin_user_id: adminUserId.toString(),
- target_user_id: data.user_id.toString(),
- entries: data.entries.map((entry) => ({
- channel_id: entry.channel_id.toString(),
- message_id: entry.message_id.toString(),
- })),
+ userId: UserID,
+ {entries, basis}: AdminUserMessageShredRequest,
+ actor: EnforcementActor,
+ ): Promise<MessageShredResponse> {
+ const {apiContext, auditService, enforcement} = this.deps;
+ let jobId = '';
+ const queue = async () => {
+ jobId = await queueMessageShredJob(apiContext, actor.adminUserId, userId, entries);
};
- await workerService.addJob('messageShred', payload, {
- jobKey: `message_shred_${data.user_id.toString()}_${jobId}`,
- maxAttempts: 1,
- });
- Logger.debug({target_user_id: data.user_id, job_id: jobId}, 'Queued message shred job');
- const metadata = new Map<string, string>([
- ['user_id', data.user_id.toString()],
- ['job_id', jobId],
- ['requested_entries', data.entries.length.toString()],
- ]);
- await this.deps.auditService.createAuditLog({
- adminUserId,
+ let decision: EnforcementDecisionRow | null = null;
+ if (basis.type === 'enforcement') {
+ const user = await apiContext.services.users.findUnique(userId);
+ if (!user) {
+ throw new UnknownUserError();
+ }
+ ({decision} = await enforcement.record(
+ {
+ subject: {type: 'user', user},
+ kind: 'content_removal',
+ input: basis.decision,
+ removal: {type: 'messages', entries},
+ actor,
+ },
+ queue,
+ ));
+ } else {
+ await queue();
+ }
+ await auditService.createAuditLog({
+ adminUserId: actor.adminUserId,
targetType: 'message_shred',
- targetId: data.user_id,
+ targetId: userId,
action: 'queue_message_shred',
- auditLogReason,
- metadata,
+ auditLogReason: actor.internalNote,
+ metadata: new Map([
+ ['user_id', userId.toString()],
+ ['job_id', jobId],
+ ['requested_entries', entries.length.toString()],
+ ['basis', basis.type],
+ ...(decision ? decisionAuditMetadata(decision) : []),
+ ]),
});
return {
success: true,
job_id: jobId,
- requested: data.entries.length,
+ requested: entries.length,
+ ...(decision ? {decision_id: decision.decision_id.toString()} : {}),
};
}
diff --git a/fluxer_api/src/api/admin/services/AdminReportService.ts b/fluxer_api/src/api/admin/services/AdminReportService.ts
index 256fe45c1..c4951d78d 100644
--- a/fluxer_api/src/api/admin/services/AdminReportService.ts
+++ b/fluxer_api/src/api/admin/services/AdminReportService.ts
@@ -39,11 +39,14 @@ import {formatUserTag} from '@app/api/user/UserTag';
import {assertSafeByteSize} from '@app/api/utils/ByteSizeUtils';
import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
import {DELETED_USER_DISCRIMINATOR, DELETED_USER_USERNAME} from '@fluxer/constants/src/UserConstants';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
import {FeatureTemporarilyDisabledError} from '@fluxer/errors/src/domains/core/FeatureTemporarilyDisabledError';
+import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
import {UnknownReportError} from '@fluxer/errors/src/domains/moderation/UnknownReportError';
import type {ReportSearchFilters} from '@fluxer/schema/src/contracts/search/SearchDocumentTypes';
import type {
AdminReportReasonsResponse,
+ ReportItemOutcome,
SearchReportsRequest,
UpdateReportRequest,
} from '@fluxer/schema/src/domains/admin/AdminSchemas';
@@ -63,7 +66,39 @@ interface AdminReportServiceDeps {
reporterResolutionNotifier: ReporterResolutionNotifier;
}
-type StaffReportResolution = NonNullable<UpdateReportRequest['resolution']>;
+interface StaffReportResolution {
+ adminUserId: UserID;
+ publicComment: string | null;
+ auditLogReason: string | null;
+ notifyReporter: boolean;
+ resolution: UpdateReportRequest['resolution'];
+ outcome?: ReportItemOutcome;
+ duplicateOf?: ReportID;
+}
+
+function refuse(path: 'outcome' | 'duplicate_of'): never {
+ throw InputValidationError.fromCode(path, ValidationErrorCodes.REPORT_OUTCOME_INVALID);
+}
+
+function staffOutcome(
+ resolution: UpdateReportRequest['resolution'],
+ outcome: ReportItemOutcome | undefined,
+ duplicateOf: ReportID | undefined,
+): ReportItemOutcome | null {
+ if (resolution !== 'duplicate' && duplicateOf !== undefined) refuse('duplicate_of');
+ switch (resolution) {
+ case 'no_violation':
+ if (outcome !== undefined && outcome !== 'no_violation') refuse('outcome');
+ return 'no_violation';
+ case 'actioned':
+ if (outcome === undefined || outcome === 'no_violation') refuse('outcome');
+ return outcome;
+ case 'duplicate':
+ if (outcome !== undefined) refuse('outcome');
+ if (duplicateOf === undefined) refuse('duplicate_of');
+ return null;
+ }
+}
interface ReportLookupCache {
channelNsfwByChannelId: Map<string, boolean | null>;
@@ -167,20 +202,29 @@ export class AdminReportService {
async resolveReport(
reportId: ReportID,
- adminUserId: UserID,
- publicComment: string | null,
- auditLogReason: string | null,
- notifyReporter: boolean,
- resolution?: StaffReportResolution,
+ {
+ adminUserId,
+ publicComment,
+ auditLogReason,
+ notifyReporter,
+ resolution,
+ outcome,
+ duplicateOf,
+ }: StaffReportResolution,
) {
const {reportService, auditService, reporterResolutionNotifier} = this.deps;
+ const reporterOutcome =
+ staffOutcome(resolution, outcome, duplicateOf) ?? (await this.duplicatedOutcome(reportId, duplicateOf));
const sentComment = notifyReporter ? publicComment : null;
const internalComment = notifyReporter ? null : publicComment;
const resolvedReport = await reportService.resolveReport(reportId, adminUserId, sentComment, auditLogReason, {
outcome: resolution,
resolvedBy: 'staff',
+ reporterOutcome,
});
- const notice = await reporterResolutionNotifier.notifyReporterOfResolution(resolvedReport, sentComment);
+ const notice = reporterOutcome
+ ? await reporterResolutionNotifier.notifyReporterOfResolution(resolvedReport, sentComment, reporterOutcome)
+ : null;
await auditService.createAuditLog({
adminUserId,
targetType: 'report',
@@ -192,8 +236,12 @@ export class AdminReportService {
['report_type', resolvedReport.reportType.toString()],
['notify_reporter', notifyReporter ? 'true' : 'false'],
...(internalComment ? [['internal_comment', internalComment] as [string, string]] : []),
- ...describeReporterNotice(notice),
- ...(resolution ? [['resolution', resolution] as [string, string]] : []),
+ ...(notice
+ ? describeReporterNotice(notice)
+ : [['reporter_notice_skipped', 'duplicate_outcome_unknown'] as [string, string]]),
+ ['resolution', resolution],
+ ...(duplicateOf ? [['duplicate_of', duplicateOf.toString()] as [string, string]] : []),
+ ...(reporterOutcome ? [['outcome', reporterOutcome] as [string, string]] : []),
]),
});
return {
@@ -204,6 +252,16 @@ export class AdminReportService {
};
}
+ private async duplicatedOutcome(
+ reportId: ReportID,
+ duplicateOf: ReportID | undefined,
+ ): Promise<ReportItemOutcome | null> {
+ if (duplicateOf === undefined) return null;
+ if (duplicateOf === reportId) refuse('duplicate_of');
+ const original = await this.deps.reportService.getReport(duplicateOf);
+ return original.reporterOutcome;
+ }
+
async searchReports(data: SearchReportsRequest, acls: ReadonlySet<string>) {
const reportSearchService = getReportSearchService();
if (!reportSearchService) {
diff --git a/fluxer_api/src/api/admin/services/AdminUserBanService.ts b/fluxer_api/src/api/admin/services/AdminUserBanService.ts
index 2fcac057b..86c1acc38 100644
--- a/fluxer_api/src/api/admin/services/AdminUserBanService.ts
+++ b/fluxer_api/src/api/admin/services/AdminUserBanService.ts
@@ -1,176 +1,178 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-import type {ApiContext} from '@app/api/ApiContext';
import {mapUserToAdminResponse} from '@app/api/admin/models/UserTypes';
import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
-import {trySendAdminNotification} from '@app/api/admin/services/AdminNotification';
-import {revokeAllAuthSessions} from '@app/api/auth/AuthSessionRevocation';
-import {createUserID, type UserID} from '@app/api/BrandedTypes';
-import {emitAdminAction} from '@app/api/infrastructure/activity/AccountChangeEvents';
-import {clearNewConversationLimit} from '@app/api/user/NewConversationLimit';
+import type {UserID} from '@app/api/BrandedTypes';
+import type {ClosureStateDeps} from '@app/api/enforcement/ClosureState';
+import type {EnforcementActor} from '@app/api/enforcement/EnforcementActor';
import {
- type PartialUserChangePropagationDeps,
- propagateUserUpdate,
-} from '@app/api/user/services/PartialUserChangePropagation';
+ decisionAuditMetadata,
+ type EnforcementDecisionService,
+ networkBlockAuditMetadata,
+} from '@app/api/enforcement/EnforcementDecisionService';
+import type {EnforcementNoticeDelivery} from '@app/api/enforcement/EnforcementNoticeDelivery';
+import {setFeatureLimit} from '@app/api/enforcement/FeatureLimitState';
+import {permanentSuspensionEnd} from '@app/api/enforcement/NoticeDates';
+import {applySuspension, liftSuspension} from '@app/api/enforcement/SuspensionState';
+import {emitAdminAction} from '@app/api/infrastructure/activity/AccountChangeEvents';
+import type {User} from '@app/api/models/User';
import {isAccountClosed, isTemporarilyBanned} from '@app/api/user/UserHelpers';
-import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
-import {UserFlags} from '@fluxer/constants/src/UserConstants';
-import {BadRequestError} from '@fluxer/errors/src/domains/core/BadRequestError';
-import {ConflictError} from '@fluxer/errors/src/domains/core/ConflictError';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
+import {EnforcementAccountClosedError} from '@fluxer/errors/src/domains/moderation/EnforcementAccountClosedError';
+import {EnforcementDecisionOwnsStateError} from '@fluxer/errors/src/domains/moderation/EnforcementDecisionOwnsStateError';
import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
import type {
- AdminUserBanNoteRequest,
- AdminUserUnbanRequest,
- TempBanUserRequest,
-} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
+ AdminUserBanRequest,
+ AdminUserFeatureLimitRequest,
+ AdminUserWarningRequest,
+} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
+import {ms} from 'itty-time';
-interface AdminUserBanServiceDeps {
- apiContext: ApiContext;
+interface AdminUserBanServiceDeps extends ClosureStateDeps {
auditService: AdminAuditService;
- userUpdateDeps: PartialUserChangePropagationDeps;
+ enforcement: EnforcementDecisionService;
+ delivery: EnforcementNoticeDelivery;
+}
+
+const REPORTS_LIMIT_DEFAULT_DAYS = 90;
+const REPORTS_LIMIT_MAX_DAYS = 365;
+
+function featureLimitEnd(data: AdminUserFeatureLimitRequest, now: Date): Date | null {
+ if (data.limit !== 'reports') {
+ if (data.ends_at !== undefined) {
+ throw InputValidationError.fromCode('ends_at', ValidationErrorCodes.ENFORCEMENT_LIMIT_END_INVALID);
+ }
+ return null;
+ }
+ const endsAt = data.ends_at
+ ? new Date(data.ends_at)
+ : new Date(now.getTime() + ms(`${REPORTS_LIMIT_DEFAULT_DAYS} days`));
+ if (endsAt <= now || endsAt.getTime() > now.getTime() + ms(`${REPORTS_LIMIT_MAX_DAYS} days`)) {
+ throw InputValidationError.fromCode('ends_at', ValidationErrorCodes.ENFORCEMENT_LIMIT_END_INVALID);
+ }
+ return endsAt;
}
export class AdminUserBanService {
constructor(private readonly deps: AdminUserBanServiceDeps) {}
- async tempBanUser(
- data: TempBanUserRequest,
- adminUserId: UserID,
- auditLogReason: string | null,
- acls: ReadonlySet<string>,
- ) {
- const {users: userRepository, email: emailService, cache: cacheService} = this.deps.apiContext.services;
- const {auditService, userUpdateDeps} = this.deps;
- const userId = createUserID(data.user_id);
- const user = await userRepository.findUnique(userId);
+ private async requireUser(userId: UserID): Promise<User> {
+ const user = await this.deps.apiContext.services.users.findUnique(userId);
if (!user) {
throw new UnknownUserError();
}
- const tempBannedUntil = new Date();
- if (data.duration_hours <= 0) {
- tempBannedUntil.setFullYear(tempBannedUntil.getFullYear() + 100);
- } else {
- tempBannedUntil.setHours(tempBannedUntil.getHours() + data.duration_hours);
+ return user;
+ }
+
+ async tempBanUser(userId: UserID, data: AdminUserBanRequest, actor: EnforcementActor) {
+ const {auditService, enforcement} = this.deps;
+ const user = await this.requireUser(userId);
+ if (isAccountClosed(user)) {
+ throw new EnforcementAccountClosedError();
}
- const bannedUser = await userRepository.patchUpsert(userId, {temp_banned_until: tempBannedUntil}, user.toRow());
- const updatedUser = (await userRepository.updateFlags(userId, (flags) => flags | UserFlags.DISABLED)) ?? bannedUser;
- await revokeAllAuthSessions(this.deps.apiContext.services, userId);
- await propagateUserUpdate(userUpdateDeps, user, updatedUser);
- const email = user.email;
- const notificationSent =
- data.notify_user && email && data.duration_hours > 0
- ? await trySendAdminNotification(
- () =>
- emailService.sendAccountTempBannedEmail(
- email,
- user.username,
- data.reason ?? null,
- data.duration_hours,
- tempBannedUntil,
- user.locale,
- ),
- {action: 'temp_ban', targetId: userId.toString()},
- )
- : false;
+ const now = new Date();
+ const permanent = data.duration_hours === 0;
+ const bannedUntil = permanent
+ ? permanentSuspensionEnd(now)
+ : new Date(now.getTime() + ms(`${data.duration_hours} hours`));
+ let suspended = user;
+ const recorded = await enforcement.record(
+ {
+ subject: {type: 'user', user},
+ kind: 'suspension',
+ input: data.decision,
+ endsAt: permanent ? null : bannedUntil,
+ removeEvidence: data.remove_evidence ?? false,
+ blockNetworks: data.block_networks,
+ actor,
+ },
+ async (decisionId) => {
+ suspended = await applySuspension(this.deps, user, bannedUntil, decisionId);
+ },
+ );
await auditService.createAuditLog({
- adminUserId,
+ adminUserId: actor.adminUserId,
targetType: 'user',
targetId: BigInt(userId),
action: 'temp_ban',
- auditLogReason,
+ auditLogReason: actor.internalNote,
metadata: new Map([
['duration_hours', data.duration_hours.toString()],
- ['reason', data.reason ?? 'null'],
- ['banned_until', tempBannedUntil.toISOString()],
- ['notify_user', data.notify_user ? 'true' : 'false'],
- ['notification_sent', notificationSent ? 'true' : 'false'],
+ ['banned_until', bannedUntil.toISOString()],
+ ...decisionAuditMetadata(recorded.decision),
+ ...networkBlockAuditMetadata(recorded),
]),
});
- await emitAdminAction(adminUserId, userId, 'temp_ban', {durationHours: data.duration_hours});
+ await emitAdminAction(actor.adminUserId, userId, 'temp_ban', {durationHours: data.duration_hours});
return {
- user: await mapUserToAdminResponse(updatedUser, cacheService, acls),
+ user: await mapUserToAdminResponse(suspended, this.deps.apiContext.services.cache, actor.acls),
+ skipped_ips: recorded.skippedNetworks,
};
}
- async annotateBan(data: AdminUserBanNoteRequest & {user_id: bigint}, adminUserId: UserID): Promise<void> {
- const {users: userRepository} = this.deps.apiContext.services;
- const {auditService} = this.deps;
- const userId = createUserID(data.user_id);
- const user = await userRepository.findUnique(userId);
- if (!user) {
- throw new UnknownUserError();
- }
- const banLog = await auditService.findAuditLog(data.ban_audit_log_id);
- if (banLog?.action !== 'temp_ban' || banLog.targetType !== 'user' || banLog.targetId !== BigInt(userId)) {
- throw new BadRequestError({
- code: APIErrorCodes.INVALID_FORM_BODY,
- message: 'ban_audit_log_id does not name a ban of this user',
- });
- }
- const bannedUntil = user.tempBannedUntil;
- if (
- (user.flags & UserFlags.DISABLED) === 0n ||
- !bannedUntil ||
- bannedUntil.getTime() <= Date.now() ||
- banLog.metadata.get('banned_until') !== bannedUntil.toISOString()
- ) {
- throw new ConflictError({
- code: APIErrorCodes.CONFLICT,
- message: 'ban_audit_log_id does not name the current ban of this user',
- });
- }
- await auditService.createAuditLog({
- adminUserId,
+ async warnUser(userId: UserID, data: AdminUserWarningRequest, actor: EnforcementActor) {
+ const user = await this.requireUser(userId);
+ const {decision} = await this.deps.enforcement.record(
+ {subject: {type: 'user', user}, kind: 'warning', input: data.decision, actor},
+ async () => {},
+ );
+ await this.deps.auditService.createAuditLog({
+ adminUserId: actor.adminUserId,
targetType: 'user',
targetId: BigInt(userId),
- action: 'annotate_ban',
- auditLogReason: data.note,
- metadata: new Map([['ban_audit_log_id', data.ban_audit_log_id.toString()]]),
+ action: 'warn_user',
+ auditLogReason: actor.internalNote,
+ metadata: new Map(decisionAuditMetadata(decision)),
});
+ return {decision_id: decision.decision_id.toString()};
}
- async unbanUser(
- data: AdminUserUnbanRequest & {user_id: bigint},
- adminUserId: UserID,
- auditLogReason: string | null,
- acls: ReadonlySet<string>,
- ) {
- const {users: userRepository, email: emailService, cache: cacheService} = this.deps.apiContext.services;
- const {auditService, userUpdateDeps} = this.deps;
- const userId = createUserID(data.user_id);
- const user = await userRepository.findUnique(userId);
- if (!user) {
- throw new UnknownUserError();
+ async limitFeatures(userId: UserID, data: AdminUserFeatureLimitRequest, actor: EnforcementActor) {
+ const user = await this.requireUser(userId);
+ const endsAt = featureLimitEnd(data, new Date());
+ let limited = user;
+ const {decision} = await this.deps.enforcement.record(
+ {subject: {type: 'user', user}, kind: 'feature_limit', input: data.decision, endsAt, limit: data.limit, actor},
+ async () => {
+ limited = await setFeatureLimit(this.deps, user, data.limit, true, actor.adminUserId);
+ },
+ );
+ await this.deps.auditService.createAuditLog({
+ adminUserId: actor.adminUserId,
+ targetType: 'user',
+ targetId: BigInt(userId),
+ action: 'limit_features',
+ auditLogReason: actor.internalNote,
+ metadata: new Map([
+ ['limit', data.limit],
+ ...(endsAt ? ([['ends_at', endsAt.toISOString()]] as Array<[string, string]>) : []),
+ ...decisionAuditMetadata(decision),
+ ]),
+ });
+ return {user: await mapUserToAdminResponse(limited, this.deps.apiContext.services.cache, actor.acls)};
+ }
+
+ async unbanUser(userId: UserID, actor: EnforcementActor) {
+ const {auditService, delivery} = this.deps;
+ const user = await this.requireUser(userId);
+ if (user.enforcementDecisionId !== null) {
+ throw new EnforcementDecisionOwnsStateError(user.enforcementDecisionId);
+ }
+ const wasSuspended = isTemporarilyBanned(user) && !isAccountClosed(user);
+ const updated = await liftSuspension(this.deps, user);
+ if (wasSuspended) {
+ await delivery.sendLegacyEnded(user);
}
- const wasTempBanned = isTemporarilyBanned(user) && !isAccountClosed(user);
- const unbannedUser = await userRepository.patchUpsert(userId, {temp_banned_until: null}, user.toRow());
- const updatedUser =
- (await userRepository.updateFlags(userId, (flags) => flags & ~UserFlags.DISABLED)) ?? unbannedUser;
- await propagateUserUpdate(userUpdateDeps, user, updatedUser);
- const email = user.email;
- const notificationSent =
- data.notify_user && email && wasTempBanned
- ? await trySendAdminNotification(
- () => emailService.sendUnbanNotification(email, user.username, data.public_reason ?? null, user.locale),
- {action: 'unban', targetId: userId.toString()},
- )
- : false;
await auditService.createAuditLog({
- adminUserId,
+ adminUserId: actor.adminUserId,
targetType: 'user',
targetId: BigInt(userId),
action: 'unban',
- auditLogReason,
- metadata: new Map([
- ['notify_user', data.notify_user ? 'true' : 'false'],
- ['notification_sent', notificationSent ? 'true' : 'false'],
- ['public_reason', data.public_reason ?? 'null'],
- ]),
+ auditLogReason: actor.internalNote,
+ metadata: new Map([['ended_notice', wasSuspended ? 'true' : 'false']]),
});
- await clearNewConversationLimit(userId, {cache: cacheService});
- await emitAdminAction(adminUserId, userId, 'unban');
- return {
- user: await mapUserToAdminResponse(updatedUser, cacheService, acls),
- };
+ await emitAdminAction(actor.adminUserId, userId, 'unban');
+ return {user: await mapUserToAdminResponse(updated, this.deps.apiContext.services.cache, actor.acls)};
}
}
diff --git a/fluxer_api/src/api/admin/services/AdminUserDeletionService.ts b/fluxer_api/src/api/admin/services/AdminUserDeletionService.ts
index 11fc94140..adb6a9b03 100644
--- a/fluxer_api/src/api/admin/services/AdminUserDeletionService.ts
+++ b/fluxer_api/src/api/admin/services/AdminUserDeletionService.ts
@@ -5,10 +5,24 @@ import {mapUserToAdminResponse} from '@app/api/admin/models/UserTypes';
import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
import type {AdminBanManagementService} from '@app/api/admin/services/AdminBanManagementService';
import {trySendAdminNotification} from '@app/api/admin/services/AdminNotification';
+import {collectKnownUserIps} from '@app/api/admin/services/KnownUserIps';
import {type ReporterResolutionNotifier, wasReporterNotified} from '@app/api/admin/services/ReporterResolutionNotifier';
import {revokeAllAuthSessions} from '@app/api/auth/AuthSessionRevocation';
-import {createReportID, createUserID, type UserID} from '@app/api/BrandedTypes';
+import {createReportID, type UserID} from '@app/api/BrandedTypes';
import type {BillingRepository} from '@app/api/billing/repositories/BillingRepository';
+import {Config} from '@app/api/Config';
+import type {EnforcementDecisionRow} from '@app/api/database/types/EnforcementTypes';
+import {cancelClosure} from '@app/api/enforcement/ClosureState';
+import type {EnforcementActor} from '@app/api/enforcement/EnforcementActor';
+import {
+ decisionAuditMetadata,
+ type EnforcementDecisionService,
+ networkBlockAuditMetadata,
+ type RecordedDecision,
+} from '@app/api/enforcement/EnforcementDecisionService';
+import type {EnforcementNoticeDelivery} from '@app/api/enforcement/EnforcementNoticeDelivery';
+import type {SkippedNetwork} from '@app/api/enforcement/NetworkBlocks';
+import {formatNoticeDate} from '@app/api/enforcement/NoticeDates';
import {emitAdminAction} from '@app/api/infrastructure/activity/AccountChangeEvents';
import type {KVAccountDeletionQueueService} from '@app/api/infrastructure/KVAccountDeletionQueueService';
import {Logger} from '@app/api/Logger';
@@ -18,23 +32,32 @@ import {type IARSubmission, ReportStatus} from '@app/api/report/ReportModels';
import type {ReportService} from '@app/api/report/ReportService';
import {getReportSearchService} from '@app/api/SearchFactory';
import type {StoreEntitlementService} from '@app/api/store_billing/StoreEntitlementService';
-import {clearNewConversationLimit} from '@app/api/user/NewConversationLimit';
import {isEnforcementDeletionReason} from '@app/api/user/ProfileVisibility';
import {
type PartialUserChangePropagationDeps,
propagateUserUpdate,
} from '@app/api/user/services/PartialUserChangePropagation';
-import {clearPendingDeletion, reschedulePendingDeletion} from '@app/api/user/services/PendingDeletionCoordinator';
+import {reschedulePendingDeletion} from '@app/api/user/services/PendingDeletionCoordinator';
+import {isHeldByDecision} from '@app/api/user/UserHelpers';
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {
+ ACCOUNT_DELETION_MIN_DAYS,
+ ENFORCEMENT_CLOSURE_MIN_DAYS,
+ ENFORCEMENT_REASONS,
+ ENFORCEMENT_RULES,
+} from '@fluxer/constants/src/EnforcementReasons';
import {UserFlags} from '@fluxer/constants/src/UserConstants';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
import {ConflictError} from '@fluxer/errors/src/domains/core/ConflictError';
+import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
import {NoPendingDeletionError} from '@fluxer/errors/src/domains/core/NoPendingDeletionError';
+import {EnforcementDecisionOwnsStateError} from '@fluxer/errors/src/domains/moderation/EnforcementDecisionOwnsStateError';
import {ReportAlreadyResolvedError} from '@fluxer/errors/src/domains/moderation/ReportAlreadyResolvedError';
import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
import type {
AdminUserDeletionCancelRequest,
- ScheduleAccountDeletionRequest,
+ AdminUserDeletionScheduleRequest,
} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
import type Stripe from 'stripe';
@@ -50,6 +73,8 @@ interface AdminUserDeletionServiceDeps {
oauth2Tokens: Pick<OAuth2TokenRepository, 'deleteAllAccessTokensForUser' | 'deleteAllRefreshTokensForUser'>;
storeEntitlementService: StoreEntitlementService;
reporterResolutionNotifier: ReporterResolutionNotifier;
+ enforcement: EnforcementDecisionService;
+ delivery: EnforcementNoticeDelivery;
}
type AutoResolveOutcome = 'completed' | 'search_unavailable' | 'enumeration_failed';
@@ -62,8 +87,12 @@ interface AutoResolveSummary {
notifiedCount: number;
}
-const minUserRequestedDeletionDays = 14;
-const minStandardDeletionDays = 60;
+type ClosureBasisType = AdminUserDeletionScheduleRequest['basis']['type'];
+
+const BASIS_DELETION_REASONS = {
+ holder_request: DeletionReasons.USER_REQUESTED,
+ housekeeping: DeletionReasons.INACTIVITY,
+} as const;
const reportResolvingDeletionReasons: ReadonlySet<number> = new Set([
DeletionReasons.SPAM,
@@ -95,327 +124,322 @@ function sameInstant(left: Date, right: string): boolean {
return left.getTime() === new Date(right).getTime();
}
-export function resolveDeletionDays(reasonCode: number, requestedDays: number): number {
- const minDays =
- reasonCode === DeletionReasons.USER_REQUESTED ? minUserRequestedDeletionDays : minStandardDeletionDays;
- return Math.max(requestedDays, minDays);
+export function resolveDeletionDays(basis: ClosureBasisType, requestedDays: number): number {
+ const appealable = basis === 'enforcement' && !Config.instance.selfHosted;
+ return Math.max(requestedDays, appealable ? ENFORCEMENT_CLOSURE_MIN_DAYS : ACCOUNT_DELETION_MIN_DAYS);
}
-type ScheduledDeletionEmailTemplate =
- | 'account_deletion_scheduled_requested'
- | 'account_deletion_scheduled_inactivity'
- | 'scheduled_deletion_notification'
- | 'account_scheduled_deletion';
-
-export function scheduledDeletionEmailTemplate(reasonCode: number): ScheduledDeletionEmailTemplate {
- switch (reasonCode) {
- case DeletionReasons.USER_REQUESTED:
- return 'account_deletion_scheduled_requested';
- case DeletionReasons.INACTIVITY:
- return 'account_deletion_scheduled_inactivity';
- case DeletionReasons.OTHER:
- return 'scheduled_deletion_notification';
- default:
- return 'account_scheduled_deletion';
+function closedFlags(user: User, enforcement: boolean): bigint {
+ if (!enforcement) {
+ return (user.flags & ~UserFlags.DELETED) | UserFlags.SELF_DELETED;
}
+ const flags = (user.flags | UserFlags.DELETED) & ~UserFlags.SELF_DELETED;
+ return user.tempBannedUntil ? flags & ~UserFlags.DISABLED : flags;
}
export class AdminUserDeletionService {
constructor(private readonly deps: AdminUserDeletionServiceDeps) {}
- async scheduleAccountDeletion(
- data: ScheduleAccountDeletionRequest,
- adminUserId: UserID,
- auditLogReason: string | null,
- acls: ReadonlySet<string>,
- ) {
- const {cache: cacheService} = this.deps.apiContext.services;
- const updatedUser = await this.applyScheduledDeletion(data, adminUserId, auditLogReason);
+ async scheduleAccountDeletion(userId: UserID, request: AdminUserDeletionScheduleRequest, actor: EnforcementActor) {
+ const {user, skippedNetworks} = await this.applyScheduledDeletion(userId, request, actor);
return {
- user: await mapUserToAdminResponse(updatedUser, cacheService, acls),
+ user: await mapUserToAdminResponse(user, this.deps.apiContext.services.cache, actor.acls),
+ skipped_ips: skippedNetworks,
};
}
async applyScheduledDeletion(
- data: ScheduleAccountDeletionRequest,
- adminUserId: UserID,
- auditLogReason: string | null,
- ): Promise<User> {
- const {users: userRepository} = this.deps.apiContext.services;
- const {auditService, userUpdateDeps} = this.deps;
- const userId = createUserID(data.user_id);
- const user = await userRepository.findUnique(userId);
- if (!user) {
- throw new UnknownUserError();
- }
+ userId: UserID,
+ request: AdminUserDeletionScheduleRequest,
+ actor: EnforcementActor,
+ ): Promise<{user: User; skippedNetworks: Array<SkippedNetwork>}> {
+ const {basis} = request;
+ const user = await this.requireUser(userId);
if (
user.pendingDeletionAt &&
- (!data.replace_pending_deletion_at || !sameInstant(user.pendingDeletionAt, data.replace_pending_deletion_at))
+ (!request.replace_pending_deletion_at ||
+ !sameInstant(user.pendingDeletionAt, request.replace_pending_deletion_at))
) {
throw new ConflictError({
code: APIErrorCodes.CONFLICT,
message: 'A deletion is already scheduled for this account',
});
}
- const daysUntilDeletion = resolveDeletionDays(data.reason_code, data.days_until_deletion);
+ if (basis.type !== 'enforcement') {
+ if (isHeldByDecision(user)) {
+ throw new EnforcementDecisionOwnsStateError(user.enforcementDecisionId!);
+ }
+ if (request.remove_evidence) {
+ throw InputValidationError.fromCode('remove_evidence', ValidationErrorCodes.ENFORCEMENT_EVIDENCE_REQUIRED);
+ }
+ if (request.block_networks) {
+ throw InputValidationError.fromCode(
+ 'block_networks',
+ ValidationErrorCodes.ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED,
+ );
+ }
+ }
+ const days = resolveDeletionDays(basis.type, request.days_until_deletion);
const scheduledAt = new Date();
const pendingDeletionAt = new Date(scheduledAt);
- pendingDeletionAt.setDate(pendingDeletionAt.getDate() + daysUntilDeletion);
- const updatedUser = await userRepository.updateDeletionSchedule(user, {
- flags: user.flags | UserFlags.DELETED,
- pending_deletion_at: pendingDeletionAt,
- deletion_reason_code: data.reason_code,
- deletion_public_reason: data.public_reason ?? null,
- deletion_audit_log_reason: auditLogReason,
- deletion_scheduled_by: adminUserId,
- deletion_scheduled_at: scheduledAt,
- });
- await reschedulePendingDeletion({
- userId,
- currentPendingDeletionAt: user.pendingDeletionAt,
- nextPendingDeletionAt: pendingDeletionAt,
- deletionReasonCode: data.reason_code,
- deletionQueue: this.deps.kvDeletionQueue,
- });
- await revokeAllAuthSessions(this.deps.apiContext.services, userId);
- await this.deps.oauth2Tokens.deleteAllAccessTokensForUser(userId);
- await this.deps.oauth2Tokens.deleteAllRefreshTokensForUser(userId);
- const {stripe, billingRepository} = this.deps;
- if (user.stripeSubscriptionId && stripe) {
- try {
- const sub = await billingRepository.subscriptions.findById(user.stripeSubscriptionId);
- const latestInvoiceId = sub?.latest_invoice_id ?? null;
- let chargeIdForRefund: string | null = null;
- if (latestInvoiceId) {
- const payment = await billingRepository.payments.findPrimaryForInvoice(latestInvoiceId);
- chargeIdForRefund = payment?.charge_id ?? null;
- }
- const canceled = await stripe.subscriptions.cancel(user.stripeSubscriptionId, {
- invoice_now: false,
- prorate: false,
- });
- try {
- await billingRepository.subscriptions.upsertFromStripe(canceled, {
- knownUserId: BigInt(userId),
- snapshotCapturedAt: new Date(),
- });
- } catch (mirrorErr) {
- Logger.error(
- {mirrorErr, subId: canceled.id},
- 'Mirror upsert failed after deletion-time subscription cancel; reconciler will heal',
- );
- }
- Logger.info(
- {userId: userId.toString(), subscriptionId: user.stripeSubscriptionId},
- 'Stripe subscription cancelled on ban',
- );
- if (chargeIdForRefund) {
- const refund = await stripe.refunds.create({
- charge: chargeIdForRefund,
- reason: 'fraudulent',
- metadata: {
- admin_user_id: String(adminUserId),
- target_user_id: String(userId),
- reason: 'pending_deletion',
- },
+ pendingDeletionAt.setDate(pendingDeletionAt.getDate() + days);
+ let closed = user;
+ let recorded: RecordedDecision | null = null;
+ if (basis.type === 'enforcement') {
+ recorded = await this.deps.enforcement.record(
+ {
+ subject: {type: 'user', user},
+ kind: 'closure',
+ input: basis.decision,
+ endsAt: null,
+ deletionAt: pendingDeletionAt,
+ removeEvidence: request.remove_evidence ?? false,
+ blockNetworks: request.block_networks,
+ actor,
+ },
+ async (decisionId) => {
+ closed = await this.writeClosure(user, {
+ reasonCode: basis.decision.reason_code,
+ pendingDeletionAt,
+ scheduledAt,
+ actorId: actor.adminUserId,
+ decisionId,
});
- try {
- await billingRepository.refunds.upsertFromStripe(refund, {
- invoiceId: latestInvoiceId ?? undefined,
- customerId: user.stripeCustomerId ?? undefined,
- userId: BigInt(userId),
- });
- } catch (mirrorErr) {
- Logger.error(
- {mirrorErr, refundId: refund.id},
- 'Mirror upsert failed after deletion-time refund; reconciler will heal',
- );
- }
- Logger.info({userId: userId.toString(), chargeId: chargeIdForRefund}, 'Stripe refund issued on ban');
- }
- } catch (err) {
- Logger.error(
- {err, userId: userId.toString(), subscriptionId: user.stripeSubscriptionId},
- 'Failed to cancel/refund Stripe subscription on ban',
- );
- }
+ },
+ );
+ } else {
+ closed = await this.writeClosure(user, {
+ reasonCode: BASIS_DELETION_REASONS[basis.type],
+ pendingDeletionAt,
+ scheduledAt,
+ actorId: actor.adminUserId,
+ decisionId: null,
+ });
}
+ await this.cancelSubscription(user, actor.adminUserId);
await this.deps.storeEntitlementService.revokeForBannedUser(userId);
- const email = user.email;
- const notificationTemplate = scheduledDeletionEmailTemplate(data.reason_code);
- const notificationAttempted = Boolean(data.notify_user && email);
const notificationSent =
- data.notify_user && email
- ? await trySendAdminNotification(
- () =>
- this.sendScheduledDeletionEmail(notificationTemplate, {
- email,
- username: user.username,
- reason: data.public_reason ?? null,
- deletionDate: pendingDeletionAt,
- locale: user.locale,
- }),
- {action: 'schedule_deletion', targetId: userId.toString()},
- )
- : false;
- await auditService.createAuditLog({
- adminUserId,
+ basis.type === 'enforcement' ? null : await this.sendScheduledEmail(user, basis.type, pendingDeletionAt);
+ await this.deps.auditService.createAuditLog({
+ adminUserId: actor.adminUserId,
targetType: 'user',
- targetId: data.user_id,
+ targetId: BigInt(userId),
action: 'schedule_deletion',
- auditLogReason,
+ auditLogReason: actor.internalNote,
metadata: new Map([
- ['days', daysUntilDeletion.toString()],
- ['reason_code', data.reason_code.toString()],
+ ['basis', basis.type],
+ ['days', days.toString()],
+ ['reason_code', closed.deletionReasonCode?.toString() ?? ''],
['pending_deletion_at', pendingDeletionAt.toISOString()],
...describePendingDeletion(user, 'replaced'),
- ['notify_user', data.notify_user ? 'true' : 'false'],
- ['notification_sent', notificationSent ? 'true' : 'false'],
- ...(notificationAttempted ? [['notification_template', notificationTemplate] as [string, string]] : []),
+ ...(recorded
+ ? [...decisionAuditMetadata(recorded.decision), ...networkBlockAuditMetadata(recorded)]
+ : ([['notification_sent', notificationSent ? 'true' : 'false']] as Array<[string, string]>)),
]),
});
- let knownIps: ReadonlySet<string> = new Set();
- if (data.reason_code !== DeletionReasons.USER_REQUESTED) {
- knownIps = await this.banIdentifiersForScheduledDeletion({user, adminUserId, auditLogReason});
- }
- if (reportResolvingDeletionReasons.has(data.reason_code)) {
- await this.resolvePendingReportsAgainstUser({user, adminUserId, reasonCode: data.reason_code});
- }
- await emitAdminAction(adminUserId, userId, 'schedule_deletion', {reasonCode: data.reason_code, ips: knownIps});
- await propagateUserUpdate(userUpdateDeps, user, updatedUser);
- return updatedUser;
- }
-
- private sendScheduledDeletionEmail(
- template: ScheduledDeletionEmailTemplate,
- params: {email: string; username: string; reason: string | null; deletionDate: Date; locale: string | null},
- ): Promise<boolean> {
- const {email: emailService} = this.deps.apiContext.services;
- const {email, username, reason, deletionDate, locale} = params;
- switch (template) {
- case 'account_deletion_scheduled_requested':
- return emailService.sendAccountDeletionRequestedEmail(email, username, reason, deletionDate, locale);
- case 'account_deletion_scheduled_inactivity':
- return emailService.sendAccountDeletionInactivityEmail(email, username, reason, deletionDate, locale);
- case 'scheduled_deletion_notification':
- return emailService.sendScheduledDeletionNotification(email, username, deletionDate, reason, locale);
- case 'account_scheduled_deletion':
- return emailService.sendAccountScheduledForDeletionEmail(email, username, reason, deletionDate, locale);
+ const decision = recorded?.decision ?? null;
+ const knownIps = decision ? await this.banIdentifiers(user, decision, actor) : new Set<string>();
+ if (decision && reportResolvingDeletionReasons.has(decision.reason_code)) {
+ await this.resolvePendingReportsAgainstUser({user, adminUserId: actor.adminUserId});
}
+ await emitAdminAction(actor.adminUserId, userId, 'schedule_deletion', {
+ reasonCode: closed.deletionReasonCode,
+ ips: knownIps,
+ });
+ await propagateUserUpdate(this.deps.userUpdateDeps, user, closed);
+ return {user: closed, skippedNetworks: recorded?.skippedNetworks ?? []};
}
- async cancelAccountDeletion(
- data: AdminUserDeletionCancelRequest & {user_id: bigint},
- adminUserId: UserID,
- auditLogReason: string | null,
- acls: ReadonlySet<string>,
- ) {
- const {users: userRepository, email: emailService, cache: cacheService} = this.deps.apiContext.services;
- const {auditService, userUpdateDeps} = this.deps;
- const userId = createUserID(data.user_id);
- const user = await userRepository.findUnique(userId);
- if (!user) {
- throw new UnknownUserError();
- }
+ async cancelAccountDeletion(userId: UserID, data: AdminUserDeletionCancelRequest, actor: EnforcementActor) {
+ const {cache} = this.deps.apiContext.services;
+ const user = await this.requireUser(userId);
if (!user.pendingDeletionAt) {
throw new NoPendingDeletionError();
}
+ if (user.enforcementDecisionId !== null) {
+ throw new EnforcementDecisionOwnsStateError(user.enforcementDecisionId);
+ }
if (!sameInstant(user.pendingDeletionAt, data.expected_pending_deletion_at)) {
throw new ConflictError({
code: APIErrorCodes.CONFLICT,
message: 'The pending deletion does not match expected_pending_deletion_at',
});
}
- const updatedUser = await userRepository.updateDeletionSchedule(user, {
- flags: user.flags & ~UserFlags.DELETED & ~UserFlags.SELF_DELETED,
- pending_deletion_at: null,
- deletion_reason_code: null,
- deletion_public_reason: null,
- deletion_audit_log_reason: null,
- });
- await clearPendingDeletion({userId, deletionQueue: this.deps.kvDeletionQueue});
- await propagateUserUpdate(userUpdateDeps, user, updatedUser);
- const email = user.email;
- const notificationSent =
- data.notify_user && email
- ? await trySendAdminNotification(
- () => emailService.sendAccountDeletionCancelledEmail(email, user.username, user.locale),
- {action: 'cancel_deletion', targetId: userId.toString()},
- )
- : false;
- await auditService.createAuditLog({
- adminUserId,
+ const cancelled = await cancelClosure(this.deps, user);
+ const enforcementClosure = isEnforcementDeletionReason(user.deletionReasonCode);
+ if (enforcementClosure) {
+ await this.deps.delivery.sendLegacyEnded(user);
+ } else {
+ await this.sendCancelledEmail(user);
+ }
+ await this.deps.auditService.createAuditLog({
+ adminUserId: actor.adminUserId,
targetType: 'user',
targetId: BigInt(userId),
action: 'cancel_deletion',
- auditLogReason,
+ auditLogReason: actor.internalNote,
metadata: new Map([
...describePendingDeletion(user, 'cancelled'),
- ['notify_user', data.notify_user ? 'true' : 'false'],
- ['notification_sent', notificationSent ? 'true' : 'false'],
+ ['notice', enforcementClosure ? 'enforcement_ended' : 'account_deletion_cancelled'],
]),
});
- await clearNewConversationLimit(userId, {cache: cacheService});
- await emitAdminAction(adminUserId, userId, 'cancel_deletion');
- return {
- user: await mapUserToAdminResponse(updatedUser, cacheService, acls),
- };
+ await emitAdminAction(actor.adminUserId, userId, 'cancel_deletion');
+ return {user: await mapUserToAdminResponse(cancelled, cache, actor.acls)};
}
- private async banIdentifiersForScheduledDeletion(params: {
- user: User;
- adminUserId: UserID;
- auditLogReason: string | null;
- }): Promise<ReadonlySet<string>> {
- const {user, adminUserId, auditLogReason} = params;
- const {users: userRepository} = this.deps.apiContext.services;
- const {banManagementService} = this.deps;
- const reason = auditLogReason ?? 'auto-enforcement on scheduled deletion';
+ private async requireUser(userId: UserID): Promise<User> {
+ const user = await this.deps.apiContext.services.users.findUnique(userId);
+ if (!user) {
+ throw new UnknownUserError();
+ }
+ return user;
+ }
+
+ private async writeClosure(
+ user: User,
+ params: {
+ reasonCode: number;
+ pendingDeletionAt: Date;
+ scheduledAt: Date;
+ actorId: UserID;
+ decisionId: bigint | null;
+ },
+ ): Promise<User> {
+ const {users} = this.deps.apiContext.services;
+ const {decisionId} = params;
+ const closed = await users.updateDeletionSchedule(user, {
+ flags: closedFlags(user, decisionId !== null),
+ pending_deletion_at: params.pendingDeletionAt,
+ deletion_reason_code: params.reasonCode,
+ deletion_scheduled_by: params.actorId,
+ deletion_scheduled_at: params.scheduledAt,
+ ...(decisionId !== null ? {enforcement_decision_id: decisionId, temp_banned_until: null} : {}),
+ });
+ await reschedulePendingDeletion({
+ userId: user.id,
+ currentPendingDeletionAt: user.pendingDeletionAt,
+ nextPendingDeletionAt: params.pendingDeletionAt,
+ deletionReasonCode: params.reasonCode,
+ deletionQueue: this.deps.kvDeletionQueue,
+ });
+ await revokeAllAuthSessions(this.deps.apiContext.services, user.id);
+ await this.deps.oauth2Tokens.deleteAllAccessTokensForUser(user.id);
+ await this.deps.oauth2Tokens.deleteAllRefreshTokensForUser(user.id);
+ return closed;
+ }
+
+ private async sendScheduledEmail(
+ user: User,
+ basis: keyof typeof BASIS_DELETION_REASONS,
+ deletionDate: Date,
+ ): Promise<boolean> {
+ const {email: emailService} = this.deps.apiContext.services;
+ const email = user.email;
+ if (!email) return false;
+ const date = formatNoticeDate(deletionDate, user.locale);
+ return trySendAdminNotification(
+ () =>
+ basis === 'holder_request'
+ ? emailService.sendAccountDeletionRequestedEmail(email, user.username, date, user.locale)
+ : emailService.sendAccountDeletionInactivityEmail(email, user.username, date, user.locale),
+ {action: 'schedule_deletion', targetId: user.id.toString()},
+ );
+ }
+
+ private async sendCancelledEmail(user: User): Promise<void> {
+ const {email: emailService} = this.deps.apiContext.services;
+ const email = user.email;
+ if (!email) return;
+ await trySendAdminNotification(
+ () => emailService.sendAccountDeletionCancelledEmail(email, user.username, user.locale),
+ {action: 'cancel_deletion', targetId: user.id.toString()},
+ );
+ }
+
+ private async banIdentifiers(
+ user: User,
+ decision: EnforcementDecisionRow,
+ actor: EnforcementActor,
+ ): Promise<ReadonlySet<string>> {
+ const {rule} = ENFORCEMENT_REASONS[decision.reason_code];
+ if (!ENFORCEMENT_RULES[rule].barsNewAccounts) {
+ return new Set();
+ }
if (user.email) {
try {
- await banManagementService.banEmail({email: user.email}, adminUserId, reason);
+ await this.deps.banManagementService.banEmail({email: user.email}, actor.adminUserId, actor.internalNote);
} catch (error) {
- Logger.warn({error, userId: user.id.toString()}, 'Failed to auto-ban email on scheduled deletion');
+ Logger.warn({error, userId: user.id.toString()}, 'Failed to ban the email of a closed account');
}
}
- const knownIps = new Set<string>();
- if (user.lastActiveIp) {
- knownIps.add(user.lastActiveIp);
- }
+ return collectKnownUserIps(this.deps.apiContext.services.users, user);
+ }
+
+ private async cancelSubscription(user: User, adminUserId: UserID): Promise<void> {
+ const {stripe, billingRepository} = this.deps;
+ const userId = user.id;
+ if (!user.stripeSubscriptionId || !stripe) return;
try {
- const authorizedIps = await userRepository.getAuthorizedIps(user.id);
- for (const {ip} of authorizedIps) {
- if (ip) knownIps.add(ip);
+ const sub = await billingRepository.subscriptions.findById(user.stripeSubscriptionId);
+ const latestInvoiceId = sub?.latest_invoice_id ?? null;
+ let chargeIdForRefund: string | null = null;
+ if (latestInvoiceId) {
+ const payment = await billingRepository.payments.findPrimaryForInvoice(latestInvoiceId);
+ chargeIdForRefund = payment?.charge_id ?? null;
}
- } catch (error) {
- Logger.warn({error, userId: user.id.toString()}, 'Failed to list authorized IPs for scheduled deletion');
- }
- try {
- const sessions = await userRepository.listAuthSessions(user.id);
- for (const session of sessions) {
- if (session.clientIp) knownIps.add(session.clientIp);
+ const canceled = await stripe.subscriptions.cancel(user.stripeSubscriptionId, {
+ invoice_now: false,
+ prorate: false,
+ });
+ try {
+ await billingRepository.subscriptions.upsertFromStripe(canceled, {
+ knownUserId: BigInt(userId),
+ snapshotCapturedAt: new Date(),
+ });
+ } catch (mirrorErr) {
+ Logger.error(
+ {mirrorErr, subId: canceled.id},
+ 'Mirror upsert failed after deletion-time subscription cancel; reconciler will heal',
+ );
}
- } catch (error) {
- Logger.warn({error, userId: user.id.toString()}, 'Failed to list auth sessions for scheduled deletion');
- }
- try {
- const tombstones = await userRepository.listAuthSessionTombstones(user.id);
- for (const tombstone of tombstones) {
- if (tombstone.clientIp) knownIps.add(tombstone.clientIp);
+ Logger.info(
+ {userId: userId.toString(), subscriptionId: user.stripeSubscriptionId},
+ 'Stripe subscription cancelled on ban',
+ );
+ if (chargeIdForRefund) {
+ const refund = await stripe.refunds.create({
+ charge: chargeIdForRefund,
+ reason: 'fraudulent',
+ metadata: {
+ admin_user_id: String(adminUserId),
+ target_user_id: String(userId),
+ reason: 'pending_deletion',
+ },
+ });
+ try {
+ await billingRepository.refunds.upsertFromStripe(refund, {
+ invoiceId: latestInvoiceId ?? undefined,
+ customerId: user.stripeCustomerId ?? undefined,
+ userId: BigInt(userId),
+ });
+ } catch (mirrorErr) {
+ Logger.error(
+ {mirrorErr, refundId: refund.id},
+ 'Mirror upsert failed after deletion-time refund; reconciler will heal',
+ );
+ }
+ Logger.info({userId: userId.toString(), chargeId: chargeIdForRefund}, 'Stripe refund issued on ban');
}
- } catch (error) {
- Logger.warn({error, userId: user.id.toString()}, 'Failed to list auth session tombstones for scheduled deletion');
+ } catch (err) {
+ Logger.error(
+ {err, userId: userId.toString(), subscriptionId: user.stripeSubscriptionId},
+ 'Failed to cancel/refund Stripe subscription on ban',
+ );
}
- return knownIps;
}
- private async resolvePendingReportsAgainstUser(params: {
- user: User;
- adminUserId: UserID;
- reasonCode: number;
- }): Promise<void> {
- const {user, adminUserId, reasonCode} = params;
- const outcome = isEnforcementDeletionReason(reasonCode) ? 'actioned' : 'auto_resolved';
+ private async resolvePendingReportsAgainstUser(params: {user: User; adminUserId: UserID}): Promise<void> {
+ const {user, adminUserId} = params;
const {reportService, reporterResolutionNotifier} = this.deps;
const auditLogReason = 'auto-resolved on scheduled deletion of reported user';
const summary: AutoResolveSummary = {
@@ -469,8 +493,9 @@ export class AdminUserDeletionService {
let resolvedReport: IARSubmission;
try {
resolvedReport = await reportService.resolveReport(reportId, adminUserId, null, auditLogReason, {
- outcome,
+ outcome: 'actioned',
resolvedBy: 'system',
+ reporterOutcome: 'restricted',
});
} catch (error) {
if (error instanceof ReportAlreadyResolvedError) continue;
@@ -482,7 +507,7 @@ export class AdminUserDeletionService {
continue;
}
summary.resolvedCount++;
- const notice = await reporterResolutionNotifier.notifyReporterOfResolution(resolvedReport, null);
+ const notice = await reporterResolutionNotifier.notifyReporterOfResolution(resolvedReport, null, 'restricted');
if (wasReporterNotified(notice)) {
summary.notifiedCount++;
}
diff --git a/fluxer_api/src/api/admin/services/AdminUserProfileService.ts b/fluxer_api/src/api/admin/services/AdminUserProfileService.ts
index 1c289b25d..150bd68fc 100644
--- a/fluxer_api/src/api/admin/services/AdminUserProfileService.ts
+++ b/fluxer_api/src/api/admin/services/AdminUserProfileService.ts
@@ -4,6 +4,9 @@ import type {ApiContext} from '@app/api/ApiContext';
import {mapUserToAdminResponse} from '@app/api/admin/models/UserTypes';
import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
import {createUserID, type UserID} from '@app/api/BrandedTypes';
+import type {EnforcementDecisionRow} from '@app/api/database/types/EnforcementTypes';
+import type {EnforcementActor} from '@app/api/enforcement/EnforcementActor';
+import {decisionAuditMetadata, type EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
import {GuildMemberSearchIndexService} from '@app/api/guild/services/member/GuildMemberSearchIndexService';
import type {DiscriminatorService} from '@app/api/infrastructure/DiscriminatorService';
@@ -24,12 +27,13 @@ import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidat
import {TagAlreadyTakenError} from '@fluxer/errors/src/domains/user/TagAlreadyTakenError';
import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
import type {
+ AdminUserClearFieldsRequest,
ChangeDobRequest,
ChangeEmailRequest,
ChangeUsernameRequest,
- ClearUserFieldsRequest,
SetUserBotStatusRequest,
SetUserSystemStatusRequest,
+ UserProfileField,
VerifyUserEmailRequest,
} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
import {types} from 'cassandra-driver';
@@ -41,6 +45,18 @@ interface AdminUserProfileServiceDeps {
auditService: AdminAuditService;
userUpdateDeps: PartialUserChangePropagationDeps;
guildRepository: GuildRepository;
+ enforcement: EnforcementDecisionService;
+}
+
+function profileValues(user: User, fields: ReadonlyArray<UserProfileField>): Map<UserProfileField, string> {
+ const current: Record<UserProfileField, string | null> = {
+ avatar: user.avatarHash,
+ banner: user.bannerHash,
+ bio: user.bio,
+ pronouns: user.pronouns,
+ global_name: user.globalName,
+ };
+ return new Map(fields.flatMap((field) => (current[field] ? [[field, current[field]] as const] : [])));
}
export class AdminUserProfileService {
@@ -50,66 +66,73 @@ export class AdminUserProfileService {
this.searchIndexService = new GuildMemberSearchIndexService();
}
- async clearUserFields(
- data: ClearUserFieldsRequest,
- adminUserId: UserID,
- auditLogReason: string | null,
- acls: ReadonlySet<string>,
- ) {
+ async clearUserFields(userId: UserID, {fields, basis}: AdminUserClearFieldsRequest, actor: EnforcementActor) {
const {users: userRepository, cache: cacheService} = this.deps.apiContext.services;
- const {entityAssetService, auditService, userUpdateDeps} = this.deps;
- const userId = createUserID(data.user_id);
const user = await userRepository.findUnique(userId);
if (!user) {
throw new UnknownUserError();
}
+ const resetFields = [...new Set(fields)];
+ let updatedUser = user;
+ const clear = async () => {
+ updatedUser = await this.clearFields(user, resetFields);
+ };
+ let decision: EnforcementDecisionRow | null = null;
+ if (basis.type === 'enforcement') {
+ ({decision} = await this.deps.enforcement.record(
+ {
+ subject: {type: 'user', user},
+ kind: 'profile_reset',
+ input: basis.decision,
+ profileReset: {fields: resetFields, values: profileValues(user, resetFields)},
+ actor,
+ },
+ clear,
+ ));
+ } else {
+ await clear();
+ }
+ await this.deps.auditService.createAuditLog({
+ adminUserId: actor.adminUserId,
+ targetType: 'user',
+ targetId: BigInt(userId),
+ action: 'clear_fields',
+ auditLogReason: actor.internalNote,
+ metadata: new Map([
+ ['fields', resetFields.join(',')],
+ ['basis', basis.type],
+ ...(decision ? decisionAuditMetadata(decision) : []),
+ ]),
+ });
+ return {
+ user: await mapUserToAdminResponse(updatedUser, cacheService, actor.acls),
+ };
+ }
+
+ private async clearFields(user: User, fields: ReadonlyArray<UserProfileField>): Promise<User> {
+ const {entityAssetService, userUpdateDeps} = this.deps;
const updates: Record<string, null | string> = {};
const preparedAssets: Array<PreparedAssetUpload> = [];
- for (const field of data.fields) {
- if (field === 'avatar') {
+ for (const field of fields) {
+ if (field === 'avatar' || field === 'banner') {
const prepared = await entityAssetService.prepareAssetUpload({
- assetType: 'avatar',
+ assetType: field,
entityType: 'user',
- entityId: userId,
- previousHash: user.avatarHash,
+ entityId: user.id,
+ previousHash: field === 'avatar' ? user.avatarHash : user.bannerHash,
base64Image: null,
- errorPath: 'avatar',
+ errorPath: field,
});
preparedAssets.push(prepared);
- updates['avatar_hash'] = prepared.newHash;
- } else if (field === 'banner') {
- const prepared = await entityAssetService.prepareAssetUpload({
- assetType: 'banner',
- entityType: 'user',
- entityId: userId,
- previousHash: user.bannerHash,
- base64Image: null,
- errorPath: 'banner',
- });
- preparedAssets.push(prepared);
- updates['banner_hash'] = prepared.newHash;
- } else if (field === 'bio') {
- updates['bio'] = null;
- } else if (field === 'pronouns') {
- updates['pronouns'] = null;
- } else if (field === 'global_name') {
- updates['global_name'] = null;
+ updates[`${field}_hash`] = prepared.newHash;
+ } else {
+ updates[field] = null;
}
}
- const updatedUser = await userRepository.patchUpsert(userId, updates, user.toRow());
+ const updatedUser = await this.deps.apiContext.services.users.patchUpsert(user.id, updates, user.toRow());
await entityAssetService.commitAssetChanges(preparedAssets);
await propagateUserUpdate(userUpdateDeps, user, updatedUser);
- await auditService.createAuditLog({
- adminUserId,
- targetType: 'user',
- targetId: BigInt(userId),
- action: 'clear_fields',
- auditLogReason,
- metadata: new Map([['fields', data.fields.join(',')]]),
- });
- return {
- user: await mapUserToAdminResponse(updatedUser, cacheService, acls),
- };
+ return updatedUser;
}
async setUserBotStatus(
diff --git a/fluxer_api/src/api/admin/services/AdminUserSecurityService.ts b/fluxer_api/src/api/admin/services/AdminUserSecurityService.ts
index 7e24184ca..f3708521d 100644
--- a/fluxer_api/src/api/admin/services/AdminUserSecurityService.ts
+++ b/fluxer_api/src/api/admin/services/AdminUserSecurityService.ts
@@ -11,10 +11,15 @@ import {visibleWebAuthnCredentials} from '@app/api/auth/services/PasskeyRelyingP
import {RecoveryKitRepository} from '@app/api/auth/services/RecoveryKitRepository';
import {createPasswordResetToken, createUserID, type UserID} from '@app/api/BrandedTypes';
import {Config} from '@app/api/Config';
+import {
+ FEATURE_LIMIT_PREMIUM_FLAGS,
+ FEATURE_LIMIT_USER_FLAGS,
+ findHoldingFeatureLimit,
+} from '@app/api/enforcement/FeatureLimitState';
import {emitAdminAction} from '@app/api/infrastructure/activity/AccountChangeEvents';
import {Logger} from '@app/api/Logger';
import {requireGrantedAdminACLs} from '@app/api/middleware/AdminMiddleware';
-import {getInstanceConfigRepository} from '@app/api/middleware/ServiceSingletons';
+import {getEnforcementDecisionRepository, getInstanceConfigRepository} from '@app/api/middleware/ServiceSingletons';
import {User} from '@app/api/models/User';
import {clearNewConversationLimit} from '@app/api/user/NewConversationLimit';
import {PASSWORD_RESET_TOKEN_TTL_SECONDS} from '@app/api/user/repositories/auth/TokenRepository';
@@ -29,11 +34,13 @@ import * as RandomUtils from '@app/api/utils/RandomUtils';
import {resolveSessionClientInfo} from '@app/api/utils/SessionClientIdentity';
import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
-import {UserFlags} from '@fluxer/constants/src/UserConstants';
+import type {EnforcementLimit} from '@fluxer/constants/src/EnforcementReasons';
+import {PremiumFlags, UserFlags} from '@fluxer/constants/src/UserConstants';
import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
import {AccessDeniedError} from '@fluxer/errors/src/domains/core/AccessDeniedError';
import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
import {ServiceUnavailableError} from '@fluxer/errors/src/domains/core/ServiceUnavailableError';
+import {EnforcementDecisionOwnsStateError} from '@fluxer/errors/src/domains/moderation/EnforcementDecisionOwnsStateError';
import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
import type {
AdminPasswordResetLinkResponse,
@@ -48,6 +55,70 @@ import type {
} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
import type {WebAuthnCredentialListResponse} from '@fluxer/schema/src/domains/auth/AuthSchemas';
+const RESTRICTION_USER_FLAGS = UserFlags.DISABLED | UserFlags.DELETED | UserFlags.SPAMMER | UserFlags.REPORT_BANNED;
+
+function combineUserFlags(flags: ReadonlyArray<bigint>): bigint {
+ return flags.reduce((combined, flag) => combined | flag, 0n);
+}
+
+function combinePremiumFlags(flags: ReadonlyArray<number>): number {
+ return flags.reduce((combined, flag) => combined | flag, 0);
+}
+
+function refuseFlag(field: 'add_flags' | 'remove_flags'): never {
+ throw InputValidationError.fromCode(field, ValidationErrorCodes.FLAG_REQUIRES_ENFORCEMENT_ROUTE);
+}
+
+export function assertNoRestrictionFlagsAdded(addFlags: ReadonlyArray<bigint>): void {
+ if ((combineUserFlags(addFlags) & RESTRICTION_USER_FLAGS) !== 0n) {
+ refuseFlag('add_flags');
+ }
+}
+
+async function assertNoFeatureLimitHeld(user: User, limits: ReadonlyArray<EnforcementLimit>): Promise<void> {
+ for (const limit of limits) {
+ const holding = await findHoldingFeatureLimit(getEnforcementDecisionRepository(), user.id, limit);
+ if (holding) {
+ throw new EnforcementDecisionOwnsStateError(holding.decision_id);
+ }
+ }
+}
+
+async function assertUserFlagUpdateAllowed(
+ user: User,
+ addFlags: ReadonlyArray<bigint>,
+ removeFlags: ReadonlyArray<bigint>,
+): Promise<void> {
+ assertNoRestrictionFlagsAdded(addFlags);
+ const removing = combineUserFlags(removeFlags) & user.flags;
+ if ((removing & UserFlags.DELETED) !== 0n || ((removing & UserFlags.DISABLED) !== 0n && user.tempBannedUntil)) {
+ refuseFlag('remove_flags');
+ }
+ await assertNoFeatureLimitHeld(
+ user,
+ (Object.keys(FEATURE_LIMIT_USER_FLAGS) as Array<EnforcementLimit>).filter(
+ (limit) => (removing & FEATURE_LIMIT_USER_FLAGS[limit]!) !== 0n,
+ ),
+ );
+}
+
+async function assertPremiumFlagUpdateAllowed(
+ user: User,
+ addFlags: ReadonlyArray<number>,
+ removeFlags: ReadonlyArray<number>,
+): Promise<void> {
+ if ((combinePremiumFlags(addFlags) & PremiumFlags.PURCHASE_DISABLED) !== 0) {
+ refuseFlag('add_flags');
+ }
+ const removing = combinePremiumFlags(removeFlags) & user.premiumFlags;
+ await assertNoFeatureLimitHeld(
+ user,
+ (Object.keys(FEATURE_LIMIT_PREMIUM_FLAGS) as Array<EnforcementLimit>).filter(
+ (limit) => (removing & FEATURE_LIMIT_PREMIUM_FLAGS[limit]!) !== 0,
+ ),
+ );
+}
+
interface AdminUserSecurityServiceDeps {
apiContext: ApiContext;
auditService: AdminAuditService;
@@ -130,6 +201,11 @@ export class AdminUserSecurityService {
}) {
const {users: userRepository, cache: cacheService} = this.deps.apiContext.services;
const {auditService, userUpdateDeps} = this.deps;
+ const user = await userRepository.findUnique(userId);
+ if (!user) {
+ throw new UnknownUserError();
+ }
+ await assertUserFlagUpdateAllowed(user, data.addFlags, data.removeFlags);
let previousFlags = 0n;
const updatedUser = await userRepository.updateFlags(userId, (flags) => {
previousFlags = flags;
@@ -185,6 +261,7 @@ export class AdminUserSecurityService {
if (!user) {
throw new UnknownUserError();
}
+ await assertPremiumFlagUpdateAllowed(user, data.addFlags, data.removeFlags);
const newPremiumFlags = applyNumberFlagUpdates(user.premiumFlags, data.addFlags, data.removeFlags);
const updatedUser = await userRepository.patchUpsert(
userId,
diff --git a/fluxer_api/src/api/admin/services/AdminUserService.ts b/fluxer_api/src/api/admin/services/AdminUserService.ts
index 5fa5cbfda..ab61c2067 100644
--- a/fluxer_api/src/api/admin/services/AdminUserService.ts
+++ b/fluxer_api/src/api/admin/services/AdminUserService.ts
@@ -4,14 +4,15 @@ import type {ApiContext} from '@app/api/ApiContext';
import {mapUserToAdminResponse, resolveAdminUsers} from '@app/api/admin/models/UserTypes';
import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
import type {AdminBanManagementService} from '@app/api/admin/services/AdminBanManagementService';
-import {AdminUserBanService} from '@app/api/admin/services/AdminUserBanService';
import {AdminUserDeletionService} from '@app/api/admin/services/AdminUserDeletionService';
import {AdminUserLookupService} from '@app/api/admin/services/AdminUserLookupService';
import {AdminUserProfileService} from '@app/api/admin/services/AdminUserProfileService';
import {AdminUserSecurityService} from '@app/api/admin/services/AdminUserSecurityService';
-import {ReporterResolutionNotifier} from '@app/api/admin/services/ReporterResolutionNotifier';
+import type {ReporterResolutionNotifier} from '@app/api/admin/services/ReporterResolutionNotifier';
import {createChannelID, createUserID, type UserID} from '@app/api/BrandedTypes';
import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
+import type {EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
+import type {EnforcementNoticeDelivery} from '@app/api/enforcement/EnforcementNoticeDelivery';
import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
import type {DiscriminatorService} from '@app/api/infrastructure/DiscriminatorService';
import type {EntityAssetService} from '@app/api/infrastructure/EntityAssetService';
@@ -50,14 +51,15 @@ interface AdminUserServiceDeps {
stripe: Stripe | null;
reportService: ReportService;
storeEntitlementService: StoreEntitlementService;
- reporterResolutionNotifier?: ReporterResolutionNotifier;
+ reporterResolutionNotifier: ReporterResolutionNotifier;
+ enforcement: EnforcementDecisionService;
+ delivery: EnforcementNoticeDelivery;
}
export class AdminUserService {
readonly lookupService: AdminUserLookupService;
readonly profileService: AdminUserProfileService;
readonly securityService: AdminUserSecurityService;
- readonly banService: AdminUserBanService;
readonly deletionService: AdminUserDeletionService;
private readonly userUpdateDeps: PartialUserChangePropagationDeps;
private readonly contactChangeLogService: UserContactChangeLogService;
@@ -92,17 +94,13 @@ export class AdminUserService {
auditService: deps.auditService,
userUpdateDeps: this.userUpdateDeps,
guildRepository: deps.guildRepository,
+ enforcement: deps.enforcement,
});
this.securityService = new AdminUserSecurityService({
apiContext: deps.apiContext,
auditService: deps.auditService,
userUpdateDeps: this.userUpdateDeps,
});
- this.banService = new AdminUserBanService({
- apiContext: deps.apiContext,
- auditService: deps.auditService,
- userUpdateDeps: this.userUpdateDeps,
- });
this.deletionService = new AdminUserDeletionService({
apiContext: deps.apiContext,
auditService: deps.auditService,
@@ -114,9 +112,9 @@ export class AdminUserService {
billingRepository: getBillingRepository(),
oauth2Tokens: new OAuth2TokenRepository(),
storeEntitlementService: deps.storeEntitlementService,
- reporterResolutionNotifier:
- deps.reporterResolutionNotifier ??
- new ReporterResolutionNotifier({apiContext: deps.apiContext, systemDm: null}),
+ reporterResolutionNotifier: deps.reporterResolutionNotifier,
+ enforcement: deps.enforcement,
+ delivery: deps.delivery,
});
this.contactChangeLogService = contactChangeLog;
}
diff --git a/fluxer_api/src/api/admin/services/KnownUserIps.ts b/fluxer_api/src/api/admin/services/KnownUserIps.ts
new file mode 100644
index 000000000..667e53bd8
--- /dev/null
+++ b/fluxer_api/src/api/admin/services/KnownUserIps.ts
@@ -0,0 +1,68 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {Logger} from '@app/api/Logger';
+import type {User} from '@app/api/models/User';
+import type {UserRepository} from '@app/api/user/repositories/UserRepository';
+import {canonicalizeIpAddress} from '@fluxer/ip_utils/src/IpAddress';
+
+interface IpSighting {
+ ip: string;
+ seenAt: Date | null;
+}
+
+interface RecentUserIp {
+ ip: string;
+ lastSeenAt: Date;
+}
+
+async function collectSightings(userRepository: UserRepository, user: User): Promise<Array<IpSighting>> {
+ const sightings: Array<IpSighting> = [];
+ if (user.lastActiveIp) {
+ sightings.push({ip: user.lastActiveIp, seenAt: user.lastActiveAt});
+ }
+ try {
+ for (const {ip} of await userRepository.getAuthorizedIps(user.id)) {
+ if (ip) sightings.push({ip, seenAt: null});
+ }
+ } catch (error) {
+ Logger.warn({error, userId: user.id.toString()}, 'Failed to list the authorized IPs of a user');
+ }
+ try {
+ for (const session of await userRepository.listAuthSessions(user.id)) {
+ if (session.clientIp) sightings.push({ip: session.clientIp, seenAt: session.approximateLastUsedAt});
+ }
+ } catch (error) {
+ Logger.warn({error, userId: user.id.toString()}, 'Failed to list the auth sessions of a user');
+ }
+ try {
+ for (const tombstone of await userRepository.listAuthSessionTombstones(user.id)) {
+ if (tombstone.clientIp) sightings.push({ip: tombstone.clientIp, seenAt: tombstone.approximateLastUsedAt});
+ }
+ } catch (error) {
+ Logger.warn({error, userId: user.id.toString()}, 'Failed to list the auth session tombstones of a user');
+ }
+ return sightings;
+}
+
+export async function collectKnownUserIps(userRepository: UserRepository, user: User): Promise<ReadonlySet<string>> {
+ return new Set((await collectSightings(userRepository, user)).map((sighting) => sighting.ip));
+}
+
+export async function listRecentUserIps(
+ userRepository: UserRepository,
+ user: User,
+ since: Date,
+): Promise<Array<RecentUserIp>> {
+ const latest = new Map<string, Date>();
+ for (const {ip, seenAt} of await collectSightings(userRepository, user)) {
+ const canonical = canonicalizeIpAddress(ip);
+ if (!canonical || !seenAt || seenAt.getTime() < since.getTime()) continue;
+ const previous = latest.get(canonical);
+ if (!previous || previous.getTime() < seenAt.getTime()) {
+ latest.set(canonical, seenAt);
+ }
+ }
+ return [...latest]
+ .map(([ip, lastSeenAt]) => ({ip, lastSeenAt}))
+ .sort((left, right) => right.lastSeenAt.getTime() - left.lastSeenAt.getTime());
+}
diff --git a/fluxer_api/src/api/admin/services/ReporterResolutionNotifier.ts b/fluxer_api/src/api/admin/services/ReporterResolutionNotifier.ts
index 7458b0860..adb2b7cba 100644
--- a/fluxer_api/src/api/admin/services/ReporterResolutionNotifier.ts
+++ b/fluxer_api/src/api/admin/services/ReporterResolutionNotifier.ts
@@ -3,29 +3,21 @@
import type {ApiContext} from '@app/api/ApiContext';
import {trySendAdminNotification} from '@app/api/admin/services/AdminNotification';
import type {UserID} from '@app/api/BrandedTypes';
-import type {ChannelService} from '@app/api/channel/services/ChannelService';
-import {SYSTEM_USER_ID} from '@app/api/constants/Core';
-import type {UserCacheService} from '@app/api/infrastructure/UserCacheService';
+import {listActiveFeatureLimits} from '@app/api/enforcement/FeatureLimitState';
import {resolveContactEmails} from '@app/api/instance/ContactEmails';
import {getInstanceProductName} from '@app/api/instance/ProductName';
import {Logger} from '@app/api/Logger';
-import {createRequestCache} from '@app/api/middleware/RequestCacheMiddleware';
+import {getEnforcementDecisionRepository} from '@app/api/middleware/ServiceSingletons';
import type {User} from '@app/api/models/User';
import type {IARSubmission} from '@app/api/report/ReportModels';
-import {sendSystemDmMessage} from '@app/api/user/services/SystemDmMessage';
-import type {UserChannelService} from '@app/api/user/services/UserChannelService';
+import {type SystemDmDeps, systemDmBody, trySendSystemDm} from '@app/api/user/services/SystemDmMessage';
import {UserFlags} from '@fluxer/constants/src/UserConstants';
+import type {ReportItemOutcome} from '@fluxer/schema/src/domains/admin/AdminSchemas';
import {getEmailTemplate} from '@pkgs/email/src/email_i18n/EmailI18n';
-interface ReporterSystemDmDeps {
- channelService: ChannelService;
- userChannelService: UserChannelService;
- userCacheService: UserCacheService;
-}
-
interface ReporterResolutionNotifierDeps {
apiContext: ApiContext;
- systemDm: ReporterSystemDmDeps | null;
+ systemDm: SystemDmDeps | null;
}
type ReporterNoticeSkipReason =
@@ -61,18 +53,23 @@ export function describeReporterNotice(result: ReporterNoticeResult): Array<[str
export class ReporterResolutionNotifier {
constructor(private readonly deps: ReporterResolutionNotifierDeps) {}
- async notifyReporterOfResolution(report: IARSubmission, publicComment: string | null): Promise<ReporterNoticeResult> {
+ async notifyReporterOfResolution(
+ report: IARSubmission,
+ publicComment: string | null,
+ outcome: ReportItemOutcome,
+ ): Promise<ReporterNoticeResult> {
const comment = publicComment ?? '';
if (report.reporterId) {
- return this.notifyAccountReporter(report, report.reporterId, comment);
+ return this.notifyAccountReporter(report, report.reporterId, comment, outcome);
}
- return this.notifyDsaReporter(report, comment);
+ return this.notifyDsaReporter(report, comment, outcome);
}
private async notifyAccountReporter(
report: IARSubmission,
reporterId: UserID,
comment: string,
+ outcome: ReportItemOutcome,
): Promise<ReporterNoticeResult> {
const {users: userRepository, email: emailService} = this.deps.apiContext.services;
const reportId = report.reportId.toString();
@@ -89,21 +86,37 @@ export class ReporterResolutionNotifier {
if (!reporter || (reporter.flags & UserFlags.DELETED) !== 0n) {
return skippedNotice('reporter_account_deleted');
}
- if ((reporter.flags & UserFlags.REPORT_BANNED) !== 0n) {
+ if (await this.isReportBannedWhenFiled(reporter, report)) {
return skippedNotice('reporter_report_banned');
}
- const dmSent = await this.sendSystemDm(reporter, reportId, comment);
+ const dmSent = await this.sendSystemDm(reporter, reportId, comment, outcome);
const email = reporter.email;
const emailSent = email
? await trySendAdminNotification(
- () => emailService.sendReportResolvedEmail(email, reporter.username, reportId, comment, reporter.locale),
+ () =>
+ emailService.sendReportResolvedEmail(email, reporter.username, reportId, comment, outcome, reporter.locale),
{action: 'resolve_report', targetId: reportId},
)
: false;
return {dmSent, emailSent, dsaEmailSent: false, skipped: null};
}
- private async notifyDsaReporter(report: IARSubmission, comment: string): Promise<ReporterNoticeResult> {
+ private async isReportBannedWhenFiled(reporter: User, report: IARSubmission): Promise<boolean> {
+ if ((reporter.flags & UserFlags.REPORT_BANNED) === 0n) {
+ return false;
+ }
+ const limits = await listActiveFeatureLimits(getEnforcementDecisionRepository(), reporter.id, 'reports');
+ if (limits.length === 0) {
+ return true;
+ }
+ return limits.some((decision) => decision.created_at.getTime() < report.reportedAt.getTime());
+ }
+
+ private async notifyDsaReporter(
+ report: IARSubmission,
+ comment: string,
+ outcome: ReportItemOutcome,
+ ): Promise<ReporterNoticeResult> {
const email = report.reporterEmail;
if (!email) {
return skippedNotice('no_reporter_email');
@@ -111,13 +124,18 @@ export class ReporterResolutionNotifier {
const {email: emailService} = this.deps.apiContext.services;
const reportId = report.reportId.toString();
const dsaEmailSent = await trySendAdminNotification(
- () => emailService.sendDsaReportResolvedEmail(email, reportId, comment, report.flowLocale),
+ () => emailService.sendDsaReportResolvedEmail(email, reportId, comment, outcome, report.flowLocale),
{action: 'resolve_report', targetId: reportId},
);
return {dmSent: false, emailSent: false, dsaEmailSent, skipped: null};
}
- private async sendSystemDm(reporter: User, reportId: string, comment: string): Promise<boolean> {
+ private async sendSystemDm(
+ reporter: User,
+ reportId: string,
+ comment: string,
+ outcome: ReportItemOutcome,
+ ): Promise<boolean> {
const systemDm = this.deps.systemDm;
if (!systemDm) {
return false;
@@ -130,7 +148,8 @@ export class ReporterResolutionNotifier {
reportId,
publicComment: comment,
hasComment: comment ? 'yes' : 'no',
- safety_email: resolveContactEmails().safetyEmail,
+ outcome,
+ appeals_email: resolveContactEmails().appealsEmail,
},
getInstanceProductName(),
);
@@ -141,25 +160,11 @@ export class ReporterResolutionNotifier {
);
return false;
}
- const {users: userRepository} = this.deps.apiContext.services;
- const requestCache = createRequestCache();
- try {
- const systemUser = await userRepository.findUniqueAssert(SYSTEM_USER_ID);
- await sendSystemDmMessage({
- systemUser,
- recipientId: reporter.id,
- content: template.value.body,
- userChannelService: systemDm.userChannelService,
- channelService: systemDm.channelService,
- userCacheService: systemDm.userCacheService,
- requestCache,
- });
- return true;
- } catch (error) {
- Logger.warn({reportId, reporterId: reporter.id.toString(), error}, 'Failed to send report review system DM');
- return false;
- } finally {
- requestCache.clear();
- }
+ return trySendSystemDm(
+ systemDm,
+ this.deps.apiContext.services.users,
+ reporter.id,
+ systemDmBody(template.value.body),
+ );
}
}
diff --git a/fluxer_api/src/api/admin/services/guild/AdminGuildManagementService.ts b/fluxer_api/src/api/admin/services/guild/AdminGuildManagementService.ts
index 256559678..9aa373340 100644
--- a/fluxer_api/src/api/admin/services/guild/AdminGuildManagementService.ts
+++ b/fluxer_api/src/api/admin/services/guild/AdminGuildManagementService.ts
@@ -2,10 +2,13 @@
import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
import {createGuildID, type GuildID, type UserID} from '@app/api/BrandedTypes';
+import type {EnforcementActor} from '@app/api/enforcement/EnforcementActor';
+import {decisionAuditMetadata, type EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
import type {GuildService} from '@app/api/guild/services/GuildService';
import type {IGatewayService} from '@app/api/infrastructure/IGatewayService';
import {UnknownGuildError} from '@fluxer/errors/src/domains/guild/UnknownGuildError';
+import type {AdminGuildDeleteRequest} from '@fluxer/schema/src/domains/admin/AdminGuildSchemas';
import type {SuccessResponse} from '@fluxer/schema/src/domains/common/CommonParamSchemas';
interface AdminGuildManagementServiceDeps {
@@ -13,6 +16,7 @@ interface AdminGuildManagementServiceDeps {
gatewayService: IGatewayService;
guildService: GuildService;
auditService: AdminAuditService;
+ enforcement: EnforcementDecisionService;
}
export class AdminGuildManagementService {
@@ -60,17 +64,37 @@ export class AdminGuildManagementService {
return {success: true};
}
- async deleteGuild(guildIdRaw: bigint, adminUserId: UserID, auditLogReason: string | null): Promise<SuccessResponse> {
- const {guildService, auditService} = this.deps;
- const guildId = createGuildID(guildIdRaw);
- await guildService.data.operations.deleteGuildById(guildId);
+ async deleteGuild(
+ guildId: GuildID,
+ {basis}: AdminGuildDeleteRequest,
+ actor: EnforcementActor,
+ ): Promise<SuccessResponse> {
+ const {guildRepository, guildService, auditService, enforcement} = this.deps;
+ const guild = await guildRepository.findUnique(guildId);
+ if (!guild) {
+ throw new UnknownGuildError();
+ }
+ const remove = () => guildService.data.operations.deleteGuildById(guildId);
+ const decision =
+ basis.type === 'enforcement'
+ ? (
+ await enforcement.record(
+ {subject: {type: 'guild', guild}, kind: 'community_removal', input: basis.decision, actor},
+ remove,
+ )
+ ).decision
+ : await remove().then(() => null);
await auditService.createAuditLog({
- adminUserId,
+ adminUserId: actor.adminUserId,
targetType: 'guild',
- targetId: guildIdRaw,
+ targetId: guildId,
action: 'delete_guild',
- auditLogReason,
- metadata: new Map([['guild_id', guildIdRaw.toString()]]),
+ auditLogReason: actor.internalNote,
+ metadata: new Map([
+ ['guild_id', guildId.toString()],
+ ['basis', basis.type],
+ ...(decision ? decisionAuditMetadata(decision) : []),
+ ]),
});
return {success: true};
}
diff --git a/fluxer_api/src/api/admin/tests/AdminBanNotes.test.ts b/fluxer_api/src/api/admin/tests/AdminBanNotes.test.ts
deleted file mode 100644
index fda5a80d9..000000000
--- a/fluxer_api/src/api/admin/tests/AdminBanNotes.test.ts
+++ /dev/null
@@ -1,102 +0,0 @@
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-import type {AdminAuditLog} from '@app/api/admin/AdminRepository';
-import {createTestAccount, setUserACLs, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
-import {decodeHeaderUtf8} from '@app/api/middleware/AuditLogMiddleware';
-import {getAdminRepository} from '@app/api/middleware/ServiceSingletons';
-import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
-import {HTTP_STATUS} from '@app/api/test/TestConstants';
-import {createBuilder} from '@app/api/test/TestRequestBuilder';
-import {afterEach, beforeEach, describe, expect, test} from 'vitest';
-
-function asReceivedHeader(value: string): string {
- return Buffer.from(value, 'utf8').toString('latin1');
-}
-
-async function auditLogsFor(targetUserId: string, action: string): Promise<Array<AdminAuditLog>> {
- const logs = await getAdminRepository().listAllAuditLogsPaginated(1000);
- return logs.filter((log) => log.action === action && log.targetId.toString() === targetUserId);
-}
-
-describe('decodeHeaderUtf8', () => {
- test('reads UTF-8 bytes that arrived as a latin1 string', () => {
- expect(decodeHeaderUtf8(asReceivedHeader('§ 4.2 räksmörgås 日本'))).toBe('§ 4.2 räksmörgås 日本');
- });
-
- test('keeps ASCII and latin1 text that is not UTF-8', () => {
- expect(decodeHeaderUtf8('Batch 12')).toBe('Batch 12');
- expect(decodeHeaderUtf8('café')).toBe('café');
- });
-});
-
-describe('Admin ban reasons and notes', () => {
- let harness: ApiTestHarness;
- let admin: TestAccount;
- beforeEach(async () => {
- harness = await createApiTestHarness();
- admin = await setUserACLs(harness, await createTestAccount(harness), ['admin:authenticate', 'user:temp_ban']);
- });
- afterEach(async () => {
- await harness?.shutdown();
- });
-
- async function ban(target: TestAccount, reason: string): Promise<AdminAuditLog> {
- await createBuilder(harness, admin.token)
- .put(`/admin/users/${target.userId}/ban`)
- .header('X-Audit-Log-Reason', asReceivedHeader(reason))
- .body({duration_hours: 24})
- .expect(HTTP_STATUS.OK)
- .execute();
- const [log] = await auditLogsFor(target.userId, 'temp_ban');
- return log!;
- }
-
- test('stores a UTF-8 ban reason as sent', async () => {
- const target = await createTestAccount(harness);
- const log = await ban(target, '§ 3 Regel – wiederholt');
- expect(log.auditLogReason).toBe('§ 3 Regel – wiederholt');
- });
-
- test('appends a note to the current ban without changing the ban entry', async () => {
- const target = await createTestAccount(harness);
- const banLog = await ban(target, 'Original reason');
- await createBuilder(harness, admin.token)
- .post(`/admin/users/${target.userId}/ban/notes`)
- .body({ban_audit_log_id: banLog.logId.toString(), note: 'Also sent § 4 links'})
- .expect(HTTP_STATUS.NO_CONTENT)
- .execute();
- const [note] = await auditLogsFor(target.userId, 'annotate_ban');
- expect(note?.auditLogReason).toBe('Also sent § 4 links');
- expect(note?.adminUserId.toString()).toBe(admin.userId);
- expect(Object.fromEntries(note!.metadata)).toEqual({ban_audit_log_id: banLog.logId.toString()});
- const [unchanged] = await auditLogsFor(target.userId, 'temp_ban');
- expect(unchanged?.auditLogReason).toBe('Original reason');
- });
-
- test('refuses a note that names another user ban', async () => {
- const target = await createTestAccount(harness);
- const other = await createTestAccount(harness);
- await ban(target, 'Target ban');
- const otherBan = await ban(other, 'Other ban');
- await createBuilder(harness, admin.token)
- .post(`/admin/users/${target.userId}/ban/notes`)
- .body({ban_audit_log_id: otherBan.logId.toString(), note: 'Wrong ban'})
- .expect(HTTP_STATUS.BAD_REQUEST)
- .execute();
- expect(await auditLogsFor(target.userId, 'annotate_ban')).toHaveLength(0);
- });
-
- test('refuses a note once the ban has been lifted', async () => {
- const target = await createTestAccount(harness);
- const banLog = await ban(target, 'Lifted ban');
- await createBuilder(harness, admin.token)
- .delete(`/admin/users/${target.userId}/ban`)
- .expect(HTTP_STATUS.OK)
- .execute();
- await createBuilder(harness, admin.token)
- .post(`/admin/users/${target.userId}/ban/notes`)
- .body({ban_audit_log_id: banLog.logId.toString(), note: 'Too late'})
- .expect(HTTP_STATUS.CONFLICT)
- .execute();
- });
-});
diff --git a/fluxer_api/src/api/admin/tests/AdminDeletionQueue.test.ts b/fluxer_api/src/api/admin/tests/AdminDeletionQueue.test.ts
index d07a3713a..e380e2218 100644
--- a/fluxer_api/src/api/admin/tests/AdminDeletionQueue.test.ts
+++ b/fluxer_api/src/api/admin/tests/AdminDeletionQueue.test.ts
@@ -43,7 +43,7 @@ describe('Admin Deletion Queue', () => {
}>(harness, `${admin.token}`)
.put(`/admin/users/${targetUser.userId}/deletion`)
.header('x-forwarded-for', adminIp)
- .body({reason_code: 2, days_until_deletion: 60})
+ .body({days_until_deletion: 60, basis: {type: 'holder_request'}})
.execute();
expect(await harness.kvProvider.zcard('deletion_queue')).toBe(1);
await createBuilder<{
@@ -54,8 +54,8 @@ describe('Admin Deletion Queue', () => {
.put(`/admin/users/${targetUser.userId}/deletion`)
.header('x-forwarded-for', adminIp)
.body({
- reason_code: 2,
days_until_deletion: 62,
+ basis: {type: 'holder_request'},
replace_pending_deletion_at: firstSchedule.user.pending_deletion_at,
})
.execute();
@@ -75,7 +75,7 @@ describe('Admin Deletion Queue', () => {
}>(harness, `${admin.token}`)
.put(`/admin/users/${targetUser.userId}/deletion`)
.header('x-forwarded-for', adminIp)
- .body({reason_code: 1, days_until_deletion: 60})
+ .body({days_until_deletion: 60, basis: {type: 'holder_request'}})
.execute();
expect(await harness.kvProvider.zcard('deletion_queue')).toBe(1);
await createBuilder<{
@@ -89,47 +89,7 @@ describe('Admin Deletion Queue', () => {
.execute();
expect(await harness.kvProvider.zcard('deletion_queue')).toBe(0);
});
- test('user-requested scheduled deletion does not ban user identifiers', async () => {
- const adminIp = createUniqueTestIp();
- const targetIp = createUniqueTestIp();
- const admin = await createTestAccount(harness, {ipAddress: adminIp});
- const targetUser = await createTestAccount(harness, {ipAddress: targetIp});
- await setUserACLs(harness, admin, ['admin:authenticate', 'user:delete', 'ban:ip:check', 'ban:email:check']);
- await createBuilder(harness, `${admin.token}`)
- .put(`/admin/users/${targetUser.userId}/deletion`)
- .header('x-forwarded-for', adminIp)
- .body({reason_code: DeletionReasons.USER_REQUESTED, days_until_deletion: 14})
- .execute();
- const ipBan = await createBuilder<{banned: boolean}>(harness, `${admin.token}`)
- .get(`/admin/blocklists/ip/entries/${encodeURIComponent(targetIp)}`)
- .execute();
- const emailBan = await createBuilder<{banned: boolean}>(harness, `${admin.token}`)
- .get(`/admin/blocklists/email/entries/${encodeURIComponent(targetUser.email)}`)
- .execute();
- expect(ipBan.banned).toBe(false);
- expect(emailBan.banned).toBe(false);
- });
- test('moderation scheduled deletion bans email without banning the IP', async () => {
- const adminIp = createUniqueTestIp();
- const targetIp = createUniqueTestIp();
- const admin = await createTestAccount(harness, {ipAddress: adminIp});
- const targetUser = await createTestAccount(harness, {ipAddress: targetIp});
- await setUserACLs(harness, admin, ['admin:authenticate', 'user:delete', 'ban:ip:check', 'ban:email:check']);
- await createBuilder(harness, `${admin.token}`)
- .put(`/admin/users/${targetUser.userId}/deletion`)
- .header('x-forwarded-for', adminIp)
- .body({reason_code: DeletionReasons.SPAM, days_until_deletion: 60})
- .execute();
- const ipBan = await createBuilder<{banned: boolean}>(harness, `${admin.token}`)
- .get(`/admin/blocklists/ip/entries/${encodeURIComponent(targetIp)}`)
- .execute();
- const emailBan = await createBuilder<{banned: boolean}>(harness, `${admin.token}`)
- .get(`/admin/blocklists/email/entries/${encodeURIComponent(targetUser.email)}`)
- .execute();
- expect(ipBan.banned).toBe(false);
- expect(emailBan.banned).toBe(true);
- });
- test('rejects a scheduled deletion reason code outside the registry', async () => {
+ test('rejects a closure without a basis', async () => {
const admin = await createTestAccount(harness);
const targetUser = await createTestAccount(harness);
await setUserACLs(harness, admin, ['admin:authenticate', 'user:delete']);
@@ -141,24 +101,13 @@ describe('Admin Deletion Queue', () => {
}>;
}>(harness, `${admin.token}`)
.put(`/admin/users/${targetUser.userId}/deletion`)
- .body({reason_code: 999, days_until_deletion: 60})
+ .body({reason_code: DeletionReasons.SPAM, days_until_deletion: 60})
.expect(HTTP_STATUS.BAD_REQUEST, 'INVALID_FORM_BODY')
.executeWithResponse();
- expect(json.errors.some((entry) => entry.path === 'reason_code')).toBe(true);
+ expect(json.errors.some((entry) => entry.path === 'basis')).toBe(true);
expect(await harness.kvProvider.zcard('deletion_queue')).toBe(0);
});
- test('accepts the highest scheduled deletion reason code of the registry', async () => {
- const admin = await createTestAccount(harness);
- const targetUser = await createTestAccount(harness);
- await setUserACLs(harness, admin, ['admin:authenticate', 'user:delete']);
- await createBuilder(harness, `${admin.token}`)
- .put(`/admin/users/${targetUser.userId}/deletion`)
- .body({reason_code: DeletionReasons.IMPERSONATION_OR_FAKE_IDENTITY, days_until_deletion: 60})
- .expect(HTTP_STATUS.OK)
- .execute();
- expect(await harness.kvProvider.zcard('deletion_queue')).toBe(1);
- });
- test('rejects a bulk schedule_user_deletion job with a reason code outside the registry', async () => {
+ test('rejects a bulk schedule_user_deletion job in the old shape', async () => {
const admin = await createTestAccount(harness);
const targetUser = await createTestAccount(harness);
await setUserACLs(harness, admin, ['admin:authenticate', 'bulk:delete:users']);
@@ -170,10 +119,15 @@ describe('Admin Deletion Queue', () => {
}>;
}>(harness, `${admin.token}`)
.post('/admin/bulk-jobs')
- .body({task: 'schedule_user_deletion', user_ids: [targetUser.userId], reason_code: 0})
+ .body({
+ task: 'schedule_user_deletion',
+ user_ids: [targetUser.userId],
+ reason_code: DeletionReasons.SPAM,
+ days_until_deletion: 60,
+ })
.expect(HTTP_STATUS.BAD_REQUEST, 'INVALID_FORM_BODY')
.executeWithResponse();
- expect(json.errors.some((entry) => entry.path === 'reason_code')).toBe(true);
+ expect(json.errors.some((entry) => entry.path === 'basis')).toBe(true);
});
describe('naming the deletion', () => {
@@ -186,11 +140,11 @@ describe('Admin Deletion Queue', () => {
};
}
- async function scheduleAs(admin: TestAccount, target: TestAccount, reasonCode: number, reason: string) {
+ async function scheduleAs(admin: TestAccount, target: TestAccount, reason: string) {
return createBuilder<ScheduledUser>(harness, admin.token)
.put(`/admin/users/${target.userId}/deletion`)
.header('X-Audit-Log-Reason', reason)
- .body({reason_code: reasonCode, days_until_deletion: 60})
+ .body({days_until_deletion: 60, basis: {type: 'holder_request'}})
.expect(HTTP_STATUS.OK)
.execute();
}
@@ -199,13 +153,13 @@ describe('Admin Deletion Queue', () => {
return setUserACLs(harness, await createTestAccount(harness), ['admin:authenticate', 'user:delete', ...acls]);
}
- test('records who scheduled the deletion and shows the private reason to audit log viewers', async () => {
+ test('records who scheduled the deletion and no longer stores the internal note on the account', async () => {
const admin = await createAdmin(['audit_log:view']);
const target = await createTestAccount(harness);
- const scheduled = await scheduleAs(admin, target, DeletionReasons.SPAM, 'Batch review');
+ const scheduled = await scheduleAs(admin, target, 'Batch review');
expect(scheduled.user.deletion_scheduled_by).toBe(admin.userId);
expect(scheduled.user.deletion_scheduled_at).not.toBeNull();
- expect(scheduled.user.deletion_audit_log_reason).toBe('Batch review');
+ expect(scheduled.user.deletion_audit_log_reason).toBeNull();
const other = await createAdmin(['user:lookup']);
const viewed = await createBuilder<{users: Array<ScheduledUser['user']>}>(harness, other.token)
.get(`/admin/users/${target.userId}`)
@@ -219,15 +173,15 @@ describe('Admin Deletion Queue', () => {
const first = await createAdmin();
const second = await createAdmin();
const target = await createTestAccount(harness);
- const scheduled = await scheduleAs(first, target, DeletionReasons.SPAM, 'First review');
+ const scheduled = await scheduleAs(first, target, 'First review');
await createBuilder(harness, second.token)
.put(`/admin/users/${target.userId}/deletion`)
- .body({reason_code: DeletionReasons.SPAM, days_until_deletion: 60})
+ .body({days_until_deletion: 60, basis: {type: 'holder_request'}})
.expect(HTTP_STATUS.CONFLICT)
.execute();
await createBuilder(harness, first.token)
.put(`/admin/users/${target.userId}/deletion`)
- .body({reason_code: DeletionReasons.OTHER, days_until_deletion: 60})
+ .body({days_until_deletion: 60, basis: {type: 'housekeeping'}})
.expect(HTTP_STATUS.CONFLICT)
.execute();
const user = await new UserRepository().findUnique(createUserID(BigInt(target.userId)));
@@ -239,12 +193,12 @@ describe('Admin Deletion Queue', () => {
const first = await createAdmin();
const second = await createAdmin();
const target = await createTestAccount(harness);
- const scheduled = await scheduleAs(first, target, DeletionReasons.SPAM, 'First review');
+ const scheduled = await scheduleAs(first, target, 'First review');
const replaced = await createBuilder<ScheduledUser>(harness, second.token)
.put(`/admin/users/${target.userId}/deletion`)
.body({
- reason_code: DeletionReasons.OTHER,
days_until_deletion: 90,
+ basis: {type: 'housekeeping'},
replace_pending_deletion_at: scheduled.user.pending_deletion_at,
})
.expect(HTTP_STATUS.OK)
@@ -259,14 +213,15 @@ describe('Admin Deletion Queue', () => {
);
expect(log?.metadata.get('replaced_pending_deletion_at')).toBe(scheduled.user.pending_deletion_at);
expect(log?.metadata.get('replaced_scheduled_by')).toBe(first.userId);
- expect(log?.metadata.get('replaced_reason_code')).toBe(DeletionReasons.SPAM.toString());
+ expect(log?.metadata.get('replaced_reason_code')).toBe(DeletionReasons.USER_REQUESTED.toString());
+ expect(log?.metadata.get('reason_code')).toBe(DeletionReasons.INACTIVITY.toString());
expect(log?.metadata.get('pending_deletion_at')).toBe(replaced.user.pending_deletion_at);
});
test('cancel requires the pending deletion it cancels', async () => {
const admin = await createAdmin();
const target = await createTestAccount(harness);
- await scheduleAs(admin, target, DeletionReasons.SPAM, 'Review');
+ await scheduleAs(admin, target, 'Review');
await createBuilder(harness, admin.token)
.delete(`/admin/users/${target.userId}/deletion`)
.expect(HTTP_STATUS.BAD_REQUEST)
@@ -291,11 +246,11 @@ describe('Admin Deletion Queue', () => {
.execute();
});
- test('cancel records whose deletion it cancelled and emails only on request', async () => {
+ test('cancel records whose deletion it cancelled and always tells the holder', async () => {
const scheduler = await createAdmin();
const canceller = await createAdmin();
const target = await createTestAccount(harness);
- const scheduled = await scheduleAs(scheduler, target, DeletionReasons.SPAM, 'Review');
+ const scheduled = await scheduleAs(scheduler, target, 'Review');
await clearTestEmails(harness);
await createBuilder(harness, canceller.token)
.delete(`/admin/users/${target.userId}/deletion`)
@@ -303,30 +258,19 @@ describe('Admin Deletion Queue', () => {
.body({expected_pending_deletion_at: scheduled.user.pending_deletion_at})
.expect(HTTP_STATUS.OK)
.execute();
- expect(
- findLastTestEmail(await listTestEmails(harness, {recipient: target.email}), 'account_deletion_cancelled'),
- ).toBeNull();
+ const emails = await listTestEmails(harness, {recipient: target.email});
+ const email = findLastTestEmail(emails, 'account_deletion_cancelled');
+ expect(email).not.toBeNull();
+ expect(JSON.stringify(email)).not.toContain('Private cancel note');
+ expect(findLastTestEmail(emails, 'enforcement_ended')).toBeNull();
const logs = await getAdminRepository().listAllAuditLogsPaginated(1000);
const log = logs.find(
(entry) => entry.action === 'cancel_deletion' && entry.targetId.toString() === target.userId,
);
expect(log?.metadata.get('cancelled_pending_deletion_at')).toBe(scheduled.user.pending_deletion_at);
expect(log?.metadata.get('cancelled_scheduled_by')).toBe(scheduler.userId);
- expect(log?.metadata.get('cancelled_reason_code')).toBe(DeletionReasons.SPAM.toString());
- expect(log?.metadata.get('notify_user')).toBe('false');
- expect(log?.metadata.get('notification_sent')).toBe('false');
- const rescheduled = await scheduleAs(scheduler, target, DeletionReasons.SPAM, 'Review again');
- await createBuilder(harness, canceller.token)
- .delete(`/admin/users/${target.userId}/deletion`)
- .header('X-Audit-Log-Reason', 'Private cancel note')
- .body({expected_pending_deletion_at: rescheduled.user.pending_deletion_at, notify_user: true})
- .expect(HTTP_STATUS.OK)
- .execute();
- const emails = await listTestEmails(harness, {recipient: target.email});
- const email = findLastTestEmail(emails, 'account_deletion_cancelled');
- expect(email).not.toBeNull();
- expect(JSON.stringify(email)).not.toContain('Private cancel note');
- expect(findLastTestEmail(emails, 'unban_notification')).toBeNull();
+ expect(log?.metadata.get('cancelled_reason_code')).toBe(DeletionReasons.USER_REQUESTED.toString());
+ expect(log?.metadata.get('notice')).toBe('account_deletion_cancelled');
});
});
});
diff --git a/fluxer_api/src/api/admin/tests/AdminIpBanExpiry.test.ts b/fluxer_api/src/api/admin/tests/AdminIpBanExpiry.test.ts
index 2408fe33c..d8358d833 100644
--- a/fluxer_api/src/api/admin/tests/AdminIpBanExpiry.test.ts
+++ b/fluxer_api/src/api/admin/tests/AdminIpBanExpiry.test.ts
@@ -17,6 +17,7 @@ interface BlocklistEntryPage {
interface BlocklistCheck {
banned: boolean;
expires_at: string | null;
+ decision_id: string | null;
}
const HOUR_MS = 3_600_000;
@@ -99,7 +100,7 @@ describe('Admin IP bans with an expiry', () => {
const entries = await listIpBans();
expect(entries.map((entry) => entry.expires_at)).toEqual([null, null]);
- expect(await checkIpBan('198.51.100.9')).toEqual({banned: true, expires_at: null});
+ expect(await checkIpBan('198.51.100.9')).toEqual({banned: true, expires_at: null, decision_id: null});
const [log] = await banIpAuditLogs();
expect(log!.metadata.has('duration_hours')).toBe(false);
});
@@ -123,7 +124,7 @@ describe('Admin IP bans with an expiry', () => {
});
it('reports a check with no match as not banned with no expiry', async () => {
- expect(await checkIpBan('198.51.100.13')).toEqual({banned: false, expires_at: null});
+ expect(await checkIpBan('198.51.100.13')).toEqual({banned: false, expires_at: null, decision_id: null});
});
it('stops applying an expiring ban once its expiry has passed', async () => {
diff --git a/fluxer_api/src/api/admin/tests/AdminRepositoryIpBans.test.ts b/fluxer_api/src/api/admin/tests/AdminRepositoryIpBans.test.ts
index 17aaefa75..c361cb9cc 100644
--- a/fluxer_api/src/api/admin/tests/AdminRepositoryIpBans.test.ts
+++ b/fluxer_api/src/api/admin/tests/AdminRepositoryIpBans.test.ts
@@ -36,6 +36,7 @@ describe('AdminRepository IP ban canonicalization', () => {
reason: 'legacy_test_row',
expires_at: null,
created_at: new Date(),
+ decision_id: null,
}),
);
}
diff --git a/fluxer_api/src/api/admin/tests/AdminStaffNotifications.test.ts b/fluxer_api/src/api/admin/tests/AdminStaffNotifications.test.ts
index 5499b6f12..3d17e3446 100644
--- a/fluxer_api/src/api/admin/tests/AdminStaffNotifications.test.ts
+++ b/fluxer_api/src/api/admin/tests/AdminStaffNotifications.test.ts
@@ -9,6 +9,7 @@ import {
} from '@app/api/auth/tests/AuthTestUtils';
import {createReportID, createUserID} from '@app/api/BrandedTypes';
import {setupTestGuildWithMembers} from '@app/api/channel/tests/ChannelTestUtils';
+import {decisionBody, warn} from '@app/api/enforcement/tests/EnforcementTestUtils';
import {getAdminRepository, getUserRepository} from '@app/api/middleware/ServiceSingletons';
import {getReportFlowVariant} from '@app/api/report/flows/ReportFlowRegistry';
import {ReportRepository} from '@app/api/report/ReportRepository';
@@ -25,8 +26,7 @@ import {afterEach, beforeEach, describe, expect, test} from 'vitest';
const DELETION_TEMPLATES = [
'account_deletion_scheduled_requested',
'account_deletion_scheduled_inactivity',
- 'scheduled_deletion_notification',
- 'account_scheduled_deletion',
+ 'enforcement_notice',
];
describe('Admin staff notifications', () => {
@@ -74,171 +74,108 @@ describe('Admin staff notifications', () => {
await users.patchUpsert(user.id, {temp_banned_until: new Date(Date.now() - 3_600_000)}, user.toRow());
}
- async function scheduleDeletion(target: TestAccount, body: Record<string, unknown>) {
+ async function scheduleDeletion(target: TestAccount, basis: Record<string, unknown>) {
await createBuilder(harness, admin.token)
.put(`/admin/users/${target.userId}/deletion`)
- .body({days_until_deletion: 60, ...body})
+ .header('X-Audit-Log-Reason', 'Private staff note')
+ .body({days_until_deletion: 60, basis})
.expect(HTTP_STATUS.OK)
.execute();
}
- async function tempBan(target: TestAccount, body: Record<string, unknown>) {
- await createBuilder(harness, admin.token)
- .put(`/admin/users/${target.userId}/ban`)
- .body(body)
- .expect(HTTP_STATUS.OK)
- .execute();
+ async function legacyClose(target: TestAccount) {
+ const users = getUserRepository();
+ const user = (await users.findUnique(createUserID(BigInt(target.userId))))!;
+ await users.updateDeletionSchedule(user, {
+ flags: user.flags | UserFlags.DELETED,
+ pending_deletion_at: new Date(Date.now() + 60 * 86_400_000),
+ deletion_reason_code: DeletionReasons.SPAM,
+ });
+ }
+
+ async function legacySuspend(target: TestAccount) {
+ const users = getUserRepository();
+ const user = (await users.findUnique(createUserID(BigInt(target.userId))))!;
+ await users.patchUpsert(user.id, {temp_banned_until: new Date(Date.now() + 86_400_000)}, user.toRow());
+ await users.updateFlags(user.id, (flags) => flags | UserFlags.DISABLED);
}
describe('schedule deletion', () => {
test.each([
- [DeletionReasons.USER_REQUESTED, 'account_deletion_scheduled_requested'],
- [DeletionReasons.INACTIVITY, 'account_deletion_scheduled_inactivity'],
- [DeletionReasons.OTHER, 'scheduled_deletion_notification'],
- [DeletionReasons.SPAM, 'account_scheduled_deletion'],
- ])('reason code %s sends %s', async (reasonCode, template) => {
+ ['holder_request', 'account_deletion_scheduled_requested'],
+ ['housekeeping', 'account_deletion_scheduled_inactivity'],
+ ])('a %s closure sends %s', async (type, template) => {
const target = await createTestAccount(harness);
await clearTestEmails(harness);
- await scheduleDeletion(target, {reason_code: reasonCode, public_reason: 'Shown to the user'});
+ await scheduleDeletion(target, {type});
const sent = (await emailsTo(target)).filter((email) => DELETION_TEMPLATES.includes(email.type));
expect(sent.map((email) => email.type)).toEqual([template]);
- expect(sent[0]?.metadata.reason).toBe('Shown to the user');
+ expect(JSON.stringify(sent)).not.toContain('Private staff note');
const metadata = await auditMetadata('schedule_deletion', target.userId);
- expect(metadata?.get('notify_user')).toBe('true');
+ expect(metadata?.get('basis')).toBe(type);
expect(metadata?.get('notification_sent')).toBe('true');
- expect(metadata?.get('notification_template')).toBe(template);
});
- test('notify_user false sends nothing and records it', async () => {
+ test('an enforcement closure sends only the enforcement notice', async () => {
const target = await createTestAccount(harness);
await clearTestEmails(harness);
- await scheduleDeletion(target, {reason_code: DeletionReasons.SPAM, notify_user: false});
- expect((await emailsTo(target)).filter((email) => DELETION_TEMPLATES.includes(email.type))).toEqual([]);
+ await scheduleDeletion(target, {
+ type: 'enforcement',
+ decision: decisionBody({statement: 'You sent the same link to many people.'}),
+ });
+ const sent = (await emailsTo(target)).filter((email) => DELETION_TEMPLATES.includes(email.type));
+ expect(sent.map((email) => email.type)).toEqual(['enforcement_notice']);
const metadata = await auditMetadata('schedule_deletion', target.userId);
- expect(metadata?.get('notify_user')).toBe('false');
- expect(metadata?.get('notification_sent')).toBe('false');
- expect(metadata?.has('notification_template')).toBe(false);
+ expect(metadata?.get('basis')).toBe('enforcement');
+ expect(metadata?.get('kind')).toBe('closure');
+ expect(metadata?.get('notice_status')).toBe('sent');
});
});
- describe('temp ban', () => {
- test('emails by default', async () => {
- const target = await createTestAccount(harness);
- await clearTestEmails(harness);
- await tempBan(target, {duration_hours: 24, reason: 'Spam'});
- expect((await emailsTo(target)).map((email) => email.type)).toContain('account_temp_banned');
- const metadata = await auditMetadata('temp_ban', target.userId);
- expect(metadata?.get('notify_user')).toBe('true');
- expect(metadata?.get('notification_sent')).toBe('true');
- });
-
- test('notify_user false sends nothing', async () => {
- const target = await createTestAccount(harness);
- await clearTestEmails(harness);
- await tempBan(target, {duration_hours: 24, notify_user: false});
- expect((await emailsTo(target)).map((email) => email.type)).not.toContain('account_temp_banned');
- const metadata = await auditMetadata('temp_ban', target.userId);
- expect(metadata?.get('notify_user')).toBe('false');
- expect(metadata?.get('notification_sent')).toBe('false');
- });
-
- test('a permanent ban sends nothing', async () => {
- const target = await createTestAccount(harness);
- await clearTestEmails(harness);
- await tempBan(target, {duration_hours: 0});
- expect((await emailsTo(target)).map((email) => email.type)).not.toContain('account_temp_banned');
- const metadata = await auditMetadata('temp_ban', target.userId);
- expect(metadata?.get('notify_user')).toBe('true');
- expect(metadata?.get('notification_sent')).toBe('false');
- });
- });
-
- describe('unban', () => {
- test('emails the public reason and never the audit log reason', async () => {
- const target = await createTestAccount(harness);
- await tempBan(target, {duration_hours: 24, notify_user: false});
- await clearTestEmails(harness);
+ describe('unban without a decision', () => {
+ async function unban(target: TestAccount) {
await createBuilder(harness, admin.token)
.delete(`/admin/users/${target.userId}/ban`)
.header('X-Audit-Log-Reason', 'Private staff note')
- .body({public_reason: 'Appeal accepted'})
.expect(HTTP_STATUS.OK)
.execute();
- const email = (await emailsTo(target)).find((entry) => entry.type === 'unban_notification');
- expect(email?.metadata.reason).toBe('Appeal accepted');
- expect(JSON.stringify(email)).not.toContain('Private staff note');
- const metadata = await auditMetadata('unban', target.userId);
- expect(metadata?.get('notify_user')).toBe('true');
- expect(metadata?.get('notification_sent')).toBe('true');
- expect(metadata?.get('public_reason')).toBe('Appeal accepted');
- });
+ }
- test('accepts a request without a body', async () => {
+ test('tells the holder the restriction ended and never shows the audit log reason', async () => {
const target = await createTestAccount(harness);
- await tempBan(target, {duration_hours: 24, notify_user: false});
+ await legacySuspend(target);
await clearTestEmails(harness);
- await createBuilder(harness, admin.token)
- .delete(`/admin/users/${target.userId}/ban`)
- .header('X-Audit-Log-Reason', 'Private staff note')
- .expect(HTTP_STATUS.OK)
- .execute();
- const email = (await emailsTo(target)).find((entry) => entry.type === 'unban_notification');
- expect(email?.metadata.reason).toBe('');
+ await unban(target);
+ const email = (await emailsTo(target)).find((entry) => entry.type === 'enforcement_ended');
+ expect(email?.metadata).toMatchObject({outcome: 'lifted', decision_id: '', restores_access: 'yes'});
expect(JSON.stringify(email)).not.toContain('Private staff note');
+ expect((await auditMetadata('unban', target.userId))?.get('ended_notice')).toBe('true');
});
- test('notify_user false sends nothing', async () => {
+ test('a suspension that already expired is not emailed', async () => {
const target = await createTestAccount(harness);
- await tempBan(target, {duration_hours: 24, notify_user: false});
- await clearTestEmails(harness);
- await createBuilder(harness, admin.token)
- .delete(`/admin/users/${target.userId}/ban`)
- .body({notify_user: false})
- .expect(HTTP_STATUS.OK)
- .execute();
- expect((await emailsTo(target)).map((email) => email.type)).not.toContain('unban_notification');
- const metadata = await auditMetadata('unban', target.userId);
- expect(metadata?.get('notify_user')).toBe('false');
- expect(metadata?.get('notification_sent')).toBe('false');
- });
-
- test('a temp ban that already expired is not emailed', async () => {
- const target = await createTestAccount(harness);
- await tempBan(target, {duration_hours: 24, notify_user: false});
+ await legacySuspend(target);
await expireTempBan(target);
await clearTestEmails(harness);
- await createBuilder(harness, admin.token)
- .delete(`/admin/users/${target.userId}/ban`)
- .expect(HTTP_STATUS.OK)
- .execute();
- expect((await emailsTo(target)).map((email) => email.type)).not.toContain('unban_notification');
- const metadata = await auditMetadata('unban', target.userId);
- expect(metadata?.get('notify_user')).toBe('true');
- expect(metadata?.get('notification_sent')).toBe('false');
+ await unban(target);
+ expect((await emailsTo(target)).map((email) => email.type)).not.toContain('enforcement_ended');
+ expect((await auditMetadata('unban', target.userId))?.get('ended_notice')).toBe('false');
});
- test('an account pending deletion is not told it can log back in', async () => {
+ test('an account pending deletion is not told it can sign in again', async () => {
const target = await createTestAccount(harness);
- await tempBan(target, {duration_hours: 24, notify_user: false});
- await scheduleDeletion(target, {reason_code: DeletionReasons.SPAM, notify_user: false});
+ await legacySuspend(target);
+ await legacyClose(target);
await clearTestEmails(harness);
- await createBuilder(harness, admin.token)
- .delete(`/admin/users/${target.userId}/ban`)
- .expect(HTTP_STATUS.OK)
- .execute();
- expect((await emailsTo(target)).map((email) => email.type)).not.toContain('unban_notification');
- expect((await auditMetadata('unban', target.userId))?.get('notification_sent')).toBe('false');
+ await unban(target);
+ expect((await emailsTo(target)).map((email) => email.type)).not.toContain('enforcement_ended');
});
- test('a user who was never banned is not emailed', async () => {
+ test('a user who was never suspended is not emailed', async () => {
const target = await createTestAccount(harness);
await clearTestEmails(harness);
- await createBuilder(harness, admin.token)
- .delete(`/admin/users/${target.userId}/ban`)
- .expect(HTTP_STATUS.OK)
- .execute();
- expect((await emailsTo(target)).map((email) => email.type)).not.toContain('unban_notification');
- expect((await auditMetadata('unban', target.userId))?.get('notification_sent')).toBe('false');
+ await unban(target);
+ expect((await emailsTo(target)).map((email) => email.type)).not.toContain('enforcement_ended');
});
});
@@ -293,7 +230,7 @@ describe('Admin staff notifications', () => {
async function resolve(reportId: string, body: Record<string, unknown>) {
await createBuilder(harness, admin.token)
.patch(`/admin/reports/${reportId}`)
- .body({status: 'resolved', ...body})
+ .body({status: 'resolved', resolution: 'actioned', outcome: 'removed', ...body})
.expect(HTTP_STATUS.OK)
.execute();
}
@@ -310,7 +247,7 @@ describe('Admin staff notifications', () => {
await resolve(reportId, {public_comment: 'Handled'});
const sent = (await emailsTo(reporter)).filter((email) => email.type === 'report_resolved');
expect(sent).toHaveLength(1);
- expect(sent[0]?.metadata).toEqual({report_id: reportId, public_comment: 'Handled'});
+ expect(sent[0]?.metadata).toEqual({report_id: reportId, public_comment: 'Handled', outcome: 'removed'});
const dms = await systemDmMessages(reporter);
expect(dms).toHaveLength(1);
expect(dms[0]?.content).toContain('Handled');
@@ -331,7 +268,7 @@ describe('Admin staff notifications', () => {
await resolve(reportId, {public_comment: 'Staff only wording', notify_reporter: false});
const sent = (await emailsTo(reporter)).filter((email) => email.type === 'report_resolved');
expect(sent).toHaveLength(1);
- expect(sent[0]?.metadata).toEqual({report_id: reportId, public_comment: ''});
+ expect(sent[0]?.metadata).toEqual({report_id: reportId, public_comment: '', outcome: 'removed'});
const dms = await systemDmMessages(reporter);
expect(dms).toHaveLength(1);
expect(dms[0]?.content).toContain(reportId);
@@ -365,7 +302,11 @@ describe('Admin staff notifications', () => {
await resolve(reportId, {public_comment: 'We removed the community.'});
const sent = await listTestEmails(harness);
expect(sent.map((entry) => [entry.to, entry.type])).toEqual([[email, 'dsa_report_resolved']]);
- expect(sent[0]?.metadata).toEqual({report_id: reportId, public_comment: 'We removed the community.'});
+ expect(sent[0]?.metadata).toEqual({
+ report_id: reportId,
+ public_comment: 'We removed the community.',
+ outcome: 'removed',
+ });
const metadata = await auditMetadata('resolve_report', reportId);
expect(metadata?.get('report_type')).toBe('2');
expect(metadata?.get('reporter_dm_sent')).toBe('false');
@@ -374,13 +315,45 @@ describe('Admin staff notifications', () => {
expect(metadata?.has('reporter_notice_skipped')).toBe(false);
});
+ test('a warning tells the reporter by system DM and email that action was taken without naming it', async () => {
+ const reporter = await createTestAccount(harness);
+ const reported = await createTestAccount(harness);
+ const {report_id: reportId} = await createBuilder<{report_id: string}>(harness, reporter.token)
+ .post('/reports/user')
+ .body({user_id: reported.userId, category: 'harassment'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ await clearTestEmails(harness);
+ await warn(harness, admin, reported.userId, decisionBody({source: 'report', report_ids: [reportId]}));
+ const sent = (await emailsTo(reporter)).filter((email) => email.type === 'report_resolved');
+ expect(sent.map((email) => email.metadata)).toEqual([
+ {report_id: reportId, public_comment: '', outcome: 'action_taken'},
+ ]);
+ const [dm] = await systemDmMessages(reporter);
+ expect(dm?.content).toContain('We found that what you reported broke our rules, and we took action.');
+ expect(dm?.content).not.toMatch(/warn|restricted|suspend/i);
+ const metadata = await auditMetadata('resolve_report', reportId);
+ expect(metadata?.get('outcome')).toBe('action_taken');
+ expect(metadata?.get('reporter_dm_sent')).toBe('true');
+ });
+
+ test('a DSA notice resolved with other action taken emails that outcome', async () => {
+ const {email, reportId} = await fileDsaGuildNotice();
+ await clearTestEmails(harness);
+ await resolve(reportId, {outcome: 'action_taken'});
+ const sent = await listTestEmails(harness, {recipient: email});
+ expect(sent.map((entry) => [entry.type, entry.metadata.outcome])).toEqual([
+ ['dsa_report_resolved', 'action_taken'],
+ ]);
+ });
+
test('a DSA notice resolved with notify_reporter false gets the decision email without the comment', async () => {
const {email, reportId} = await fileDsaGuildNotice();
await clearTestEmails(harness);
await resolve(reportId, {public_comment: 'Staff only wording', notify_reporter: false});
const sent = await listTestEmails(harness, {recipient: email});
expect(sent.map((entry) => entry.type)).toEqual(['dsa_report_resolved']);
- expect(sent[0]?.metadata).toEqual({report_id: reportId, public_comment: ''});
+ expect(sent[0]?.metadata).toEqual({report_id: reportId, public_comment: '', outcome: 'removed'});
const metadata = await auditMetadata('resolve_report', reportId);
expect(metadata?.get('reporter_dsa_email_sent')).toBe('true');
expect(metadata?.get('internal_comment')).toBe('Staff only wording');
@@ -431,7 +404,7 @@ describe('Admin staff notifications', () => {
['First comment', 'Second comment'].map((comment) =>
createBuilder<{public_comment: string | null; code?: string}>(harness, admin.token)
.patch(`/admin/reports/${reportId}`)
- .body({status: 'resolved', public_comment: comment})
+ .body({status: 'resolved', resolution: 'actioned', outcome: 'removed', public_comment: comment})
.executeRaw(),
),
);
@@ -451,13 +424,13 @@ describe('Admin staff notifications', () => {
const {reporter, reportId} = await fileReport();
await createBuilder(harness, admin.token)
.patch(`/admin/reports/${reportId}`)
- .body({status: 'resolved', public_comment: 'Handled'})
+ .body({status: 'resolved', resolution: 'actioned', outcome: 'removed', public_comment: 'Handled'})
.expect(HTTP_STATUS.OK)
.execute();
await clearTestEmails(harness);
await createBuilder(harness, admin.token)
.patch(`/admin/reports/${reportId}`)
- .body({status: 'resolved', public_comment: 'Handled again'})
+ .body({status: 'resolved', resolution: 'actioned', outcome: 'removed', public_comment: 'Handled again'})
.expect(HTTP_STATUS.BAD_REQUEST, APIErrorCodes.REPORT_ALREADY_RESOLVED)
.execute();
expect((await emailsTo(reporter)).filter((email) => email.type === 'report_resolved')).toEqual([]);
diff --git a/fluxer_api/src/api/admin/tests/audit_coverage/AdminAuditRouteCoverage.test.ts b/fluxer_api/src/api/admin/tests/audit_coverage/AdminAuditRouteCoverage.test.ts
index a4e69713b..4074948b9 100644
--- a/fluxer_api/src/api/admin/tests/audit_coverage/AdminAuditRouteCoverage.test.ts
+++ b/fluxer_api/src/api/admin/tests/audit_coverage/AdminAuditRouteCoverage.test.ts
@@ -11,6 +11,7 @@ import {BanAdminAuditCases} from '@app/api/admin/tests/audit_coverage/BanAdminAu
import {BulkAdminAuditCases} from '@app/api/admin/tests/audit_coverage/BulkAdminAuditCases';
import {CodesAdminAuditCases} from '@app/api/admin/tests/audit_coverage/CodesAdminAuditCases';
import {DiscoveryAdminAuditCases} from '@app/api/admin/tests/audit_coverage/DiscoveryAdminAuditCases';
+import {EnforcementAdminAuditCases} from '@app/api/admin/tests/audit_coverage/EnforcementAdminAuditCases';
import {GatewayAdminAuditCases} from '@app/api/admin/tests/audit_coverage/GatewayAdminAuditCases';
import {GuildAdminAuditCases} from '@app/api/admin/tests/audit_coverage/GuildAdminAuditCases';
import {InstanceConfigAdminAuditCases} from '@app/api/admin/tests/audit_coverage/InstanceConfigAdminAuditCases';
@@ -39,6 +40,7 @@ const ALL_CASES = [
...BulkAdminAuditCases,
...CodesAdminAuditCases,
...DiscoveryAdminAuditCases,
+ ...EnforcementAdminAuditCases,
...GatewayAdminAuditCases,
...GuildAdminAuditCases,
...InstanceConfigAdminAuditCases,
diff --git a/fluxer_api/src/api/admin/tests/audit_coverage/EnforcementAdminAuditCases.ts b/fluxer_api/src/api/admin/tests/audit_coverage/EnforcementAdminAuditCases.ts
new file mode 100644
index 000000000..bc119e055
--- /dev/null
+++ b/fluxer_api/src/api/admin/tests/audit_coverage/EnforcementAdminAuditCases.ts
@@ -0,0 +1,127 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {
+ AdminAuditCoverageCase,
+ AdminAuditCoverageContext,
+} from '@app/api/admin/tests/audit_coverage/AdminAuditCoverage';
+import {createTestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {createBuilder} from '@app/api/test/TestRequestBuilder';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {expect} from 'vitest';
+
+async function suspend(context: AdminAuditCoverageContext): Promise<{userId: string; decisionId: string}> {
+ const target = await createTestAccount(context.harness);
+ const {user} = await createBuilder<{user: {enforcement_decision_id: string}}>(context.harness, context.admin.token)
+ .put(`/admin/users/${target.userId}/ban`)
+ .header('X-Audit-Log-Reason', 'Coverage suspension')
+ .body({
+ duration_hours: 24,
+ decision: {
+ reason_code: DeletionReasons.SPAM,
+ source: 'own_review',
+ automation: 'none',
+ statement: 'Coverage decision',
+ },
+ })
+ .execute();
+ return {userId: target.userId, decisionId: user.enforcement_decision_id};
+}
+
+export const EnforcementAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
+ {
+ method: 'GET',
+ route: '/admin/users/:user_id/network-block-candidates',
+ async prepare(context) {
+ const target = await createTestAccount(context.harness, {ipAddress: '45.33.10.1'});
+ return {
+ request: {path: `/admin/users/${target.userId}/network-block-candidates`},
+ expected: {
+ action: 'list_network_block_candidates',
+ targetType: 'user',
+ targetId: target.userId,
+ metadata: {result_count: '1'},
+ },
+ };
+ },
+ },
+ {
+ method: 'GET',
+ route: '/admin/enforcement-decisions',
+ async prepare(context) {
+ const {userId} = await suspend(context);
+ return {
+ request: {path: `/admin/enforcement-decisions?subject_type=user&subject_id=${userId}`},
+ expected: {
+ action: 'list_enforcement_decisions',
+ targetType: 'user',
+ targetId: userId,
+ metadata: {list: 'subject', result_count: '1'},
+ },
+ };
+ },
+ },
+ {
+ method: 'GET',
+ route: '/admin/enforcement-decisions',
+ name: 'review_queue',
+ async prepare() {
+ return {
+ request: {path: '/admin/enforcement-decisions?review_queue=true'},
+ expected: {
+ action: 'list_enforcement_decisions',
+ targetType: 'enforcement_decision',
+ targetId: '0',
+ metadata: {list: 'review_queue', result_count: '0'},
+ },
+ };
+ },
+ },
+ {
+ method: 'GET',
+ route: '/admin/enforcement-decisions/:decision_id',
+ async prepare(context) {
+ const {decisionId} = await suspend(context);
+ return {
+ request: {path: `/admin/enforcement-decisions/${decisionId}`},
+ expected: {
+ action: 'view_enforcement_decision',
+ targetType: 'enforcement_decision',
+ targetId: decisionId,
+ metadata: {decision_id: decisionId, kind: 'suspension'},
+ },
+ };
+ },
+ },
+ {
+ method: 'POST',
+ route: '/admin/enforcement-decisions/:decision_id/notes',
+ async prepare(context) {
+ const {decisionId} = await suspend(context);
+ return {
+ request: {path: `/admin/enforcement-decisions/${decisionId}/notes`, body: {body: 'Coverage note'}},
+ expected: {
+ action: 'annotate_enforcement_decision',
+ targetType: 'enforcement_decision',
+ targetId: decisionId,
+ metadata: {decision_id: decisionId, note_id: expect.any(String)},
+ },
+ };
+ },
+ },
+ {
+ method: 'POST',
+ route: '/admin/enforcement-decisions/:decision_id/end',
+ async prepare(context) {
+ const {userId, decisionId} = await suspend(context);
+ return {
+ request: {path: `/admin/enforcement-decisions/${decisionId}/end`, body: {outcome: 'lifted'}},
+ expected: {
+ action: 'end_enforcement_decision',
+ targetType: 'enforcement_decision',
+ targetId: decisionId,
+ metadata: {decision_id: decisionId, kind: 'suspension', outcome: 'lifted', subject_id: userId},
+ },
+ };
+ },
+ },
+];
diff --git a/fluxer_api/src/api/admin/tests/audit_coverage/EnforcementAdminAuditCoverage.test.ts b/fluxer_api/src/api/admin/tests/audit_coverage/EnforcementAdminAuditCoverage.test.ts
new file mode 100644
index 000000000..e3ff92591
--- /dev/null
+++ b/fluxer_api/src/api/admin/tests/audit_coverage/EnforcementAdminAuditCoverage.test.ts
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {describeAdminAuditCoverage} from '@app/api/admin/tests/audit_coverage/AdminAuditCoverage';
+import {EnforcementAdminAuditCases} from '@app/api/admin/tests/audit_coverage/EnforcementAdminAuditCases';
+
+describeAdminAuditCoverage('EnforcementAdminController', EnforcementAdminAuditCases);
diff --git a/fluxer_api/src/api/admin/tests/audit_coverage/GuildAdminAuditCases.ts b/fluxer_api/src/api/admin/tests/audit_coverage/GuildAdminAuditCases.ts
index ac183f527..f55404a6f 100644
--- a/fluxer_api/src/api/admin/tests/audit_coverage/GuildAdminAuditCases.ts
+++ b/fluxer_api/src/api/admin/tests/audit_coverage/GuildAdminAuditCases.ts
@@ -6,6 +6,8 @@ import {createGuild} from '@app/api/message/tests/MessageTestUtils';
import type {ApiTestHarness} from '@app/api/test/ApiTestHarness';
import {createBuilder} from '@app/api/test/TestRequestBuilder';
import {AuditLogActionType} from '@fluxer/constants/src/AuditLogActionType';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {expect} from 'vitest';
const MISSING_GUILD_ID = '900000000000000001';
@@ -119,12 +121,49 @@ export const GuildAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
async prepare({harness, admin}) {
const guild = await createGuild(harness, admin.token, 'Audit Deleted Guild');
return {
- request: {path: `/admin/guilds/${guild.id}`},
+ request: {path: `/admin/guilds/${guild.id}`, body: {basis: {type: 'holder_request'}}},
expected: {
action: 'delete_guild',
targetType: 'guild',
targetId: guild.id,
- metadata: {guild_id: guild.id},
+ metadata: {guild_id: guild.id, basis: 'holder_request'},
+ },
+ };
+ },
+ },
+ {
+ method: 'DELETE',
+ route: '/admin/guilds/:guild_id',
+ name: 'enforcement',
+ async prepare({harness, admin}) {
+ const guild = await createGuild(harness, admin.token, 'Audit Removed Guild');
+ return {
+ request: {
+ path: `/admin/guilds/${guild.id}`,
+ body: {
+ basis: {
+ type: 'enforcement',
+ decision: {
+ reason_code: DeletionReasons.SPAM,
+ source: 'own_review',
+ automation: 'none',
+ statement: 'Coverage decision',
+ },
+ },
+ },
+ },
+ expected: {
+ action: 'delete_guild',
+ targetType: 'guild',
+ targetId: guild.id,
+ metadata: {
+ guild_id: guild.id,
+ basis: 'enforcement',
+ decision_id: expect.any(String),
+ reason_code: DeletionReasons.SPAM.toString(),
+ kind: 'community_removal',
+ notice_status: 'sent',
+ },
},
};
},
diff --git a/fluxer_api/src/api/admin/tests/audit_coverage/MessageAdminAuditCases.ts b/fluxer_api/src/api/admin/tests/audit_coverage/MessageAdminAuditCases.ts
index a3f413e2e..696a99302 100644
--- a/fluxer_api/src/api/admin/tests/audit_coverage/MessageAdminAuditCases.ts
+++ b/fluxer_api/src/api/admin/tests/audit_coverage/MessageAdminAuditCases.ts
@@ -6,11 +6,26 @@ import {createChannel, createGuild} from '@app/api/channel/tests/AttachmentTestU
import {markChannelAsIndexed, sendMessage} from '@app/api/message/tests/MessageTestUtils';
import type {ApiTestHarness} from '@app/api/test/ApiTestHarness';
import {createMessageWithImageAttachment} from '@app/api/user/tests/FavoriteMemeTestUtils';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
import {expect} from 'vitest';
const UNKNOWN_ATTACHMENT_ID = '900000000000000003';
const UNKNOWN_SHRED_JOB_ID = '900000000000000004';
+const COVERAGE_DECISION = {
+ reason_code: DeletionReasons.SPAM,
+ source: 'own_review',
+ automation: 'none',
+ statement: 'Coverage decision',
+};
+
+const COVERAGE_DECISION_METADATA = {
+ decision_id: expect.any(String),
+ reason_code: DeletionReasons.SPAM.toString(),
+ kind: 'content_removal',
+ notice_status: 'sent',
+};
+
async function createAuthorChannel(harness: ApiTestHarness): Promise<{author: TestAccount; channelId: string}> {
const author = await createTestAccount(harness);
const guild = await createGuild(harness, author.token, 'Audit Message Guild');
@@ -175,12 +190,15 @@ export const MessageAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
const {author, channelId} = await createAuthorChannel(harness);
const message = await sendMessage(harness, author.token, channelId, 'delete target');
return {
- request: {path: `/admin/channels/${channelId}/messages/${message.id}`},
+ request: {
+ path: `/admin/channels/${channelId}/messages/${message.id}`,
+ body: {basis: {type: 'housekeeping'}},
+ },
expected: {
action: 'delete_message',
targetType: 'message',
targetId: message.id,
- metadata: {channel_id: channelId, message_id: message.id},
+ metadata: {channel_id: channelId, message_id: message.id, basis: 'housekeeping'},
},
};
},
@@ -194,13 +212,48 @@ export const MessageAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
return {
request: {
path: `/admin/users/${author.userId}/message-shreds`,
- body: {entries: [{channel_id: channelId, message_id: message.id}]},
+ body: {entries: [{channel_id: channelId, message_id: message.id}], basis: {type: 'holder_request'}},
},
expected: {
action: 'queue_message_shred',
targetType: 'message_shred',
targetId: author.userId,
- metadata: {user_id: author.userId, job_id: expect.any(String), requested_entries: '1'},
+ metadata: {
+ user_id: author.userId,
+ job_id: expect.any(String),
+ requested_entries: '1',
+ basis: 'holder_request',
+ },
+ },
+ };
+ },
+ },
+ {
+ method: 'POST',
+ route: '/admin/users/:user_id/message-shreds',
+ name: 'enforcement',
+ async prepare({harness}) {
+ const {author, channelId} = await createAuthorChannel(harness);
+ const message = await sendMessage(harness, author.token, channelId, 'shred target');
+ return {
+ request: {
+ path: `/admin/users/${author.userId}/message-shreds`,
+ body: {
+ entries: [{channel_id: channelId, message_id: message.id}],
+ basis: {type: 'enforcement', decision: COVERAGE_DECISION},
+ },
+ },
+ expected: {
+ action: 'queue_message_shred',
+ targetType: 'message_shred',
+ targetId: author.userId,
+ metadata: {
+ user_id: author.userId,
+ job_id: expect.any(String),
+ requested_entries: '1',
+ basis: 'enforcement',
+ ...COVERAGE_DECISION_METADATA,
+ },
},
};
},
@@ -222,4 +275,33 @@ export const MessageAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
};
},
},
+ {
+ method: 'DELETE',
+ route: '/admin/users/:user_id/messages',
+ name: 'enforcement',
+ async prepare({harness}) {
+ const {author, channelId} = await createAuthorChannel(harness);
+ await sendMessage(harness, author.token, channelId, 'removed message');
+ return {
+ request: {
+ path: `/admin/users/${author.userId}/messages?dry_run=false`,
+ body: {basis: {type: 'enforcement', decision: COVERAGE_DECISION}},
+ },
+ expected: {
+ action: 'delete_all_user_messages',
+ targetType: 'message_deletion',
+ targetId: author.userId,
+ metadata: {
+ user_id: author.userId,
+ channel_count: '1',
+ message_count: '1',
+ dry_run: 'false',
+ basis: 'enforcement',
+ job_id: expect.any(String),
+ ...COVERAGE_DECISION_METADATA,
+ },
+ },
+ };
+ },
+ },
];
diff --git a/fluxer_api/src/api/admin/tests/audit_coverage/ReportAdminAuditCases.ts b/fluxer_api/src/api/admin/tests/audit_coverage/ReportAdminAuditCases.ts
index 90beb7487..2f876d16e 100644
--- a/fluxer_api/src/api/admin/tests/audit_coverage/ReportAdminAuditCases.ts
+++ b/fluxer_api/src/api/admin/tests/audit_coverage/ReportAdminAuditCases.ts
@@ -177,7 +177,12 @@ export const ReportAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
return {
request: {
path: `/admin/reports/${reportId}`,
- body: {status: 'resolved', public_comment: 'We actioned the account.'},
+ body: {
+ status: 'resolved',
+ resolution: 'actioned',
+ outcome: 'restricted',
+ public_comment: 'We actioned the account.',
+ },
},
expected: {
action: 'resolve_report',
@@ -190,6 +195,8 @@ export const ReportAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
reporter_dm_sent: 'true',
reporter_email_sent: 'true',
reporter_dsa_email_sent: 'false',
+ resolution: 'actioned',
+ outcome: 'restricted',
},
},
};
@@ -204,7 +211,12 @@ export const ReportAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
return {
request: {
path: `/admin/reports/${reportId}`,
- body: {status: 'resolved', public_comment: 'Internal wording', notify_reporter: false},
+ body: {
+ status: 'resolved',
+ resolution: 'no_violation',
+ public_comment: 'Internal wording',
+ notify_reporter: false,
+ },
},
expected: {
action: 'resolve_report',
@@ -218,12 +230,14 @@ export const ReportAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
reporter_dm_sent: 'true',
reporter_email_sent: 'true',
reporter_dsa_email_sent: 'false',
+ resolution: 'no_violation',
+ outcome: 'no_violation',
},
},
};
},
},
- ...(['actioned', 'no_violation', 'duplicate'] as const).map(
+ ...(['actioned', 'no_violation'] as const).map(
(resolution): AdminAuditCoverageCase => ({
method: 'PATCH',
route: '/admin/reports/:report_id',
@@ -233,7 +247,12 @@ export const ReportAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
return {
request: {
path: `/admin/reports/${reportId}`,
- body: {status: 'resolved', resolution, notify_reporter: false},
+ body: {
+ status: 'resolved',
+ resolution,
+ ...(resolution === 'no_violation' ? {} : {outcome: 'removed'}),
+ notify_reporter: false,
+ },
},
expected: {
action: 'resolve_report',
@@ -247,6 +266,55 @@ export const ReportAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
reporter_email_sent: 'true',
reporter_dsa_email_sent: 'false',
resolution,
+ outcome: resolution === 'no_violation' ? 'no_violation' : 'removed',
+ },
+ },
+ };
+ },
+ }),
+ ),
+ ...([true, false] as const).map(
+ (originalResolved): AdminAuditCoverageCase => ({
+ method: 'PATCH',
+ route: '/admin/reports/:report_id',
+ name: originalResolved ? 'duplicate of a resolved report' : 'duplicate of an open report',
+ async prepare(context) {
+ const original = await fileUserReport(context);
+ const {reportId} = await fileUserReport(context);
+ if (originalResolved) {
+ await createBuilder(context.harness, context.admin.token)
+ .patch(`/admin/reports/${original.reportId}`)
+ .body({status: 'resolved', resolution: 'actioned', outcome: 'restricted', notify_reporter: false})
+ .execute();
+ }
+ return {
+ request: {
+ path: `/admin/reports/${reportId}`,
+ body: {
+ status: 'resolved',
+ resolution: 'duplicate',
+ duplicate_of: original.reportId,
+ notify_reporter: false,
+ },
+ },
+ expected: {
+ action: 'resolve_report',
+ targetType: 'report',
+ targetId: reportId,
+ metadata: {
+ report_id: reportId,
+ report_type: '1',
+ notify_reporter: 'false',
+ ...(originalResolved
+ ? {
+ reporter_dm_sent: 'true',
+ reporter_email_sent: 'true',
+ reporter_dsa_email_sent: 'false',
+ outcome: 'restricted',
+ }
+ : {reporter_notice_skipped: 'duplicate_outcome_unknown'}),
+ resolution: 'duplicate',
+ duplicate_of: original.reportId,
},
},
};
diff --git a/fluxer_api/src/api/admin/tests/audit_coverage/UserWriteAdminAuditCases.ts b/fluxer_api/src/api/admin/tests/audit_coverage/UserWriteAdminAuditCases.ts
index 12c8f3462..e890e9b2d 100644
--- a/fluxer_api/src/api/admin/tests/audit_coverage/UserWriteAdminAuditCases.ts
+++ b/fluxer_api/src/api/admin/tests/audit_coverage/UserWriteAdminAuditCases.ts
@@ -21,11 +21,7 @@ import {
import {createUserID} from '@app/api/BrandedTypes';
import {Config} from '@app/api/Config';
import {createFriendship} from '@app/api/channel/tests/ChannelTestUtils';
-import {
- getAdminRepository,
- getInstanceConfigRepository,
- getUserRepository,
-} from '@app/api/middleware/ServiceSingletons';
+import {getInstanceConfigRepository, getUserRepository} from '@app/api/middleware/ServiceSingletons';
import type {User} from '@app/api/models/User';
import {createBuilder} from '@app/api/test/TestRequestBuilder';
import {AccountIdentityModes} from '@fluxer/constants/src/AccountIdentityConstants';
@@ -55,6 +51,13 @@ async function enableTotp(context: AdminAuditCoverageContext, account: TestAccou
return secret;
}
+const COVERAGE_DECISION = {
+ reason_code: DeletionReasons.SPAM,
+ source: 'own_review',
+ automation: 'none',
+ statement: 'Coverage decision',
+};
+
export const UserWriteAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
{
method: 'DELETE',
@@ -180,13 +183,40 @@ export const UserWriteAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
return {
request: {
path: `/admin/users/${target.userId}/profile-fields`,
- body: {fields: ['bio', 'pronouns', 'global_name']},
+ body: {fields: ['bio', 'pronouns', 'global_name'], basis: {type: 'holder_request'}},
},
expected: {
action: 'clear_fields',
targetType: 'user',
targetId: target.userId,
- metadata: {fields: 'bio,pronouns,global_name'},
+ metadata: {fields: 'bio,pronouns,global_name', basis: 'holder_request'},
+ },
+ };
+ },
+ },
+ {
+ method: 'DELETE',
+ route: '/admin/users/:user_id/profile-fields',
+ name: 'enforcement',
+ async prepare({harness}) {
+ const target = await createTestAccount(harness);
+ return {
+ request: {
+ path: `/admin/users/${target.userId}/profile-fields`,
+ body: {fields: ['global_name'], basis: {type: 'enforcement', decision: COVERAGE_DECISION}},
+ },
+ expected: {
+ action: 'clear_fields',
+ targetType: 'user',
+ targetId: target.userId,
+ metadata: {
+ fields: 'global_name',
+ basis: 'enforcement',
+ decision_id: expect.any(String),
+ reason_code: DeletionReasons.SPAM.toString(),
+ kind: 'profile_reset',
+ notice_status: 'sent',
+ },
},
};
},
@@ -362,7 +392,7 @@ export const UserWriteAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
return {
request: {
path: `/admin/users/${target.userId}/ban`,
- body: {duration_hours: 24, reason: 'Coverage ban'},
+ body: {duration_hours: 24, decision: COVERAGE_DECISION},
},
expected: {
action: 'temp_ban',
@@ -370,10 +400,11 @@ export const UserWriteAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
targetId: target.userId,
metadata: {
duration_hours: '24',
- reason: 'Coverage ban',
banned_until: expect.any(String),
- notify_user: 'true',
- notification_sent: 'true',
+ decision_id: expect.any(String),
+ reason_code: DeletionReasons.SPAM.toString(),
+ kind: 'suspension',
+ notice_status: 'sent',
},
},
};
@@ -384,42 +415,63 @@ export const UserWriteAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
route: '/admin/users/:user_id/ban',
async prepare(context) {
const target = await createTestAccount(context.harness);
- await adminBuilder(context).put(`/admin/users/${target.userId}/ban`).body({duration_hours: 24}).execute();
+ const users = getUserRepository();
+ const user = await loadUser(target);
+ await users.patchUpsert(user.id, {temp_banned_until: new Date(Date.now() + 86_400_000)}, user.toRow());
+ await users.updateFlags(user.id, (flags) => flags | UserFlags.DISABLED);
return {
request: {path: `/admin/users/${target.userId}/ban`},
expected: {
action: 'unban',
targetType: 'user',
targetId: target.userId,
- metadata: {notify_user: 'true', notification_sent: 'true', public_reason: 'null'},
+ metadata: {ended_notice: 'true'},
},
};
},
},
{
method: 'POST',
- route: '/admin/users/:user_id/ban/notes',
- auditLogReason: 'Coverage ban note',
- async prepare(context) {
- const target = await createTestAccount(context.harness);
- await adminBuilder(context)
- .put(`/admin/users/${target.userId}/ban`)
- .body({duration_hours: 24, reason: 'Coverage ban'})
- .execute();
- const banLog = (await getAdminRepository().listAllAuditLogsPaginated(1000)).find(
- (log) => log.action === 'temp_ban' && log.targetId.toString() === target.userId,
- );
+ route: '/admin/users/:user_id/warnings',
+ async prepare({harness}) {
+ const target = await createTestAccount(harness);
+ return {
+ request: {path: `/admin/users/${target.userId}/warnings`, body: {decision: COVERAGE_DECISION}},
+ expected: {
+ action: 'warn_user',
+ targetType: 'user',
+ targetId: target.userId,
+ metadata: {
+ decision_id: expect.any(String),
+ reason_code: DeletionReasons.SPAM.toString(),
+ kind: 'warning',
+ notice_status: 'sent',
+ },
+ },
+ };
+ },
+ },
+ {
+ method: 'PUT',
+ route: '/admin/users/:user_id/feature-limits',
+ async prepare({harness}) {
+ const target = await createTestAccount(harness);
return {
request: {
- path: `/admin/users/${target.userId}/ban/notes`,
- body: {ban_audit_log_id: banLog!.logId.toString(), note: 'Coverage ban note'},
- expectStatus: 204,
+ path: `/admin/users/${target.userId}/feature-limits`,
+ body: {limit: 'direct_messages', decision: COVERAGE_DECISION},
},
expected: {
- action: 'annotate_ban',
+ action: 'limit_features',
targetType: 'user',
targetId: target.userId,
- metadata: {ban_audit_log_id: banLog!.logId.toString()},
+ metadata: {
+ limit: 'direct_messages',
+ decision_id: expect.any(String),
+ reason_code: DeletionReasons.SPAM.toString(),
+ kind: 'feature_limit',
+ notice_status: 'sent',
+ },
},
};
},
@@ -432,19 +484,18 @@ export const UserWriteAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
return {
request: {
path: `/admin/users/${target.userId}/deletion`,
- body: {reason_code: DeletionReasons.USER_REQUESTED, days_until_deletion: 30},
+ body: {days_until_deletion: 30, basis: {type: 'holder_request'}},
},
expected: {
action: 'schedule_deletion',
targetType: 'user',
targetId: target.userId,
metadata: {
+ basis: 'holder_request',
days: '30',
reason_code: DeletionReasons.USER_REQUESTED.toString(),
pending_deletion_at: expect.any(String),
- notify_user: 'true',
notification_sent: 'true',
- notification_template: 'account_deletion_scheduled_requested',
},
},
};
@@ -457,7 +508,7 @@ export const UserWriteAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
const target = await createTestAccount(context.harness);
await adminBuilder(context)
.put(`/admin/users/${target.userId}/deletion`)
- .body({reason_code: DeletionReasons.USER_REQUESTED, days_until_deletion: 30})
+ .body({days_until_deletion: 30, basis: {type: 'holder_request'}})
.execute();
const pendingDeletionAt = (await loadUser(target)).pendingDeletionAt!.toISOString();
return {
@@ -474,8 +525,7 @@ export const UserWriteAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [
cancelled_scheduled_by: context.admin.userId,
cancelled_scheduled_at: expect.any(String),
cancelled_reason_code: DeletionReasons.USER_REQUESTED.toString(),
- notify_user: 'false',
- notification_sent: 'false',
+ notice: 'account_deletion_cancelled',
},
},
};
diff --git a/fluxer_api/src/api/auth/AuthEmailRevert.ts b/fluxer_api/src/api/auth/AuthEmailRevert.ts
index ae307e576..0cc6615e3 100644
--- a/fluxer_api/src/api/auth/AuthEmailRevert.ts
+++ b/fluxer_api/src/api/auth/AuthEmailRevert.ts
@@ -59,7 +59,7 @@ export async function revertEmailChange(
throw InputValidationError.fromCode('token', ValidationErrorCodes.INVALID_OR_EXPIRED_REVERT_TOKEN);
}
AuthUtility.assertNonBotUser(ctx, user);
- await AuthUtility.handleBanStatus(ctx, user);
+ await AuthUtility.assertSignInAllowed(ctx, user);
if (await AuthPassword.isPasswordPwned(ctx, password)) {
throw InputValidationError.fromCode('password', ValidationErrorCodes.PASSWORD_IS_TOO_COMMON);
}
diff --git a/fluxer_api/src/api/auth/AuthLogin.ts b/fluxer_api/src/api/auth/AuthLogin.ts
index cea49726c..07f6f2fef 100644
--- a/fluxer_api/src/api/auth/AuthLogin.ts
+++ b/fluxer_api/src/api/auth/AuthLogin.ts
@@ -16,7 +16,6 @@ import {
} from '@app/api/BrandedTypes';
import {getContentMessage} from '@app/api/content_i18n/ContentI18n';
import {emitActivity} from '@app/api/infrastructure/activity/ActivityEvents';
-import type {KVAccountDeletionQueueService} from '@app/api/infrastructure/KVAccountDeletionQueueService';
import {
REGISTRATION_PENDING_APPROVAL_TRAIT,
REGISTRATION_REJECTED_TRAIT,
@@ -75,7 +74,6 @@ interface LoginMfaWebAuthnParams {
export interface LoginDependencies {
inviteService: InviteService;
- kvDeletionQueue: KVAccountDeletionQueueService;
}
interface LoginTokenResult {
@@ -224,7 +222,7 @@ export async function login(
{data, request, captchaVerified = false}: LoginParams,
): Promise<LoginResult> {
const {users, cache, rateLimit, email, config} = ctx.services;
- const {inviteService, kvDeletionQueue} = deps;
+ const {inviteService} = deps;
const skipRateLimits = config.dev.testModeEnabled || config.dev.disableRateLimits;
const identifier = await resolveLoginIdentifier(ctx, data);
const invalidCredentials = () =>
@@ -257,6 +255,9 @@ export async function login(
retryAfter: Math.ceil(failureLimit.windowMs / failureLimit.maxAttempts / 1000),
}
: null;
+ if (failureLockout && ctx.request.blockedNetworkSignIn) {
+ throw createRateLimitError(failureLockout);
+ }
const rejectCredentials = async (): Promise<never> => {
if (failureLimit) {
await rateLimit.checkLimit(failureLimit);
@@ -264,6 +265,7 @@ export async function login(
if (failureLockout) {
throw createRateLimitError(failureLockout);
}
+ AuthUtility.assertNetworkAllowed(ctx);
throw invalidCredentials();
};
const user = await identifier.lookup();
@@ -290,20 +292,19 @@ export async function login(
if (failureLockout && !captchaVerified && !(await users.checkIpAuthorized(user.id, clientIp))) {
throw createRateLimitError(failureLockout);
}
- const currentUser = await AuthUtility.reactivateOnSignIn(
- ctx,
- await AuthUtility.handleBanStatus(ctx, user),
- kvDeletionQueue,
- );
+ const hasMfa =
+ user.authenticatorTypes.has(UserAuthenticatorTypes.TOTP) ||
+ user.authenticatorTypes.has(UserAuthenticatorTypes.WEBAUTHN);
+ if (hasMfa) {
+ AuthUtility.assertMfaTicketAllowed(ctx, user);
+ }
+ const currentUser = hasMfa ? user : await AuthUtility.assertSignInAllowed(ctx, user);
if (currentUser.traits.has(REGISTRATION_PENDING_APPROVAL_TRAIT)) {
throw new RegistrationPendingApprovalError();
}
if (currentUser.traits.has(REGISTRATION_REJECTED_TRAIT)) {
throw new RegistrationRejectedError();
}
- const hasMfa =
- currentUser.authenticatorTypes.has(UserAuthenticatorTypes.TOTP) ||
- currentUser.authenticatorTypes.has(UserAuthenticatorTypes.WEBAUTHN);
const isAppStoreReviewer = (currentUser.flags & UserFlags.APP_STORE_REVIEWER) !== 0n;
let newIp = false;
if (!hasMfa && !isAppStoreReviewer) {
diff --git a/fluxer_api/src/api/auth/AuthPassword.ts b/fluxer_api/src/api/auth/AuthPassword.ts
index 8933465d6..91b386dc1 100644
--- a/fluxer_api/src/api/auth/AuthPassword.ts
+++ b/fluxer_api/src/api/auth/AuthPassword.ts
@@ -280,7 +280,7 @@ export async function resetPassword(
if (user.flags & UserFlags.DELETED || !(await resetTokenMatchesUser(user, tokenData.email))) {
throw InputValidationError.fromCode('token', ValidationErrorCodes.INVALID_OR_EXPIRED_RESET_TOKEN);
}
- const currentUser = await AuthUtility.handleBanStatus(ctx, user);
+ const currentUser = await AuthUtility.assertSignInAllowed(ctx, user);
if (await isPasswordPwned(ctx, data.password)) {
throw InputValidationError.fromCode('password', ValidationErrorCodes.PASSWORD_IS_TOO_COMMON);
}
diff --git a/fluxer_api/src/api/auth/AuthRecoveryKit.ts b/fluxer_api/src/api/auth/AuthRecoveryKit.ts
index 30644849b..b08afa6d5 100644
--- a/fluxer_api/src/api/auth/AuthRecoveryKit.ts
+++ b/fluxer_api/src/api/auth/AuthRecoveryKit.ts
@@ -159,7 +159,7 @@ export async function recoverAccount(
if (!user || !kit || normalizedKey === null || !keyMatches) {
throw invalidRecoveryKeyError();
}
- const currentUser = await AuthUtility.handleBanStatus(ctx, user);
+ const currentUser = await AuthUtility.assertSignInAllowed(ctx, user);
if (currentUser.traits.has(REGISTRATION_PENDING_APPROVAL_TRAIT)) {
throw new RegistrationPendingApprovalError();
}
diff --git a/fluxer_api/src/api/auth/AuthSession.ts b/fluxer_api/src/api/auth/AuthSession.ts
index 472cf95c2..2d863492d 100644
--- a/fluxer_api/src/api/auth/AuthSession.ts
+++ b/fluxer_api/src/api/auth/AuthSession.ts
@@ -79,9 +79,9 @@ export async function createAuthSession(
): Promise<[token: string, AuthSession]> {
const {users} = ctx.services;
if (user.isBot) throw new BotUserAuthSessionCreationDeniedError();
+ user = await AuthUtility.assertSignInAllowed(ctx, user);
if (user.traits.has(REGISTRATION_PENDING_APPROVAL_TRAIT)) throw new RegistrationPendingApprovalError();
if (user.traits.has(REGISTRATION_REJECTED_TRAIT)) throw new RegistrationRejectedError();
- user = await AuthUtility.handleBanStatus(ctx, user);
user = await AuthUtility.reactivateOnSignIn(ctx, user, getKVAccountDeletionQueue());
const now = new Date();
const token = await AuthUtility.generateAuthToken(ctx);
diff --git a/fluxer_api/src/api/auth/AuthUtility.ts b/fluxer_api/src/api/auth/AuthUtility.ts
index ee9002d8d..10dbff5c4 100644
--- a/fluxer_api/src/api/auth/AuthUtility.ts
+++ b/fluxer_api/src/api/auth/AuthUtility.ts
@@ -3,12 +3,17 @@
import crypto from 'node:crypto';
import {promisify} from 'node:util';
import type {ApiContext} from '@app/api/ApiContext';
+import {createNoticeLookupDeps, loadAccountNotice} from '@app/api/enforcement/EnforcementAccountNotice';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {createNetworkBlockError} from '@app/api/enforcement/NetworkBlockError';
+import {clearExpiredSuspension} from '@app/api/enforcement/SuspensionState';
import type {KVAccountDeletionQueueService} from '@app/api/infrastructure/KVAccountDeletionQueueService';
import {Logger} from '@app/api/Logger';
import type {User} from '@app/api/models/User';
-import {isAccountClosed, isTemporarilyBanned} from '@app/api/user/UserHelpers';
+import {isAccountClosed, isSignInRefused} from '@app/api/user/UserHelpers';
import * as AgeUtils from '@app/api/utils/AgeUtils';
import * as RandomUtils from '@app/api/utils/RandomUtils';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
import {UserFlags} from '@fluxer/constants/src/UserConstants';
import {BotUserAuthEndpointAccessDeniedError} from '@fluxer/errors/src/domains/auth/BotUserAuthEndpointAccessDeniedError';
import {AccountPermanentlySuspendedError} from '@fluxer/errors/src/domains/user/AccountPermanentlySuspendedError';
@@ -22,11 +27,6 @@ interface ValidateAgeParams {
minAge: number;
}
-interface AccountBanStatus {
- isTempBanned: boolean;
- tempBanExpired: boolean;
-}
-
function base62Encode(buffer: Uint8Array): string {
let num = BigInt(`0x${Buffer.from(buffer).toString('hex')}`);
const base = BigInt(ALPHANUMERIC_CHARS.length);
@@ -77,27 +77,44 @@ export function assertNonBotUser(_ctx: ApiContext, user: User): void {
}
}
-function checkAccountBanStatus(_ctx: ApiContext, user: User): AccountBanStatus {
- const hasTempBan = !!(user.flags & UserFlags.DISABLED && user.tempBannedUntil);
- const isTempBanned = isTemporarilyBanned(user);
- return {
- isTempBanned,
- tempBanExpired: hasTempBan && !isTempBanned,
- };
+export function assertNetworkAllowed(ctx: ApiContext): void {
+ const block = ctx.request.blockedNetworkSignIn;
+ if (block) throw createNetworkBlockError(block, ctx.request.locale);
}
-export async function handleBanStatus(ctx: ApiContext, user: User): Promise<User> {
- const {users} = ctx.services;
- if (isAccountClosed(user)) throw new AccountPermanentlySuspendedError();
- const banStatus = checkAccountBanStatus(ctx, user);
- if (banStatus.isTempBanned) {
- throw new AccountTemporarilySuspendedError();
- }
- if (banStatus.tempBanExpired) {
- const patched = await users.patchUpsert(user.id, {temp_banned_until: null}, user.toRow());
- return (await users.updateFlags(user.id, (flags) => flags & ~UserFlags.DISABLED)) ?? patched;
- }
- return user;
+export function assertMfaTicketAllowed(ctx: ApiContext, user: User): void {
+ if (!isSignInRefused(user)) assertNetworkAllowed(ctx);
+}
+
+const HOLDER_OR_HOUSEKEEPING_DELETION_REASONS: ReadonlySet<number> = new Set([
+ DeletionReasons.USER_REQUESTED,
+ DeletionReasons.INACTIVITY,
+]);
+
+function isHolderOrHousekeepingDeletion(user: User): boolean {
+ if (user.enforcementDecisionId !== null) return false;
+ return (
+ (user.flags & UserFlags.SELF_DELETED) !== 0n ||
+ (user.deletionReasonCode !== null && HOLDER_OR_HOUSEKEEPING_DELETION_REASONS.has(user.deletionReasonCode))
+ );
+}
+
+async function refuseRestrictedSignIn(ctx: ApiContext, user: User): Promise<never> {
+ if (isAccountClosed(user) && isHolderOrHousekeepingDeletion(user)) throw new AccountPermanentlySuspendedError(null);
+ const notice = await loadAccountNotice(createNoticeLookupDeps(), user, ctx.request.locale);
+ throw isAccountClosed(user) || notice.permanent
+ ? new AccountPermanentlySuspendedError(notice)
+ : new AccountTemporarilySuspendedError(notice);
+}
+
+export async function assertSignInAllowed(ctx: ApiContext, user: User): Promise<User> {
+ if (isSignInRefused(user)) await refuseRestrictedSignIn(ctx, user);
+ assertNetworkAllowed(ctx);
+ const expiry = await clearExpiredSuspension(
+ {users: ctx.services.users, repository: new EnforcementDecisionRepository()},
+ user,
+ );
+ return expiry?.cleared ?? user;
}
export async function reactivateOnSignIn(
diff --git a/fluxer_api/src/api/auth/services/SsoService.ts b/fluxer_api/src/api/auth/services/SsoService.ts
index 44367f2c7..330f62422 100644
--- a/fluxer_api/src/api/auth/services/SsoService.ts
+++ b/fluxer_api/src/api/auth/services/SsoService.ts
@@ -4,6 +4,7 @@ import {createHash, randomBytes} from 'node:crypto';
import type {ApiContext} from '@app/api/ApiContext';
import {maybeAutoJoinInvite} from '@app/api/auth/AuthRegistration';
import * as AuthSession from '@app/api/auth/AuthSession';
+import * as AuthUtility from '@app/api/auth/AuthUtility';
import {assertEmailNotBlocklisted} from '@app/api/auth/EmailBlocklist';
import {SsoIdentityRepository} from '@app/api/auth/services/SsoIdentityRepository';
import {
@@ -400,6 +401,7 @@ export class SsoService {
if (existingUser) {
return this.bindSsoIdentity(existingUser, claims.sub, config);
}
+ AuthUtility.assertNetworkAllowed(this.apiContext);
if (!config.autoProvision) {
throw new SsoRequiredError();
}
diff --git a/fluxer_api/src/api/auth/tests/AuthSessionCacheInvalidation.test.ts b/fluxer_api/src/api/auth/tests/AuthSessionCacheInvalidation.test.ts
index 163c7a45c..64688d60d 100644
--- a/fluxer_api/src/api/auth/tests/AuthSessionCacheInvalidation.test.ts
+++ b/fluxer_api/src/api/auth/tests/AuthSessionCacheInvalidation.test.ts
@@ -9,6 +9,7 @@ import {
setUserACLs,
type TestAccount,
} from '@app/api/auth/tests/AuthTestUtils';
+import {decisionBody} from '@app/api/enforcement/tests/EnforcementTestUtils';
import type {ApiTestHarness} from '@app/api/test/ApiTestHarness';
import {createBuilder} from '@app/api/test/TestRequestBuilder';
import type {AuthSessionResponse} from '@fluxer/schema/src/domains/auth/AuthSchemas';
@@ -96,7 +97,11 @@ describe('Auth session cache invalidation', () => {
}
await createBuilder(harness, admin.token)
.put(`/admin/users/${target.userId}/ban`)
- .body({duration_hours: 24, reason: 'cache invalidation coverage'})
+ .header('X-Audit-Log-Reason', 'cache invalidation coverage')
+ .body({
+ duration_hours: 24,
+ decision: decisionBody(),
+ })
.execute();
for (const token of [target.token, targetSecond.token]) {
expect(await readCachedSession(harness, token)).toBeNull();
diff --git a/fluxer_api/src/api/auth/tests/UsernameSignIn.test.ts b/fluxer_api/src/api/auth/tests/UsernameSignIn.test.ts
index 8501a94ee..6f035d40d 100644
--- a/fluxer_api/src/api/auth/tests/UsernameSignIn.test.ts
+++ b/fluxer_api/src/api/auth/tests/UsernameSignIn.test.ts
@@ -1038,7 +1038,7 @@ describe('Username sign-in', () => {
const target = await registerUsernameAccount('PendingGone');
await createBuilder(harness, admin.token)
.put(`/admin/users/${target.userId}/deletion`)
- .body({reason_code: 2, days_until_deletion: 30})
+ .body({days_until_deletion: 30, basis: {type: 'holder_request'}})
.execute();
await expectFieldErrors({path: '/auth/register', body: {username: 'pendinggone', password: PASSWORD}}, [
{path: 'username', code: ValidationErrorCodes.USERNAME_ALREADY_TAKEN},
diff --git a/fluxer_api/src/api/channel/tests/AnnouncementChannelConversion.test.ts b/fluxer_api/src/api/channel/tests/AnnouncementChannelConversion.test.ts
index 0844b456b..b6b7833b1 100644
--- a/fluxer_api/src/api/channel/tests/AnnouncementChannelConversion.test.ts
+++ b/fluxer_api/src/api/channel/tests/AnnouncementChannelConversion.test.ts
@@ -332,7 +332,7 @@ describe('Announcement channel conversion', () => {
const announcement = await createChannel(harness, admin.token, guild.id, 'news', ChannelTypes.GUILD_ANNOUNCEMENT);
await createBuilder(harness, admin.token)
.delete(`/admin/guilds/${guild.id}`)
- .body(null)
+ .body({basis: {type: 'holder_request'}})
.expect(HTTP_STATUS.OK)
.execute();
await processRecordedGuildDeletions(worker);
diff --git a/fluxer_api/src/api/channel/tests/CrosspostModeration.test.ts b/fluxer_api/src/api/channel/tests/CrosspostModeration.test.ts
index 159e8f793..cdbba6925 100644
--- a/fluxer_api/src/api/channel/tests/CrosspostModeration.test.ts
+++ b/fluxer_api/src/api/channel/tests/CrosspostModeration.test.ts
@@ -97,6 +97,7 @@ async function createAdmin(harness: ApiTestHarness): Promise<TestAccount> {
async function adminDeleteMessage(harness: ApiTestHarness, admin: TestAccount, channelId: string, messageId: string) {
await createBuilder(harness, admin.token)
.delete(`/admin/channels/${channelId}/messages/${messageId}`)
+ .body({basis: {type: 'housekeeping'}})
.expect(HTTP_STATUS.OK)
.execute();
}
diff --git a/fluxer_api/src/api/channel/tests/CrosspostPropagation.test.ts b/fluxer_api/src/api/channel/tests/CrosspostPropagation.test.ts
index 135893909..ce65fffef 100644
--- a/fluxer_api/src/api/channel/tests/CrosspostPropagation.test.ts
+++ b/fluxer_api/src/api/channel/tests/CrosspostPropagation.test.ts
@@ -479,6 +479,7 @@ describe('Crosspost propagation', () => {
const admin = await setUserACLs(harness, world.a.member, [AdminACLs.AUTHENTICATE, AdminACLs.MESSAGE_DELETE]);
await createBuilder(harness, admin.token)
.delete(`/admin/channels/${world.a.ann.id}/messages/${source.id}`)
+ .body({basis: {type: 'housekeeping'}})
.expect(200)
.execute();
await world.worker.drain();
diff --git a/fluxer_api/src/api/channel/tests/EmbedAttachmentPurge.test.ts b/fluxer_api/src/api/channel/tests/EmbedAttachmentPurge.test.ts
index d1da4bc75..9756f5b4d 100644
--- a/fluxer_api/src/api/channel/tests/EmbedAttachmentPurge.test.ts
+++ b/fluxer_api/src/api/channel/tests/EmbedAttachmentPurge.test.ts
@@ -254,6 +254,7 @@ describe('Embed attachment purge', () => {
const admin = await createAdmin();
await createBuilder(harness, admin.token)
.delete(`/admin/channels/${channelId}/messages/${message.id}`)
+ .body({basis: {type: 'housekeeping'}})
.expect(HTTP_STATUS.OK)
.execute();
expect(deletedKeys()).toEqual(expect.arrayContaining(keys));
diff --git a/fluxer_api/src/api/channel/tests/MessageCrosspostFanout.test.ts b/fluxer_api/src/api/channel/tests/MessageCrosspostFanout.test.ts
index 42ac30e87..0a05245e9 100644
--- a/fluxer_api/src/api/channel/tests/MessageCrosspostFanout.test.ts
+++ b/fluxer_api/src/api/channel/tests/MessageCrosspostFanout.test.ts
@@ -912,6 +912,7 @@ describe('Crosspost fan-out', () => {
const admin = await setUserACLs(harness, world.a.member, [AdminACLs.AUTHENTICATE, AdminACLs.MESSAGE_DELETE]);
await createBuilder(harness, admin.token)
.delete(`/admin/channels/${world.a.ann.id}/messages/${message.id}`)
+ .body({basis: {type: 'housekeeping'}})
.expect(200)
.execute();
gate.release();
diff --git a/fluxer_api/src/api/channel/tests/ThreadMessageLifecycle.test.ts b/fluxer_api/src/api/channel/tests/ThreadMessageLifecycle.test.ts
index 56174fae1..ace1519eb 100644
--- a/fluxer_api/src/api/channel/tests/ThreadMessageLifecycle.test.ts
+++ b/fluxer_api/src/api/channel/tests/ThreadMessageLifecycle.test.ts
@@ -173,6 +173,7 @@ describe('thread message lifecycle', () => {
const admin = await setUserACLs(harness, await createTestAccount(harness), [AdminACLs.WILDCARD]);
await createBuilder(harness, admin.token)
.delete(`/admin/channels/${thread.id}/messages/${first.id}`)
+ .body({basis: {type: 'housekeeping'}})
.expect(200)
.execute();
expect(await messageCount(s.member.token, thread.id)).toBe(1);
diff --git a/fluxer_api/src/api/content_i18n/ContentI18n.ts b/fluxer_api/src/api/content_i18n/ContentI18n.ts
index 8105344c1..45c476c95 100644
--- a/fluxer_api/src/api/content_i18n/ContentI18n.ts
+++ b/fluxer_api/src/api/content_i18n/ContentI18n.ts
@@ -14,7 +14,7 @@ import {validateMessageTemplateVariables} from '@fluxer/i18n/src/runtime/Message
const DEFAULT_LOCALE = 'en-US';
type ContentI18nRuntimeVariables = Record<string, unknown>;
-type ContentI18nMessageArgs<TKey extends ContentI18nKey> = TKey extends ContentI18nKey
+export type ContentI18nMessageArgs<TKey extends ContentI18nKey> = TKey extends ContentI18nKey
? MessageArgsForTemplate<ContentI18nCatalog[TKey]>
: never;
@@ -33,6 +33,10 @@ const contentI18n = createStaticI18n<ContentI18nKey, string, ContentI18nRuntimeV
},
);
+export function resolveContentLocale(locale: string | null | undefined): string {
+ return locale && Object.hasOwn(CONTENT_I18N_LOCALE_MESSAGES, locale) ? locale : DEFAULT_LOCALE;
+}
+
export function getContentMessage<TKey extends ContentI18nKey>(
key: TKey,
locale: string | null | undefined,
diff --git a/fluxer_api/src/api/content_i18n/ContentI18nMessages.ts b/fluxer_api/src/api/content_i18n/ContentI18nMessages.ts
index 5ed36e9b2..9d3dc992c 100644
--- a/fluxer_api/src/api/content_i18n/ContentI18nMessages.ts
+++ b/fluxer_api/src/api/content_i18n/ContentI18nMessages.ts
@@ -12,6 +12,141 @@ export const CONTENT_I18N_MESSAGES = {
'bulk_message_deletion.complete':
'We finished deleting your messages. We removed {message_count, plural, =0 {0 messages} one {# message} other {# messages}} from {channel_count, plural, =0 {0 places} one {# place} other {# places}}.',
'content.virus_detected': 'That file was flagged as potentially unsafe and has been removed.',
+ 'enforcement.automation.automated':
+ 'This is a temporary limit applied automatically while a person on our team reviews it.',
+ 'enforcement.automation.flagged':
+ 'Automated tools flagged this. A person on our team reviewed it and made the decision.',
+ 'enforcement.automation.none': 'A person on our team reviewed this and made the decision.',
+ 'enforcement.effect.account_not_restricted': 'Your account is not otherwise restricted.',
+ 'enforcement.effect.closure':
+ "{target, select, bot {The bot can't connect or act anywhere. We'll delete it and its data on {deletion_at}. Your own account is not restricted.} other {You can't sign in or use {product_name} anywhere. We'll delete the account and its data on {deletion_at}, except data we have to keep by law.}}",
+ 'enforcement.effect.community_removed':
+ 'The community and its channels and messages are no longer available to anyone. Your own account is not restricted.',
+ 'enforcement.effect.limit_direct_messages':
+ 'Your one-to-one messages and friend requests are not delivered, and your profile is hidden. In communities and group conversations, people see your messages collapsed and marked as possible spam.',
+ 'enforcement.effect.limit_purchases':
+ "{review, select, yes {You can't make purchases on {product_name} until a person on our team reviews this.} other {You can't make purchases on {product_name}.}}",
+ 'enforcement.effect.limit_reports':
+ "{safety_route, select, yes {You can't send reports in the app until then. To report illegal content, use the safety route on our [company information page]({url}).} other {You can't send reports in the app until then.}}",
+ 'enforcement.effect.messages_removed': 'We also removed {count, plural, =1 {# message} other {# messages}}.',
+ 'enforcement.effect.networks_blocked': 'We also blocked access from networks this account used until {date}.',
+ 'enforcement.effect.no_other_accounts': 'You may not create or use other accounts.',
+ 'enforcement.effect.scope': 'This decision applies everywhere {product_name} is available.',
+ 'enforcement.effect.suspension':
+ "{target, select, bot {The bot can't connect or act anywhere until then. Your own account is not restricted.} other {You can't sign in or use {product_name} anywhere until then. Your account, messages and communities are kept.}}",
+ 'enforcement.effect.suspension_permanent':
+ "{target, select, bot {The bot can't connect or act anywhere. Your own account is not restricted.} other {You can't sign in or use {product_name} anywhere.}}",
+ 'enforcement.effect.warning': 'Your account is not restricted. If this happens again, we may limit or suspend it.',
+ 'enforcement.facts.channel':
+ '{count, plural, =1 {# message} other {# messages}} in #{channel} of {community}, {range, select, single {on {start}} other {between {start} and {end}}}.',
+ 'enforcement.facts.community_channel':
+ '{count, plural, =1 {# message} other {# messages}} posted in #{channel}, {range, select, single {on {start}} other {between {start} and {end}}}.',
+ 'enforcement.facts.copyright': 'Rights holder or right concerned: {rights_holder}.',
+ 'enforcement.facts.direct_message':
+ '{count, plural, =1 {# message} other {# messages}} in a direct message conversation, {range, select, single {on {start}} other {between {start} and {end}}}.',
+ 'enforcement.facts.direct_message_month':
+ '{count, plural, =1 {# message} other {# messages}} in a direct message conversation in {month}.',
+ 'enforcement.facts.group_message':
+ '{count, plural, =1 {# message} other {# messages}} in a group conversation, {range, select, single {on {start}} other {between {start} and {end}}}.',
+ 'enforcement.facts.group_message_month':
+ '{count, plural, =1 {# message} other {# messages}} in a group conversation in {month}.',
+ 'enforcement.facts.payment': 'A payment on your account on {date}.',
+ 'enforcement.facts.profile': 'Your profile: {fields}.',
+ 'enforcement.facts.unknown_location':
+ '{count, plural, =1 {# message} other {# messages}} in a conversation that no longer exists, {range, select, single {on {start}} other {between {start} and {end}}}.',
+ 'enforcement.lead.adult_content': 'We found sexual content from your account outside a space marked 18+.',
+ 'enforcement.lead.age_requirement':
+ "You need to meet the minimum age in your country to use {product_name}. This isn't a punishment, and you're welcome back once you're old enough.",
+ 'enforcement.lead.automation':
+ 'We found automated activity from your account that disrupted normal use of the service.',
+ 'enforcement.lead.ban_evasion': 'We found that this account was used to get around a restriction on another account.',
+ 'enforcement.lead.bot': 'We found activity from your bot that breaks this rule.',
+ 'enforcement.lead.child_safety':
+ 'We found content or activity on your account that breaks our rules on protecting children.',
+ 'enforcement.lead.community': 'We found content in this community that breaks this rule.',
+ 'enforcement.lead.copyright': "We found content from your account that uses someone else's work without permission.",
+ 'enforcement.lead.fraud':
+ 'We found content from your account that tried to trick people out of money, accounts or personal information.',
+ 'enforcement.lead.harassment': 'We found messages from your account that harassed or bullied someone.',
+ 'enforcement.lead.harmful_deception':
+ 'We found content from your account that spread false claims likely to cause serious harm.',
+ 'enforcement.lead.hate': 'We found content from your account that attacks or demeans people for who they are.',
+ 'enforcement.lead.illegal_activity':
+ 'We found content from your account that offers or helps with illegal goods or activity.',
+ 'enforcement.lead.impersonation':
+ 'We found that your account pretended to be another person or organization, or used a fake identity to mislead people.',
+ 'enforcement.lead.intimate_images':
+ 'We found that your account shared intimate images of someone without their consent.',
+ 'enforcement.lead.legacy': "We don't have more detail on record for this decision.",
+ 'enforcement.lead.malware':
+ 'We found links or files from your account that lead to malware or other harmful software.',
+ 'enforcement.lead.payments': 'We found a payment issue on your account that breaks our payment terms.',
+ 'enforcement.lead.privacy': "We found that your account shared someone's personal information without their consent.",
+ 'enforcement.lead.raids': 'We found that your account took part in a coordinated attack on a community or a person.',
+ 'enforcement.lead.report_abuse':
+ 'We found that your account repeatedly sent reports that were false or made in bad faith.',
+ 'enforcement.lead.self_harm':
+ 'We found content from your account that encourages or gives instructions for self-harm.',
+ 'enforcement.lead.service_abuse':
+ 'We found that your account used {product_name} in a way that interferes with the service or gets around its limits.',
+ 'enforcement.lead.spam': 'We found that your account sent unwanted messages in bulk.',
+ 'enforcement.lead.threats': 'We found messages from your account that threatened or encouraged violence.',
+ 'enforcement.lead.unwanted_sexual_content':
+ "We found that your account sent sexual content to someone who hadn't agreed to receive it.",
+ 'enforcement.lead.violent_content': 'We found that your account shared graphic violence or gore.',
+ 'enforcement.lead.violent_extremism':
+ 'We found content or activity on your account that breaks our rules on terrorism and violent extremism.',
+ 'enforcement.profile_field.avatar': 'avatar',
+ 'enforcement.profile_field.banner': 'banner',
+ 'enforcement.profile_field.bio': 'bio',
+ 'enforcement.profile_field.global_name': 'display name',
+ 'enforcement.profile_field.pronouns': 'pronouns',
+ 'enforcement.redress.out_of_court':
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies]({url}).",
+ 'enforcement.redress.regulator_and_court':
+ 'You can also complain to the Digital Services Coordinator in your EU country, or go to court.',
+ 'enforcement.rule.adult_content': 'Adult content outside 18+ spaces',
+ 'enforcement.rule.age_requirement': 'Minimum age',
+ 'enforcement.rule.automation': 'Disruptive automation',
+ 'enforcement.rule.ban_evasion': 'Evading restrictions',
+ 'enforcement.rule.child_safety': 'Child safety',
+ 'enforcement.rule.copyright': 'Copyright',
+ 'enforcement.rule.fraud': 'Scams and fraud',
+ 'enforcement.rule.harassment': 'Harassment',
+ 'enforcement.rule.harmful_deception': 'Harmful deception',
+ 'enforcement.rule.hate': 'Hate and discrimination',
+ 'enforcement.rule.illegal_activity': 'Illegal and dangerous activity',
+ 'enforcement.rule.impersonation': 'Impersonation and fake accounts',
+ 'enforcement.rule.intimate_images': 'Intimate images shared without consent',
+ 'enforcement.rule.malware': 'Malicious links and malware',
+ 'enforcement.rule.payments': 'Payments',
+ 'enforcement.rule.privacy': 'Privacy and personal information',
+ 'enforcement.rule.raids': 'Raids and coordinated attacks',
+ 'enforcement.rule.report_abuse': 'Misuse of reporting',
+ 'enforcement.rule.self_harm': 'Promoting self-harm',
+ 'enforcement.rule.service_abuse': 'Service abuse',
+ 'enforcement.rule.spam': 'Spam',
+ 'enforcement.rule.threats': 'Threats of violence',
+ 'enforcement.rule.unwanted_sexual_content': 'Unwanted sexual content',
+ 'enforcement.rule.violent_content': 'Graphic violence',
+ 'enforcement.rule.violent_extremism': 'Terrorism and violent extremism',
+ 'enforcement.source.own_review': 'We found this in our own review.',
+ 'enforcement.source.report': 'We reviewed this after a report.',
+ 'enforcement.summary.closure':
+ '{target, select, bot {We closed your bot {bot_name}.} other {We closed your account.}}',
+ 'enforcement.summary.community_removal': 'We removed your community {community_name}.',
+ 'enforcement.summary.content_removal':
+ '{all, select, yes {We removed all messages you sent.} other {We removed {count, plural, =1 {# message} other {# messages}} you sent.}}',
+ 'enforcement.summary.feature_limit':
+ '{ends, select, yes {We limited a feature on your account until {ends_at}.} other {We limited a feature on your account.}}',
+ 'enforcement.summary.profile_reset': 'We reset parts of your profile: {fields}.',
+ 'enforcement.summary.suspension':
+ '{target, select, bot {We suspended your bot {bot_name} until {ends_at}.} other {We suspended your account until {ends_at}.}}',
+ 'enforcement.summary.suspension_permanent':
+ '{target, select, bot {We banned your bot {bot_name}.} other {We banned your account.}}',
+ 'enforcement.summary.warning': "We're warning you about activity on your account.",
+ 'enforcement.welfare.self_harm':
+ "If you're going through a hard time, you don't have to deal with it alone. [Section 3 of our community guidelines]({url}) lists support lines.",
'guild.bulk_create.emoji_limit': 'Maximum number of emojis reached ({limit}).',
'guild.bulk_create.sticker_limit': 'Maximum number of stickers reached ({limit}).',
'guild.bulk_create.unknown_error': 'Unknown error.',
diff --git a/fluxer_api/src/api/content_i18n/JoinLocalizedList.ts b/fluxer_api/src/api/content_i18n/JoinLocalizedList.ts
new file mode 100644
index 000000000..0ad30aaca
--- /dev/null
+++ b/fluxer_api/src/api/content_i18n/JoinLocalizedList.ts
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {resolveContentLocale} from '@app/api/content_i18n/ContentI18n';
+
+const LIST_SEPARATORS: Readonly<Record<string, string>> = {
+ ar: '، ',
+ ja: '、',
+ 'zh-CN': '、',
+ 'zh-TW': '、',
+};
+
+export function joinLocalizedList(items: ReadonlyArray<string>, locale: string | null | undefined): string {
+ return items.join(LIST_SEPARATORS[resolveContentLocale(locale)] ?? ', ');
+}
diff --git a/fluxer_api/src/api/content_i18n/locales/auto-i18n-reviewed-unchanged.json b/fluxer_api/src/api/content_i18n/locales/auto-i18n-reviewed-unchanged.json
index 9dffa1f2f..d0d634649 100644
--- a/fluxer_api/src/api/content_i18n/locales/auto-i18n-reviewed-unchanged.json
+++ b/fluxer_api/src/api/content_i18n/locales/auto-i18n-reviewed-unchanged.json
@@ -1,5 +1,6 @@
{
"en-GB": [
+ ["enforcement.effect.scope","This decision applies everywhere {product_name} is available."],
["report_flow.label.abuse","Abusive or harmful content"],
["report_flow.label.age_no_message","No, it doesn't mention it"],
["report_flow.label.age_no_profile","No, it doesn't mention it"],
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/ar.json b/fluxer_api/src/api/content_i18n/weblate/locales/ar.json
index 2d4e66eec..75350183f 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/ar.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/ar.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "إذا كنت مستهلكًا في الاتحاد الأوروبي/المنطقة الاقتصادية الأوروبية، فإنني أوافق صراحةً على إتاحة المحتوى الرقمي لـ {product_name} {premium_tier_name} فورًا، وأقرّ بأنني أفقد حقي القانوني في العدول بمجرد إتاحة الوصول إليه. لا يؤثر هذا على حقوق المستهلك الإلزامية الأخرى. اطّلع على [شروط الخدمة]({terms_url}).",
"bulk_message_deletion.complete": "انتهينا من حذف رسائلك. أزلنا {message_count, plural, =0 {0 رسالة} one {رسالة واحدة} two {رسالتين} few {# رسائل} many {# رسالة} other {# رسالة}} من {channel_count, plural, =0 {0 مكان} one {مكان واحد} two {مكانين} few {# أماكن} many {# مكانًا} other {# مكان}}.",
"content.virus_detected": "تم الإبلاغ عن هذا الملف على أنه قد يكون غير آمن وتمت إزالته.",
+ "enforcement.automation.automated": "هذا تقييد مؤقت طُبّق تلقائيًا ريثما يراجعه شخص من فريقنا.",
+ "enforcement.automation.flagged": "وضعت أدوات آلية علامة على هذا الأمر. راجعه شخص من فريقنا واتخذ القرار.",
+ "enforcement.automation.none": "راجع شخص من فريقنا هذا الأمر واتخذ القرار.",
+ "enforcement.effect.account_not_restricted": "لا توجد قيود أخرى على حسابك.",
+ "enforcement.effect.closure": "{target, select, bot {لا يمكن للبوت الاتصال أو تنفيذ أي إجراء في أي مكان. سنحذف البوت وبياناته في {deletion_at}. حسابك الشخصي غير مقيّد.} other {لا يمكنك تسجيل الدخول أو استخدام {product_name} في أي مكان. سنحذف الحساب وبياناته في {deletion_at}، باستثناء البيانات التي يلزمنا القانون بالاحتفاظ بها.}}",
+ "enforcement.effect.community_removed": "لم يعد المجتمع وقنواته ورسائله متاحة لأي أحد. حسابك الشخصي غير مقيّد.",
+ "enforcement.effect.limit_direct_messages": "لا تصل رسائلك في المحادثات الفردية ولا طلبات الصداقة التي ترسلها، ويُخفى ملفك الشخصي. في المجتمعات والمحادثات الجماعية، يرى الآخرون رسائلك مطوية ومعلّمة على أنها قد تكون رسائل مزعجة.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {لا يمكنك إجراء عمليات شراء على {product_name} حتى يراجع شخص من فريقنا هذا الأمر.} other {لا يمكنك إجراء عمليات شراء على {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {لا يمكنك إرسال بلاغات داخل التطبيق حتى ذلك الحين. للإبلاغ عن محتوى غير قانوني، استخدم مسار السلامة في [صفحة معلومات شركتنا]({url}).} other {لا يمكنك إرسال بلاغات داخل التطبيق حتى ذلك الحين.}}",
+ "enforcement.effect.messages_removed": "أزلنا أيضًا {count, plural, =1 {رسالة واحدة} two {رسالتين} few {# رسائل} many {# رسالة} other {# رسالة}}.",
+ "enforcement.effect.networks_blocked": "حجبنا أيضًا حتى {date} الوصول من الشبكات التي استخدمها هذا الحساب.",
+ "enforcement.effect.no_other_accounts": "لا يجوز لك إنشاء حسابات أخرى أو استخدامها.",
+ "enforcement.effect.scope": "ينطبق هذا القرار في كل مكان يتوفر فيه {product_name}.",
+ "enforcement.effect.suspension": "{target, select, bot {لا يمكن للبوت الاتصال أو تنفيذ أي إجراء في أي مكان حتى ذلك الحين. حسابك الشخصي غير مقيّد.} other {لا يمكنك تسجيل الدخول أو استخدام {product_name} في أي مكان حتى ذلك الحين. نحتفظ بحسابك ورسائلك ومجتمعاتك.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {لا يمكن للبوت الاتصال أو تنفيذ أي إجراء في أي مكان. حسابك الشخصي غير مقيّد.} other {لا يمكنك تسجيل الدخول أو استخدام {product_name} في أي مكان.}}",
+ "enforcement.effect.warning": "حسابك غير مقيّد. إذا تكرر هذا، فقد نقيّده أو نعلّقه.",
+ "enforcement.facts.channel": "{count, plural, =1 {رسالة واحدة} two {رسالتان} few {# رسائل} many {# رسالة} other {# رسالة}} في #{channel} ضمن {community}، {range, select, single {في {start}} other {بين {start} و{end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, =1 {رسالة واحدة} two {رسالتان} few {# رسائل} many {# رسالة} other {# رسالة}} نُشرت في #{channel}، {range, select, single {في {start}} other {بين {start} و{end}}}.",
+ "enforcement.facts.copyright": "صاحب الحق أو الحق المعني: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {رسالة واحدة} two {رسالتان} few {# رسائل} many {# رسالة} other {# رسالة}} في محادثة رسائل مباشرة، {range, select, single {في {start}} other {بين {start} و{end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {رسالة واحدة} two {رسالتان} few {# رسائل} many {# رسالة} other {# رسالة}} في محادثة رسائل مباشرة خلال {month}.",
+ "enforcement.facts.group_message": "{count, plural, =1 {رسالة واحدة} two {رسالتان} few {# رسائل} many {# رسالة} other {# رسالة}} في محادثة جماعية، {range, select, single {في {start}} other {بين {start} و{end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {رسالة واحدة} two {رسالتان} few {# رسائل} many {# رسالة} other {# رسالة}} في محادثة جماعية خلال {month}.",
+ "enforcement.facts.payment": "عملية دفع على حسابك بتاريخ {date}.",
+ "enforcement.facts.profile": "ملفك الشخصي: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {رسالة واحدة} two {رسالتان} few {# رسائل} many {# رسالة} other {# رسالة}} في محادثة لم تعد موجودة، {range, select, single {في {start}} other {بين {start} و{end}}}.",
+ "enforcement.lead.adult_content": "وجدنا محتوى جنسيًا من حسابك خارج مساحة مصنّفة 18+.",
+ "enforcement.lead.age_requirement": "يجب أن تبلغ الحد الأدنى للسن في بلدك لاستخدام {product_name}. هذا ليس عقوبة، ونرحب بعودتك عندما تبلغ السن المطلوبة.",
+ "enforcement.lead.automation": "وجدنا نشاطًا آليًا من حسابك عطّل الاستخدام العادي للخدمة.",
+ "enforcement.lead.ban_evasion": "وجدنا أن هذا الحساب استُخدم للتحايل على تقييد مفروض على حساب آخر.",
+ "enforcement.lead.bot": "وجدنا نشاطًا من البوت الخاص بك يخالف هذه القاعدة.",
+ "enforcement.lead.child_safety": "وجدنا محتوى أو نشاطًا في حسابك يخالف قواعدنا الخاصة بحماية الأطفال.",
+ "enforcement.lead.community": "وجدنا محتوى في هذا المجتمع يخالف هذه القاعدة.",
+ "enforcement.lead.copyright": "وجدنا محتوى من حسابك يستخدم عمل شخص آخر دون إذن.",
+ "enforcement.lead.fraud": "وجدنا محتوى من حسابك حاول خداع الناس للاستيلاء على أموالهم أو حساباتهم أو معلوماتهم الشخصية.",
+ "enforcement.lead.harassment": "وجدنا رسائل من حسابك تضمنت مضايقة شخص ما أو التنمر عليه.",
+ "enforcement.lead.harmful_deception": "وجدنا محتوى من حسابك نشر ادعاءات كاذبة يُرجّح أن تسبب ضررًا جسيمًا.",
+ "enforcement.lead.hate": "وجدنا محتوى من حسابك يهاجم الناس أو يحط من قدرهم بسبب هويتهم.",
+ "enforcement.lead.illegal_activity": "وجدنا محتوى من حسابك يعرض سلعًا أو أنشطة غير قانونية أو يساعد عليها.",
+ "enforcement.lead.impersonation": "وجدنا أن حسابك انتحل شخصية شخص آخر أو جهة أخرى، أو استخدم هوية مزيفة لتضليل الناس.",
+ "enforcement.lead.intimate_images": "وجدنا أن حسابك شارك صورًا حميمة لشخص ما دون موافقته.",
+ "enforcement.lead.legacy": "لا تتوفر لدينا تفاصيل إضافية مسجلة عن هذا القرار.",
+ "enforcement.lead.malware": "وجدنا روابط أو ملفات من حسابك تؤدي إلى برامج ضارة أو برمجيات مؤذية أخرى.",
+ "enforcement.lead.payments": "وجدنا مشكلة في الدفع على حسابك تخالف شروط الدفع لدينا.",
+ "enforcement.lead.privacy": "وجدنا أن حسابك شارك معلومات شخصية لشخص ما دون موافقته.",
+ "enforcement.lead.raids": "وجدنا أن حسابك شارك في هجوم منسق على مجتمع أو شخص.",
+ "enforcement.lead.report_abuse": "وجدنا أن حسابك أرسل مرارًا بلاغات كاذبة أو مقدَّمة بسوء نية.",
+ "enforcement.lead.self_harm": "وجدنا محتوى من حسابك يشجع على إيذاء النفس أو يقدم تعليمات لذلك.",
+ "enforcement.lead.service_abuse": "وجدنا أن حسابك استخدم {product_name} بطريقة تعرقل الخدمة أو تتحايل على حدودها.",
+ "enforcement.lead.spam": "وجدنا أن حسابك أرسل رسائل غير مرغوب فيها بكميات كبيرة.",
+ "enforcement.lead.threats": "وجدنا رسائل من حسابك تضمنت تهديدًا بالعنف أو تحريضًا عليه.",
+ "enforcement.lead.unwanted_sexual_content": "وجدنا أن حسابك أرسل محتوى جنسيًا إلى شخص لم يوافق على تلقيه.",
+ "enforcement.lead.violent_content": "وجدنا أن حسابك شارك مشاهد عنف صادمة أو دموية.",
+ "enforcement.lead.violent_extremism": "وجدنا محتوى أو نشاطًا في حسابك يخالف قواعدنا بشأن الإرهاب والتطرف العنيف.",
+ "enforcement.profile_field.avatar": "الصورة الرمزية",
+ "enforcement.profile_field.banner": "اللافتة",
+ "enforcement.profile_field.bio": "النبذة الشخصية",
+ "enforcement.profile_field.global_name": "اسم العرض",
+ "enforcement.profile_field.pronouns": "الضمائر",
+ "enforcement.redress.out_of_court": "إذا كنت في الاتحاد الأوروبي، يمكنك أيضًا إحالة هذا القرار إلى هيئة معتمدة لتسوية النزاعات خارج المحاكم. لدى المفوضية الأوروبية [قائمة بهذه الهيئات]({url}).",
+ "enforcement.redress.regulator_and_court": "يمكنك أيضًا تقديم شكوى إلى منسق الخدمات الرقمية (Digital Services Coordinator) في بلدك في الاتحاد الأوروبي، أو اللجوء إلى القضاء.",
+ "enforcement.rule.adult_content": "محتوى للبالغين خارج مساحات 18+",
+ "enforcement.rule.age_requirement": "الحد الأدنى للسن",
+ "enforcement.rule.automation": "الأتمتة التي تعرقل الخدمة",
+ "enforcement.rule.ban_evasion": "التحايل على القيود",
+ "enforcement.rule.child_safety": "سلامة الأطفال",
+ "enforcement.rule.copyright": "حقوق الطبع والنشر",
+ "enforcement.rule.fraud": "الاحتيال والنصب",
+ "enforcement.rule.harassment": "المضايقة",
+ "enforcement.rule.harmful_deception": "الخداع الضار",
+ "enforcement.rule.hate": "الكراهية والتمييز",
+ "enforcement.rule.illegal_activity": "الأنشطة غير القانونية والخطرة",
+ "enforcement.rule.impersonation": "انتحال الشخصية والحسابات المزيفة",
+ "enforcement.rule.intimate_images": "مشاركة صور حميمة دون موافقة",
+ "enforcement.rule.malware": "الروابط الضارة والبرامج الضارة",
+ "enforcement.rule.payments": "المدفوعات",
+ "enforcement.rule.privacy": "الخصوصية والمعلومات الشخصية",
+ "enforcement.rule.raids": "الهجمات الجماعية والمنسقة",
+ "enforcement.rule.report_abuse": "إساءة استخدام البلاغات",
+ "enforcement.rule.self_harm": "الترويج لإيذاء النفس",
+ "enforcement.rule.service_abuse": "إساءة استخدام الخدمة",
+ "enforcement.rule.spam": "الرسائل المزعجة",
+ "enforcement.rule.threats": "التهديد بالعنف",
+ "enforcement.rule.unwanted_sexual_content": "المحتوى الجنسي غير المرغوب فيه",
+ "enforcement.rule.violent_content": "العنف الصادم",
+ "enforcement.rule.violent_extremism": "الإرهاب والتطرف العنيف",
+ "enforcement.source.own_review": "اكتشفنا هذا الأمر ضمن مراجعتنا الخاصة.",
+ "enforcement.source.report": "راجعنا هذا الأمر بعد تلقي بلاغ.",
+ "enforcement.summary.closure": "{target, select, bot {أغلقنا البوت الخاص بك {bot_name}.} other {أغلقنا حسابك.}}",
+ "enforcement.summary.community_removal": "أزلنا مجتمعك {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {أزلنا كل الرسائل التي أرسلتها.} other {أزلنا {count, plural, =1 {رسالة واحدة} two {رسالتين} few {# رسائل} many {# رسالة} other {# رسالة}} أرسلتها.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {قيّدنا ميزة في حسابك حتى {ends_at}.} other {قيّدنا ميزة في حسابك.}}",
+ "enforcement.summary.profile_reset": "أعدنا تعيين أجزاء من ملفك الشخصي: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {علّقنا البوت الخاص بك {bot_name} حتى {ends_at}.} other {علّقنا حسابك حتى {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {حظرنا البوت الخاص بك {bot_name}.} other {حظرنا حسابك.}}",
+ "enforcement.summary.warning": "نوجّه إليك تحذيرًا بشأن نشاط في حسابك.",
+ "enforcement.welfare.self_harm": "إذا كنت تمر بوقت عصيب، فلست مضطرًا لمواجهة ذلك وحدك. يسرد [القسم 3 من إرشادات مجتمعنا]({url}) خطوط الدعم.",
"guild.bulk_create.emoji_limit": "تم الوصول إلى الحد الأقصى لعدد الرموز التعبيرية ({limit}).",
"guild.bulk_create.sticker_limit": "تم الوصول إلى الحد الأقصى لعدد الملصقات ({limit}).",
"guild.bulk_create.unknown_error": "حدث خطأ غير معروف.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/bg.json b/fluxer_api/src/api/content_i18n/weblate/locales/bg.json
index c7d16c136..69dc3de2f 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/bg.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/bg.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Ако съм потребител от ЕС/ЕИП, изрично се съгласявам цифровото съдържание на {product_name} {premium_tier_name} да бъде предоставено незабавно и признавам, че губя законното си право на отказ, след като достъпът бъде предоставен. Това не засяга други задължителни потребителски права. Виж [Условията за ползване]({terms_url}).",
"bulk_message_deletion.complete": "Изтриването на съобщенията ти приключи. Премахнахме {message_count, plural, =0 {0 съобщения} one {# съобщение} other {# съобщения}} от {channel_count, plural, =0 {0 места} one {# място} other {# места}}.",
"content.virus_detected": "Този файл беше маркиран като потенциално опасен и е премахнат.",
+ "enforcement.automation.automated": "Това е временно ограничение, наложено автоматично, докато човек от екипа ни го преглежда.",
+ "enforcement.automation.flagged": "Автоматизирани инструменти отбелязаха това. Човек от екипа ни го прегледа и взе решението.",
+ "enforcement.automation.none": "Човек от екипа ни прегледа това и взе решението.",
+ "enforcement.effect.account_not_restricted": "Акаунтът ти не е ограничен по друг начин.",
+ "enforcement.effect.closure": "{target, select, bot {Ботът не може никъде да се свързва и да извършва действия. На {deletion_at} ще изтрием бота и данните му. Собственият ти акаунт не е ограничен.} other {Не можеш никъде да влизаш и да използваш {product_name}. На {deletion_at} ще изтрием акаунта и данните му, с изключение на данните, които сме длъжни да пазим по закон.}}",
+ "enforcement.effect.community_removed": "Общността, каналите и съобщенията ѝ вече не са достъпни за никого. Собственият ти акаунт не е ограничен.",
+ "enforcement.effect.limit_direct_messages": "Съобщенията ти в разговори един на един и поканите ти за приятелство не се доставят, а профилът ти е скрит. В общностите и груповите разговори хората виждат съобщенията ти свити и отбелязани като възможен спам.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Не можеш да правиш покупки във {product_name}, докато човек от екипа ни не прегледа това.} other {Не можеш да правиш покупки във {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Дотогава не можеш да изпращаш сигнали в приложението. За да подадеш сигнал за незаконно съдържание, използвай контакта за безопасност на [страницата с информация за компанията ни]({url}).} other {Дотогава не можеш да изпращаш сигнали в приложението.}}",
+ "enforcement.effect.messages_removed": "Премахнахме и {count, plural, one {# съобщение} other {# съобщения}}.",
+ "enforcement.effect.networks_blocked": "Блокирахме и достъпа до {date} от мрежите, които този акаунт е използвал.",
+ "enforcement.effect.no_other_accounts": "Забранено ти е да създаваш или използваш други акаунти.",
+ "enforcement.effect.scope": "Това решение важи навсякъде, където може да се използва {product_name}.",
+ "enforcement.effect.suspension": "{target, select, bot {Дотогава ботът не може никъде да се свързва и да извършва действия. Собственият ти акаунт не е ограничен.} other {Дотогава не можеш никъде да влизаш и да използваш {product_name}. Акаунтът, съобщенията и общностите ти се запазват.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Ботът не може никъде да се свързва и да извършва действия. Собственият ти акаунт не е ограничен.} other {Не можеш никъде да влизаш и да използваш {product_name}.}}",
+ "enforcement.effect.warning": "Акаунтът ти не е ограничен. Ако това се повтори, може да го ограничим или спрем.",
+ "enforcement.facts.channel": "{count, plural, one {# съобщение} other {# съобщения}} в канала #{channel} на общността {community}, {range, select, single {на {start}} other {между {start} и {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# съобщение, публикувано} other {# съобщения, публикувани}} в канала #{channel}, {range, select, single {на {start}} other {между {start} и {end}}}.",
+ "enforcement.facts.copyright": "Носител на правата или засегнатото право: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# съобщение} other {# съобщения}} в разговор с директни съобщения, {range, select, single {на {start}} other {между {start} и {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# съобщение} other {# съобщения}} в разговор с директни съобщения през {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# съобщение} other {# съобщения}} в групов разговор, {range, select, single {на {start}} other {между {start} и {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# съобщение} other {# съобщения}} в групов разговор през {month}.",
+ "enforcement.facts.payment": "Плащане в акаунта ти на {date}.",
+ "enforcement.facts.profile": "Профилът ти: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# съобщение} other {# съобщения}} в разговор, който вече не съществува, {range, select, single {на {start}} other {между {start} и {end}}}.",
+ "enforcement.lead.adult_content": "Открихме сексуално съдържание от акаунта ти извън пространства, отбелязани като 18+.",
+ "enforcement.lead.age_requirement": "Трябва да имаш минималната възраст за страната си, за да използваш {product_name}. Това не е наказание и можеш да се върнеш, когато навършиш нужната възраст.",
+ "enforcement.lead.automation": "Открихме автоматизирана дейност от акаунта ти, която пречеше на нормалното използване на услугата.",
+ "enforcement.lead.ban_evasion": "Установихме, че този акаунт е използван за заобикаляне на ограничение на друг акаунт.",
+ "enforcement.lead.bot": "Открихме дейност на бота ти, която нарушава това правило.",
+ "enforcement.lead.child_safety": "Открихме в акаунта ти съдържание или дейност, които нарушават правилата ни за защита на децата.",
+ "enforcement.lead.community": "Открихме в тази общност съдържание, което нарушава това правило.",
+ "enforcement.lead.copyright": "Открихме съдържание от акаунта ти, което използва чужди произведения без разрешение.",
+ "enforcement.lead.fraud": "Открихме съдържание от акаунта ти, което е целяло с измама да вземе от хората пари, акаунти или лична информация.",
+ "enforcement.lead.harassment": "Открихме съобщения от акаунта ти, с които някой е тормозен или унижаван.",
+ "enforcement.lead.harmful_deception": "Открихме съдържание от акаунта ти, което е разпространявало неверни твърдения, способни да причинят сериозна вреда.",
+ "enforcement.lead.hate": "Открихме съдържание от акаунта ти, което напада или унижава хора заради това кои са.",
+ "enforcement.lead.illegal_activity": "Открихме съдържание от акаунта ти, което предлага незаконни стоки или услуги или помага за незаконна дейност.",
+ "enforcement.lead.impersonation": "Установихме, че акаунтът ти се е представял за друг човек или организация или е използвал фалшива самоличност, за да заблуждава хората.",
+ "enforcement.lead.intimate_images": "Установихме, че от акаунта ти са споделени интимни изображения на човек без неговото съгласие.",
+ "enforcement.lead.legacy": "Нямаме повече подробности за това решение в архива си.",
+ "enforcement.lead.malware": "Открихме връзки или файлове от акаунта ти, които водят към зловреден или друг вреден софтуер.",
+ "enforcement.lead.payments": "Открихме проблем с плащане в акаунта ти, който нарушава условията ни за плащане.",
+ "enforcement.lead.privacy": "Установихме, че от акаунта ти е споделена лична информация на друг човек без неговото съгласие.",
+ "enforcement.lead.raids": "Установихме, че акаунтът ти е участвал в координирана атака срещу общност или човек.",
+ "enforcement.lead.report_abuse": "Установихме, че от акаунта ти многократно са изпращани неверни или недобросъвестни сигнали.",
+ "enforcement.lead.self_harm": "Открихме съдържание от акаунта ти, което насърчава самонараняване или дава инструкции за него.",
+ "enforcement.lead.service_abuse": "Установихме, че акаунтът ти е използвал {product_name} по начин, който пречи на услугата или заобикаля ограниченията ѝ.",
+ "enforcement.lead.spam": "Установихме, че от акаунта ти масово са изпращани нежелани съобщения.",
+ "enforcement.lead.threats": "Открихме съобщения от акаунта ти, които заплашват с насилие или подтикват към него.",
+ "enforcement.lead.unwanted_sexual_content": "Установихме, че от акаунта ти е изпратено сексуално съдържание на човек, който не е дал съгласие да го получава.",
+ "enforcement.lead.violent_content": "Установихме, че от акаунта ти е споделяно съдържание с жестоко насилие или кървави сцени.",
+ "enforcement.lead.violent_extremism": "Открихме в акаунта ти съдържание или дейност, които нарушават правилата ни за тероризъм и насилствен екстремизъм.",
+ "enforcement.profile_field.avatar": "аватар",
+ "enforcement.profile_field.banner": "банер",
+ "enforcement.profile_field.bio": "биография",
+ "enforcement.profile_field.global_name": "показвано име",
+ "enforcement.profile_field.pronouns": "местоимения",
+ "enforcement.redress.out_of_court": "Ако си в ЕС, можеш също да отнесеш това решение до сертифициран орган за извънсъдебно решаване на спорове. Европейската комисия поддържа [списък с тези органи]({url}).",
+ "enforcement.redress.regulator_and_court": "Можеш също да подадеш жалба до координатора за цифровите услуги в твоята държава от ЕС или да се обърнеш към съда.",
+ "enforcement.rule.adult_content": "Съдържание за възрастни извън пространства 18+",
+ "enforcement.rule.age_requirement": "Минимална възраст",
+ "enforcement.rule.automation": "Автоматизация, която пречи на услугата",
+ "enforcement.rule.ban_evasion": "Заобикаляне на ограничения",
+ "enforcement.rule.child_safety": "Безопасност на децата",
+ "enforcement.rule.copyright": "Авторско право",
+ "enforcement.rule.fraud": "Измами",
+ "enforcement.rule.harassment": "Тормоз",
+ "enforcement.rule.harmful_deception": "Вредна дезинформация",
+ "enforcement.rule.hate": "Омраза и дискриминация",
+ "enforcement.rule.illegal_activity": "Незаконна и опасна дейност",
+ "enforcement.rule.impersonation": "Представяне за друг и фалшиви акаунти",
+ "enforcement.rule.intimate_images": "Интимни изображения, споделени без съгласие",
+ "enforcement.rule.malware": "Зловредни връзки и софтуер",
+ "enforcement.rule.payments": "Плащания",
+ "enforcement.rule.privacy": "Поверителност и лична информация",
+ "enforcement.rule.raids": "Рейдове и координирани атаки",
+ "enforcement.rule.report_abuse": "Злоупотреба със сигнали",
+ "enforcement.rule.self_harm": "Насърчаване на самонараняване",
+ "enforcement.rule.service_abuse": "Злоупотреба с услугата",
+ "enforcement.rule.spam": "Спам",
+ "enforcement.rule.threats": "Заплахи с насилие",
+ "enforcement.rule.unwanted_sexual_content": "Нежелано сексуално съдържание",
+ "enforcement.rule.violent_content": "Жестоко насилие",
+ "enforcement.rule.violent_extremism": "Тероризъм и насилствен екстремизъм",
+ "enforcement.source.own_review": "Открихме това при наша собствена проверка.",
+ "enforcement.source.report": "Прегледахме това след сигнал.",
+ "enforcement.summary.closure": "{target, select, bot {Закрихме бота ти {bot_name}.} other {Закрихме акаунта ти.}}",
+ "enforcement.summary.community_removal": "Премахнахме общността ти {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Премахнахме всички съобщения, изпратени от теб.} other {Премахнахме {count, plural, one {# съобщение, изпратено от теб} other {# съобщения, изпратени от теб}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Ограничихме функция в акаунта ти до {ends_at}.} other {Ограничихме функция в акаунта ти.}}",
+ "enforcement.summary.profile_reset": "Нулирахме части от профила ти: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Спряхме бота ти {bot_name} до {ends_at}.} other {Спряхме акаунта ти до {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Блокирахме бота ти {bot_name}.} other {Блокирахме акаунта ти.}}",
+ "enforcement.summary.warning": "Предупреждаваме те за дейност в акаунта ти.",
+ "enforcement.welfare.self_harm": "Ако ти е трудно, не е нужно да се справяш с това без помощ. [Раздел 3 от насоките на общността ни]({url}) съдържа телефони за подкрепа.",
"guild.bulk_create.emoji_limit": "Достигнат е максималният брой емоджита ({limit}).",
"guild.bulk_create.sticker_limit": "Достигнат е максималният брой стикери ({limit}).",
"guild.bulk_create.unknown_error": "Възникна неизвестна грешка.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/cs.json b/fluxer_api/src/api/content_i18n/weblate/locales/cs.json
index e0c3487ac..a9f95b5c9 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/cs.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/cs.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Pokud jsem spotřebitelem z EU/EHP, výslovně souhlasím s tím, že digitální obsah {product_name} {premium_tier_name} bude poskytnut okamžitě, a beru na vědomí, že po poskytnutí přístupu ztrácím zákonné právo na odstoupení od smlouvy. Tím nejsou dotčena další povinná práva spotřebitele. Viz [Podmínky služby]({terms_url}).",
"bulk_message_deletion.complete": "Dokončili jsme mazání tvých zpráv. Odstranili jsme {message_count, plural, =0 {0 zpráv} one {# zprávu} few {# zprávy} many {# zpráv} other {# zpráv}} z {channel_count, plural, =0 {0 míst} one {# místa} few {# míst} many {# míst} other {# míst}}.",
"content.virus_detected": "Tento soubor byl označen jako potenciálně nebezpečný a byl odstraněn.",
+ "enforcement.automation.automated": "Jde o dočasné omezení, které bylo zavedeno automaticky a platí, dokud ho neposoudí osoba z našeho týmu.",
+ "enforcement.automation.flagged": "Automatické nástroje na to upozornily. Osoba z našeho týmu to posoudila a rozhodla.",
+ "enforcement.automation.none": "Osoba z našeho týmu to posoudila a rozhodla.",
+ "enforcement.effect.account_not_restricted": "Jinak váš účet omezen není.",
+ "enforcement.effect.closure": "{target, select, bot {Bot se nikde nemůže připojit ani nic provádět. Dne {deletion_at} smažeme bota a jeho data. Váš vlastní účet omezen není.} other {Nikde se nemůžete přihlásit ani používat {product_name}. Dne {deletion_at} smažeme účet a jeho data kromě údajů, které musíme uchovávat ze zákona.}}",
+ "enforcement.effect.community_removed": "Komunita, její kanály a zprávy už nejsou nikomu dostupné. Váš vlastní účet omezen není.",
+ "enforcement.effect.limit_direct_messages": "Vaše zprávy v konverzacích jeden na jednoho a žádosti o přátelství se nedoručují a váš profil je skrytý. V komunitách a skupinových konverzacích vidí ostatní vaše zprávy sbalené a označené jako možný spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Na {product_name} nemůžete nakupovat, dokud to neposoudí osoba z našeho týmu.} other {Na {product_name} nemůžete nakupovat.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Do té doby nemůžete v aplikaci odesílat nahlášení. Nezákonný obsah můžete nahlásit přes bezpečnostní kontakt na [stránce s informacemi o naší společnosti]({url}).} other {Do té doby nemůžete v aplikaci odesílat nahlášení.}}",
+ "enforcement.effect.messages_removed": "Odstranili jsme také {count, plural, one {# zprávu} few {# zprávy} many {# zprávy} other {# zpráv}}.",
+ "enforcement.effect.networks_blocked": "Do {date} jsme také zablokovali přístup ze sítí, které tento účet používal.",
+ "enforcement.effect.no_other_accounts": "Nesmíte vytvářet ani používat jiné účty.",
+ "enforcement.effect.scope": "Toto rozhodnutí platí všude, kde je {product_name} k dispozici.",
+ "enforcement.effect.suspension": "{target, select, bot {Do té doby se bot nikde nemůže připojit ani nic provádět. Váš vlastní účet omezen není.} other {Do té doby se nikde nemůžete přihlásit ani používat {product_name}. Váš účet, zprávy a komunity zůstávají zachovány.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Bot se nikde nemůže připojit ani nic provádět. Váš vlastní účet omezen není.} other {Nikde se nemůžete přihlásit ani používat {product_name}.}}",
+ "enforcement.effect.warning": "Váš účet omezen není. Pokud se to bude opakovat, můžeme ho omezit nebo pozastavit.",
+ "enforcement.facts.channel": "{count, plural, one {# zpráva} few {# zprávy} many {# zprávy} other {# zpráv}} v kanálu #{channel} komunity {community}, {range, select, single {{start}} other {v období od {start} do {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# zpráva zveřejněná} few {# zprávy zveřejněné} many {# zprávy zveřejněné} other {# zpráv zveřejněných}} v kanálu #{channel}, {range, select, single {{start}} other {v období od {start} do {end}}}.",
+ "enforcement.facts.copyright": "Držitel práv nebo dotčené právo: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# zpráva} few {# zprávy} many {# zprávy} other {# zpráv}} v konverzaci v přímých zprávách, {range, select, single {{start}} other {v období od {start} do {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# zpráva} few {# zprávy} many {# zprávy} other {# zpráv}} v konverzaci v přímých zprávách ({month}).",
+ "enforcement.facts.group_message": "{count, plural, one {# zpráva} few {# zprávy} many {# zprávy} other {# zpráv}} ve skupinové konverzaci, {range, select, single {{start}} other {v období od {start} do {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# zpráva} few {# zprávy} many {# zprávy} other {# zpráv}} ve skupinové konverzaci ({month}).",
+ "enforcement.facts.payment": "Platba na vašem účtu ze dne {date}.",
+ "enforcement.facts.profile": "Váš profil: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# zpráva} few {# zprávy} many {# zprávy} other {# zpráv}} v konverzaci, která už neexistuje, {range, select, single {{start}} other {v období od {start} do {end}}}.",
+ "enforcement.lead.adult_content": "Zjistili jsme, že z vašeho účtu byl zveřejňován sexuální obsah mimo prostory označené 18+.",
+ "enforcement.lead.age_requirement": "Abyste mohli používat {product_name}, musíte splňovat minimální věk platný ve vaší zemi. Nejde o trest a vrátit se můžete, jakmile potřebného věku dosáhnete.",
+ "enforcement.lead.automation": "Zjistili jsme automatizovanou aktivitu z vašeho účtu, která narušovala běžné používání služby.",
+ "enforcement.lead.ban_evasion": "Zjistili jsme, že tento účet byl použit k obejití omezení jiného účtu.",
+ "enforcement.lead.bot": "Zjistili jsme u vašeho bota činnost, která porušuje toto pravidlo.",
+ "enforcement.lead.child_safety": "Zjistili jsme na vašem účtu obsah nebo aktivitu, které porušují naše pravidla ochrany dětí.",
+ "enforcement.lead.community": "Zjistili jsme v této komunitě obsah, který porušuje toto pravidlo.",
+ "enforcement.lead.copyright": "Zjistili jsme, že z vašeho účtu byl zveřejněn obsah, který bez svolení používá cizí dílo.",
+ "enforcement.lead.fraud": "Zjistili jsme, že z vašeho účtu byl šířen obsah, který se snažil od lidí podvodně vylákat peníze, účty nebo osobní údaje.",
+ "enforcement.lead.harassment": "Zjistili jsme, že z vašeho účtu byly posílány zprávy, které někoho obtěžovaly nebo šikanovaly.",
+ "enforcement.lead.harmful_deception": "Zjistili jsme, že z vašeho účtu byla šířena nepravdivá tvrzení, která mohou způsobit vážnou újmu.",
+ "enforcement.lead.hate": "Zjistili jsme, že z vašeho účtu byl šířen obsah, který napadá nebo ponižuje lidi kvůli tomu, kým jsou.",
+ "enforcement.lead.illegal_activity": "Zjistili jsme, že z vašeho účtu byl šířen obsah, který nabízí nezákonné zboží nebo služby nebo pomáhá s nezákonnou činností.",
+ "enforcement.lead.impersonation": "Zjistili jsme, že se váš účet vydával za jinou osobu nebo organizaci nebo používal falešnou identitu ke klamání lidí.",
+ "enforcement.lead.intimate_images": "Zjistili jsme, že z vašeho účtu byly sdíleny intimní snímky jiné osoby bez jejího souhlasu.",
+ "enforcement.lead.legacy": "K tomuto rozhodnutí nemáme v záznamech další podrobnosti.",
+ "enforcement.lead.malware": "Zjistili jsme, že z vašeho účtu byly šířeny odkazy nebo soubory vedoucí k malwaru nebo jinému škodlivému softwaru.",
+ "enforcement.lead.payments": "Zjistili jsme u vašeho účtu problém s platbou, který porušuje naše platební podmínky.",
+ "enforcement.lead.privacy": "Zjistili jsme, že z vašeho účtu byly sdíleny cizí osobní údaje bez souhlasu dotčené osoby.",
+ "enforcement.lead.raids": "Zjistili jsme, že se váš účet podílel na koordinovaném útoku na komunitu nebo osobu.",
+ "enforcement.lead.report_abuse": "Zjistili jsme, že z vašeho účtu byla opakovaně odesílána nepravdivá nahlášení nebo nahlášení podaná ve zlé víře.",
+ "enforcement.lead.self_harm": "Zjistili jsme, že z vašeho účtu byl šířen obsah, který nabádá k sebepoškozování nebo k němu dává návod.",
+ "enforcement.lead.service_abuse": "Zjistili jsme, že váš účet používal {product_name} způsobem, který narušuje službu nebo obchází její limity.",
+ "enforcement.lead.spam": "Zjistili jsme, že z vašeho účtu byly hromadně rozesílány nevyžádané zprávy.",
+ "enforcement.lead.threats": "Zjistili jsme, že z vašeho účtu byly posílány zprávy, které vyhrožovaly násilím nebo k němu vybízely.",
+ "enforcement.lead.unwanted_sexual_content": "Zjistili jsme, že z vašeho účtu byl odeslán sexuální obsah osobě, která s jeho přijetím nesouhlasila.",
+ "enforcement.lead.violent_content": "Zjistili jsme, že z vašeho účtu byl sdílen drastický násilný nebo krvavý obsah.",
+ "enforcement.lead.violent_extremism": "Zjistili jsme na vašem účtu obsah nebo aktivitu, které porušují naše pravidla týkající se terorismu a násilného extremismu.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "popis",
+ "enforcement.profile_field.global_name": "zobrazované jméno",
+ "enforcement.profile_field.pronouns": "zájmena",
+ "enforcement.redress.out_of_court": "Pokud se nacházíte v EU, můžete toto rozhodnutí také předložit certifikovanému subjektu pro mimosoudní řešení sporů. Evropská komise vede [seznam těchto subjektů]({url}).",
+ "enforcement.redress.regulator_and_court": "Můžete také podat stížnost koordinátorovi digitálních služeb ve své zemi EU nebo se obrátit na soud.",
+ "enforcement.rule.adult_content": "Obsah pro dospělé mimo prostory 18+",
+ "enforcement.rule.age_requirement": "Minimální věk",
+ "enforcement.rule.automation": "Rušivá automatizace",
+ "enforcement.rule.ban_evasion": "Obcházení omezení",
+ "enforcement.rule.child_safety": "Bezpečnost dětí",
+ "enforcement.rule.copyright": "Autorská práva",
+ "enforcement.rule.fraud": "Podvody a klamání",
+ "enforcement.rule.harassment": "Obtěžování",
+ "enforcement.rule.harmful_deception": "Škodlivé dezinformace",
+ "enforcement.rule.hate": "Nenávist a diskriminace",
+ "enforcement.rule.illegal_activity": "Nezákonná a nebezpečná činnost",
+ "enforcement.rule.impersonation": "Vydávání se za jiné a falešné účty",
+ "enforcement.rule.intimate_images": "Sdílení intimních snímků bez souhlasu",
+ "enforcement.rule.malware": "Škodlivé odkazy a malware",
+ "enforcement.rule.payments": "Platby",
+ "enforcement.rule.privacy": "Soukromí a osobní údaje",
+ "enforcement.rule.raids": "Nájezdy a koordinované útoky",
+ "enforcement.rule.report_abuse": "Zneužívání nahlašování",
+ "enforcement.rule.self_harm": "Propagace sebepoškozování",
+ "enforcement.rule.service_abuse": "Zneužívání služby",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Výhrůžky násilím",
+ "enforcement.rule.unwanted_sexual_content": "Nevyžádaný sexuální obsah",
+ "enforcement.rule.violent_content": "Drastické násilí",
+ "enforcement.rule.violent_extremism": "Terorismus a násilný extremismus",
+ "enforcement.source.own_review": "Zjistili jsme to při vlastní kontrole.",
+ "enforcement.source.report": "Posoudili jsme to na základě nahlášení.",
+ "enforcement.summary.closure": "{target, select, bot {Zrušili jsme vašeho bota {bot_name}.} other {Zrušili jsme váš účet.}}",
+ "enforcement.summary.community_removal": "Odstranili jsme vaši komunitu {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Odstranili jsme všechny vámi odeslané zprávy.} other {Odstranili jsme {count, plural, one {# vámi odeslanou zprávu} few {# vámi odeslané zprávy} many {# vámi odeslané zprávy} other {# vámi odeslaných zpráv}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Do {ends_at} jsme omezili jednu z funkcí vašeho účtu.} other {Omezili jsme jednu z funkcí vašeho účtu.}}",
+ "enforcement.summary.profile_reset": "Resetovali jsme části vašeho profilu: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Pozastavili jsme vašeho bota {bot_name} do {ends_at}.} other {Pozastavili jsme váš účet do {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Zablokovali jsme vašeho bota {bot_name}.} other {Zablokovali jsme váš účet.}}",
+ "enforcement.summary.warning": "Udělujeme vám varování kvůli aktivitě na vašem účtu.",
+ "enforcement.welfare.self_harm": "Pokud procházíte těžkým obdobím, nemusíte to zvládat bez pomoci. Seznam linek pomoci najdete v [části 3 našich pravidel komunity]({url}).",
"guild.bulk_create.emoji_limit": "Byl dosažen maximální počet emoji ({limit}).",
"guild.bulk_create.sticker_limit": "Byl dosažen maximální počet nálepek ({limit}).",
"guild.bulk_create.unknown_error": "Nastala neznámá chyba.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/da.json b/fluxer_api/src/api/content_i18n/weblate/locales/da.json
index 63c0588c7..8f8c392f1 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/da.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/da.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Hvis jeg er forbruger i EU/EØS, giver jeg udtrykkeligt samtykke til, at det digitale indhold i {product_name} {premium_tier_name} leveres med det samme, og jeg anerkender, at jeg mister min lovbestemte fortrydelsesret, når jeg får adgang. Dette påvirker ikke andre ufravigelige forbrugerrettigheder. Se [servicevilkårene]({terms_url}).",
"bulk_message_deletion.complete": "Vi er færdige med at slette dine beskeder. Vi fjernede {message_count, plural, =0 {0 beskeder} one {# besked} other {# beskeder}} fra {channel_count, plural, =0 {0 steder} one {# sted} other {# steder}}.",
"content.virus_detected": "Den fil blev markeret som potentielt usikker og er blevet fjernet.",
+ "enforcement.automation.automated": "Dette er en midlertidig begrænsning, der er indført automatisk, mens en person fra vores team gennemgår sagen.",
+ "enforcement.automation.flagged": "Automatiske værktøjer markerede dette. En person fra vores team gennemgik det og traf afgørelsen.",
+ "enforcement.automation.none": "En person fra vores team gennemgik dette og traf afgørelsen.",
+ "enforcement.effect.account_not_restricted": "Din konto er ikke begrænset på anden måde.",
+ "enforcement.effect.closure": "{target, select, bot {Botten kan ikke oprette forbindelse eller udføre handlinger nogen steder. Vi sletter den og dens data den {deletion_at}. Din egen konto er ikke begrænset.} other {Du kan ikke logge ind eller bruge {product_name} nogen steder. Vi sletter kontoen og dens data den {deletion_at}, bortset fra data, vi er forpligtet til at opbevare ved lov.}}",
+ "enforcement.effect.community_removed": "Fællesskabet og dets kanaler og beskeder er ikke længere tilgængelige for nogen. Din egen konto er ikke begrænset.",
+ "enforcement.effect.limit_direct_messages": "Dine beskeder i samtaler mellem to personer og dine venneanmodninger bliver ikke leveret, og din profil er skjult. I fællesskaber og gruppesamtaler ser andre dine beskeder foldet sammen og markeret som mulig spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Du kan ikke foretage køb på {product_name}, før en person fra vores team har gennemgået dette.} other {Du kan ikke foretage køb på {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Du kan ikke sende anmeldelser i appen indtil da. Brug sikkerhedskontakten på vores [side med virksomhedsoplysninger]({url}) for at anmelde ulovligt indhold.} other {Du kan ikke sende anmeldelser i appen indtil da.}}",
+ "enforcement.effect.messages_removed": "Vi har også fjernet {count, plural, =1 {# besked} other {# beskeder}}.",
+ "enforcement.effect.networks_blocked": "Vi har også blokeret adgang fra netværk, som denne konto har brugt, indtil den {date}.",
+ "enforcement.effect.no_other_accounts": "Du må ikke oprette eller bruge andre konti.",
+ "enforcement.effect.scope": "Denne afgørelse gælder overalt, hvor {product_name} er tilgængelig.",
+ "enforcement.effect.suspension": "{target, select, bot {Botten kan ikke oprette forbindelse eller udføre handlinger nogen steder indtil da. Din egen konto er ikke begrænset.} other {Du kan ikke logge ind eller bruge {product_name} nogen steder indtil da. Din konto, dine beskeder og dine fællesskaber bevares.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Botten kan ikke oprette forbindelse eller udføre handlinger nogen steder. Din egen konto er ikke begrænset.} other {Du kan ikke logge ind eller bruge {product_name} nogen steder.}}",
+ "enforcement.effect.warning": "Din konto er ikke begrænset. Hvis det sker igen, kan vi begrænse eller suspendere den.",
+ "enforcement.facts.channel": "{count, plural, =1 {# besked} other {# beskeder}} i #{channel} i {community}, {range, select, single {den {start}} other {mellem {start} og {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, =1 {# besked} other {# beskeder}} slået op i #{channel}, {range, select, single {den {start}} other {mellem {start} og {end}}}.",
+ "enforcement.facts.copyright": "Rettighedshaver eller berørt rettighed: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {# besked} other {# beskeder}} i en samtale med direkte beskeder, {range, select, single {den {start}} other {mellem {start} og {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {# besked} other {# beskeder}} i en samtale med direkte beskeder i {month}.",
+ "enforcement.facts.group_message": "{count, plural, =1 {# besked} other {# beskeder}} i en gruppesamtale, {range, select, single {den {start}} other {mellem {start} og {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {# besked} other {# beskeder}} i en gruppesamtale i {month}.",
+ "enforcement.facts.payment": "En betaling på din konto den {date}.",
+ "enforcement.facts.profile": "Din profil: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {# besked} other {# beskeder}} i en samtale, der ikke længere findes, {range, select, single {den {start}} other {mellem {start} og {end}}}.",
+ "enforcement.lead.adult_content": "Vi har fundet seksuelt indhold fra din konto uden for et område, der er markeret som 18+.",
+ "enforcement.lead.age_requirement": "Du skal have nået minimumsalderen i dit land for at bruge {product_name}. Det er ikke en straf, og du er velkommen tilbage, når du er gammel nok.",
+ "enforcement.lead.automation": "Vi har fundet automatiseret aktivitet fra din konto, som forstyrrede normal brug af tjenesten.",
+ "enforcement.lead.ban_evasion": "Vi har konstateret, at denne konto blev brugt til at omgå en begrænsning på en anden konto.",
+ "enforcement.lead.bot": "Vi har fundet aktivitet fra din bot, der bryder denne regel.",
+ "enforcement.lead.child_safety": "Vi har fundet indhold eller aktivitet på din konto, der bryder vores regler om beskyttelse af børn.",
+ "enforcement.lead.community": "Vi har fundet indhold i dette fællesskab, der bryder denne regel.",
+ "enforcement.lead.copyright": "Vi har fundet indhold fra din konto, der bruger en andens værk uden tilladelse.",
+ "enforcement.lead.fraud": "Vi har fundet indhold fra din konto, der forsøgte at narre penge, konti eller personoplysninger fra folk.",
+ "enforcement.lead.harassment": "Vi har fundet beskeder fra din konto, der chikanerede eller mobbede nogen.",
+ "enforcement.lead.harmful_deception": "Vi har fundet indhold fra din konto, der spredte falske påstande, som sandsynligvis kan forvolde alvorlig skade.",
+ "enforcement.lead.hate": "Vi har fundet indhold fra din konto, der angriber eller nedgør mennesker for den, de er.",
+ "enforcement.lead.illegal_activity": "Vi har fundet indhold fra din konto, der tilbyder eller hjælper med ulovlige varer eller aktiviteter.",
+ "enforcement.lead.impersonation": "Vi har konstateret, at din konto udgav sig for at være en anden person eller organisation eller brugte en falsk identitet til at vildlede folk.",
+ "enforcement.lead.intimate_images": "Vi har konstateret, at din konto delte intime billeder af en person uden personens samtykke.",
+ "enforcement.lead.legacy": "Vi har ikke flere oplysninger registreret om denne afgørelse.",
+ "enforcement.lead.malware": "Vi har fundet links eller filer fra din konto, der fører til malware eller anden skadelig software.",
+ "enforcement.lead.payments": "Vi har fundet et betalingsproblem på din konto, der bryder vores betalingsvilkår.",
+ "enforcement.lead.privacy": "Vi har konstateret, at din konto delte en persons personoplysninger uden personens samtykke.",
+ "enforcement.lead.raids": "Vi har konstateret, at din konto deltog i et koordineret angreb på et fællesskab eller en person.",
+ "enforcement.lead.report_abuse": "Vi har konstateret, at din konto gentagne gange sendte anmeldelser, der var falske eller indgivet i ond tro.",
+ "enforcement.lead.self_harm": "Vi har fundet indhold fra din konto, der opfordrer til eller giver instruktioner i selvskade.",
+ "enforcement.lead.service_abuse": "Vi har konstateret, at din konto brugte {product_name} på en måde, der forstyrrer tjenesten eller omgår dens grænser.",
+ "enforcement.lead.spam": "Vi har konstateret, at din konto sendte uønskede beskeder i stort omfang.",
+ "enforcement.lead.threats": "Vi har fundet beskeder fra din konto, der truede med eller opfordrede til vold.",
+ "enforcement.lead.unwanted_sexual_content": "Vi har konstateret, at din konto sendte seksuelt indhold til en person, der ikke havde sagt ja til at modtage det.",
+ "enforcement.lead.violent_content": "Vi har konstateret, at din konto delte grove voldsskildringer eller blodigt indhold.",
+ "enforcement.lead.violent_extremism": "Vi har fundet indhold eller aktivitet på din konto, der bryder vores regler om terrorisme og voldelig ekstremisme.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "bio",
+ "enforcement.profile_field.global_name": "visningsnavn",
+ "enforcement.profile_field.pronouns": "pronominer",
+ "enforcement.redress.out_of_court": "Hvis du befinder dig i EU, kan du også indbringe denne afgørelse for et certificeret organ for udenretslig tvistbilæggelse. Europa-Kommissionen fører en [liste over disse organer]({url}).",
+ "enforcement.redress.regulator_and_court": "Du kan også klage til koordinatoren for digitale tjenester i dit EU-land eller gå til domstolene.",
+ "enforcement.rule.adult_content": "Voksenindhold uden for 18+-områder",
+ "enforcement.rule.age_requirement": "Minimumsalder",
+ "enforcement.rule.automation": "Forstyrrende automatisering",
+ "enforcement.rule.ban_evasion": "Omgåelse af begrænsninger",
+ "enforcement.rule.child_safety": "Børns sikkerhed",
+ "enforcement.rule.copyright": "Ophavsret",
+ "enforcement.rule.fraud": "Svindel og bedrageri",
+ "enforcement.rule.harassment": "Chikane",
+ "enforcement.rule.harmful_deception": "Skadelig vildledning",
+ "enforcement.rule.hate": "Had og diskrimination",
+ "enforcement.rule.illegal_activity": "Ulovlige og farlige aktiviteter",
+ "enforcement.rule.impersonation": "Efterligning og falske konti",
+ "enforcement.rule.intimate_images": "Intime billeder delt uden samtykke",
+ "enforcement.rule.malware": "Skadelige links og malware",
+ "enforcement.rule.payments": "Betalinger",
+ "enforcement.rule.privacy": "Privatliv og personoplysninger",
+ "enforcement.rule.raids": "Raids og koordinerede angreb",
+ "enforcement.rule.report_abuse": "Misbrug af anmeldelser",
+ "enforcement.rule.self_harm": "Fremme af selvskade",
+ "enforcement.rule.service_abuse": "Misbrug af tjenesten",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Trusler om vold",
+ "enforcement.rule.unwanted_sexual_content": "Uønsket seksuelt indhold",
+ "enforcement.rule.violent_content": "Grove voldsskildringer",
+ "enforcement.rule.violent_extremism": "Terrorisme og voldelig ekstremisme",
+ "enforcement.source.own_review": "Vi fandt dette i vores egen gennemgang.",
+ "enforcement.source.report": "Vi gennemgik dette efter en anmeldelse.",
+ "enforcement.summary.closure": "{target, select, bot {Vi har lukket din bot {bot_name}.} other {Vi har lukket din konto.}}",
+ "enforcement.summary.community_removal": "Vi har fjernet dit fællesskab {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Vi har fjernet alle beskeder, du har sendt.} other {Vi har fjernet {count, plural, =1 {# besked} other {# beskeder}}, du har sendt.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Vi har begrænset en funktion på din konto indtil {ends_at}.} other {Vi har begrænset en funktion på din konto.}}",
+ "enforcement.summary.profile_reset": "Vi har nulstillet dele af din profil: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Vi har suspenderet din bot {bot_name} indtil {ends_at}.} other {Vi har suspenderet din konto indtil {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Vi har udelukket din bot {bot_name}.} other {Vi har udelukket din konto.}}",
+ "enforcement.summary.warning": "Vi giver dig en advarsel om aktivitet på din konto.",
+ "enforcement.welfare.self_harm": "Hvis du har det svært, behøver du ikke at stå alene med det. [Afsnit 3 i vores retningslinjer for fællesskabet]({url}) har en liste over hjælpelinjer.",
"guild.bulk_create.emoji_limit": "Maksimalt antal emoji nået ({limit}).",
"guild.bulk_create.sticker_limit": "Maksimalt antal klistermærker nået ({limit}).",
"guild.bulk_create.unknown_error": "Ukendt fejl.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/de.json b/fluxer_api/src/api/content_i18n/weblate/locales/de.json
index 65f8df0c9..41833de42 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/de.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/de.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Wenn ich Verbraucher in der EU oder im EWR bin, stimme ich ausdrücklich zu, dass die digitalen Inhalte von {product_name} {premium_tier_name} sofort bereitgestellt werden, und nehme zur Kenntnis, dass ich mein gesetzliches Widerrufsrecht verliere, sobald ich Zugriff erhalte. Andere zwingende Verbraucherrechte bleiben davon unberührt. Siehe die [Nutzungsbedingungen]({terms_url}).",
"bulk_message_deletion.complete": "Wir haben deine Nachrichten gelöscht. Entfernt wurden {message_count, plural, =0 {0 Nachrichten} one {# Nachricht} other {# Nachrichten}} aus {channel_count, plural, =0 {0 Orten} one {# Ort} other {# Orten}}.",
"content.virus_detected": "Diese Datei wurde als potenziell unsicher eingestuft und entfernt.",
+ "enforcement.automation.automated": "Diese vorübergehende Einschränkung wurde automatisch verhängt, während eine Person aus unserem Team den Fall prüft.",
+ "enforcement.automation.flagged": "Automatisierte Tools haben das markiert. Eine Person aus unserem Team hat es geprüft und die Entscheidung getroffen.",
+ "enforcement.automation.none": "Eine Person aus unserem Team hat das geprüft und die Entscheidung getroffen.",
+ "enforcement.effect.account_not_restricted": "Dein Account ist ansonsten nicht eingeschränkt.",
+ "enforcement.effect.closure": "{target, select, bot {Der Bot kann sich nirgendwo verbinden oder Aktionen ausführen. Wir löschen ihn und seine Daten am {deletion_at}. Dein eigener Account ist nicht eingeschränkt.} other {Du kannst dich nirgendwo anmelden oder {product_name} nutzen. Wir löschen den Account und seine Daten am {deletion_at}, außer Daten, die wir gesetzlich aufbewahren müssen.}}",
+ "enforcement.effect.community_removed": "Die Community mit ihren Kanälen und Nachrichten ist für niemanden mehr verfügbar. Dein eigener Account ist nicht eingeschränkt.",
+ "enforcement.effect.limit_direct_messages": "Deine Nachrichten in Einzelunterhaltungen und deine Freundschaftsanfragen werden nicht zugestellt, und dein Profil ist verborgen. In Communitys und Gruppenunterhaltungen sehen andere deine Nachrichten eingeklappt und als möglichen Spam markiert.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Du kannst auf {product_name} keine Käufe tätigen, bis eine Person aus unserem Team das geprüft hat.} other {Du kannst auf {product_name} keine Käufe tätigen.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Du kannst bis dahin keine Meldungen in der App senden. Um rechtswidrige Inhalte zu melden, nutze den Sicherheitskontakt auf unserer [Seite mit den Unternehmensangaben]({url}).} other {Du kannst bis dahin keine Meldungen in der App senden.}}",
+ "enforcement.effect.messages_removed": "Außerdem haben wir {count, plural, =1 {# Nachricht} other {# Nachrichten}} entfernt.",
+ "enforcement.effect.networks_blocked": "Außerdem haben wir den Zugriff aus Netzwerken, die dieser Account genutzt hat, bis zum {date} gesperrt.",
+ "enforcement.effect.no_other_accounts": "Du darfst keine anderen Accounts erstellen oder nutzen.",
+ "enforcement.effect.scope": "Diese Entscheidung gilt überall, wo {product_name} verfügbar ist.",
+ "enforcement.effect.suspension": "{target, select, bot {Der Bot kann sich bis dahin nirgendwo verbinden oder Aktionen ausführen. Dein eigener Account ist nicht eingeschränkt.} other {Du kannst dich bis dahin nirgendwo anmelden oder {product_name} nutzen. Dein Account, deine Nachrichten und deine Communitys bleiben erhalten.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Der Bot kann sich nirgendwo verbinden oder Aktionen ausführen. Dein eigener Account ist nicht eingeschränkt.} other {Du kannst dich nirgendwo anmelden oder {product_name} nutzen.}}",
+ "enforcement.effect.warning": "Dein Account ist nicht eingeschränkt. Wenn das noch einmal passiert, können wir ihn einschränken oder sperren.",
+ "enforcement.facts.channel": "{count, plural, =1 {# Nachricht} other {# Nachrichten}} in #{channel} in {community}, {range, select, single {am {start}} other {zwischen {start} und {end}}}.",
+ "enforcement.facts.community_channel": "In #{channel} gepostet: {count, plural, =1 {# Nachricht} other {# Nachrichten}}, {range, select, single {am {start}} other {zwischen {start} und {end}}}.",
+ "enforcement.facts.copyright": "Rechteinhaber oder betroffenes Recht: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {# Nachricht} other {# Nachrichten}} in einer Unterhaltung per Direktnachricht, {range, select, single {am {start}} other {zwischen {start} und {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {# Nachricht} other {# Nachrichten}} im {month} in einer Unterhaltung per Direktnachricht.",
+ "enforcement.facts.group_message": "{count, plural, =1 {# Nachricht} other {# Nachrichten}} in einer Gruppenunterhaltung, {range, select, single {am {start}} other {zwischen {start} und {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {# Nachricht} other {# Nachrichten}} im {month} in einer Gruppenunterhaltung.",
+ "enforcement.facts.payment": "Eine Zahlung über deinen Account am {date}.",
+ "enforcement.facts.profile": "Dein Profil: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {# Nachricht} other {# Nachrichten}} in einer Unterhaltung, die es nicht mehr gibt, {range, select, single {am {start}} other {zwischen {start} und {end}}}.",
+ "enforcement.lead.adult_content": "Wir haben sexuelle Inhalte von deinem Account außerhalb eines als 18+ markierten Bereichs gefunden.",
+ "enforcement.lead.age_requirement": "Du musst das Mindestalter in deinem Land erreicht haben, um {product_name} zu nutzen. Das ist keine Strafe, und du bist wieder willkommen, sobald du alt genug bist.",
+ "enforcement.lead.automation": "Wir haben automatisierte Aktivitäten von deinem Account festgestellt, die die normale Nutzung des Dienstes gestört haben.",
+ "enforcement.lead.ban_evasion": "Wir haben festgestellt, dass dieser Account genutzt wurde, um eine Einschränkung eines anderen Accounts zu umgehen.",
+ "enforcement.lead.bot": "Wir haben Aktivitäten deines Bots gefunden, die gegen diese Regel verstoßen.",
+ "enforcement.lead.child_safety": "Wir haben Inhalte oder Aktivitäten in deinem Account gefunden, die gegen unsere Regeln zum Schutz von Kindern verstoßen.",
+ "enforcement.lead.community": "Wir haben in dieser Community Inhalte gefunden, die gegen diese Regel verstoßen.",
+ "enforcement.lead.copyright": "Wir haben Inhalte von deinem Account gefunden, die ohne Erlaubnis das Werk einer anderen Person nutzen.",
+ "enforcement.lead.fraud": "Wir haben Inhalte von deinem Account gefunden, mit denen versucht wurde, Menschen um Geld, Accounts oder persönliche Daten zu bringen.",
+ "enforcement.lead.harassment": "Wir haben Nachrichten von deinem Account gefunden, mit denen jemand belästigt oder gemobbt wurde.",
+ "enforcement.lead.harmful_deception": "Wir haben Inhalte von deinem Account gefunden, die falsche Behauptungen verbreitet haben, die wahrscheinlich ernsthaften Schaden anrichten.",
+ "enforcement.lead.hate": "Wir haben Inhalte von deinem Account gefunden, die Menschen wegen ihrer Identität angreifen oder herabwürdigen.",
+ "enforcement.lead.illegal_activity": "Wir haben Inhalte von deinem Account gefunden, die illegale Waren oder Aktivitäten anbieten oder dabei helfen.",
+ "enforcement.lead.impersonation": "Wir haben festgestellt, dass sich dein Account als eine andere Person oder Organisation ausgegeben oder eine falsche Identität genutzt hat, um andere zu täuschen.",
+ "enforcement.lead.intimate_images": "Wir haben festgestellt, dass dein Account intime Bilder einer Person ohne deren Einwilligung geteilt hat.",
+ "enforcement.lead.legacy": "Zu dieser Entscheidung liegen uns keine weiteren Details vor.",
+ "enforcement.lead.malware": "Wir haben Links oder Dateien von deinem Account gefunden, die zu Malware oder anderer schädlicher Software führen.",
+ "enforcement.lead.payments": "Wir haben bei deinem Account ein Zahlungsproblem festgestellt, das gegen unsere Zahlungsbedingungen verstößt.",
+ "enforcement.lead.privacy": "Wir haben festgestellt, dass dein Account persönliche Daten einer Person ohne deren Einwilligung geteilt hat.",
+ "enforcement.lead.raids": "Wir haben festgestellt, dass dein Account an einem koordinierten Angriff auf eine Community oder eine Person beteiligt war.",
+ "enforcement.lead.report_abuse": "Wir haben festgestellt, dass dein Account wiederholt Meldungen gesendet hat, die falsch oder böswillig waren.",
+ "enforcement.lead.self_harm": "Wir haben Inhalte von deinem Account gefunden, die zu Selbstverletzung ermutigen oder Anleitungen dazu geben.",
+ "enforcement.lead.service_abuse": "Wir haben festgestellt, dass dein Account {product_name} so genutzt hat, dass der Dienst gestört oder seine Grenzen umgangen wurden.",
+ "enforcement.lead.spam": "Wir haben festgestellt, dass dein Account massenhaft unerwünschte Nachrichten gesendet hat.",
+ "enforcement.lead.threats": "Wir haben Nachrichten von deinem Account gefunden, die Gewalt angedroht oder zu Gewalt aufgerufen haben.",
+ "enforcement.lead.unwanted_sexual_content": "Wir haben festgestellt, dass dein Account sexuelle Inhalte an eine Person gesendet hat, die dem nicht zugestimmt hatte.",
+ "enforcement.lead.violent_content": "Wir haben festgestellt, dass dein Account drastische Gewaltdarstellungen geteilt hat.",
+ "enforcement.lead.violent_extremism": "Wir haben Inhalte oder Aktivitäten in deinem Account gefunden, die gegen unsere Regeln zu Terrorismus und gewalttätigem Extremismus verstoßen.",
+ "enforcement.profile_field.avatar": "Avatar",
+ "enforcement.profile_field.banner": "Banner",
+ "enforcement.profile_field.bio": "Biografie",
+ "enforcement.profile_field.global_name": "Anzeigename",
+ "enforcement.profile_field.pronouns": "Pronomen",
+ "enforcement.redress.out_of_court": "Wenn du dich in der EU befindest, kannst du diese Entscheidung auch einer zertifizierten außergerichtlichen Streitbeilegungsstelle vorlegen. Die Europäische Kommission führt eine [Liste dieser Stellen]({url}).",
+ "enforcement.redress.regulator_and_court": "Du kannst dich auch beim Koordinator für digitale Dienste in deinem EU-Land beschweren oder vor Gericht gehen.",
+ "enforcement.rule.adult_content": "Inhalte für Erwachsene außerhalb von 18+-Bereichen",
+ "enforcement.rule.age_requirement": "Mindestalter",
+ "enforcement.rule.automation": "Störende Automatisierung",
+ "enforcement.rule.ban_evasion": "Umgehen von Einschränkungen",
+ "enforcement.rule.child_safety": "Kinderschutz",
+ "enforcement.rule.copyright": "Urheberrecht",
+ "enforcement.rule.fraud": "Betrugsmaschen und Betrug",
+ "enforcement.rule.harassment": "Belästigung",
+ "enforcement.rule.harmful_deception": "Schädliche Täuschung",
+ "enforcement.rule.hate": "Hass und Diskriminierung",
+ "enforcement.rule.illegal_activity": "Illegale und gefährliche Aktivitäten",
+ "enforcement.rule.impersonation": "Identitätstäuschung und Fake-Accounts",
+ "enforcement.rule.intimate_images": "Ohne Einwilligung geteilte intime Bilder",
+ "enforcement.rule.malware": "Schädliche Links und Malware",
+ "enforcement.rule.payments": "Zahlungen",
+ "enforcement.rule.privacy": "Privatsphäre und persönliche Daten",
+ "enforcement.rule.raids": "Raids und koordinierte Angriffe",
+ "enforcement.rule.report_abuse": "Missbrauch der Meldefunktion",
+ "enforcement.rule.self_harm": "Förderung von Selbstverletzung",
+ "enforcement.rule.service_abuse": "Missbrauch des Dienstes",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Gewaltandrohungen",
+ "enforcement.rule.unwanted_sexual_content": "Unerwünschte sexuelle Inhalte",
+ "enforcement.rule.violent_content": "Drastische Gewalt",
+ "enforcement.rule.violent_extremism": "Terrorismus und gewalttätiger Extremismus",
+ "enforcement.source.own_review": "Wir haben das bei einer eigenen Prüfung festgestellt.",
+ "enforcement.source.report": "Wir haben das nach einer Meldung untersucht.",
+ "enforcement.summary.closure": "{target, select, bot {Wir haben deinen Bot {bot_name} geschlossen.} other {Wir haben deinen Account geschlossen.}}",
+ "enforcement.summary.community_removal": "Wir haben deine Community {community_name} entfernt.",
+ "enforcement.summary.content_removal": "{all, select, yes {Wir haben alle Nachrichten entfernt, die du gesendet hast.} other {Wir haben {count, plural, =1 {# Nachricht} other {# Nachrichten}} entfernt, die du gesendet hast.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Wir haben eine Funktion deines Accounts bis {ends_at} eingeschränkt.} other {Wir haben eine Funktion deines Accounts eingeschränkt.}}",
+ "enforcement.summary.profile_reset": "Wir haben Teile deines Profils zurückgesetzt: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Wir haben deinen Bot {bot_name} bis {ends_at} gesperrt.} other {Wir haben deinen Account bis {ends_at} gesperrt.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Wir haben deinen Bot {bot_name} dauerhaft gesperrt.} other {Wir haben deinen Account dauerhaft gesperrt.}}",
+ "enforcement.summary.warning": "Wir verwarnen dich wegen Aktivitäten in deinem Account.",
+ "enforcement.welfare.self_harm": "Wenn es dir gerade nicht gut geht, musst du da nicht allein durch. In [Abschnitt 3 unserer Community-Richtlinien]({url}) findest du Hilfsangebote.",
"guild.bulk_create.emoji_limit": "Maximale Anzahl an Emojis erreicht ({limit}).",
"guild.bulk_create.sticker_limit": "Maximale Anzahl an Stickern erreicht ({limit}).",
"guild.bulk_create.unknown_error": "Unbekannter Fehler.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/el.json b/fluxer_api/src/api/content_i18n/weblate/locales/el.json
index 69f17597d..d2d7d5103 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/el.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/el.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Αν είμαι καταναλωτής ΕΕ/ΕΟΧ, συναινώ ρητά στην άμεση παροχή του ψηφιακού περιεχομένου του πλάνου {premium_tier_name} του {product_name} και αναγνωρίζω ότι χάνω το νόμιμο δικαίωμα υπαναχώρησης μόλις παρασχεθεί η πρόσβαση. Αυτό δεν επηρεάζει άλλα υποχρεωτικά δικαιώματα των καταναλωτών. Ανατρέξτε στους [Όρους Παροχής Υπηρεσιών]({terms_url}).",
"bulk_message_deletion.complete": "Ολοκληρώσαμε τη διαγραφή των μηνυμάτων σου. Αφαιρέσαμε {message_count, plural, =0 {0 μηνύματα} one {# μήνυμα} other {# μηνύματα}} από {channel_count, plural, =0 {0 τοποθεσίες} one {# τοποθεσία} other {# τοποθεσίες}}.",
"content.virus_detected": "Αυτό το αρχείο επισημάνθηκε ως δυνητικά μη ασφαλές και έχει αφαιρεθεί.",
+ "enforcement.automation.automated": "Πρόκειται για προσωρινό περιορισμό που εφαρμόστηκε αυτόματα, όσο ένα μέλος της ομάδας μας τον εξετάζει.",
+ "enforcement.automation.flagged": "Αυτόματα εργαλεία το επισήμαναν. Ένα μέλος της ομάδας μας το εξέτασε και έλαβε την απόφαση.",
+ "enforcement.automation.none": "Ένα μέλος της ομάδας μας το εξέτασε και έλαβε την απόφαση.",
+ "enforcement.effect.account_not_restricted": "Κατά τα άλλα, ο λογαριασμός σου δεν έχει περιοριστεί.",
+ "enforcement.effect.closure": "{target, select, bot {Το bot δεν μπορεί να συνδεθεί ή να εκτελέσει ενέργειες πουθενά. Θα το διαγράψουμε μαζί με τα δεδομένα του στις {deletion_at}. Ο δικός σου λογαριασμός δεν έχει περιοριστεί.} other {Δεν μπορείς να συνδεθείς ή να χρησιμοποιήσεις το {product_name} πουθενά. Θα διαγράψουμε τον λογαριασμό και τα δεδομένα του στις {deletion_at}, εκτός από δεδομένα που οφείλουμε να διατηρήσουμε βάσει νόμου.}}",
+ "enforcement.effect.community_removed": "Η κοινότητα, τα κανάλια και τα μηνύματά της δεν είναι πλέον διαθέσιμα σε κανέναν. Ο δικός σου λογαριασμός δεν έχει περιοριστεί.",
+ "enforcement.effect.limit_direct_messages": "Τα μηνύματά σου σε συνομιλίες ένας προς έναν και τα αιτήματα φιλίας σου δεν παραδίδονται και το προφίλ σου είναι κρυφό. Στις κοινότητες και στις ομαδικές συνομιλίες, οι άλλοι βλέπουν τα μηνύματά σου συμπτυγμένα και επισημασμένα ως πιθανό spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Δεν μπορείς να κάνεις αγορές στο {product_name} μέχρι να το εξετάσει ένα μέλος της ομάδας μας.} other {Δεν μπορείς να κάνεις αγορές στο {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Δεν μπορείς να στέλνεις αναφορές μέσα από την εφαρμογή μέχρι τότε. Για να αναφέρεις παράνομο περιεχόμενο, χρησιμοποίησε το κανάλι ασφαλείας στη [σελίδα με τα στοιχεία της εταιρείας μας]({url}).} other {Δεν μπορείς να στέλνεις αναφορές μέσα από την εφαρμογή μέχρι τότε.}}",
+ "enforcement.effect.messages_removed": "Αφαιρέσαμε επίσης {count, plural, one {# μήνυμα} other {# μηνύματα}}.",
+ "enforcement.effect.networks_blocked": "Αποκλείσαμε επίσης έως τις {date} την πρόσβαση από δίκτυα που χρησιμοποίησε αυτός ο λογαριασμός.",
+ "enforcement.effect.no_other_accounts": "Δεν επιτρέπεται να δημιουργείς ή να χρησιμοποιείς άλλους λογαριασμούς.",
+ "enforcement.effect.scope": "Αυτή η απόφαση ισχύει παντού όπου είναι διαθέσιμο το {product_name}.",
+ "enforcement.effect.suspension": "{target, select, bot {Μέχρι τότε το bot δεν μπορεί να συνδεθεί ή να εκτελέσει ενέργειες πουθενά. Ο δικός σου λογαριασμός δεν έχει περιοριστεί.} other {Μέχρι τότε δεν μπορείς να συνδεθείς ή να χρησιμοποιήσεις το {product_name} πουθενά. Ο λογαριασμός, τα μηνύματα και οι κοινότητές σου διατηρούνται.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Το bot δεν μπορεί να συνδεθεί ή να εκτελέσει ενέργειες πουθενά. Ο δικός σου λογαριασμός δεν έχει περιοριστεί.} other {Δεν μπορείς να συνδεθείς ή να χρησιμοποιήσεις το {product_name} πουθενά.}}",
+ "enforcement.effect.warning": "Ο λογαριασμός σου δεν έχει περιοριστεί. Αν αυτό ξανασυμβεί, ενδέχεται να τον περιορίσουμε ή να τον θέσουμε σε αναστολή.",
+ "enforcement.facts.channel": "{count, plural, one {# μήνυμα} other {# μηνύματα}} στο #{channel} της κοινότητας {community}, {range, select, single {στις {start}} other {από τις {start} έως τις {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# μήνυμα που δημοσιεύτηκε} other {# μηνύματα που δημοσιεύτηκαν}} στο #{channel}, {range, select, single {στις {start}} other {από τις {start} έως τις {end}}}.",
+ "enforcement.facts.copyright": "Δικαιούχος ή σχετικό δικαίωμα: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# μήνυμα} other {# μηνύματα}} σε συνομιλία απευθείας μηνυμάτων, {range, select, single {στις {start}} other {από τις {start} έως τις {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# μήνυμα} other {# μηνύματα}} σε συνομιλία απευθείας μηνυμάτων ({month}).",
+ "enforcement.facts.group_message": "{count, plural, one {# μήνυμα} other {# μηνύματα}} σε ομαδική συνομιλία, {range, select, single {στις {start}} other {από τις {start} έως τις {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# μήνυμα} other {# μηνύματα}} σε ομαδική συνομιλία ({month}).",
+ "enforcement.facts.payment": "Μια πληρωμή στον λογαριασμό σου στις {date}.",
+ "enforcement.facts.profile": "Το προφίλ σου: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# μήνυμα} other {# μηνύματα}} σε συνομιλία που δεν υπάρχει πλέον, {range, select, single {στις {start}} other {από τις {start} έως τις {end}}}.",
+ "enforcement.lead.adult_content": "Βρήκαμε σεξουαλικό περιεχόμενο από τον λογαριασμό σου εκτός χώρου με σήμανση 18+.",
+ "enforcement.lead.age_requirement": "Για να χρησιμοποιείς το {product_name}, πρέπει να έχεις συμπληρώσει την ελάχιστη ηλικία που ισχύει στη χώρα σου. Αυτό δεν είναι τιμωρία, και θα χαρούμε να επιστρέψεις όταν φτάσεις την απαιτούμενη ηλικία.",
+ "enforcement.lead.automation": "Εντοπίσαμε αυτοματοποιημένη δραστηριότητα από τον λογαριασμό σου που διατάραξε την κανονική χρήση της υπηρεσίας.",
+ "enforcement.lead.ban_evasion": "Διαπιστώσαμε ότι αυτός ο λογαριασμός χρησιμοποιήθηκε για να παρακαμφθεί ένας περιορισμός σε άλλον λογαριασμό.",
+ "enforcement.lead.bot": "Βρήκαμε δραστηριότητα από το bot σου που παραβιάζει αυτόν τον κανόνα.",
+ "enforcement.lead.child_safety": "Βρήκαμε περιεχόμενο ή δραστηριότητα στον λογαριασμό σου που παραβιάζει τους κανόνες μας για την προστασία των παιδιών.",
+ "enforcement.lead.community": "Βρήκαμε περιεχόμενο σε αυτή την κοινότητα που παραβιάζει αυτόν τον κανόνα.",
+ "enforcement.lead.copyright": "Βρήκαμε περιεχόμενο από τον λογαριασμό σου που χρησιμοποιεί έργο άλλου χωρίς άδεια.",
+ "enforcement.lead.fraud": "Βρήκαμε περιεχόμενο από τον λογαριασμό σου που προσπάθησε να αποσπάσει με εξαπάτηση χρήματα, λογαριασμούς ή προσωπικές πληροφορίες από ανθρώπους.",
+ "enforcement.lead.harassment": "Βρήκαμε μηνύματα από τον λογαριασμό σου που παρενοχλούσαν ή εκφόβιζαν κάποιον.",
+ "enforcement.lead.harmful_deception": "Βρήκαμε περιεχόμενο από τον λογαριασμό σου που διέδιδε ψευδείς ισχυρισμούς που είναι πιθανό να προκαλέσουν σοβαρή βλάβη.",
+ "enforcement.lead.hate": "Βρήκαμε περιεχόμενο από τον λογαριασμό σου που επιτίθεται σε ανθρώπους ή τους υποτιμά για το ποιοι είναι.",
+ "enforcement.lead.illegal_activity": "Βρήκαμε περιεχόμενο από τον λογαριασμό σου που προσφέρει παράνομα αγαθά ή παράνομες δραστηριότητες ή βοηθά σε αυτά.",
+ "enforcement.lead.impersonation": "Διαπιστώσαμε ότι ο λογαριασμός σου παρίστανε άλλο πρόσωπο ή οργανισμό ή χρησιμοποιούσε ψεύτικη ταυτότητα για να παραπλανήσει άλλους.",
+ "enforcement.lead.intimate_images": "Διαπιστώσαμε ότι ο λογαριασμός σου κοινοποίησε προσωπικές εικόνες σεξουαλικού χαρακτήρα κάποιου χωρίς τη συναίνεση του εικονιζόμενου προσώπου.",
+ "enforcement.lead.legacy": "Δεν διαθέτουμε περισσότερες λεπτομέρειες για αυτή την απόφαση.",
+ "enforcement.lead.malware": "Βρήκαμε συνδέσμους ή αρχεία από τον λογαριασμό σου που οδηγούν σε κακόβουλο ή άλλο επιβλαβές λογισμικό.",
+ "enforcement.lead.payments": "Βρήκαμε ένα ζήτημα πληρωμής στον λογαριασμό σου που παραβιάζει τους όρους πληρωμών μας.",
+ "enforcement.lead.privacy": "Διαπιστώσαμε ότι ο λογαριασμός σου κοινοποίησε προσωπικές πληροφορίες κάποιου χωρίς τη συναίνεση του ενδιαφερόμενου.",
+ "enforcement.lead.raids": "Διαπιστώσαμε ότι ο λογαριασμός σου συμμετείχε σε συντονισμένη επίθεση εναντίον μιας κοινότητας ή ενός προσώπου.",
+ "enforcement.lead.report_abuse": "Διαπιστώσαμε ότι ο λογαριασμός σου έστελνε επανειλημμένα αναφορές που ήταν ψευδείς ή κακόπιστες.",
+ "enforcement.lead.self_harm": "Βρήκαμε περιεχόμενο από τον λογαριασμό σου που ενθαρρύνει τον αυτοτραυματισμό ή δίνει οδηγίες για αυτόν.",
+ "enforcement.lead.service_abuse": "Διαπιστώσαμε ότι ο λογαριασμός σου χρησιμοποίησε το {product_name} με τρόπο που παρεμποδίζει την υπηρεσία ή παρακάμπτει τα όριά της.",
+ "enforcement.lead.spam": "Διαπιστώσαμε ότι ο λογαριασμός σου έστειλε μαζικά ανεπιθύμητα μηνύματα.",
+ "enforcement.lead.threats": "Βρήκαμε μηνύματα από τον λογαριασμό σου που απειλούσαν με βία ή ενθάρρυναν τη βία.",
+ "enforcement.lead.unwanted_sexual_content": "Διαπιστώσαμε ότι ο λογαριασμός σου έστειλε σεξουαλικό περιεχόμενο σε κάποιον που δεν είχε συμφωνήσει να το λάβει.",
+ "enforcement.lead.violent_content": "Διαπιστώσαμε ότι ο λογαριασμός σου κοινοποίησε σκληρές εικόνες βίας ή αιματηρό περιεχόμενο.",
+ "enforcement.lead.violent_extremism": "Βρήκαμε περιεχόμενο ή δραστηριότητα στον λογαριασμό σου που παραβιάζει τους κανόνες μας για την τρομοκρατία και τον βίαιο εξτρεμισμό.",
+ "enforcement.profile_field.avatar": "εικόνα προφίλ",
+ "enforcement.profile_field.banner": "πανό",
+ "enforcement.profile_field.bio": "βιογραφικό",
+ "enforcement.profile_field.global_name": "όνομα εμφάνισης",
+ "enforcement.profile_field.pronouns": "αντωνυμίες",
+ "enforcement.redress.out_of_court": "Αν βρίσκεσαι στην ΕΕ, μπορείς επίσης να παραπέμψεις αυτή την απόφαση σε πιστοποιημένο φορέα εξωδικαστικής επίλυσης διαφορών. Η Ευρωπαϊκή Επιτροπή τηρεί [κατάλογο αυτών των φορέων]({url}).",
+ "enforcement.redress.regulator_and_court": "Μπορείς επίσης να υποβάλεις καταγγελία στον συντονιστή ψηφιακών υπηρεσιών της χώρας σου στην ΕΕ ή να προσφύγεις στη δικαιοσύνη.",
+ "enforcement.rule.adult_content": "Περιεχόμενο για ενηλίκους εκτός χώρων 18+",
+ "enforcement.rule.age_requirement": "Ελάχιστη ηλικία",
+ "enforcement.rule.automation": "Αυτοματοποίηση που προκαλεί διαταραχές",
+ "enforcement.rule.ban_evasion": "Παράκαμψη περιορισμών",
+ "enforcement.rule.child_safety": "Ασφάλεια παιδιών",
+ "enforcement.rule.copyright": "Πνευματικά δικαιώματα",
+ "enforcement.rule.fraud": "Απάτες και εξαπάτηση",
+ "enforcement.rule.harassment": "Παρενόχληση",
+ "enforcement.rule.harmful_deception": "Επιβλαβής παραπλάνηση",
+ "enforcement.rule.hate": "Μίσος και διακρίσεις",
+ "enforcement.rule.illegal_activity": "Παράνομες και επικίνδυνες δραστηριότητες",
+ "enforcement.rule.impersonation": "Πλαστοπροσωπία και ψεύτικοι λογαριασμοί",
+ "enforcement.rule.intimate_images": "Εικόνες σεξουαλικού χαρακτήρα χωρίς συναίνεση",
+ "enforcement.rule.malware": "Κακόβουλοι σύνδεσμοι και κακόβουλο λογισμικό",
+ "enforcement.rule.payments": "Πληρωμές",
+ "enforcement.rule.privacy": "Ιδιωτικότητα και προσωπικές πληροφορίες",
+ "enforcement.rule.raids": "Επιδρομές και συντονισμένες επιθέσεις",
+ "enforcement.rule.report_abuse": "Κατάχρηση αναφορών",
+ "enforcement.rule.self_harm": "Προώθηση αυτοτραυματισμού",
+ "enforcement.rule.service_abuse": "Κατάχρηση της υπηρεσίας",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Απειλές βίας",
+ "enforcement.rule.unwanted_sexual_content": "Ανεπιθύμητο σεξουαλικό περιεχόμενο",
+ "enforcement.rule.violent_content": "Σκληρή βία",
+ "enforcement.rule.violent_extremism": "Τρομοκρατία και βίαιος εξτρεμισμός",
+ "enforcement.source.own_review": "Το εντοπίσαμε στο πλαίσιο δικού μας ελέγχου.",
+ "enforcement.source.report": "Το εξετάσαμε μετά από αναφορά.",
+ "enforcement.summary.closure": "{target, select, bot {Κλείσαμε το bot σου {bot_name}.} other {Κλείσαμε τον λογαριασμό σου.}}",
+ "enforcement.summary.community_removal": "Αφαιρέσαμε την κοινότητά σου {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Αφαιρέσαμε όλα τα μηνύματα που έστειλες.} other {Αφαιρέσαμε {count, plural, one {# μήνυμα που έστειλες} other {# μηνύματα που έστειλες}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Περιορίσαμε μια λειτουργία στον λογαριασμό σου έως τις {ends_at}.} other {Περιορίσαμε μια λειτουργία στον λογαριασμό σου.}}",
+ "enforcement.summary.profile_reset": "Επαναφέραμε ορισμένα μέρη του προφίλ σου: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Θέσαμε το bot σου {bot_name} σε αναστολή έως τις {ends_at}.} other {Θέσαμε τον λογαριασμό σου σε αναστολή έως τις {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Θέσαμε το bot σου {bot_name} σε οριστική αναστολή.} other {Θέσαμε τον λογαριασμό σου σε οριστική αναστολή.}}",
+ "enforcement.summary.warning": "Σου στέλνουμε προειδοποίηση για δραστηριότητα στον λογαριασμό σου.",
+ "enforcement.welfare.self_harm": "Αν περνάς δύσκολα, δεν χρειάζεται να το αντιμετωπίσεις χωρίς βοήθεια. [Η ενότητα 3 των οδηγιών κοινότητάς μας]({url}) αναφέρει γραμμές υποστήριξης.",
"guild.bulk_create.emoji_limit": "Επιτεύχθηκε το μέγιστο όριο emoji ({limit}).",
"guild.bulk_create.sticker_limit": "Επιτεύχθηκε το μέγιστο όριο αυτοκόλλητων ({limit}).",
"guild.bulk_create.unknown_error": "Άγνωστο σφάλμα.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/en-GB.json b/fluxer_api/src/api/content_i18n/weblate/locales/en-GB.json
index a6c8edd36..ea38ffb99 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/en-GB.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/en-GB.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "If I am an EU/EEA consumer, I expressly consent to {product_name} {premium_tier_name} digital content being provided immediately and acknowledge that I lose my statutory withdrawal right once access is provided. This does not affect other mandatory consumer rights. See the [Terms of Service]({terms_url}).",
"bulk_message_deletion.complete": "We finished deleting your messages. We removed {message_count, plural, =0 {0 messages} one {# message} other {# messages}} from {channel_count, plural, =0 {0 places} one {# place} other {# places}}.",
"content.virus_detected": "That file was flagged as potentially unsafe and has been removed.",
+ "enforcement.automation.automated": "This is a temporary limit applied automatically while a person on our team reviews it.",
+ "enforcement.automation.flagged": "Automated tools flagged this. A person on our team reviewed it and made the decision.",
+ "enforcement.automation.none": "A person on our team reviewed this and made the decision.",
+ "enforcement.effect.account_not_restricted": "Your account is not otherwise restricted.",
+ "enforcement.effect.closure": "{target, select, bot {The bot can't connect or act anywhere. We'll delete it and its data on {deletion_at}. Your own account is not restricted.} other {You can't sign in or use {product_name} anywhere. We'll delete the account and its data on {deletion_at}, except data we have to keep by law.}}",
+ "enforcement.effect.community_removed": "The community and its channels and messages are no longer available to anyone. Your own account is not restricted.",
+ "enforcement.effect.limit_direct_messages": "Your one-to-one messages and friend requests are not delivered, and your profile is hidden. In communities and group conversations, people see your messages collapsed and marked as possible spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {You can't make purchases on {product_name} until a person on our team reviews this.} other {You can't make purchases on {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {You can't send reports in the app until then. To report illegal content, use the safety route on our [company information page]({url}).} other {You can't send reports in the app until then.}}",
+ "enforcement.effect.messages_removed": "We also removed {count, plural, =1 {# message} other {# messages}}.",
+ "enforcement.effect.networks_blocked": "We also blocked access from networks this account used until {date}.",
+ "enforcement.effect.no_other_accounts": "You may not create or use other accounts.",
+ "enforcement.effect.scope": "This decision applies everywhere {product_name} is available.",
+ "enforcement.effect.suspension": "{target, select, bot {The bot can't connect or act anywhere until then. Your own account is not restricted.} other {You can't sign in or use {product_name} anywhere until then. Your account, messages and communities are kept.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {The bot can't connect or act anywhere. Your own account is not restricted.} other {You can't sign in or use {product_name} anywhere.}}",
+ "enforcement.effect.warning": "Your account is not restricted. If this happens again, we may limit or suspend it.",
+ "enforcement.facts.channel": "{count, plural, =1 {# message} other {# messages}} in #{channel} of {community}, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, =1 {# message} other {# messages}} posted in #{channel}, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.facts.copyright": "Rights holder or right concerned: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {# message} other {# messages}} in a direct message conversation, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {# message} other {# messages}} in a direct message conversation in {month}.",
+ "enforcement.facts.group_message": "{count, plural, =1 {# message} other {# messages}} in a group conversation, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {# message} other {# messages}} in a group conversation in {month}.",
+ "enforcement.facts.payment": "A payment on your account on {date}.",
+ "enforcement.facts.profile": "Your profile: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {# message} other {# messages}} in a conversation that no longer exists, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.lead.adult_content": "We found sexual content from your account outside a space marked 18+.",
+ "enforcement.lead.age_requirement": "You need to meet the minimum age in your country to use {product_name}. This isn't a punishment, and you're welcome back once you're old enough.",
+ "enforcement.lead.automation": "We found automated activity from your account that disrupted normal use of the service.",
+ "enforcement.lead.ban_evasion": "We found that this account was used to get around a restriction on another account.",
+ "enforcement.lead.bot": "We found activity from your bot that breaks this rule.",
+ "enforcement.lead.child_safety": "We found content or activity on your account that breaks our rules on protecting children.",
+ "enforcement.lead.community": "We found content in this community that breaks this rule.",
+ "enforcement.lead.copyright": "We found content from your account that uses someone else's work without permission.",
+ "enforcement.lead.fraud": "We found content from your account that tried to trick people out of money, accounts or personal information.",
+ "enforcement.lead.harassment": "We found messages from your account that harassed or bullied someone.",
+ "enforcement.lead.harmful_deception": "We found content from your account that spread false claims likely to cause serious harm.",
+ "enforcement.lead.hate": "We found content from your account that attacks or demeans people for who they are.",
+ "enforcement.lead.illegal_activity": "We found content from your account that offers or helps with illegal goods or activity.",
+ "enforcement.lead.impersonation": "We found that your account pretended to be another person or organisation, or used a fake identity to mislead people.",
+ "enforcement.lead.intimate_images": "We found that your account shared intimate images of someone without their consent.",
+ "enforcement.lead.legacy": "We don't have more detail on record for this decision.",
+ "enforcement.lead.malware": "We found links or files from your account that lead to malware or other harmful software.",
+ "enforcement.lead.payments": "We found a payment issue on your account that breaks our payment terms.",
+ "enforcement.lead.privacy": "We found that your account shared someone's personal information without their consent.",
+ "enforcement.lead.raids": "We found that your account took part in a coordinated attack on a community or a person.",
+ "enforcement.lead.report_abuse": "We found that your account repeatedly sent reports that were false or made in bad faith.",
+ "enforcement.lead.self_harm": "We found content from your account that encourages or gives instructions for self-harm.",
+ "enforcement.lead.service_abuse": "We found that your account used {product_name} in a way that interferes with the service or gets around its limits.",
+ "enforcement.lead.spam": "We found that your account sent unwanted messages in bulk.",
+ "enforcement.lead.threats": "We found messages from your account that threatened or encouraged violence.",
+ "enforcement.lead.unwanted_sexual_content": "We found that your account sent sexual content to someone who hadn't agreed to receive it.",
+ "enforcement.lead.violent_content": "We found that your account shared graphic violence or gore.",
+ "enforcement.lead.violent_extremism": "We found content or activity on your account that breaks our rules on terrorism and violent extremism.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "bio",
+ "enforcement.profile_field.global_name": "display name",
+ "enforcement.profile_field.pronouns": "pronouns",
+ "enforcement.redress.out_of_court": "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies]({url}).",
+ "enforcement.redress.regulator_and_court": "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ "enforcement.rule.adult_content": "Adult content outside 18+ spaces",
+ "enforcement.rule.age_requirement": "Minimum age",
+ "enforcement.rule.automation": "Disruptive automation",
+ "enforcement.rule.ban_evasion": "Evading restrictions",
+ "enforcement.rule.child_safety": "Child safety",
+ "enforcement.rule.copyright": "Copyright",
+ "enforcement.rule.fraud": "Scams and fraud",
+ "enforcement.rule.harassment": "Harassment",
+ "enforcement.rule.harmful_deception": "Harmful deception",
+ "enforcement.rule.hate": "Hate and discrimination",
+ "enforcement.rule.illegal_activity": "Illegal and dangerous activity",
+ "enforcement.rule.impersonation": "Impersonation and fake accounts",
+ "enforcement.rule.intimate_images": "Intimate images shared without consent",
+ "enforcement.rule.malware": "Malicious links and malware",
+ "enforcement.rule.payments": "Payments",
+ "enforcement.rule.privacy": "Privacy and personal information",
+ "enforcement.rule.raids": "Raids and coordinated attacks",
+ "enforcement.rule.report_abuse": "Misuse of reporting",
+ "enforcement.rule.self_harm": "Promoting self-harm",
+ "enforcement.rule.service_abuse": "Service abuse",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Threats of violence",
+ "enforcement.rule.unwanted_sexual_content": "Unwanted sexual content",
+ "enforcement.rule.violent_content": "Graphic violence",
+ "enforcement.rule.violent_extremism": "Terrorism and violent extremism",
+ "enforcement.source.own_review": "We found this in our own review.",
+ "enforcement.source.report": "We reviewed this after a report.",
+ "enforcement.summary.closure": "{target, select, bot {We closed your bot {bot_name}.} other {We closed your account.}}",
+ "enforcement.summary.community_removal": "We removed your community {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {We removed all messages you sent.} other {We removed {count, plural, =1 {# message} other {# messages}} you sent.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {We limited a feature on your account until {ends_at}.} other {We limited a feature on your account.}}",
+ "enforcement.summary.profile_reset": "We reset parts of your profile: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {We suspended your bot {bot_name} until {ends_at}.} other {We suspended your account until {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {We banned your bot {bot_name}.} other {We banned your account.}}",
+ "enforcement.summary.warning": "We're warning you about activity on your account.",
+ "enforcement.welfare.self_harm": "If you're going through a hard time, you don't have to deal with it alone. [Section 3 of our community guidelines]({url}) lists support lines.",
"guild.bulk_create.emoji_limit": "Maximum number of emojis reached ({limit}).",
"guild.bulk_create.sticker_limit": "Maximum number of stickers reached ({limit}).",
"guild.bulk_create.unknown_error": "Unknown error.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/es-419.json b/fluxer_api/src/api/content_i18n/weblate/locales/es-419.json
index f24b7e214..78aeb5894 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/es-419.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/es-419.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Si soy un consumidor de la UE/EEE, doy mi consentimiento expreso para que el contenido digital de {product_name} {premium_tier_name} se proporcione de inmediato y reconozco que pierdo mi derecho legal de desistimiento una vez que se otorgue el acceso. Esto no afecta otros derechos de consumo obligatorios. Consulta los [Términos de servicio]({terms_url}).",
"bulk_message_deletion.complete": "Terminamos de eliminar tus mensajes. Eliminamos {message_count, plural, =0 {0 mensajes} one {# mensaje} other {# mensajes}} de {channel_count, plural, =0 {0 lugares} one {# lugar} other {# lugares}}.",
"content.virus_detected": "Ese archivo fue marcado como potencialmente inseguro y se ha eliminado.",
+ "enforcement.automation.automated": "Es un límite temporal aplicado automáticamente mientras una persona de nuestro equipo revisa el caso.",
+ "enforcement.automation.flagged": "Nuestras herramientas automáticas marcaron este caso. Una persona de nuestro equipo lo revisó y tomó la decisión.",
+ "enforcement.automation.none": "Una persona de nuestro equipo revisó este caso y tomó la decisión.",
+ "enforcement.effect.account_not_restricted": "Tu cuenta no tiene ninguna otra restricción.",
+ "enforcement.effect.closure": "{target, select, bot {El bot no puede conectarse ni actuar en ningún lugar. Lo eliminaremos junto con sus datos el {deletion_at}. Tu propia cuenta no tiene restricciones.} other {No puedes iniciar sesión ni usar {product_name} en ningún lugar. Eliminaremos la cuenta y sus datos el {deletion_at}, excepto los que la ley nos obliga a conservar.}}",
+ "enforcement.effect.community_removed": "La comunidad, sus canales y sus mensajes ya no están disponibles para nadie. Tu propia cuenta no tiene restricciones.",
+ "enforcement.effect.limit_direct_messages": "Tus mensajes en conversaciones individuales y tus solicitudes de amistad no se entregan, y tu perfil está oculto. En las comunidades y las conversaciones grupales, los demás ven tus mensajes contraídos y marcados como posible spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {No puedes hacer compras en {product_name} hasta que una persona de nuestro equipo revise este caso.} other {No puedes hacer compras en {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Hasta entonces, no puedes enviar reportes en la app. Para reportar contenido ilícito, usa la vía de seguridad indicada en nuestra [página de información de la empresa]({url}).} other {Hasta entonces, no puedes enviar reportes en la app.}}",
+ "enforcement.effect.messages_removed": "También eliminamos {count, plural, one {# mensaje} other {# mensajes}}.",
+ "enforcement.effect.networks_blocked": "También bloqueamos hasta el {date} el acceso desde las redes que usaba esta cuenta.",
+ "enforcement.effect.no_other_accounts": "No se te permite crear ni usar otras cuentas.",
+ "enforcement.effect.scope": "Esta decisión se aplica en todos los lugares donde {product_name} está disponible.",
+ "enforcement.effect.suspension": "{target, select, bot {Hasta entonces, el bot no puede conectarse ni actuar en ningún lugar. Tu propia cuenta no tiene restricciones.} other {Hasta entonces, no puedes iniciar sesión ni usar {product_name} en ningún lugar. Conservamos tu cuenta, tus mensajes y tus comunidades.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {El bot no puede conectarse ni actuar en ningún lugar. Tu propia cuenta no tiene restricciones.} other {No puedes iniciar sesión ni usar {product_name} en ningún lugar.}}",
+ "enforcement.effect.warning": "Tu cuenta no tiene restricciones. Si vuelve a ocurrir, podríamos limitarla o suspenderla.",
+ "enforcement.facts.channel": "{count, plural, one {# mensaje} other {# mensajes}} en #{channel} de {community}, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# mensaje publicado} other {# mensajes publicados}} en #{channel}, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.facts.copyright": "Titular de los derechos o derecho afectado: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación de mensajes directos, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación de mensajes directos en {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación grupal, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación grupal en {month}.",
+ "enforcement.facts.payment": "Un pago en tu cuenta el {date}.",
+ "enforcement.facts.profile": "Tu perfil: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación que ya no existe, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.lead.adult_content": "Encontramos contenido sexual de tu cuenta fuera de un espacio marcado como +18.",
+ "enforcement.lead.age_requirement": "Debes tener la edad mínima de tu país para usar {product_name}. No es un castigo, y podrás volver cuando tengas la edad suficiente.",
+ "enforcement.lead.automation": "Encontramos actividad automatizada de tu cuenta que alteró el uso normal del servicio.",
+ "enforcement.lead.ban_evasion": "Comprobamos que esta cuenta se usó para eludir una restricción de otra cuenta.",
+ "enforcement.lead.bot": "Encontramos actividad de tu bot que infringe esta regla.",
+ "enforcement.lead.child_safety": "Encontramos contenido o actividad en tu cuenta que infringe nuestras reglas sobre la protección de menores.",
+ "enforcement.lead.community": "Encontramos contenido en esta comunidad que infringe esta regla.",
+ "enforcement.lead.copyright": "Encontramos contenido de tu cuenta que usa obras de otras personas sin permiso.",
+ "enforcement.lead.fraud": "Encontramos contenido de tu cuenta que intentaba engañar a otras personas para quitarles dinero, cuentas o información personal.",
+ "enforcement.lead.harassment": "Encontramos mensajes de tu cuenta que acosaban o intimidaban a alguien.",
+ "enforcement.lead.harmful_deception": "Encontramos contenido de tu cuenta que difundía afirmaciones falsas que pueden causar daños graves.",
+ "enforcement.lead.hate": "Encontramos contenido de tu cuenta que ataca o denigra a personas por lo que son.",
+ "enforcement.lead.illegal_activity": "Encontramos contenido de tu cuenta que ofrece o facilita bienes o actividades ilegales.",
+ "enforcement.lead.impersonation": "Comprobamos que tu cuenta se hizo pasar por otra persona u organización, o usó una identidad falsa para engañar a los demás.",
+ "enforcement.lead.intimate_images": "Comprobamos que tu cuenta compartió imágenes íntimas de alguien sin su consentimiento.",
+ "enforcement.lead.legacy": "No tenemos más detalles registrados sobre esta decisión.",
+ "enforcement.lead.malware": "Encontramos enlaces o archivos de tu cuenta que llevan a malware u otro software dañino.",
+ "enforcement.lead.payments": "Encontramos un problema de pago en tu cuenta que infringe nuestras condiciones de pago.",
+ "enforcement.lead.privacy": "Comprobamos que tu cuenta compartió información personal de alguien sin su consentimiento.",
+ "enforcement.lead.raids": "Comprobamos que tu cuenta participó en un ataque coordinado contra una comunidad o una persona.",
+ "enforcement.lead.report_abuse": "Comprobamos que tu cuenta envió repetidamente reportes falsos o de mala fe.",
+ "enforcement.lead.self_harm": "Encontramos contenido de tu cuenta que fomenta las autolesiones o da instrucciones para autolesionarse.",
+ "enforcement.lead.service_abuse": "Comprobamos que tu cuenta usó {product_name} de una forma que interfiere con el servicio o elude sus límites.",
+ "enforcement.lead.spam": "Comprobamos que tu cuenta envió mensajes no deseados de forma masiva.",
+ "enforcement.lead.threats": "Encontramos mensajes de tu cuenta que amenazaban con violencia o incitaban a ella.",
+ "enforcement.lead.unwanted_sexual_content": "Comprobamos que tu cuenta envió contenido sexual a alguien que no había aceptado recibirlo.",
+ "enforcement.lead.violent_content": "Comprobamos que tu cuenta compartió violencia gráfica o contenido gore.",
+ "enforcement.lead.violent_extremism": "Encontramos contenido o actividad en tu cuenta que infringe nuestras reglas sobre terrorismo y extremismo violento.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "biografía",
+ "enforcement.profile_field.global_name": "nombre visible",
+ "enforcement.profile_field.pronouns": "pronombres",
+ "enforcement.redress.out_of_court": "Si estás en la UE, también puedes someter esta decisión a un órgano de resolución extrajudicial de litigios certificado. La Comisión Europea publica una [lista de estos órganos]({url}).",
+ "enforcement.redress.regulator_and_court": "También puedes presentar una reclamación ante el coordinador de servicios digitales de tu país de la UE o acudir a los tribunales.",
+ "enforcement.rule.adult_content": "Contenido para adultos fuera de espacios +18",
+ "enforcement.rule.age_requirement": "Edad mínima",
+ "enforcement.rule.automation": "Automatización perjudicial",
+ "enforcement.rule.ban_evasion": "Evasión de restricciones",
+ "enforcement.rule.child_safety": "Seguridad infantil",
+ "enforcement.rule.copyright": "Derechos de autor",
+ "enforcement.rule.fraud": "Estafas y fraude",
+ "enforcement.rule.harassment": "Acoso",
+ "enforcement.rule.harmful_deception": "Engaño perjudicial",
+ "enforcement.rule.hate": "Odio y discriminación",
+ "enforcement.rule.illegal_activity": "Actividades ilegales y peligrosas",
+ "enforcement.rule.impersonation": "Suplantación de identidad y cuentas falsas",
+ "enforcement.rule.intimate_images": "Imágenes íntimas compartidas sin consentimiento",
+ "enforcement.rule.malware": "Enlaces maliciosos y malware",
+ "enforcement.rule.payments": "Pagos",
+ "enforcement.rule.privacy": "Privacidad e información personal",
+ "enforcement.rule.raids": "Ataques masivos y coordinados",
+ "enforcement.rule.report_abuse": "Uso indebido de los reportes",
+ "enforcement.rule.self_harm": "Promoción de las autolesiones",
+ "enforcement.rule.service_abuse": "Abuso del servicio",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Amenazas de violencia",
+ "enforcement.rule.unwanted_sexual_content": "Contenido sexual no deseado",
+ "enforcement.rule.violent_content": "Violencia gráfica",
+ "enforcement.rule.violent_extremism": "Terrorismo y extremismo violento",
+ "enforcement.source.own_review": "Lo encontramos en una revisión propia.",
+ "enforcement.source.report": "Lo revisamos a raíz de un reporte.",
+ "enforcement.summary.closure": "{target, select, bot {Cerramos tu bot {bot_name}.} other {Cerramos tu cuenta.}}",
+ "enforcement.summary.community_removal": "Eliminamos tu comunidad {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Eliminamos todos los mensajes que enviaste.} other {Eliminamos {count, plural, one {# mensaje que enviaste} other {# mensajes que enviaste}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Limitamos una función de tu cuenta hasta el {ends_at}.} other {Limitamos una función de tu cuenta.}}",
+ "enforcement.summary.profile_reset": "Restablecimos partes de tu perfil: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Suspendimos tu bot {bot_name} hasta el {ends_at}.} other {Suspendimos tu cuenta hasta el {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Suspendimos tu bot {bot_name} de forma permanente.} other {Suspendimos tu cuenta de forma permanente.}}",
+ "enforcement.summary.warning": "Te enviamos una advertencia por la actividad de tu cuenta.",
+ "enforcement.welfare.self_harm": "Si estás pasando por un momento difícil, no tienes por qué enfrentarlo sin ayuda. La [sección 3 de nuestras normas de la comunidad]({url}) incluye líneas de ayuda.",
"guild.bulk_create.emoji_limit": "Se alcanzó el límite máximo de emojis ({limit}).",
"guild.bulk_create.sticker_limit": "Se alcanzó el límite máximo de stickers ({limit}).",
"guild.bulk_create.unknown_error": "Error desconocido.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/es-ES.json b/fluxer_api/src/api/content_i18n/weblate/locales/es-ES.json
index 17908eb94..0f4e47f99 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/es-ES.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/es-ES.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Si soy un consumidor de la UE/EEE, doy mi consentimiento expreso para que el contenido digital de {product_name} {premium_tier_name} se proporcione de inmediato y reconozco que pierdo mi derecho legal de desistimiento una vez que se conceda el acceso. Esto no afecta a otros derechos de consumo obligatorios. Consulta los [Términos del servicio]({terms_url}).",
"bulk_message_deletion.complete": "Hemos terminado de eliminar tus mensajes. Hemos eliminado {message_count, plural, =0 {0 mensajes} one {# mensaje} other {# mensajes}} de {channel_count, plural, =0 {0 sitios} one {# sitio} other {# sitios}}.",
"content.virus_detected": "Ese archivo se ha marcado como potencialmente inseguro y se ha eliminado.",
+ "enforcement.automation.automated": "Es un límite temporal aplicado automáticamente mientras una persona de nuestro equipo revisa el caso.",
+ "enforcement.automation.flagged": "Nuestras herramientas automáticas han marcado este caso. Una persona de nuestro equipo lo ha revisado y ha tomado la decisión.",
+ "enforcement.automation.none": "Una persona de nuestro equipo ha revisado este caso y ha tomado la decisión.",
+ "enforcement.effect.account_not_restricted": "Tu cuenta no tiene ninguna otra restricción.",
+ "enforcement.effect.closure": "{target, select, bot {El bot no puede conectarse ni actuar en ningún sitio. Lo eliminaremos junto con sus datos el {deletion_at}. Tu propia cuenta no tiene restricciones.} other {No puedes iniciar sesión ni usar {product_name} en ningún sitio. Eliminaremos la cuenta y sus datos el {deletion_at}, excepto los que la ley nos obliga a conservar.}}",
+ "enforcement.effect.community_removed": "La comunidad, sus canales y sus mensajes ya no están disponibles para nadie. Tu propia cuenta no tiene restricciones.",
+ "enforcement.effect.limit_direct_messages": "Tus mensajes en conversaciones individuales y tus solicitudes de amistad no se entregan, y tu perfil está oculto. En las comunidades y las conversaciones de grupo, los demás ven tus mensajes contraídos y marcados como posible spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {No puedes hacer compras en {product_name} hasta que una persona de nuestro equipo revise este caso.} other {No puedes hacer compras en {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Hasta entonces, no puedes enviar denuncias en la aplicación. Para denunciar contenido ilícito, usa la vía de seguridad indicada en nuestra [página de información de la empresa]({url}).} other {Hasta entonces, no puedes enviar denuncias en la aplicación.}}",
+ "enforcement.effect.messages_removed": "También hemos eliminado {count, plural, one {# mensaje} other {# mensajes}}.",
+ "enforcement.effect.networks_blocked": "También hemos bloqueado hasta el {date} el acceso desde las redes que usaba esta cuenta.",
+ "enforcement.effect.no_other_accounts": "No se te permite crear ni usar otras cuentas.",
+ "enforcement.effect.scope": "Esta decisión se aplica en todos los lugares donde {product_name} está disponible.",
+ "enforcement.effect.suspension": "{target, select, bot {Hasta entonces, el bot no puede conectarse ni actuar en ningún sitio. Tu propia cuenta no tiene restricciones.} other {Hasta entonces, no puedes iniciar sesión ni usar {product_name} en ningún sitio. Conservamos tu cuenta, tus mensajes y tus comunidades.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {El bot no puede conectarse ni actuar en ningún sitio. Tu propia cuenta no tiene restricciones.} other {No puedes iniciar sesión ni usar {product_name} en ningún sitio.}}",
+ "enforcement.effect.warning": "Tu cuenta no tiene restricciones. Si vuelve a ocurrir, podríamos limitarla o suspenderla.",
+ "enforcement.facts.channel": "{count, plural, one {# mensaje} other {# mensajes}} en #{channel} de {community}, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# mensaje publicado} other {# mensajes publicados}} en #{channel}, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.facts.copyright": "Titular de los derechos o derecho afectado: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación de mensajes directos, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación de mensajes directos en {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación de grupo, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación de grupo en {month}.",
+ "enforcement.facts.payment": "Un pago en tu cuenta el {date}.",
+ "enforcement.facts.profile": "Tu perfil: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# mensaje} other {# mensajes}} en una conversación que ya no existe, {range, select, single {el {start}} other {entre el {start} y el {end}}}.",
+ "enforcement.lead.adult_content": "Hemos encontrado contenido sexual de tu cuenta fuera de un espacio marcado como +18.",
+ "enforcement.lead.age_requirement": "Debes tener la edad mínima de tu país para usar {product_name}. No es un castigo, y podrás volver cuando tengas la edad suficiente.",
+ "enforcement.lead.automation": "Hemos encontrado actividad automatizada de tu cuenta que ha alterado el uso normal del servicio.",
+ "enforcement.lead.ban_evasion": "Hemos comprobado que esta cuenta se ha usado para eludir una restricción de otra cuenta.",
+ "enforcement.lead.bot": "Hemos encontrado actividad de tu bot que infringe esta norma.",
+ "enforcement.lead.child_safety": "Hemos encontrado contenido o actividad en tu cuenta que infringe nuestras normas sobre la protección de menores.",
+ "enforcement.lead.community": "Hemos encontrado contenido en esta comunidad que infringe esta norma.",
+ "enforcement.lead.copyright": "Hemos encontrado contenido de tu cuenta que usa obras de otras personas sin permiso.",
+ "enforcement.lead.fraud": "Hemos encontrado contenido de tu cuenta que intentaba engañar a otras personas para quitarles dinero, cuentas o información personal.",
+ "enforcement.lead.harassment": "Hemos encontrado mensajes de tu cuenta que acosaban o intimidaban a alguien.",
+ "enforcement.lead.harmful_deception": "Hemos encontrado contenido de tu cuenta que difundía afirmaciones falsas que pueden causar daños graves.",
+ "enforcement.lead.hate": "Hemos encontrado contenido de tu cuenta que ataca o denigra a personas por lo que son.",
+ "enforcement.lead.illegal_activity": "Hemos encontrado contenido de tu cuenta que ofrece o facilita bienes o actividades ilegales.",
+ "enforcement.lead.impersonation": "Hemos comprobado que tu cuenta se ha hecho pasar por otra persona u organización, o ha usado una identidad falsa para engañar a los demás.",
+ "enforcement.lead.intimate_images": "Hemos comprobado que tu cuenta ha compartido imágenes íntimas de alguien sin su consentimiento.",
+ "enforcement.lead.legacy": "No tenemos más detalles registrados sobre esta decisión.",
+ "enforcement.lead.malware": "Hemos encontrado enlaces o archivos de tu cuenta que llevan a malware u otro software dañino.",
+ "enforcement.lead.payments": "Hemos encontrado un problema de pago en tu cuenta que infringe nuestras condiciones de pago.",
+ "enforcement.lead.privacy": "Hemos comprobado que tu cuenta ha compartido información personal de alguien sin su consentimiento.",
+ "enforcement.lead.raids": "Hemos comprobado que tu cuenta ha participado en un ataque coordinado contra una comunidad o una persona.",
+ "enforcement.lead.report_abuse": "Hemos comprobado que tu cuenta ha enviado repetidamente denuncias falsas o de mala fe.",
+ "enforcement.lead.self_harm": "Hemos encontrado contenido de tu cuenta que fomenta las autolesiones o da instrucciones para autolesionarse.",
+ "enforcement.lead.service_abuse": "Hemos comprobado que tu cuenta ha usado {product_name} de una forma que interfiere con el servicio o elude sus límites.",
+ "enforcement.lead.spam": "Hemos comprobado que tu cuenta ha enviado mensajes no deseados de forma masiva.",
+ "enforcement.lead.threats": "Hemos encontrado mensajes de tu cuenta que amenazaban con violencia o incitaban a ella.",
+ "enforcement.lead.unwanted_sexual_content": "Hemos comprobado que tu cuenta ha enviado contenido sexual a alguien que no había aceptado recibirlo.",
+ "enforcement.lead.violent_content": "Hemos comprobado que tu cuenta ha compartido violencia gráfica o contenido gore.",
+ "enforcement.lead.violent_extremism": "Hemos encontrado contenido o actividad en tu cuenta que infringe nuestras normas sobre terrorismo y extremismo violento.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "biografía",
+ "enforcement.profile_field.global_name": "nombre visible",
+ "enforcement.profile_field.pronouns": "pronombres",
+ "enforcement.redress.out_of_court": "Si estás en la UE, también puedes someter esta decisión a un órgano de resolución extrajudicial de litigios certificado. La Comisión Europea publica una [lista de estos órganos]({url}).",
+ "enforcement.redress.regulator_and_court": "También puedes presentar una reclamación ante el coordinador de servicios digitales de tu país de la UE o acudir a los tribunales.",
+ "enforcement.rule.adult_content": "Contenido para adultos fuera de espacios +18",
+ "enforcement.rule.age_requirement": "Edad mínima",
+ "enforcement.rule.automation": "Automatización perjudicial",
+ "enforcement.rule.ban_evasion": "Elusión de restricciones",
+ "enforcement.rule.child_safety": "Seguridad infantil",
+ "enforcement.rule.copyright": "Derechos de autor",
+ "enforcement.rule.fraud": "Estafas y fraude",
+ "enforcement.rule.harassment": "Acoso",
+ "enforcement.rule.harmful_deception": "Engaño perjudicial",
+ "enforcement.rule.hate": "Odio y discriminación",
+ "enforcement.rule.illegal_activity": "Actividades ilegales y peligrosas",
+ "enforcement.rule.impersonation": "Suplantación de identidad y cuentas falsas",
+ "enforcement.rule.intimate_images": "Imágenes íntimas compartidas sin consentimiento",
+ "enforcement.rule.malware": "Enlaces maliciosos y malware",
+ "enforcement.rule.payments": "Pagos",
+ "enforcement.rule.privacy": "Privacidad e información personal",
+ "enforcement.rule.raids": "Ataques masivos y coordinados",
+ "enforcement.rule.report_abuse": "Uso indebido de las denuncias",
+ "enforcement.rule.self_harm": "Promoción de las autolesiones",
+ "enforcement.rule.service_abuse": "Abuso del servicio",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Amenazas de violencia",
+ "enforcement.rule.unwanted_sexual_content": "Contenido sexual no deseado",
+ "enforcement.rule.violent_content": "Violencia gráfica",
+ "enforcement.rule.violent_extremism": "Terrorismo y extremismo violento",
+ "enforcement.source.own_review": "Lo hemos encontrado en una revisión propia.",
+ "enforcement.source.report": "Lo hemos revisado a raíz de una denuncia.",
+ "enforcement.summary.closure": "{target, select, bot {Hemos cerrado tu bot {bot_name}.} other {Hemos cerrado tu cuenta.}}",
+ "enforcement.summary.community_removal": "Hemos eliminado tu comunidad {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Hemos eliminado todos los mensajes que enviaste.} other {Hemos eliminado {count, plural, one {# mensaje que enviaste} other {# mensajes que enviaste}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Hemos limitado una función de tu cuenta hasta el {ends_at}.} other {Hemos limitado una función de tu cuenta.}}",
+ "enforcement.summary.profile_reset": "Hemos restablecido partes de tu perfil: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Hemos suspendido tu bot {bot_name} hasta el {ends_at}.} other {Hemos suspendido tu cuenta hasta el {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Hemos suspendido tu bot {bot_name} de forma permanente.} other {Hemos suspendido tu cuenta de forma permanente.}}",
+ "enforcement.summary.warning": "Te enviamos una advertencia por la actividad de tu cuenta.",
+ "enforcement.welfare.self_harm": "Si estás pasando por un momento difícil, no tienes por qué afrontarlo sin ayuda. La [sección 3 de nuestras normas de la comunidad]({url}) incluye líneas de ayuda.",
"guild.bulk_create.emoji_limit": "Se ha alcanzado el límite máximo de emojis ({limit}).",
"guild.bulk_create.sticker_limit": "Se ha alcanzado el límite máximo de stickers ({limit}).",
"guild.bulk_create.unknown_error": "Error desconocido.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/fi.json b/fluxer_api/src/api/content_i18n/weblate/locales/fi.json
index 81e64c87f..7ddc04088 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/fi.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/fi.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Jos olen EU/ETA-kuluttaja, annan nimenomaisen suostumukseni sille, että {product_name} {premium_tier_name} -palvelun digitaalinen sisältö toimitetaan välittömästi, ja hyväksyn, että menetän lakisääteisen peruuttamisoikeuteni, kun saan pääsyn sisältöön. Tämä ei vaikuta muihin pakottaviin kuluttajaoikeuksiin. Katso [käyttöehdot]({terms_url}).",
"bulk_message_deletion.complete": "Olemme poistaneet viestisi. Poistimme {message_count, plural, =0 {0 viestiä} one {# viestin} other {# viestiä}} {channel_count, plural, =0 {0 paikasta} one {# paikasta} other {# paikasta}}.",
"content.virus_detected": "Tiedosto merkittiin mahdollisesti vaaralliseksi ja se on poistettu.",
+ "enforcement.automation.automated": "Tämä väliaikainen rajoitus asetettiin automaattisesti, ja se on voimassa sen ajan, kun tiimimme jäsen tarkistaa asian.",
+ "enforcement.automation.flagged": "Automaattiset työkalut merkitsivät tämän. Tiimimme jäsen tarkisti asian ja teki päätöksen.",
+ "enforcement.automation.none": "Tiimimme jäsen tarkisti asian ja teki päätöksen.",
+ "enforcement.effect.account_not_restricted": "Tiliäsi ei ole muuten rajoitettu.",
+ "enforcement.effect.closure": "{target, select, bot {Botti ei voi muodostaa yhteyttä eikä toimia missään. Poistamme botin ja sen tiedot {deletion_at}. Omaa tiliäsi ei ole rajoitettu.} other {Et voi kirjautua sisään etkä käyttää palvelua {product_name} missään. Poistamme tilin ja sen tiedot {deletion_at}, lukuun ottamatta tietoja, jotka meidän on lain mukaan säilytettävä.}}",
+ "enforcement.effect.community_removed": "Yhteisö sekä sen kanavat ja viestit eivät ole enää kenenkään käytettävissä. Omaa tiliäsi ei ole rajoitettu.",
+ "enforcement.effect.limit_direct_messages": "Kahdenkeskisiä viestejäsi ja kaveripyyntöjäsi ei toimiteta, ja profiilisi on piilotettu. Yhteisöissä ja ryhmäkeskusteluissa muut näkevät viestisi tiivistettyinä ja merkittyinä mahdolliseksi roskapostiksi.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Et voi tehdä ostoksia palvelussa {product_name}, ennen kuin tiimimme jäsen on tarkistanut asian.} other {Et voi tehdä ostoksia palvelussa {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Et voi lähettää ilmoituksia sovelluksessa siihen asti. Jos haluat ilmoittaa laittomasta sisällöstä, käytä [yritystietosivullamme]({url}) mainittua turvallisuuskanavaa.} other {Et voi lähettää ilmoituksia sovelluksessa siihen asti.}}",
+ "enforcement.effect.messages_removed": "Poistimme myös {count, plural, one {# viestin} other {# viestiä}}.",
+ "enforcement.effect.networks_blocked": "Estimme myös {date} asti pääsyn verkoista, joita tämä tili on käyttänyt.",
+ "enforcement.effect.no_other_accounts": "Et saa luoda tai käyttää muita tilejä.",
+ "enforcement.effect.scope": "Tämä päätös on voimassa kaikkialla, missä {product_name} on saatavilla.",
+ "enforcement.effect.suspension": "{target, select, bot {Botti ei voi muodostaa yhteyttä eikä toimia missään siihen asti. Omaa tiliäsi ei ole rajoitettu.} other {Et voi kirjautua sisään etkä käyttää palvelua {product_name} missään siihen asti. Tilisi, viestisi ja yhteisösi säilytetään.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Botti ei voi muodostaa yhteyttä eikä toimia missään. Omaa tiliäsi ei ole rajoitettu.} other {Et voi kirjautua sisään etkä käyttää palvelua {product_name} missään.}}",
+ "enforcement.effect.warning": "Tiliäsi ei ole rajoitettu. Jos tämä toistuu, voimme rajoittaa tiliäsi tai jäädyttää sen.",
+ "enforcement.facts.channel": "{count, plural, one {# viesti} other {# viestiä}} yhteisön {community} kanavalla #{channel}, {range, select, single {{start}} other {{start} ja {end} välillä}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# viesti, joka lähetettiin} other {# viestiä, jotka lähetettiin}} kanavalle #{channel}, {range, select, single {{start}} other {{start} ja {end} välillä}}.",
+ "enforcement.facts.copyright": "Oikeudenhaltija tai kyseinen oikeus: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# viesti} other {# viestiä}} yksityisviestikeskustelussa, {range, select, single {{start}} other {{start} ja {end} välillä}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# viesti} other {# viestiä}} yksityisviestikeskustelussa ({month}).",
+ "enforcement.facts.group_message": "{count, plural, one {# viesti} other {# viestiä}} ryhmäkeskustelussa, {range, select, single {{start}} other {{start} ja {end} välillä}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# viesti} other {# viestiä}} ryhmäkeskustelussa ({month}).",
+ "enforcement.facts.payment": "Tililläsi tehty maksu {date}.",
+ "enforcement.facts.profile": "Profiilisi: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# viesti} other {# viestiä}} keskustelussa, jota ei ole enää olemassa, {range, select, single {{start}} other {{start} ja {end} välillä}}.",
+ "enforcement.lead.adult_content": "Löysimme tililtäsi seksuaalista sisältöä 18+-merkittyjen tilojen ulkopuolelta.",
+ "enforcement.lead.age_requirement": "Palvelun {product_name} käyttäminen edellyttää, että olet täyttänyt maassasi vaaditun vähimmäisiän. Tämä ei ole rangaistus, ja olet tervetullut takaisin, kun olet tarpeeksi vanha.",
+ "enforcement.lead.automation": "Havaitsimme tililtäsi automatisoitua toimintaa, joka häiritsi palvelun normaalia käyttöä.",
+ "enforcement.lead.ban_evasion": "Havaitsimme, että tätä tiliä käytettiin toiseen tiliin kohdistuneen rajoituksen kiertämiseen.",
+ "enforcement.lead.bot": "Löysimme bottisi toimintaa, joka rikkoo tätä sääntöä.",
+ "enforcement.lead.child_safety": "Löysimme tililtäsi sisältöä tai toimintaa, joka rikkoo lasten suojelua koskevia sääntöjämme.",
+ "enforcement.lead.community": "Löysimme tästä yhteisöstä sisältöä, joka rikkoo tätä sääntöä.",
+ "enforcement.lead.copyright": "Löysimme tililtäsi sisältöä, jossa käytetään jonkun toisen teosta ilman lupaa.",
+ "enforcement.lead.fraud": "Löysimme tililtäsi sisältöä, jolla yritettiin huijata ihmisiltä rahaa, tilejä tai henkilötietoja.",
+ "enforcement.lead.harassment": "Löysimme tililtäsi viestejä, joilla häirittiin tai kiusattiin jotakuta.",
+ "enforcement.lead.harmful_deception": "Löysimme tililtäsi sisältöä, joka levitti vääriä väitteitä, jotka todennäköisesti aiheuttavat vakavaa haittaa.",
+ "enforcement.lead.hate": "Löysimme tililtäsi sisältöä, joka hyökkää ihmisiä vastaan tai halventaa heitä sen vuoksi, keitä he ovat.",
+ "enforcement.lead.illegal_activity": "Löysimme tililtäsi sisältöä, jossa tarjotaan laittomia tuotteita tai laitonta toimintaa tai autetaan niissä.",
+ "enforcement.lead.impersonation": "Havaitsimme, että tilisi esiintyi toisena henkilönä tai organisaationa tai käytti valeidentiteettiä ihmisten harhaanjohtamiseen.",
+ "enforcement.lead.intimate_images": "Havaitsimme, että tilisi jakoi jonkun intiimejä kuvia ilman hänen suostumustaan.",
+ "enforcement.lead.legacy": "Meillä ei ole tästä päätöksestä tallennettuna tarkempia tietoja.",
+ "enforcement.lead.malware": "Löysimme tililtäsi linkkejä tai tiedostoja, jotka johtavat haittaohjelmiin tai muihin haitallisiin ohjelmistoihin.",
+ "enforcement.lead.payments": "Havaitsimme tililläsi maksuihin liittyvän ongelman, joka rikkoo maksuehtojamme.",
+ "enforcement.lead.privacy": "Havaitsimme, että tilisi jakoi jonkun henkilötietoja ilman hänen suostumustaan.",
+ "enforcement.lead.raids": "Havaitsimme, että tilisi osallistui yhteisöön tai henkilöön kohdistuneeseen koordinoituun hyökkäykseen.",
+ "enforcement.lead.report_abuse": "Havaitsimme, että tilisi lähetti toistuvasti ilmoituksia, jotka olivat perättömiä tai tehty vilpillisessä mielessä.",
+ "enforcement.lead.self_harm": "Löysimme tililtäsi sisältöä, joka kannustaa itsensä vahingoittamiseen tai antaa siihen ohjeita.",
+ "enforcement.lead.service_abuse": "Havaitsimme, että tilisi käytti palvelua {product_name} tavalla, joka häiritsee palvelua tai kiertää sen rajoituksia.",
+ "enforcement.lead.spam": "Havaitsimme, että tilisi lähetti ei-toivottuja viestejä massana.",
+ "enforcement.lead.threats": "Löysimme tililtäsi viestejä, joissa uhattiin väkivallalla tai yllytettiin siihen.",
+ "enforcement.lead.unwanted_sexual_content": "Havaitsimme, että tilisi lähetti seksuaalista sisältöä henkilölle, joka ei ollut suostunut vastaanottamaan sitä.",
+ "enforcement.lead.violent_content": "Havaitsimme, että tilisi jakoi raakaa väkivaltaa tai verisiä kuvia.",
+ "enforcement.lead.violent_extremism": "Löysimme tililtäsi sisältöä tai toimintaa, joka rikkoo terrorismia ja väkivaltaista ekstremismiä koskevia sääntöjämme.",
+ "enforcement.profile_field.avatar": "profiilikuva",
+ "enforcement.profile_field.banner": "banneri",
+ "enforcement.profile_field.bio": "kuvaus",
+ "enforcement.profile_field.global_name": "näyttönimi",
+ "enforcement.profile_field.pronouns": "pronominit",
+ "enforcement.redress.out_of_court": "Jos olet EU:ssa, voit myös saattaa tämän päätöksen sertifioidun tuomioistuinten ulkopuolisen riitojenratkaisuelimen käsiteltäväksi. Euroopan komissio ylläpitää [luetteloa näistä elimistä]({url}).",
+ "enforcement.redress.regulator_and_court": "Voit myös tehdä valituksen EU-maasi digitaalisten palvelujen koordinaattorille tai viedä asian tuomioistuimeen.",
+ "enforcement.rule.adult_content": "Aikuisille suunnattu sisältö 18+-tilojen ulkopuolella",
+ "enforcement.rule.age_requirement": "Vähimmäisikä",
+ "enforcement.rule.automation": "Häiritsevä automaatio",
+ "enforcement.rule.ban_evasion": "Rajoitusten kiertäminen",
+ "enforcement.rule.child_safety": "Lasten turvallisuus",
+ "enforcement.rule.copyright": "Tekijänoikeus",
+ "enforcement.rule.fraud": "Huijaukset ja petokset",
+ "enforcement.rule.harassment": "Häirintä",
+ "enforcement.rule.harmful_deception": "Haitallinen harhaanjohtaminen",
+ "enforcement.rule.hate": "Viha ja syrjintä",
+ "enforcement.rule.illegal_activity": "Laiton ja vaarallinen toiminta",
+ "enforcement.rule.impersonation": "Toisena esiintyminen ja valetilit",
+ "enforcement.rule.intimate_images": "Ilman suostumusta jaetut intiimit kuvat",
+ "enforcement.rule.malware": "Haitalliset linkit ja haittaohjelmat",
+ "enforcement.rule.payments": "Maksut",
+ "enforcement.rule.privacy": "Yksityisyys ja henkilötiedot",
+ "enforcement.rule.raids": "Raidit ja koordinoidut hyökkäykset",
+ "enforcement.rule.report_abuse": "Ilmoitustoiminnon väärinkäyttö",
+ "enforcement.rule.self_harm": "Itsensä vahingoittamiseen kannustaminen",
+ "enforcement.rule.service_abuse": "Palvelun väärinkäyttö",
+ "enforcement.rule.spam": "Roskaposti",
+ "enforcement.rule.threats": "Väkivallalla uhkaaminen",
+ "enforcement.rule.unwanted_sexual_content": "Ei-toivottu seksuaalinen sisältö",
+ "enforcement.rule.violent_content": "Raaka väkivalta",
+ "enforcement.rule.violent_extremism": "Terrorismi ja väkivaltainen ekstremismi",
+ "enforcement.source.own_review": "Havaitsimme tämän omassa tarkistuksessamme.",
+ "enforcement.source.report": "Tarkistimme tämän ilmoituksen perusteella.",
+ "enforcement.summary.closure": "{target, select, bot {Suljimme bottisi {bot_name}.} other {Suljimme tilisi.}}",
+ "enforcement.summary.community_removal": "Poistimme yhteisösi {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Poistimme kaikki lähettämäsi viestit.} other {Poistimme {count, plural, one {# lähettämäsi viestin} other {# lähettämääsi viestiä}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Rajoitimme yhtä tilisi ominaisuuksista {ends_at} asti.} other {Rajoitimme yhtä tilisi ominaisuuksista.}}",
+ "enforcement.summary.profile_reset": "Nollasimme osia profiilistasi: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Jäädytimme bottisi {bot_name} {ends_at} asti.} other {Jäädytimme tilisi {ends_at} asti.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Jäädytimme bottisi {bot_name} pysyvästi.} other {Jäädytimme tilisi pysyvästi.}}",
+ "enforcement.summary.warning": "Annamme sinulle varoituksen tililläsi tapahtuneesta toiminnasta.",
+ "enforcement.welfare.self_harm": "Jos sinulla on nyt vaikeaa, sinun ei tarvitse selvitä siitä yksin. [Yhteisöohjeidemme kohdassa 3]({url}) on lueteltu tukipuhelimia.",
"guild.bulk_create.emoji_limit": "Emojien enimmäismäärä on saavutettu ({limit}).",
"guild.bulk_create.sticker_limit": "Tarrojen enimmäismäärä on saavutettu ({limit}).",
"guild.bulk_create.unknown_error": "Tuntematon virhe.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/fr.json b/fluxer_api/src/api/content_i18n/weblate/locales/fr.json
index 4a86baa9f..7d095ea2b 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/fr.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/fr.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Si je suis un consommateur de l'UE/EEE, je consens expressément à ce que le contenu numérique de {product_name} {premium_tier_name} soit fourni immédiatement et reconnais que je perds mon droit légal de rétractation dès que l'accès est fourni. Cela n'affecte pas les autres droits impératifs des consommateurs. Voir les [Conditions d'utilisation]({terms_url}).",
"bulk_message_deletion.complete": "Nous avons terminé de supprimer vos messages. Nous avons supprimé {message_count, plural, =0 {0 message} one {# message} other {# messages}} dans {channel_count, plural, =0 {0 endroit} one {# endroit} other {# endroits}}.",
"content.virus_detected": "Ce fichier a été signalé comme potentiellement dangereux et a été supprimé.",
+ "enforcement.automation.automated": "Il s'agit d'une limite temporaire appliquée automatiquement, le temps qu'une personne de notre équipe examine le cas.",
+ "enforcement.automation.flagged": "Des outils automatisés ont repéré ce cas. Une personne de notre équipe l'a examiné et a pris la décision.",
+ "enforcement.automation.none": "Une personne de notre équipe a examiné ce cas et a pris la décision.",
+ "enforcement.effect.account_not_restricted": "Votre compte ne fait l'objet d'aucune autre restriction.",
+ "enforcement.effect.closure": "{target, select, bot {Le bot ne peut plus se connecter ni agir nulle part. Nous le supprimerons avec ses données le {deletion_at}. Votre propre compte ne fait l'objet d'aucune restriction.} other {Vous ne pouvez plus vous connecter ni utiliser {product_name} nulle part. Nous supprimerons le compte et ses données le {deletion_at}, à l'exception des données que la loi nous oblige à conserver.}}",
+ "enforcement.effect.community_removed": "La communauté, ses salons et ses messages ne sont plus accessibles à personne. Votre propre compte ne fait l'objet d'aucune restriction.",
+ "enforcement.effect.limit_direct_messages": "Vos messages en tête-à-tête et vos demandes d'ami ne sont pas distribués, et votre profil est masqué. Dans les communautés et les conversations de groupe, les autres voient vos messages réduits et marqués comme spam potentiel.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Vous ne pouvez pas effectuer d'achats sur {product_name} tant qu'une personne de notre équipe n'a pas examiné ce cas.} other {Vous ne pouvez pas effectuer d'achats sur {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Vous ne pouvez pas envoyer de signalements dans l'application jusqu'à cette date. Pour signaler un contenu illicite, utilisez le canal de signalement indiqué sur notre [page d'informations sur l'entreprise]({url}).} other {Vous ne pouvez pas envoyer de signalements dans l'application jusqu'à cette date.}}",
+ "enforcement.effect.messages_removed": "Nous avons également supprimé {count, plural, one {# message} other {# messages}}.",
+ "enforcement.effect.networks_blocked": "Nous avons également bloqué, jusqu'au {date}, l'accès depuis les réseaux utilisés par ce compte.",
+ "enforcement.effect.no_other_accounts": "Il vous est interdit de créer ou d'utiliser d'autres comptes.",
+ "enforcement.effect.scope": "Cette décision s'applique partout où {product_name} est disponible.",
+ "enforcement.effect.suspension": "{target, select, bot {Le bot ne peut se connecter ni agir nulle part jusqu'à cette date. Votre propre compte ne fait l'objet d'aucune restriction.} other {Vous ne pouvez vous connecter ni utiliser {product_name} nulle part jusqu'à cette date. Votre compte, vos messages et vos communautés sont conservés.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Le bot ne peut plus se connecter ni agir nulle part. Votre propre compte ne fait l'objet d'aucune restriction.} other {Vous ne pouvez plus vous connecter ni utiliser {product_name} nulle part.}}",
+ "enforcement.effect.warning": "Votre compte ne fait l'objet d'aucune restriction. Si cela se reproduit, nous pourrons le limiter ou le suspendre.",
+ "enforcement.facts.channel": "{count, plural, one {# message} other {# messages}} dans #{channel} de {community}, {range, select, single {le {start}} other {entre le {start} et le {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# message publié} other {# messages publiés}} dans #{channel}, {range, select, single {le {start}} other {entre le {start} et le {end}}}.",
+ "enforcement.facts.copyright": "Titulaire des droits ou droit concerné : {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# message} other {# messages}} dans une conversation privée, {range, select, single {le {start}} other {entre le {start} et le {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# message} other {# messages}} dans une conversation privée en {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# message} other {# messages}} dans une conversation de groupe, {range, select, single {le {start}} other {entre le {start} et le {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# message} other {# messages}} dans une conversation de groupe en {month}.",
+ "enforcement.facts.payment": "Un paiement sur votre compte le {date}.",
+ "enforcement.facts.profile": "Votre profil : {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# message} other {# messages}} dans une conversation qui n'existe plus, {range, select, single {le {start}} other {entre le {start} et le {end}}}.",
+ "enforcement.lead.adult_content": "Nous avons constaté que votre compte a publié du contenu sexuel en dehors d'un espace marqué 18+.",
+ "enforcement.lead.age_requirement": "Vous devez avoir l'âge minimum requis dans votre pays pour utiliser {product_name}. Ce n'est pas une sanction, et vous pourrez revenir dès que vous aurez l'âge requis.",
+ "enforcement.lead.automation": "Nous avons constaté une activité automatisée de votre compte qui a perturbé l'utilisation normale du service.",
+ "enforcement.lead.ban_evasion": "Nous avons constaté que ce compte a été utilisé pour contourner une restriction visant un autre compte.",
+ "enforcement.lead.bot": "Nous avons constaté une activité de votre bot qui enfreint cette règle.",
+ "enforcement.lead.child_safety": "Nous avons constaté sur votre compte du contenu ou une activité qui enfreint nos règles relatives à la protection des enfants.",
+ "enforcement.lead.community": "Nous avons constaté dans cette communauté du contenu qui enfreint cette règle.",
+ "enforcement.lead.copyright": "Nous avons constaté que votre compte a publié du contenu qui utilise l'œuvre d'autrui sans autorisation.",
+ "enforcement.lead.fraud": "Nous avons constaté que votre compte a publié du contenu qui cherchait à soutirer par la ruse de l'argent, des comptes ou des informations personnelles.",
+ "enforcement.lead.harassment": "Nous avons constaté que votre compte a envoyé des messages qui harcelaient ou intimidaient quelqu'un.",
+ "enforcement.lead.harmful_deception": "Nous avons constaté que votre compte a diffusé de fausses affirmations susceptibles de causer un préjudice grave.",
+ "enforcement.lead.hate": "Nous avons constaté que votre compte a publié du contenu qui attaque ou dénigre des personnes en raison de ce qu'elles sont.",
+ "enforcement.lead.illegal_activity": "Nous avons constaté que votre compte a publié du contenu qui propose des biens ou des activités illégaux, ou qui y contribue.",
+ "enforcement.lead.impersonation": "Nous avons constaté que votre compte s'est fait passer pour une autre personne ou organisation, ou a utilisé une fausse identité pour tromper les autres.",
+ "enforcement.lead.intimate_images": "Nous avons constaté que votre compte a partagé des images intimes d'une personne sans son consentement.",
+ "enforcement.lead.legacy": "Nous ne disposons pas de plus de détails sur cette décision.",
+ "enforcement.lead.malware": "Nous avons constaté que votre compte a partagé des liens ou des fichiers menant à des logiciels malveillants ou à d'autres logiciels nuisibles.",
+ "enforcement.lead.payments": "Nous avons constaté sur votre compte un problème de paiement qui enfreint nos conditions de paiement.",
+ "enforcement.lead.privacy": "Nous avons constaté que votre compte a partagé les informations personnelles de quelqu'un sans son consentement.",
+ "enforcement.lead.raids": "Nous avons constaté que votre compte a participé à une attaque coordonnée contre une communauté ou une personne.",
+ "enforcement.lead.report_abuse": "Nous avons constaté que votre compte a envoyé à plusieurs reprises des signalements faux ou de mauvaise foi.",
+ "enforcement.lead.self_harm": "Nous avons constaté que votre compte a publié du contenu qui encourage l'automutilation ou explique comment la pratiquer.",
+ "enforcement.lead.service_abuse": "Nous avons constaté que votre compte a utilisé {product_name} d'une manière qui perturbe le service ou contourne ses limites.",
+ "enforcement.lead.spam": "Nous avons constaté que votre compte a envoyé des messages indésirables en masse.",
+ "enforcement.lead.threats": "Nous avons constaté que votre compte a envoyé des messages qui menaçaient de violence ou y incitaient.",
+ "enforcement.lead.unwanted_sexual_content": "Nous avons constaté que votre compte a envoyé du contenu sexuel à une personne qui n'avait pas accepté d'en recevoir.",
+ "enforcement.lead.violent_content": "Nous avons constaté que votre compte a partagé du contenu de violence explicite ou gore.",
+ "enforcement.lead.violent_extremism": "Nous avons constaté sur votre compte du contenu ou une activité qui enfreint nos règles relatives au terrorisme et à l'extrémisme violent.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "bannière",
+ "enforcement.profile_field.bio": "bio",
+ "enforcement.profile_field.global_name": "nom affiché",
+ "enforcement.profile_field.pronouns": "pronoms",
+ "enforcement.redress.out_of_court": "Si vous êtes dans l'UE, vous pouvez également soumettre cette décision à un organe de règlement extrajudiciaire des litiges certifié. La Commission européenne tient une [liste de ces organes]({url}).",
+ "enforcement.redress.regulator_and_court": "Vous pouvez également introduire une réclamation auprès du coordinateur pour les services numériques de votre pays de l'UE, ou saisir la justice.",
+ "enforcement.rule.adult_content": "Contenu pour adultes hors des espaces 18+",
+ "enforcement.rule.age_requirement": "Âge minimum",
+ "enforcement.rule.automation": "Automatisation perturbatrice",
+ "enforcement.rule.ban_evasion": "Contournement des restrictions",
+ "enforcement.rule.child_safety": "Sécurité des enfants",
+ "enforcement.rule.copyright": "Droit d'auteur",
+ "enforcement.rule.fraud": "Arnaques et fraude",
+ "enforcement.rule.harassment": "Harcèlement",
+ "enforcement.rule.harmful_deception": "Tromperie préjudiciable",
+ "enforcement.rule.hate": "Haine et discrimination",
+ "enforcement.rule.illegal_activity": "Activités illégales et dangereuses",
+ "enforcement.rule.impersonation": "Usurpation d'identité et faux comptes",
+ "enforcement.rule.intimate_images": "Images intimes partagées sans consentement",
+ "enforcement.rule.malware": "Liens malveillants et logiciels malveillants",
+ "enforcement.rule.payments": "Paiements",
+ "enforcement.rule.privacy": "Vie privée et informations personnelles",
+ "enforcement.rule.raids": "Raids et attaques coordonnées",
+ "enforcement.rule.report_abuse": "Utilisation abusive des signalements",
+ "enforcement.rule.self_harm": "Promotion de l'automutilation",
+ "enforcement.rule.service_abuse": "Utilisation abusive du service",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Menaces de violence",
+ "enforcement.rule.unwanted_sexual_content": "Contenu sexuel non sollicité",
+ "enforcement.rule.violent_content": "Violence explicite",
+ "enforcement.rule.violent_extremism": "Terrorisme et extrémisme violent",
+ "enforcement.source.own_review": "Nous avons constaté ce problème lors de notre propre vérification.",
+ "enforcement.source.report": "Nous avons examiné ce cas à la suite d'un signalement.",
+ "enforcement.summary.closure": "{target, select, bot {Nous avons fermé votre bot {bot_name}.} other {Nous avons fermé votre compte.}}",
+ "enforcement.summary.community_removal": "Nous avons supprimé votre communauté {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Nous avons supprimé tous les messages que vous avez envoyés.} other {Nous avons supprimé {count, plural, one {# message que vous avez envoyé} other {# messages que vous avez envoyés}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Nous avons limité une fonctionnalité de votre compte jusqu'au {ends_at}.} other {Nous avons limité une fonctionnalité de votre compte.}}",
+ "enforcement.summary.profile_reset": "Nous avons réinitialisé certaines parties de votre profil : {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Nous avons suspendu votre bot {bot_name} jusqu'au {ends_at}.} other {Nous avons suspendu votre compte jusqu'au {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Nous avons banni votre bot {bot_name}.} other {Nous avons banni votre compte.}}",
+ "enforcement.summary.warning": "Nous vous adressons un avertissement concernant l'activité de votre compte.",
+ "enforcement.welfare.self_harm": "Si vous traversez une période difficile, vous n'avez pas à y faire face sans soutien. La [section 3 de nos règles de la communauté]({url}) indique des lignes d'écoute.",
"guild.bulk_create.emoji_limit": "Nombre maximal d’émojis atteint ({limit}).",
"guild.bulk_create.sticker_limit": "Nombre maximal d’autocollants atteint ({limit}).",
"guild.bulk_create.unknown_error": "Erreur inconnue.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/he.json b/fluxer_api/src/api/content_i18n/weblate/locales/he.json
index 16a7da29a..c93b47d9b 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/he.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/he.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "אם אני צרכן באיחוד האירופי/EEA, אני מסכים במפורש לכך שתוכן דיגיטלי של {product_name} {premium_tier_name} יסופק באופן מיידי ומאשר שאני מאבד את זכות הביטול הסטטוטורית שלי מרגע שהגישה ניתנת. אין בכך כדי לפגוע בזכויות צרכניות מחייבות אחרות. ראו [תנאי השירות]({terms_url}).",
"bulk_message_deletion.complete": "סיימנו למחוק את ההודעות שלך. הסרנו {message_count, plural, =0 {0 הודעות} one {הודעה אחת} two {שתי הודעות} other {# הודעות}} מתוך {channel_count, plural, =0 {0 מקומות} one {מקום אחד} two {שני מקומות} other {# מקומות}}.",
"content.virus_detected": "הקובץ הזה סומן כעלול להיות לא בטוח והוסר.",
+ "enforcement.automation.automated": "זו הגבלה זמנית שהופעלה באופן אוטומטי עד שאדם מהצוות שלנו יבדוק אותה.",
+ "enforcement.automation.flagged": "כלים אוטומטיים סימנו את זה. אדם מהצוות שלנו בדק את זה וקיבל את ההחלטה.",
+ "enforcement.automation.none": "אדם מהצוות שלנו בדק את זה וקיבל את ההחלטה.",
+ "enforcement.effect.account_not_restricted": "מעבר לכך, החשבון שלכם לא מוגבל.",
+ "enforcement.effect.closure": "{target, select, bot {הבוט לא יכול להתחבר או לפעול בשום מקום. נמחק אותו ואת הנתונים שלו ב-{deletion_at}. החשבון האישי שלכם לא מוגבל.} other {אתם לא יכולים להתחבר או להשתמש ב-{product_name} בשום מקום. נמחק את החשבון ואת הנתונים שלו ב-{deletion_at}, מלבד נתונים שאנחנו חייבים לשמור על פי חוק.}}",
+ "enforcement.effect.community_removed": "הקהילה, הערוצים שלה וההודעות שבה כבר לא זמינים לאף אחד. החשבון האישי שלכם לא מוגבל.",
+ "enforcement.effect.limit_direct_messages": "ההודעות שלכם בשיחות אחד על אחד ובקשות החברות שלכם לא נמסרות, והפרופיל שלכם מוסתר. בקהילות ובשיחות קבוצתיות, אנשים רואים את ההודעות שלכם מכווצות ומסומנות כחשודות כספאם.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {אתם לא יכולים לבצע רכישות ב-{product_name} עד שאדם מהצוות שלנו יבדוק את זה.} other {אתם לא יכולים לבצע רכישות ב-{product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {אתם לא יכולים לשלוח דיווחים באפליקציה עד אז. כדי לדווח על תוכן לא חוקי, השתמשו בערוץ הבטיחות שמופיע [בדף פרטי החברה שלנו]({url}).} other {אתם לא יכולים לשלוח דיווחים באפליקציה עד אז.}}",
+ "enforcement.effect.messages_removed": "הסרנו גם {count, plural, =1 {הודעה אחת} two {שתי הודעות} other {# הודעות}}.",
+ "enforcement.effect.networks_blocked": "חסמנו גם, עד {date}, את הגישה מרשתות שהחשבון הזה השתמש בהן.",
+ "enforcement.effect.no_other_accounts": "אסור לכם ליצור חשבונות אחרים או להשתמש בהם.",
+ "enforcement.effect.scope": "ההחלטה הזו חלה בכל מקום שבו {product_name} זמין.",
+ "enforcement.effect.suspension": "{target, select, bot {הבוט לא יכול להתחבר או לפעול בשום מקום עד אז. החשבון האישי שלכם לא מוגבל.} other {אתם לא יכולים להתחבר או להשתמש ב-{product_name} בשום מקום עד אז. החשבון, ההודעות והקהילות שלכם נשמרים.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {הבוט לא יכול להתחבר או לפעול בשום מקום. החשבון האישי שלכם לא מוגבל.} other {אתם לא יכולים להתחבר או להשתמש ב-{product_name} בשום מקום.}}",
+ "enforcement.effect.warning": "החשבון שלכם לא מוגבל. אם זה יקרה שוב, אנחנו עשויים להגביל או להשעות אותו.",
+ "enforcement.facts.channel": "{count, plural, =1 {הודעה אחת} two {שתי הודעות} other {# הודעות}} ב-#{channel} בקהילה {community}, {range, select, single {ב-{start}} other {בין {start} ל-{end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, =1 {הודעה אחת שפורסמה} two {שתי הודעות שפורסמו} other {# הודעות שפורסמו}} ב-#{channel}, {range, select, single {ב-{start}} other {בין {start} ל-{end}}}.",
+ "enforcement.facts.copyright": "בעל הזכויות או הזכות הנוגעת בדבר: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {הודעה אחת} two {שתי הודעות} other {# הודעות}} בשיחת הודעות פרטיות, {range, select, single {ב-{start}} other {בין {start} ל-{end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {הודעה אחת} two {שתי הודעות} other {# הודעות}} בשיחת הודעות פרטיות ב-{month}.",
+ "enforcement.facts.group_message": "{count, plural, =1 {הודעה אחת} two {שתי הודעות} other {# הודעות}} בשיחה קבוצתית, {range, select, single {ב-{start}} other {בין {start} ל-{end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {הודעה אחת} two {שתי הודעות} other {# הודעות}} בשיחה קבוצתית ב-{month}.",
+ "enforcement.facts.payment": "תשלום בחשבון שלכם ב-{date}.",
+ "enforcement.facts.profile": "הפרופיל שלכם: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {הודעה אחת} two {שתי הודעות} other {# הודעות}} בשיחה שכבר לא קיימת, {range, select, single {ב-{start}} other {בין {start} ל-{end}}}.",
+ "enforcement.lead.adult_content": "מצאנו תוכן מיני מהחשבון שלכם מחוץ למרחב שמסומן כ-18+.",
+ "enforcement.lead.age_requirement": "כדי להשתמש ב-{product_name} צריך לעמוד בגיל המינימלי במדינה שלכם. זה לא עונש, ואתם מוזמנים לחזור כשתגיעו לגיל הנדרש.",
+ "enforcement.lead.automation": "מצאנו פעילות אוטומטית מהחשבון שלכם ששיבשה את השימוש הרגיל בשירות.",
+ "enforcement.lead.ban_evasion": "מצאנו שהחשבון הזה שימש לעקיפת הגבלה שהוטלה על חשבון אחר.",
+ "enforcement.lead.bot": "מצאנו פעילות של הבוט שלכם שמפרה את הכלל הזה.",
+ "enforcement.lead.child_safety": "מצאנו תוכן או פעילות בחשבון שלכם שמפרים את הכללים שלנו בנושא הגנה על ילדים.",
+ "enforcement.lead.community": "מצאנו בקהילה הזו תוכן שמפר את הכלל הזה.",
+ "enforcement.lead.copyright": "מצאנו תוכן מהחשבון שלכם שמשתמש ביצירה של מישהו אחר ללא רשות.",
+ "enforcement.lead.fraud": "מצאנו תוכן מהחשבון שלכם שניסה להונות אנשים כדי להוציא מהם כסף, חשבונות או מידע אישי.",
+ "enforcement.lead.harassment": "מצאנו הודעות מהחשבון שלכם שהטרידו מישהו או התעמרו בו.",
+ "enforcement.lead.harmful_deception": "מצאנו תוכן מהחשבון שלכם שהפיץ טענות כוזבות שעלולות לגרום לנזק חמור.",
+ "enforcement.lead.hate": "מצאנו תוכן מהחשבון שלכם שתוקף או משפיל אנשים בגלל מי שהם.",
+ "enforcement.lead.illegal_activity": "מצאנו תוכן מהחשבון שלכם שמציע סחורות או פעילות לא חוקיות או מסייע להן.",
+ "enforcement.lead.impersonation": "מצאנו שהחשבון שלכם התחזה לאדם או לארגון אחר, או השתמש בזהות בדויה כדי להטעות אנשים.",
+ "enforcement.lead.intimate_images": "מצאנו שהחשבון שלכם שיתף תמונות אינטימיות של מישהו ללא הסכמתו.",
+ "enforcement.lead.legacy": "אין לנו פרטים נוספים מתועדים על ההחלטה הזו.",
+ "enforcement.lead.malware": "מצאנו קישורים או קבצים מהחשבון שלכם שמובילים לנוזקה או לתוכנה מזיקה אחרת.",
+ "enforcement.lead.payments": "מצאנו בעיית תשלום בחשבון שלכם שמפרה את תנאי התשלום שלנו.",
+ "enforcement.lead.privacy": "מצאנו שהחשבון שלכם שיתף מידע אישי של מישהו ללא הסכמתו.",
+ "enforcement.lead.raids": "מצאנו שהחשבון שלכם השתתף במתקפה מתואמת על קהילה או על אדם.",
+ "enforcement.lead.report_abuse": "מצאנו שהחשבון שלכם שלח שוב ושוב דיווחים כוזבים או דיווחים שנשלחו בחוסר תום לב.",
+ "enforcement.lead.self_harm": "מצאנו תוכן מהחשבון שלכם שמעודד פגיעה עצמית או נותן הוראות לביצועה.",
+ "enforcement.lead.service_abuse": "מצאנו שהחשבון שלכם השתמש ב-{product_name} בדרך שמפריעה לשירות או עוקפת את המגבלות שלו.",
+ "enforcement.lead.spam": "מצאנו שהחשבון שלכם שלח הודעות לא רצויות בכמויות גדולות.",
+ "enforcement.lead.threats": "מצאנו הודעות מהחשבון שלכם שאיימו באלימות או עודדו אלימות.",
+ "enforcement.lead.unwanted_sexual_content": "מצאנו שהחשבון שלכם שלח תוכן מיני למישהו שלא הסכים לקבל אותו.",
+ "enforcement.lead.violent_content": "מצאנו שהחשבון שלכם שיתף תוכן אלים גרפי או מזעזע.",
+ "enforcement.lead.violent_extremism": "מצאנו תוכן או פעילות בחשבון שלכם שמפרים את הכללים שלנו בנושא טרור וקיצוניות אלימה.",
+ "enforcement.profile_field.avatar": "תמונת פרופיל",
+ "enforcement.profile_field.banner": "באנר",
+ "enforcement.profile_field.bio": "אודות",
+ "enforcement.profile_field.global_name": "שם לתצוגה",
+ "enforcement.profile_field.pronouns": "כינויי גוף",
+ "enforcement.redress.out_of_court": "אם אתם באיחוד האירופי, אפשר גם להפנות את ההחלטה הזו לגוף מוסמך ליישוב סכסוכים מחוץ לבית המשפט. הנציבות האירופית מנהלת [רשימה של הגופים האלה]({url}).",
+ "enforcement.redress.regulator_and_court": "אפשר גם להגיש תלונה לרכז השירותים הדיגיטליים במדינה שלכם באיחוד האירופי, או לפנות לבית המשפט.",
+ "enforcement.rule.adult_content": "תוכן למבוגרים מחוץ למרחבי 18+",
+ "enforcement.rule.age_requirement": "גיל מינימלי",
+ "enforcement.rule.automation": "אוטומציה משבשת",
+ "enforcement.rule.ban_evasion": "עקיפת הגבלות",
+ "enforcement.rule.child_safety": "בטיחות ילדים",
+ "enforcement.rule.copyright": "זכויות יוצרים",
+ "enforcement.rule.fraud": "הונאות ותרמיות",
+ "enforcement.rule.harassment": "הטרדה",
+ "enforcement.rule.harmful_deception": "הטעיה מזיקה",
+ "enforcement.rule.hate": "שנאה ואפליה",
+ "enforcement.rule.illegal_activity": "פעילות לא חוקית ומסוכנת",
+ "enforcement.rule.impersonation": "התחזות וחשבונות מזויפים",
+ "enforcement.rule.intimate_images": "תמונות אינטימיות ששותפו ללא הסכמה",
+ "enforcement.rule.malware": "קישורים זדוניים ונוזקות",
+ "enforcement.rule.payments": "תשלומים",
+ "enforcement.rule.privacy": "פרטיות ומידע אישי",
+ "enforcement.rule.raids": "פשיטות ומתקפות מתואמות",
+ "enforcement.rule.report_abuse": "שימוש לרעה בדיווחים",
+ "enforcement.rule.self_harm": "עידוד פגיעה עצמית",
+ "enforcement.rule.service_abuse": "שימוש לרעה בשירות",
+ "enforcement.rule.spam": "ספאם",
+ "enforcement.rule.threats": "איומים באלימות",
+ "enforcement.rule.unwanted_sexual_content": "תוכן מיני לא רצוי",
+ "enforcement.rule.violent_content": "אלימות גרפית",
+ "enforcement.rule.violent_extremism": "טרור וקיצוניות אלימה",
+ "enforcement.source.own_review": "מצאנו את זה במסגרת בדיקה שלנו.",
+ "enforcement.source.report": "בדקנו את זה בעקבות דיווח.",
+ "enforcement.summary.closure": "{target, select, bot {סגרנו את הבוט שלכם {bot_name}.} other {סגרנו את החשבון שלכם.}}",
+ "enforcement.summary.community_removal": "הסרנו את הקהילה שלכם {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {הסרנו את כל ההודעות ששלחתם.} other {הסרנו {count, plural, =1 {הודעה אחת} two {שתי הודעות} other {# הודעות}} ששלחתם.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {הגבלנו תכונה בחשבון שלכם עד {ends_at}.} other {הגבלנו תכונה בחשבון שלכם.}}",
+ "enforcement.summary.profile_reset": "איפסנו חלקים מהפרופיל שלכם: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {השעינו את הבוט שלכם {bot_name} עד {ends_at}.} other {השעינו את החשבון שלכם עד {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {חסמנו את הבוט שלכם {bot_name}.} other {חסמנו את החשבון שלכם.}}",
+ "enforcement.summary.warning": "אנחנו מזהירים אתכם בנוגע לפעילות בחשבון שלכם.",
+ "enforcement.welfare.self_harm": "אם אתם עוברים תקופה קשה, אתם לא צריכים להתמודד עם זה לבד. [בסעיף 3 של הנחיות הקהילה שלנו]({url}) יש רשימה של קווי תמיכה.",
"guild.bulk_create.emoji_limit": "הגעת למספר האמוג'י המקסימלי ({limit}).",
"guild.bulk_create.sticker_limit": "הגעת למספר המדבקות המקסימלי ({limit}).",
"guild.bulk_create.unknown_error": "שגיאה לא ידועה.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/hi.json b/fluxer_api/src/api/content_i18n/weblate/locales/hi.json
index 9b172639b..5eac4db28 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/hi.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/hi.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "अगर मैं EU/EEA का उपभोक्ता हूँ, तो मैं {product_name} {premium_tier_name} का डिजिटल कंटेंट तुरंत उपलब्ध कराए जाने के लिए स्पष्ट रूप से सहमति देता हूँ और स्वीकार करता हूँ कि एक्सेस मिलने के बाद मेरा वैधानिक वापसी का अधिकार समाप्त हो जाता है। इससे अन्य अनिवार्य उपभोक्ता अधिकार प्रभावित नहीं होते। [सेवा की शर्तें]({terms_url}) देखें।",
"bulk_message_deletion.complete": "हमने आपके संदेश हटाने का काम पूरा कर लिया है। हमने {channel_count, plural, =0 {0 जगहों से} one {# जगह से} other {# जगहों से}} {message_count, plural, =0 {0 संदेश} one {# संदेश} other {# संदेश}} हटा दिए।",
"content.virus_detected": "वह फाइल संभावित रूप से असुरक्षित पाई गई और उसे हटा दिया गया है।",
+ "enforcement.automation.automated": "यह एक अस्थायी पाबंदी है जो अपने-आप लगाई गई है, और तब तक रहेगी जब तक हमारी टीम का कोई व्यक्ति इसे रिव्यू नहीं कर लेता।",
+ "enforcement.automation.flagged": "ऑटोमेटेड टूल्स ने इसे फ़्लैग किया। हमारी टीम के एक व्यक्ति ने इसे रिव्यू किया और फैसला लिया।",
+ "enforcement.automation.none": "हमारी टीम के एक व्यक्ति ने इसे रिव्यू किया और फैसला लिया।",
+ "enforcement.effect.account_not_restricted": "इसके अलावा आपके अकाउंट पर कोई पाबंदी नहीं है।",
+ "enforcement.effect.closure": "{target, select, bot {बॉट कहीं भी कनेक्ट नहीं हो सकता और कोई काम नहीं कर सकता। हम {deletion_at} को इसे और इसका डेटा डिलीट कर देंगे। आपके अपने अकाउंट पर कोई पाबंदी नहीं है।} other {आप कहीं भी साइन इन नहीं कर सकते और {product_name} इस्तेमाल नहीं कर सकते। हम {deletion_at} को अकाउंट और उसका डेटा डिलीट कर देंगे, सिवाय उस डेटा के जिसे कानूनन हमें रखना ज़रूरी है।}}",
+ "enforcement.effect.community_removed": "कम्युनिटी और उसके चैनल और मैसेज अब किसी के लिए भी उपलब्ध नहीं हैं। आपके अपने अकाउंट पर कोई पाबंदी नहीं है।",
+ "enforcement.effect.limit_direct_messages": "आपके वन-टू-वन मैसेज और फ्रेंड रिक्वेस्ट डिलीवर नहीं होते, और आपकी प्रोफ़ाइल छिपी रहती है। कम्युनिटी और ग्रुप बातचीत में, लोगों को आपके मैसेज छोटे किए हुए और संभावित स्पैम के रूप में मार्क किए हुए दिखते हैं।",
+ "enforcement.effect.limit_purchases": "{review, select, yes {जब तक हमारी टीम का कोई व्यक्ति इसे रिव्यू नहीं कर लेता, आप {product_name} पर खरीदारी नहीं कर सकते।} other {आप {product_name} पर खरीदारी नहीं कर सकते।}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {आप तब तक ऐप में रिपोर्ट नहीं भेज सकते। गैरकानूनी कंटेंट की रिपोर्ट करने के लिए, हमारे [कंपनी जानकारी वाले पेज]({url}) पर दिया गया सेफ़्टी रूट इस्तेमाल करें।} other {आप तब तक ऐप में रिपोर्ट नहीं भेज सकते।}}",
+ "enforcement.effect.messages_removed": "{count, plural, =1 {हमने # मैसेज भी हटा दिया है।} other {हमने # मैसेज भी हटा दिए हैं।}}",
+ "enforcement.effect.networks_blocked": "हमने इस अकाउंट के इस्तेमाल किए गए नेटवर्क से एक्सेस भी {date} तक ब्लॉक कर दिया है।",
+ "enforcement.effect.no_other_accounts": "आपको दूसरे अकाउंट बनाने या इस्तेमाल करने की अनुमति नहीं है।",
+ "enforcement.effect.scope": "यह फैसला हर उस जगह लागू होता है जहाँ {product_name} उपलब्ध है।",
+ "enforcement.effect.suspension": "{target, select, bot {तब तक बॉट कहीं भी कनेक्ट नहीं हो सकता और कोई काम नहीं कर सकता। आपके अपने अकाउंट पर कोई पाबंदी नहीं है।} other {तब तक आप कहीं भी साइन इन नहीं कर सकते और {product_name} इस्तेमाल नहीं कर सकते। आपका अकाउंट, मैसेज और कम्युनिटी बने रहेंगे।}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {बॉट कहीं भी कनेक्ट नहीं हो सकता और कोई काम नहीं कर सकता। आपके अपने अकाउंट पर कोई पाबंदी नहीं है।} other {आप कहीं भी साइन इन नहीं कर सकते और {product_name} इस्तेमाल नहीं कर सकते।}}",
+ "enforcement.effect.warning": "आपके अकाउंट पर कोई पाबंदी नहीं है। अगर ऐसा फिर से हुआ, तो हम इसे सीमित या सस्पेंड कर सकते हैं।",
+ "enforcement.facts.channel": "{community} के #{channel} में {count, plural, =1 {# मैसेज} other {# मैसेज}}, {range, select, single {{start} को} other {{start} और {end} के बीच}}।",
+ "enforcement.facts.community_channel": "#{channel} में {count, plural, =1 {पोस्ट किया गया # मैसेज} other {पोस्ट किए गए # मैसेज}}, {range, select, single {{start} को} other {{start} और {end} के बीच}}।",
+ "enforcement.facts.copyright": "अधिकार धारक या संबंधित अधिकार: {rights_holder}।",
+ "enforcement.facts.direct_message": "एक डायरेक्ट मैसेज बातचीत में {count, plural, =1 {# मैसेज} other {# मैसेज}}, {range, select, single {{start} को} other {{start} और {end} के बीच}}।",
+ "enforcement.facts.direct_message_month": "{month} में एक डायरेक्ट मैसेज बातचीत में {count, plural, =1 {# मैसेज} other {# मैसेज}}।",
+ "enforcement.facts.group_message": "एक ग्रुप बातचीत में {count, plural, =1 {# मैसेज} other {# मैसेज}}, {range, select, single {{start} को} other {{start} और {end} के बीच}}।",
+ "enforcement.facts.group_message_month": "{month} में एक ग्रुप बातचीत में {count, plural, =1 {# मैसेज} other {# मैसेज}}।",
+ "enforcement.facts.payment": "{date} को आपके अकाउंट पर हुआ एक पेमेंट।",
+ "enforcement.facts.profile": "आपकी प्रोफ़ाइल: {fields}।",
+ "enforcement.facts.unknown_location": "एक ऐसी बातचीत में जो अब मौजूद नहीं है, {count, plural, =1 {# मैसेज} other {# मैसेज}}, {range, select, single {{start} को} other {{start} और {end} के बीच}}।",
+ "enforcement.lead.adult_content": "हमें आपके अकाउंट से 18+ मार्क की गई जगह के बाहर सेक्शुअल कंटेंट मिला।",
+ "enforcement.lead.age_requirement": "{product_name} इस्तेमाल करने के लिए आपकी उम्र कम से कम आपके देश में तय न्यूनतम उम्र जितनी होनी चाहिए। यह कोई सज़ा नहीं है, और जब आप इतने बड़े हो जाएँ, तो आपका फिर से स्वागत है।",
+ "enforcement.lead.automation": "हमें आपके अकाउंट से ऐसी ऑटोमेटेड गतिविधि मिली जिसने सर्विस के सामान्य इस्तेमाल में रुकावट डाली।",
+ "enforcement.lead.ban_evasion": "हमने पाया कि इस अकाउंट का इस्तेमाल किसी दूसरे अकाउंट पर लगी पाबंदी से बचने के लिए किया गया।",
+ "enforcement.lead.bot": "हमें आपके बॉट की ऐसी गतिविधि मिली जो यह नियम तोड़ती है।",
+ "enforcement.lead.child_safety": "हमें आपके अकाउंट पर ऐसा कंटेंट या गतिविधि मिली जो बच्चों की सुरक्षा से जुड़े हमारे नियम तोड़ती है।",
+ "enforcement.lead.community": "हमें इस कम्युनिटी में ऐसा कंटेंट मिला जो यह नियम तोड़ता है।",
+ "enforcement.lead.copyright": "हमें आपके अकाउंट से ऐसा कंटेंट मिला जो बिना अनुमति किसी और के काम का इस्तेमाल करता है।",
+ "enforcement.lead.fraud": "हमें आपके अकाउंट से ऐसा कंटेंट मिला जिसने धोखे से लोगों के पैसे, अकाउंट या निजी जानकारी हासिल करने की कोशिश की।",
+ "enforcement.lead.harassment": "हमें आपके अकाउंट से ऐसे मैसेज मिले जिनमें किसी का उत्पीड़न किया गया या उसे बुली किया गया।",
+ "enforcement.lead.harmful_deception": "हमें आपके अकाउंट से ऐसा कंटेंट मिला जिसने ऐसे झूठे दावे फैलाए जिनसे गंभीर नुकसान होने की आशंका है।",
+ "enforcement.lead.hate": "हमें आपके अकाउंट से ऐसा कंटेंट मिला जो लोगों पर उनकी पहचान की वजह से हमला करता है या उन्हें नीचा दिखाता है।",
+ "enforcement.lead.illegal_activity": "हमें आपके अकाउंट से ऐसा कंटेंट मिला जो गैरकानूनी सामान या गतिविधि की पेशकश करता है या उसमें मदद करता है।",
+ "enforcement.lead.impersonation": "हमने पाया कि आपके अकाउंट ने किसी दूसरे व्यक्ति या संगठन होने का दिखावा किया, या लोगों को गुमराह करने के लिए नकली पहचान का इस्तेमाल किया।",
+ "enforcement.lead.intimate_images": "हमने पाया कि आपके अकाउंट ने किसी की निजी तस्वीरें उसकी सहमति के बिना शेयर कीं।",
+ "enforcement.lead.legacy": "इस फैसले के बारे में हमारे रिकॉर्ड में इससे ज़्यादा जानकारी नहीं है।",
+ "enforcement.lead.malware": "हमें आपके अकाउंट से ऐसे लिंक या फ़ाइलें मिलीं जो मैलवेयर या दूसरे नुकसानदेह सॉफ़्टवेयर तक ले जाती हैं।",
+ "enforcement.lead.payments": "हमें आपके अकाउंट पर पेमेंट से जुड़ी एक समस्या मिली जो हमारी पेमेंट शर्तों का उल्लंघन करती है।",
+ "enforcement.lead.privacy": "हमने पाया कि आपके अकाउंट ने किसी की निजी जानकारी उसकी सहमति के बिना शेयर की।",
+ "enforcement.lead.raids": "हमने पाया कि आपका अकाउंट किसी कम्युनिटी या व्यक्ति पर किए गए एक संगठित हमले में शामिल था।",
+ "enforcement.lead.report_abuse": "हमने पाया कि आपके अकाउंट ने बार-बार ऐसी रिपोर्ट भेजीं जो झूठी थीं या बदनीयती से की गई थीं।",
+ "enforcement.lead.self_harm": "हमें आपके अकाउंट से ऐसा कंटेंट मिला जो खुद को नुकसान पहुँचाने के लिए उकसाता है या उसके तरीके बताता है।",
+ "enforcement.lead.service_abuse": "हमने पाया कि आपके अकाउंट ने {product_name} का इस्तेमाल इस तरह किया जिससे सर्विस में रुकावट आती है या उसकी सीमाओं को दरकिनार किया जाता है।",
+ "enforcement.lead.spam": "हमने पाया कि आपके अकाउंट ने बड़ी संख्या में अनचाहे मैसेज भेजे।",
+ "enforcement.lead.threats": "हमें आपके अकाउंट से ऐसे मैसेज मिले जिनमें हिंसा की धमकी दी गई या हिंसा के लिए उकसाया गया।",
+ "enforcement.lead.unwanted_sexual_content": "हमने पाया कि आपके अकाउंट ने किसी ऐसे व्यक्ति को सेक्शुअल कंटेंट भेजा जिसने उसे पाने के लिए सहमति नहीं दी थी।",
+ "enforcement.lead.violent_content": "हमने पाया कि आपके अकाउंट ने विचलित करने वाली हिंसा या खून-खराबे वाला कंटेंट शेयर किया।",
+ "enforcement.lead.violent_extremism": "हमें आपके अकाउंट पर ऐसा कंटेंट या गतिविधि मिली जो आतंकवाद और हिंसक उग्रवाद से जुड़े हमारे नियम तोड़ती है।",
+ "enforcement.profile_field.avatar": "अवतार",
+ "enforcement.profile_field.banner": "बैनर",
+ "enforcement.profile_field.bio": "बायो",
+ "enforcement.profile_field.global_name": "डिस्प्ले नाम",
+ "enforcement.profile_field.pronouns": "सर्वनाम",
+ "enforcement.redress.out_of_court": "अगर आप EU में हैं, तो आप इस फैसले को अदालत के बाहर विवाद निपटाने वाली किसी प्रमाणित संस्था के पास भी भेज सकते हैं। यूरोपीय आयोग [इन संस्थाओं की सूची]({url}) रखता है।",
+ "enforcement.redress.regulator_and_court": "आप अपने EU देश के डिजिटल सेवा समन्वयक से शिकायत भी कर सकते हैं, या अदालत जा सकते हैं।",
+ "enforcement.rule.adult_content": "18+ जगहों के बाहर एडल्ट कंटेंट",
+ "enforcement.rule.age_requirement": "न्यूनतम उम्र",
+ "enforcement.rule.automation": "रुकावट डालने वाला ऑटोमेशन",
+ "enforcement.rule.ban_evasion": "पाबंदियों से बचना",
+ "enforcement.rule.child_safety": "बच्चों की सुरक्षा",
+ "enforcement.rule.copyright": "कॉपीराइट",
+ "enforcement.rule.fraud": "स्कैम और धोखाधड़ी",
+ "enforcement.rule.harassment": "उत्पीड़न",
+ "enforcement.rule.harmful_deception": "नुकसानदेह भ्रामक जानकारी",
+ "enforcement.rule.hate": "नफ़रत और भेदभाव",
+ "enforcement.rule.illegal_activity": "गैरकानूनी और खतरनाक गतिविधि",
+ "enforcement.rule.impersonation": "किसी और का रूप धरना और नकली अकाउंट",
+ "enforcement.rule.intimate_images": "बिना सहमति शेयर की गई निजी तस्वीरें",
+ "enforcement.rule.malware": "खतरनाक लिंक और मैलवेयर",
+ "enforcement.rule.payments": "पेमेंट",
+ "enforcement.rule.privacy": "प्राइवेसी और निजी जानकारी",
+ "enforcement.rule.raids": "रेड और संगठित हमले",
+ "enforcement.rule.report_abuse": "रिपोर्टिंग का दुरुपयोग",
+ "enforcement.rule.self_harm": "खुद को नुकसान पहुँचाने को बढ़ावा देना",
+ "enforcement.rule.service_abuse": "सर्विस का दुरुपयोग",
+ "enforcement.rule.spam": "स्पैम",
+ "enforcement.rule.threats": "हिंसा की धमकियाँ",
+ "enforcement.rule.unwanted_sexual_content": "अनचाहा सेक्शुअल कंटेंट",
+ "enforcement.rule.violent_content": "विचलित करने वाली हिंसा",
+ "enforcement.rule.violent_extremism": "आतंकवाद और हिंसक उग्रवाद",
+ "enforcement.source.own_review": "हमें यह अपनी खुद की जाँच में मिला।",
+ "enforcement.source.report": "हमने किसी रिपोर्ट के बाद इसे रिव्यू किया।",
+ "enforcement.summary.closure": "{target, select, bot {हमने आपका बॉट {bot_name} बंद कर दिया है।} other {हमने आपका अकाउंट बंद कर दिया है।}}",
+ "enforcement.summary.community_removal": "हमने आपकी कम्युनिटी {community_name} हटा दी है।",
+ "enforcement.summary.content_removal": "{all, select, yes {हमने आपके भेजे सभी मैसेज हटा दिए हैं।} other {{count, plural, =1 {हमने आपका भेजा # मैसेज हटा दिया है।} other {हमने आपके भेजे # मैसेज हटा दिए हैं।}}}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {हमने {ends_at} तक आपके अकाउंट पर एक फ़ीचर सीमित कर दिया है।} other {हमने आपके अकाउंट पर एक फ़ीचर सीमित कर दिया है।}}",
+ "enforcement.summary.profile_reset": "हमने आपकी प्रोफ़ाइल के कुछ हिस्से रीसेट कर दिए हैं: {fields}।",
+ "enforcement.summary.suspension": "{target, select, bot {हमने आपके बॉट {bot_name} को {ends_at} तक सस्पेंड कर दिया है।} other {हमने आपके अकाउंट को {ends_at} तक सस्पेंड कर दिया है।}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {हमने आपके बॉट {bot_name} को बैन कर दिया है।} other {हमने आपके अकाउंट को बैन कर दिया है।}}",
+ "enforcement.summary.warning": "हम आपको आपके अकाउंट पर हुई गतिविधि के बारे में चेतावनी दे रहे हैं।",
+ "enforcement.welfare.self_harm": "अगर आप किसी मुश्किल दौर से गुज़र रहे हैं, तो आपको इसका सामना अकेले नहीं करना है। [हमारे कम्युनिटी दिशानिर्देशों के सेक्शन 3]({url}) में सपोर्ट लाइनों की सूची है।",
"guild.bulk_create.emoji_limit": "इमोजी की अधिकतम सीमा तक पहुँच गए हैं ({limit})।",
"guild.bulk_create.sticker_limit": "स्टिकर की अधिकतम सीमा तक पहुँच गए हैं ({limit})।",
"guild.bulk_create.unknown_error": "अज्ञात त्रुटि।",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/hr.json b/fluxer_api/src/api/content_i18n/weblate/locales/hr.json
index 2d31f6bfc..aafbccc0c 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/hr.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/hr.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Ako sam potrošač iz EU-a/EGP-a, izričito pristajem na trenutačnu isporuku digitalnog sadržaja {product_name} pretplate {premium_tier_name} i potvrđujem da gubim zakonsko pravo na odustanak čim mi se omogući pristup. To ne utječe na ostala obvezna potrošačka prava. Pogledaj [Uvjete pružanja usluge]({terms_url}).",
"bulk_message_deletion.complete": "Završili smo s brisanjem tvojih poruka. Uklonili smo {message_count, plural, =0 {0 poruka} one {# poruku} few {# poruke} other {# poruka}} iz {channel_count, plural, =0 {0 mjesta} one {# mjesta} few {# mjesta} other {# mjesta}}.",
"content.virus_detected": "Ta je datoteka označena kao potencijalno nesigurna i uklonjena je.",
+ "enforcement.automation.automated": "Ovo je privremeno ograničenje koje je automatski uvedeno i traje dok ga osoba iz našeg tima ne pregleda.",
+ "enforcement.automation.flagged": "Automatizirani alati su ovo označili. Osoba iz našeg tima to je pregledala i donijela odluku.",
+ "enforcement.automation.none": "Osoba iz našeg tima to je pregledala i donijela odluku.",
+ "enforcement.effect.account_not_restricted": "Tvoj račun nije ni na koji drugi način ograničen.",
+ "enforcement.effect.closure": "{target, select, bot {Bot se nigdje ne može povezati ni izvršavati radnje. Dana {deletion_at} izbrisat ćemo bota i njegove podatke. Tvoj vlastiti račun nije ograničen.} other {Nigdje se ne možeš prijaviti ni koristiti {product_name}. Dana {deletion_at} izbrisat ćemo račun i njegove podatke, osim podataka koje moramo čuvati po zakonu.}}",
+ "enforcement.effect.community_removed": "Zajednica, njezini kanali i poruke više nikome nisu dostupni. Tvoj vlastiti račun nije ograničen.",
+ "enforcement.effect.limit_direct_messages": "Tvoje poruke u izravnim razgovorima jedan na jedan i zahtjevi za prijateljstvo ne isporučuju se, a tvoj je profil skriven. U zajednicama i grupnim razgovorima drugi vide tvoje poruke sklopljene i označene kao mogući spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Ne možeš obavljati kupnje na platformi {product_name} dok osoba iz našeg tima to ne pregleda.} other {Ne možeš obavljati kupnje na platformi {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Do tada ne možeš slati prijave u aplikaciji. Nezakonit sadržaj možeš prijaviti putem sigurnosnog kontakta na [stranici s podacima o našoj tvrtki]({url}).} other {Do tada ne možeš slati prijave u aplikaciji.}}",
+ "enforcement.effect.messages_removed": "Uklonili smo i {count, plural, one {# poruku} few {# poruke} other {# poruka}}.",
+ "enforcement.effect.networks_blocked": "Do {date} smo blokirali i pristup s mreža koje je ovaj račun koristio.",
+ "enforcement.effect.no_other_accounts": "Ne smiješ stvarati ni koristiti druge račune.",
+ "enforcement.effect.scope": "Ova odluka vrijedi svugdje gdje se {product_name} može koristiti.",
+ "enforcement.effect.suspension": "{target, select, bot {Do tada se bot nigdje ne može povezati ni izvršavati radnje. Tvoj vlastiti račun nije ograničen.} other {Do tada se nigdje ne možeš prijaviti ni koristiti {product_name}. Tvoj račun, poruke i zajednice ostaju sačuvani.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Bot se nigdje ne može povezati ni izvršavati radnje. Tvoj vlastiti račun nije ograničen.} other {Nigdje se ne možeš prijaviti ni koristiti {product_name}.}}",
+ "enforcement.effect.warning": "Tvoj račun nije ograničen. Ako se ovo ponovi, možemo ga ograničiti ili suspendirati.",
+ "enforcement.facts.channel": "{count, plural, one {# poruka} few {# poruke} other {# poruka}} u kanalu #{channel} zajednice {community}, {range, select, single {{start}} other {u razdoblju od {start} do {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# poruka objavljena} few {# poruke objavljene} other {# poruka objavljenih}} u kanalu #{channel}, {range, select, single {{start}} other {u razdoblju od {start} do {end}}}.",
+ "enforcement.facts.copyright": "Nositelj prava ili predmetno pravo: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# poruka} few {# poruke} other {# poruka}} u razgovoru u izravnim porukama, {range, select, single {{start}} other {u razdoblju od {start} do {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# poruka} few {# poruke} other {# poruka}} u razgovoru u izravnim porukama ({month}).",
+ "enforcement.facts.group_message": "{count, plural, one {# poruka} few {# poruke} other {# poruka}} u grupnom razgovoru, {range, select, single {{start}} other {u razdoblju od {start} do {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# poruka} few {# poruke} other {# poruka}} u grupnom razgovoru ({month}).",
+ "enforcement.facts.payment": "Plaćanje povezano s tvojim računom, {date}.",
+ "enforcement.facts.profile": "Tvoj profil: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# poruka} few {# poruke} other {# poruka}} u razgovoru koji više ne postoji, {range, select, single {{start}} other {u razdoblju od {start} do {end}}}.",
+ "enforcement.lead.adult_content": "Utvrdili smo da je s tvog računa objavljivan seksualni sadržaj izvan prostora označenih kao 18+.",
+ "enforcement.lead.age_requirement": "Za korištenje platforme {product_name} moraš navršiti minimalnu dob propisanu u svojoj zemlji. Ovo nije kazna i možeš se vratiti kada navršiš potrebnu dob.",
+ "enforcement.lead.automation": "Utvrdili smo automatiziranu aktivnost s tvog računa koja je ometala normalno korištenje usluge.",
+ "enforcement.lead.ban_evasion": "Utvrdili smo da je ovaj račun korišten za zaobilaženje ograničenja drugog računa.",
+ "enforcement.lead.bot": "Utvrdili smo aktivnost tvog bota koja krši ovo pravilo.",
+ "enforcement.lead.child_safety": "Utvrdili smo na tvom računu sadržaj ili aktivnost koji krše naša pravila o zaštiti djece.",
+ "enforcement.lead.community": "Utvrdili smo u ovoj zajednici sadržaj koji krši ovo pravilo.",
+ "enforcement.lead.copyright": "Utvrdili smo da je s tvog računa objavljen sadržaj koji bez dopuštenja koristi tuđe djelo.",
+ "enforcement.lead.fraud": "Utvrdili smo da je s tvog računa objavljivan sadržaj kojim se ljude pokušavalo prijevarom lišiti novca, računa ili osobnih podataka.",
+ "enforcement.lead.harassment": "Utvrdili smo da su s tvog računa slane poruke kojima je netko uznemiravan ili zlostavljan.",
+ "enforcement.lead.harmful_deception": "Utvrdili smo da su s tvog računa širene lažne tvrdnje koje mogu prouzročiti ozbiljnu štetu.",
+ "enforcement.lead.hate": "Utvrdili smo da je s tvog računa objavljivan sadržaj koji napada ili ponižava ljude zbog toga tko su.",
+ "enforcement.lead.illegal_activity": "Utvrdili smo da je s tvog računa objavljivan sadržaj koji nudi nezakonitu robu ili usluge ili pomaže u nezakonitoj djelatnosti.",
+ "enforcement.lead.impersonation": "Utvrdili smo da se tvoj račun lažno predstavljao kao druga osoba ili organizacija ili koristio lažni identitet kako bi doveo ljude u zabludu.",
+ "enforcement.lead.intimate_images": "Utvrdili smo da su s tvog računa dijeljene intimne slike druge osobe bez njezina pristanka.",
+ "enforcement.lead.legacy": "Za ovu odluku nemamo zabilježeno više pojedinosti.",
+ "enforcement.lead.malware": "Utvrdili smo da su s tvog računa dijeljene poveznice ili datoteke koje vode do zlonamjernog ili drugog štetnog softvera.",
+ "enforcement.lead.payments": "Utvrdili smo problem s plaćanjem na tvom računu koji krši naše uvjete plaćanja.",
+ "enforcement.lead.privacy": "Utvrdili smo da su s tvog računa dijeljeni tuđi osobni podaci bez pristanka te osobe.",
+ "enforcement.lead.raids": "Utvrdili smo da je tvoj račun sudjelovao u koordiniranom napadu na zajednicu ili osobu.",
+ "enforcement.lead.report_abuse": "Utvrdili smo da su s tvog računa više puta slane lažne ili zlonamjerne prijave.",
+ "enforcement.lead.self_harm": "Utvrdili smo da je s tvog računa objavljivan sadržaj koji potiče samoozljeđivanje ili daje upute za njega.",
+ "enforcement.lead.service_abuse": "Utvrdili smo da je tvoj račun koristio {product_name} na način koji ometa uslugu ili zaobilazi njezina ograničenja.",
+ "enforcement.lead.spam": "Utvrdili smo da su s tvog računa masovno slane neželjene poruke.",
+ "enforcement.lead.threats": "Utvrdili smo da su s tvog računa slane poruke koje prijete nasiljem ili potiču na nasilje.",
+ "enforcement.lead.unwanted_sexual_content": "Utvrdili smo da je s tvog računa poslan seksualni sadržaj osobi koja nije pristala primati ga.",
+ "enforcement.lead.violent_content": "Utvrdili smo da je s tvog računa dijeljen sadržaj s drastičnim prikazima nasilja ili krvavim prizorima.",
+ "enforcement.lead.violent_extremism": "Utvrdili smo na tvom računu sadržaj ili aktivnost koji krše naša pravila o terorizmu i nasilnom ekstremizmu.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "naslovna slika",
+ "enforcement.profile_field.bio": "biografija",
+ "enforcement.profile_field.global_name": "ime za prikaz",
+ "enforcement.profile_field.pronouns": "zamjenice",
+ "enforcement.redress.out_of_court": "Ako si u EU-u, ovu odluku možeš uputiti i certificiranom tijelu za izvansudsko rješavanje sporova. Europska komisija vodi [popis tih tijela]({url}).",
+ "enforcement.redress.regulator_and_court": "Možeš podnijeti i pritužbu koordinatoru za digitalne usluge u svojoj državi članici EU-a ili se obratiti sudu.",
+ "enforcement.rule.adult_content": "Sadržaj za odrasle izvan prostora 18+",
+ "enforcement.rule.age_requirement": "Minimalna dob",
+ "enforcement.rule.automation": "Ometajuća automatizacija",
+ "enforcement.rule.ban_evasion": "Zaobilaženje ograničenja",
+ "enforcement.rule.child_safety": "Sigurnost djece",
+ "enforcement.rule.copyright": "Autorsko pravo",
+ "enforcement.rule.fraud": "Prijevare",
+ "enforcement.rule.harassment": "Uznemiravanje",
+ "enforcement.rule.harmful_deception": "Štetna dezinformacija",
+ "enforcement.rule.hate": "Mržnja i diskriminacija",
+ "enforcement.rule.illegal_activity": "Nezakonite i opasne aktivnosti",
+ "enforcement.rule.impersonation": "Lažno predstavljanje i lažni računi",
+ "enforcement.rule.intimate_images": "Dijeljenje intimnih slika bez pristanka",
+ "enforcement.rule.malware": "Zlonamjerne poveznice i softver",
+ "enforcement.rule.payments": "Plaćanja",
+ "enforcement.rule.privacy": "Privatnost i osobni podaci",
+ "enforcement.rule.raids": "Upadi i koordinirani napadi",
+ "enforcement.rule.report_abuse": "Zlouporaba prijava",
+ "enforcement.rule.self_harm": "Poticanje samoozljeđivanja",
+ "enforcement.rule.service_abuse": "Zlouporaba usluge",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Prijetnje nasiljem",
+ "enforcement.rule.unwanted_sexual_content": "Neželjeni seksualni sadržaj",
+ "enforcement.rule.violent_content": "Drastično nasilje",
+ "enforcement.rule.violent_extremism": "Terorizam i nasilni ekstremizam",
+ "enforcement.source.own_review": "Ovo smo otkrili u vlastitoj provjeri.",
+ "enforcement.source.report": "Ovo smo pregledali nakon prijave.",
+ "enforcement.summary.closure": "{target, select, bot {Zatvorili smo tvog bota {bot_name}.} other {Zatvorili smo tvoj račun.}}",
+ "enforcement.summary.community_removal": "Uklonili smo tvoju zajednicu {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Uklonili smo sve tvoje poruke.} other {Uklonili smo {count, plural, one {# tvoju poruku} few {# tvoje poruke} other {# tvojih poruka}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Ograničili smo jednu funkciju tvog računa do {ends_at}.} other {Ograničili smo jednu funkciju tvog računa.}}",
+ "enforcement.summary.profile_reset": "Vratili smo dijelove tvog profila na zadano: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Suspendirali smo tvog bota {bot_name} do {ends_at}.} other {Suspendirali smo tvoj račun do {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Trajno smo blokirali tvog bota {bot_name}.} other {Trajno smo blokirali tvoj račun.}}",
+ "enforcement.summary.warning": "Upozoravamo te zbog aktivnosti na tvom računu.",
+ "enforcement.welfare.self_harm": "Ako ti je trenutačno teško, ne moraš se s tim nositi bez pomoći. U [odjeljku 3 naših smjernica zajednice]({url}) navedene su linije za podršku.",
"guild.bulk_create.emoji_limit": "Dostignut maksimalan broj emojija ({limit}).",
"guild.bulk_create.sticker_limit": "Dostignut maksimalan broj naljepnica ({limit}).",
"guild.bulk_create.unknown_error": "Nepoznata pogreška.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/hu.json b/fluxer_api/src/api/content_i18n/weblate/locales/hu.json
index 295464b39..ebe468220 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/hu.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/hu.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Ha EU/EGT-fogyasztó vagyok, kifejezetten hozzájárulok ahhoz, hogy a {product_name} {premium_tier_name} digitális tartalmat azonnal biztosítsák, és tudomásul veszem, hogy a hozzáférés megadásával elveszítem a törvényes elállási jogomat. Ez nem érinti a többi kötelező fogyasztói jogot. Lásd a [Felhasználási feltételeket]({terms_url}).",
"bulk_message_deletion.complete": "Befejeztük az üzeneteid törlését. Eltávolítottunk {message_count, plural, =0 {0 üzenetet} one {# üzenetet} other {# üzenetet}} {channel_count, plural, =0 {0 helyről} one {# helyről} other {# helyről}}.",
"content.virus_detected": "A fájl potenciálisan veszélyesnek minősült, ezért eltávolítottuk.",
+ "enforcement.automation.automated": "Ez egy automatikusan alkalmazott ideiglenes korlátozás, amely addig marad érvényben, amíg a csapatunk egyik tagja felülvizsgálja az ügyet.",
+ "enforcement.automation.flagged": "Ezt automatikus eszközök jelezték. A csapatunk egyik tagja felülvizsgálta, és ő hozta meg a döntést.",
+ "enforcement.automation.none": "Ezt a csapatunk egyik tagja vizsgálta felül, és ő hozta meg a döntést.",
+ "enforcement.effect.account_not_restricted": "A fiókod egyéb tekintetben nincs korlátozva.",
+ "enforcement.effect.closure": "{target, select, bot {A bot sehol nem tud csatlakozni és semmilyen műveletet végezni. A botot és az adatait {deletion_at} időpontban töröljük. A saját fiókod nincs korlátozva.} other {Sehol nem jelentkezhetsz be, és nem használhatod a(z) {product_name} szolgáltatást. A fiókot és az adatait {deletion_at} időpontban töröljük, kivéve azokat az adatokat, amelyeket a törvény szerint meg kell őriznünk.}}",
+ "enforcement.effect.community_removed": "A közösség, valamint a csatornái és üzenetei már senki számára nem érhetők el. A saját fiókod nincs korlátozva.",
+ "enforcement.effect.limit_direct_messages": "A kétszemélyes beszélgetésekben küldött üzeneteidet és az ismerősjelöléseidet nem kézbesítjük, és a profilod rejtve marad. A közösségekben és a csoportos beszélgetésekben mások összecsukva és lehetséges spamként megjelölve látják az üzeneteidet.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Nem vásárolhatsz a(z) {product_name} szolgáltatásban, amíg a csapatunk egyik tagja felül nem vizsgálja az ügyet.} other {Nem vásárolhatsz a(z) {product_name} szolgáltatásban.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Addig nem küldhetsz bejelentéseket az alkalmazásban. Illegális tartalom bejelentéséhez használd a [cégadatainkat tartalmazó oldalon]({url}) található biztonsági csatornát.} other {Addig nem küldhetsz bejelentéseket az alkalmazásban.}}",
+ "enforcement.effect.messages_removed": "Ezenkívül eltávolítottunk {count, plural, one {# üzenetet} other {# üzenetet}}.",
+ "enforcement.effect.networks_blocked": "Ezenkívül a következő időpontig letiltottuk a hozzáférést azokról a hálózatokról, amelyeket ez a fiók használt: {date}.",
+ "enforcement.effect.no_other_accounts": "Tilos más fiókokat létrehoznod vagy használnod.",
+ "enforcement.effect.scope": "Ez a döntés mindenhol érvényes, ahol a(z) {product_name} elérhető.",
+ "enforcement.effect.suspension": "{target, select, bot {A bot addig sehol nem tud csatlakozni és semmilyen műveletet végezni. A saját fiókod nincs korlátozva.} other {Addig sehol nem jelentkezhetsz be, és nem használhatod a(z) {product_name} szolgáltatást. A fiókodat, az üzeneteidet és a közösségeidet megőrizzük.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {A bot sehol nem tud csatlakozni és semmilyen műveletet végezni. A saját fiókod nincs korlátozva.} other {Sehol nem jelentkezhetsz be, és nem használhatod a(z) {product_name} szolgáltatást.}}",
+ "enforcement.effect.warning": "A fiókod nincs korlátozva. Ha ez újra előfordul, korlátozhatjuk vagy felfüggeszthetjük.",
+ "enforcement.facts.channel": "{count, plural, one {# üzenet} other {# üzenet}} a(z) {community} közösség #{channel} csatornájában, {range, select, single {{start}} other {{start} és {end} között}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# üzenet} other {# üzenet}}, amelyet a #{channel} csatornában tettek közzé, {range, select, single {{start}} other {{start} és {end} között}}.",
+ "enforcement.facts.copyright": "Jogtulajdonos vagy érintett jog: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# üzenet} other {# üzenet}} egy közvetlen üzenetes beszélgetésben, {range, select, single {{start}} other {{start} és {end} között}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# üzenet} other {# üzenet}} egy közvetlen üzenetes beszélgetésben {month} folyamán.",
+ "enforcement.facts.group_message": "{count, plural, one {# üzenet} other {# üzenet}} egy csoportos beszélgetésben, {range, select, single {{start}} other {{start} és {end} között}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# üzenet} other {# üzenet}} egy csoportos beszélgetésben {month} folyamán.",
+ "enforcement.facts.payment": "A fiókodon történt fizetés: {date}.",
+ "enforcement.facts.profile": "A profilod: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# üzenet} other {# üzenet}} egy már nem létező beszélgetésben, {range, select, single {{start}} other {{start} és {end} között}}.",
+ "enforcement.lead.adult_content": "A fiókodból származó szexuális tartalmat találtunk egy 18+ jelölésű téren kívül.",
+ "enforcement.lead.age_requirement": "A(z) {product_name} használatához el kell érned az országodban előírt alsó korhatárt. Ez nem büntetés, és szívesen látunk újra, ha már elég idős leszel.",
+ "enforcement.lead.automation": "A fiókodból olyan automatizált tevékenységet észleltünk, amely zavarta a szolgáltatás rendes használatát.",
+ "enforcement.lead.ban_evasion": "Megállapítottuk, hogy ezt a fiókot egy másik fiókra vonatkozó korlátozás megkerülésére használták.",
+ "enforcement.lead.bot": "A botodnál olyan tevékenységet találtunk, amely sérti ezt a szabályt.",
+ "enforcement.lead.child_safety": "A fiókodon olyan tartalmat vagy tevékenységet találtunk, amely sérti a gyermekek védelmére vonatkozó szabályainkat.",
+ "enforcement.lead.community": "Ebben a közösségben olyan tartalmat találtunk, amely sérti ezt a szabályt.",
+ "enforcement.lead.copyright": "A fiókodból olyan tartalmat találtunk, amely engedély nélkül használja fel valaki más munkáját.",
+ "enforcement.lead.fraud": "A fiókodból olyan tartalmat találtunk, amely pénzt, fiókokat vagy személyes adatokat próbált kicsalni másoktól.",
+ "enforcement.lead.harassment": "A fiókodból olyan üzeneteket találtunk, amelyek zaklattak vagy megfélemlítettek valakit.",
+ "enforcement.lead.harmful_deception": "A fiókodból olyan tartalmat találtunk, amely olyan hamis állításokat terjesztett, amelyek valószínűleg súlyos kárt okoznak.",
+ "enforcement.lead.hate": "A fiókodból olyan tartalmat találtunk, amely embereket az identitásuk miatt támad vagy aláz meg.",
+ "enforcement.lead.illegal_activity": "A fiókodból olyan tartalmat találtunk, amely illegális termékeket vagy tevékenységet kínál, vagy segítséget nyújt hozzájuk.",
+ "enforcement.lead.impersonation": "Megállapítottuk, hogy a fiókod más személynek vagy szervezetnek adta ki magát, vagy hamis személyazonosságot használt mások megtévesztésére.",
+ "enforcement.lead.intimate_images": "Megállapítottuk, hogy a fiókod valakiről intim képeket osztott meg az illető beleegyezése nélkül.",
+ "enforcement.lead.legacy": "Ehhez a döntéshez nem rögzítettünk további részleteket.",
+ "enforcement.lead.malware": "A fiókodból olyan linkeket vagy fájlokat találtunk, amelyek kártevőhöz vagy más káros szoftverhez vezetnek.",
+ "enforcement.lead.payments": "A fiókodon olyan fizetési problémát találtunk, amely sérti a fizetési feltételeinket.",
+ "enforcement.lead.privacy": "Megállapítottuk, hogy a fiókod valaki személyes adatait osztotta meg az illető beleegyezése nélkül.",
+ "enforcement.lead.raids": "Megállapítottuk, hogy a fiókod részt vett egy közösség vagy személy elleni összehangolt támadásban.",
+ "enforcement.lead.report_abuse": "Megállapítottuk, hogy a fiókod ismételten hamis vagy rosszhiszemű bejelentéseket küldött.",
+ "enforcement.lead.self_harm": "A fiókodból olyan tartalmat találtunk, amely önsértésre buzdít, vagy útmutatást ad hozzá.",
+ "enforcement.lead.service_abuse": "Megállapítottuk, hogy a fiókod úgy használta a(z) {product_name} szolgáltatást, hogy az zavarja a működését, vagy megkerüli a korlátait.",
+ "enforcement.lead.spam": "Megállapítottuk, hogy a fiókod tömegesen küldött kéretlen üzeneteket.",
+ "enforcement.lead.threats": "A fiókodból olyan üzeneteket találtunk, amelyek erőszakkal fenyegettek, vagy erőszakra buzdítottak.",
+ "enforcement.lead.unwanted_sexual_content": "Megállapítottuk, hogy a fiókod szexuális tartalmat küldött valakinek, aki nem egyezett bele, hogy ilyet kapjon.",
+ "enforcement.lead.violent_content": "Megállapítottuk, hogy a fiókod megrázó erőszakos vagy véres tartalmat osztott meg.",
+ "enforcement.lead.violent_extremism": "A fiókodon olyan tartalmat vagy tevékenységet találtunk, amely sérti a terrorizmusra és az erőszakos szélsőségességre vonatkozó szabályainkat.",
+ "enforcement.profile_field.avatar": "profilkép",
+ "enforcement.profile_field.banner": "borítókép",
+ "enforcement.profile_field.bio": "bemutatkozás",
+ "enforcement.profile_field.global_name": "megjelenítendő név",
+ "enforcement.profile_field.pronouns": "névmások",
+ "enforcement.redress.out_of_court": "Ha az EU-ban élsz, ezt a döntést egy tanúsított peren kívüli vitarendezési testület elé is viheted. Az Európai Bizottság [listát vezet ezekről a testületekről]({url}).",
+ "enforcement.redress.regulator_and_court": "Panaszt tehetsz az EU-s országod digitális szolgáltatási koordinátoránál is, vagy bírósághoz fordulhatsz.",
+ "enforcement.rule.adult_content": "Felnőtt tartalom 18+ tereken kívül",
+ "enforcement.rule.age_requirement": "Alsó korhatár",
+ "enforcement.rule.automation": "Zavaró automatizálás",
+ "enforcement.rule.ban_evasion": "Korlátozások megkerülése",
+ "enforcement.rule.child_safety": "Gyermekek biztonsága",
+ "enforcement.rule.copyright": "Szerzői jog",
+ "enforcement.rule.fraud": "Átverés és csalás",
+ "enforcement.rule.harassment": "Zaklatás",
+ "enforcement.rule.harmful_deception": "Káros megtévesztés",
+ "enforcement.rule.hate": "Gyűlölet és diszkrimináció",
+ "enforcement.rule.illegal_activity": "Illegális és veszélyes tevékenység",
+ "enforcement.rule.impersonation": "Megszemélyesítés és hamis fiókok",
+ "enforcement.rule.intimate_images": "Beleegyezés nélkül megosztott intim képek",
+ "enforcement.rule.malware": "Kártékony linkek és kártevők",
+ "enforcement.rule.payments": "Fizetések",
+ "enforcement.rule.privacy": "Magánszféra és személyes adatok",
+ "enforcement.rule.raids": "Rajtaütések és összehangolt támadások",
+ "enforcement.rule.report_abuse": "Visszaélés a bejelentésekkel",
+ "enforcement.rule.self_harm": "Önsértésre buzdítás",
+ "enforcement.rule.service_abuse": "Visszaélés a szolgáltatással",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Erőszakkal való fenyegetés",
+ "enforcement.rule.unwanted_sexual_content": "Kéretlen szexuális tartalom",
+ "enforcement.rule.violent_content": "Megrázó erőszakos tartalom",
+ "enforcement.rule.violent_extremism": "Terrorizmus és erőszakos szélsőségesség",
+ "enforcement.source.own_review": "Ezt saját ellenőrzésünk során találtuk.",
+ "enforcement.source.report": "Ezt egy bejelentés nyomán vizsgáltuk meg.",
+ "enforcement.summary.closure": "{target, select, bot {Lezártuk a(z) {bot_name} nevű botodat.} other {Lezártuk a fiókodat.}}",
+ "enforcement.summary.community_removal": "Eltávolítottuk a(z) {community_name} nevű közösségedet.",
+ "enforcement.summary.content_removal": "{all, select, yes {Eltávolítottuk az összes általad küldött üzenetet.} other {Eltávolítottunk {count, plural, one {# általad küldött üzenetet} other {# általad küldött üzenetet}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Korlátoztunk egy funkciót a fiókodon. A korlátozás vége: {ends_at}.} other {Korlátoztunk egy funkciót a fiókodon.}}",
+ "enforcement.summary.profile_reset": "Visszaállítottuk a profilod egyes részeit: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Felfüggesztettük a(z) {bot_name} nevű botodat. A felfüggesztés vége: {ends_at}.} other {Felfüggesztettük a fiókodat. A felfüggesztés vége: {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Véglegesen felfüggesztettük a(z) {bot_name} nevű botodat.} other {Véglegesen felfüggesztettük a fiókodat.}}",
+ "enforcement.summary.warning": "Figyelmeztetést küldünk a fiókodon folytatott tevékenység miatt.",
+ "enforcement.welfare.self_harm": "Ha nehéz időszakon mész keresztül, nem kell egyedül megbirkóznod vele. [Közösségi irányelveink 3. szakasza]({url}) segélyvonalakat sorol fel.",
"guild.bulk_create.emoji_limit": "Elérted az emojik maximális számát ({limit}).",
"guild.bulk_create.sticker_limit": "Elérted a matricák maximális számát ({limit}).",
"guild.bulk_create.unknown_error": "Ismeretlen hiba.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/id.json b/fluxer_api/src/api/content_i18n/weblate/locales/id.json
index af74b5cbc..0b5e11e85 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/id.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/id.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Jika saya konsumen UE/EEA, saya secara tegas menyetujui agar konten digital {product_name} paket {premium_tier_name} diberikan segera dan mengakui bahwa saya kehilangan hak pembatalan yang dijamin undang-undang begitu akses diberikan. Ini tidak memengaruhi hak konsumen lain yang wajib dilindungi. Lihat [Ketentuan layanan]({terms_url}).",
"bulk_message_deletion.complete": "Kami sudah selesai menghapus pesanmu. Kami menghapus {message_count, plural, =0 {0 pesan} other {# pesan}} dari {channel_count, plural, =0 {0 tempat} other {# tempat}}.",
"content.virus_detected": "File itu ditandai sebagai berpotensi tidak aman dan sudah dihapus.",
+ "enforcement.automation.automated": "Ini adalah pembatasan sementara yang diterapkan secara otomatis selagi seseorang di tim kami meninjaunya.",
+ "enforcement.automation.flagged": "Alat otomatis menandai hal ini. Seseorang di tim kami meninjaunya dan mengambil keputusan.",
+ "enforcement.automation.none": "Seseorang di tim kami meninjau hal ini dan mengambil keputusan.",
+ "enforcement.effect.account_not_restricted": "Selain itu, akunmu tidak dibatasi.",
+ "enforcement.effect.closure": "{target, select, bot {Bot tidak bisa terhubung atau bertindak di mana pun. Kami akan menghapus bot dan datanya pada {deletion_at}. Akunmu sendiri tidak dibatasi.} other {Kamu tidak bisa masuk atau menggunakan {product_name} di mana pun. Kami akan menghapus akun dan datanya pada {deletion_at}, kecuali data yang wajib kami simpan menurut hukum.}}",
+ "enforcement.effect.community_removed": "Komunitas beserta saluran dan pesannya tidak lagi tersedia bagi siapa pun. Akunmu sendiri tidak dibatasi.",
+ "enforcement.effect.limit_direct_messages": "Pesanmu di percakapan empat mata dan permintaan pertemananmu tidak sampai, dan profilmu disembunyikan. Di komunitas dan percakapan grup, orang lain melihat pesanmu diciutkan dan ditandai berpotensi spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Kamu tidak bisa melakukan pembelian di {product_name} sampai seseorang di tim kami meninjau hal ini.} other {Kamu tidak bisa melakukan pembelian di {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Kamu tidak bisa mengirim laporan di aplikasi sampai saat itu. Untuk melaporkan konten ilegal, gunakan jalur keamanan di [halaman informasi perusahaan kami]({url}).} other {Kamu tidak bisa mengirim laporan di aplikasi sampai saat itu.}}",
+ "enforcement.effect.messages_removed": "Kami juga menghapus {count, plural, =1 {# pesan} other {# pesan}}.",
+ "enforcement.effect.networks_blocked": "Kami juga memblokir akses dari jaringan yang digunakan akun ini sampai {date}.",
+ "enforcement.effect.no_other_accounts": "Kamu tidak boleh membuat atau menggunakan akun lain.",
+ "enforcement.effect.scope": "Keputusan ini berlaku di mana pun {product_name} tersedia.",
+ "enforcement.effect.suspension": "{target, select, bot {Bot tidak bisa terhubung atau bertindak di mana pun sampai saat itu. Akunmu sendiri tidak dibatasi.} other {Kamu tidak bisa masuk atau menggunakan {product_name} di mana pun sampai saat itu. Akun, pesan, dan komunitasmu tetap disimpan.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Bot tidak bisa terhubung atau bertindak di mana pun. Akunmu sendiri tidak dibatasi.} other {Kamu tidak bisa masuk atau menggunakan {product_name} di mana pun.}}",
+ "enforcement.effect.warning": "Akunmu tidak dibatasi. Jika ini terjadi lagi, kami bisa membatasi atau menangguhkannya.",
+ "enforcement.facts.channel": "{count, plural, =1 {# pesan} other {# pesan}} di #{channel} di {community}, {range, select, single {pada {start}} other {antara {start} dan {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, =1 {# pesan} other {# pesan}} yang diposting di #{channel}, {range, select, single {pada {start}} other {antara {start} dan {end}}}.",
+ "enforcement.facts.copyright": "Pemegang hak atau hak yang bersangkutan: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {# pesan} other {# pesan}} dalam percakapan pesan langsung, {range, select, single {pada {start}} other {antara {start} dan {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {# pesan} other {# pesan}} dalam percakapan pesan langsung pada {month}.",
+ "enforcement.facts.group_message": "{count, plural, =1 {# pesan} other {# pesan}} dalam percakapan grup, {range, select, single {pada {start}} other {antara {start} dan {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {# pesan} other {# pesan}} dalam percakapan grup pada {month}.",
+ "enforcement.facts.payment": "Pembayaran di akunmu pada {date}.",
+ "enforcement.facts.profile": "Profilmu: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {# pesan} other {# pesan}} dalam percakapan yang sudah tidak ada, {range, select, single {pada {start}} other {antara {start} dan {end}}}.",
+ "enforcement.lead.adult_content": "Kami menemukan konten seksual dari akunmu di luar ruang yang ditandai 18+.",
+ "enforcement.lead.age_requirement": "Kamu harus memenuhi usia minimum di negaramu untuk menggunakan {product_name}. Ini bukan hukuman, dan kamu boleh kembali setelah cukup umur.",
+ "enforcement.lead.automation": "Kami menemukan aktivitas otomatis dari akunmu yang mengganggu penggunaan layanan secara normal.",
+ "enforcement.lead.ban_evasion": "Kami menemukan bahwa akun ini digunakan untuk menghindari pembatasan pada akun lain.",
+ "enforcement.lead.bot": "Kami menemukan aktivitas dari botmu yang melanggar aturan ini.",
+ "enforcement.lead.child_safety": "Kami menemukan konten atau aktivitas di akunmu yang melanggar aturan kami tentang perlindungan anak.",
+ "enforcement.lead.community": "Kami menemukan konten di komunitas ini yang melanggar aturan ini.",
+ "enforcement.lead.copyright": "Kami menemukan konten dari akunmu yang menggunakan karya orang lain tanpa izin.",
+ "enforcement.lead.fraud": "Kami menemukan konten dari akunmu yang mencoba menipu orang demi mendapatkan uang, akun, atau informasi pribadi mereka.",
+ "enforcement.lead.harassment": "Kami menemukan pesan dari akunmu yang melecehkan atau merundung seseorang.",
+ "enforcement.lead.harmful_deception": "Kami menemukan konten dari akunmu yang menyebarkan klaim palsu yang berpotensi menimbulkan bahaya serius.",
+ "enforcement.lead.hate": "Kami menemukan konten dari akunmu yang menyerang atau merendahkan orang karena jati diri mereka.",
+ "enforcement.lead.illegal_activity": "Kami menemukan konten dari akunmu yang menawarkan atau memfasilitasi barang atau aktivitas ilegal.",
+ "enforcement.lead.impersonation": "Kami menemukan bahwa akunmu berpura-pura menjadi orang atau organisasi lain, atau menggunakan identitas palsu untuk menyesatkan orang.",
+ "enforcement.lead.intimate_images": "Kami menemukan bahwa akunmu membagikan gambar intim seseorang tanpa persetujuannya.",
+ "enforcement.lead.legacy": "Kami tidak memiliki catatan yang lebih rinci untuk keputusan ini.",
+ "enforcement.lead.malware": "Kami menemukan tautan atau file dari akunmu yang mengarah ke malware atau perangkat lunak berbahaya lainnya.",
+ "enforcement.lead.payments": "Kami menemukan masalah pembayaran di akunmu yang melanggar ketentuan pembayaran kami.",
+ "enforcement.lead.privacy": "Kami menemukan bahwa akunmu membagikan informasi pribadi seseorang tanpa persetujuannya.",
+ "enforcement.lead.raids": "Kami menemukan bahwa akunmu ikut serta dalam serangan terkoordinasi terhadap sebuah komunitas atau seseorang.",
+ "enforcement.lead.report_abuse": "Kami menemukan bahwa akunmu berulang kali mengirim laporan yang palsu atau beriktikad buruk.",
+ "enforcement.lead.self_harm": "Kami menemukan konten dari akunmu yang mendorong atau memberi petunjuk untuk melukai diri sendiri.",
+ "enforcement.lead.service_abuse": "Kami menemukan bahwa akunmu menggunakan {product_name} dengan cara yang mengganggu layanan atau mengakali batasannya.",
+ "enforcement.lead.spam": "Kami menemukan bahwa akunmu mengirim pesan yang tidak diinginkan secara massal.",
+ "enforcement.lead.threats": "Kami menemukan pesan dari akunmu yang mengancam atau mendorong kekerasan.",
+ "enforcement.lead.unwanted_sexual_content": "Kami menemukan bahwa akunmu mengirim konten seksual kepada seseorang yang tidak setuju untuk menerimanya.",
+ "enforcement.lead.violent_content": "Kami menemukan bahwa akunmu membagikan konten kekerasan grafis atau adegan berdarah.",
+ "enforcement.lead.violent_extremism": "Kami menemukan konten atau aktivitas di akunmu yang melanggar aturan kami tentang terorisme dan ekstremisme kekerasan.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "bio",
+ "enforcement.profile_field.global_name": "nama tampilan",
+ "enforcement.profile_field.pronouns": "kata ganti",
+ "enforcement.redress.out_of_court": "Jika kamu berada di UE, kamu juga bisa membawa keputusan ini ke badan penyelesaian sengketa di luar pengadilan yang tersertifikasi. Komisi Eropa menyediakan [daftar badan-badan ini]({url}).",
+ "enforcement.redress.regulator_and_court": "Kamu juga bisa mengajukan pengaduan ke Koordinator Layanan Digital di negara UE-mu, atau menempuh jalur pengadilan.",
+ "enforcement.rule.adult_content": "Konten dewasa di luar ruang 18+",
+ "enforcement.rule.age_requirement": "Usia minimum",
+ "enforcement.rule.automation": "Otomatisasi yang mengganggu",
+ "enforcement.rule.ban_evasion": "Menghindari pembatasan",
+ "enforcement.rule.child_safety": "Keselamatan anak",
+ "enforcement.rule.copyright": "Hak cipta",
+ "enforcement.rule.fraud": "Penipuan dan kecurangan",
+ "enforcement.rule.harassment": "Pelecehan",
+ "enforcement.rule.harmful_deception": "Informasi menyesatkan yang berbahaya",
+ "enforcement.rule.hate": "Kebencian dan diskriminasi",
+ "enforcement.rule.illegal_activity": "Aktivitas ilegal dan berbahaya",
+ "enforcement.rule.impersonation": "Peniruan identitas dan akun palsu",
+ "enforcement.rule.intimate_images": "Gambar intim yang dibagikan tanpa persetujuan",
+ "enforcement.rule.malware": "Tautan berbahaya dan malware",
+ "enforcement.rule.payments": "Pembayaran",
+ "enforcement.rule.privacy": "Privasi dan informasi pribadi",
+ "enforcement.rule.raids": "Penyerbuan dan serangan terkoordinasi",
+ "enforcement.rule.report_abuse": "Penyalahgunaan laporan",
+ "enforcement.rule.self_harm": "Mendorong tindakan melukai diri sendiri",
+ "enforcement.rule.service_abuse": "Penyalahgunaan layanan",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Ancaman kekerasan",
+ "enforcement.rule.unwanted_sexual_content": "Konten seksual yang tidak diinginkan",
+ "enforcement.rule.violent_content": "Kekerasan grafis",
+ "enforcement.rule.violent_extremism": "Terorisme dan ekstremisme kekerasan",
+ "enforcement.source.own_review": "Kami menemukan ini dalam peninjauan kami sendiri.",
+ "enforcement.source.report": "Kami meninjau ini setelah ada laporan.",
+ "enforcement.summary.closure": "{target, select, bot {Kami menutup botmu {bot_name}.} other {Kami menutup akunmu.}}",
+ "enforcement.summary.community_removal": "Kami menghapus komunitasmu {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Kami menghapus semua pesan yang kamu kirim.} other {Kami menghapus {count, plural, =1 {# pesan} other {# pesan}} yang kamu kirim.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Kami membatasi sebuah fitur di akunmu sampai {ends_at}.} other {Kami membatasi sebuah fitur di akunmu.}}",
+ "enforcement.summary.profile_reset": "Kami mengatur ulang sebagian profilmu: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Kami menangguhkan botmu {bot_name} sampai {ends_at}.} other {Kami menangguhkan akunmu sampai {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Kami memblokir botmu {bot_name}.} other {Kami memblokir akunmu.}}",
+ "enforcement.summary.warning": "Kami memperingatkanmu tentang aktivitas di akunmu.",
+ "enforcement.welfare.self_harm": "Jika kamu sedang melalui masa sulit, kamu tidak harus menghadapinya sendirian. [Bagian 3 panduan komunitas kami]({url}) mencantumkan layanan dukungan.",
"guild.bulk_create.emoji_limit": "Jumlah maksimum emoji telah tercapai ({limit}).",
"guild.bulk_create.sticker_limit": "Jumlah maksimum stiker telah tercapai ({limit}).",
"guild.bulk_create.unknown_error": "Kesalahan tidak diketahui.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/it.json b/fluxer_api/src/api/content_i18n/weblate/locales/it.json
index 15363997d..1ce370782 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/it.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/it.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Se sono un consumatore UE/SEE, acconsento espressamente alla fornitura immediata del contenuto digitale {product_name} {premium_tier_name} e riconosco di perdere il mio diritto di recesso legale una volta che l'accesso viene fornito. Ciò non pregiudica altri diritti dei consumatori previsti dalla legge. Vedi i [Termini di servizio]({terms_url}).",
"bulk_message_deletion.complete": "Abbiamo finito di eliminare i tuoi messaggi. Abbiamo rimosso {message_count, plural, =0 {0 messaggi} one {# messaggio} other {# messaggi}} da {channel_count, plural, =0 {0 posti} one {# posto} other {# posti}}.",
"content.virus_detected": "Il file è stato segnalato come potenzialmente pericoloso ed è stato rimosso.",
+ "enforcement.automation.automated": "Si tratta di un limite temporaneo applicato automaticamente mentre una persona del nostro team esamina il caso.",
+ "enforcement.automation.flagged": "Strumenti automatici hanno individuato questo caso. Una persona del nostro team lo ha esaminato e ha preso la decisione.",
+ "enforcement.automation.none": "Una persona del nostro team ha esaminato questo caso e ha preso la decisione.",
+ "enforcement.effect.account_not_restricted": "Il tuo account non è soggetto ad altre restrizioni.",
+ "enforcement.effect.closure": "{target, select, bot {Il bot non può connettersi né agire da nessuna parte. Il {deletion_at} lo elimineremo insieme ai suoi dati. Il tuo account personale non è soggetto a restrizioni.} other {Non puoi accedere né usare {product_name} da nessuna parte. Il {deletion_at} elimineremo l'account e i suoi dati, tranne quelli che la legge ci obbliga a conservare.}}",
+ "enforcement.effect.community_removed": "La community, i suoi canali e i suoi messaggi non sono più disponibili per nessuno. Il tuo account personale non è soggetto a restrizioni.",
+ "enforcement.effect.limit_direct_messages": "I tuoi messaggi nelle conversazioni individuali e le tue richieste di amicizia non vengono consegnati e il tuo profilo è nascosto. Nelle community e nelle conversazioni di gruppo, gli altri vedono i tuoi messaggi compressi e contrassegnati come possibile spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Non puoi effettuare acquisti su {product_name} finché una persona del nostro team non avrà esaminato il caso.} other {Non puoi effettuare acquisti su {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Fino ad allora non puoi inviare segnalazioni nell'app. Per segnalare contenuti illegali, usa il canale di segnalazione indicato nella [pagina con le informazioni sulla nostra azienda]({url}).} other {Fino ad allora non puoi inviare segnalazioni nell'app.}}",
+ "enforcement.effect.messages_removed": "Abbiamo anche rimosso {count, plural, one {# messaggio} other {# messaggi}}.",
+ "enforcement.effect.networks_blocked": "Abbiamo anche bloccato fino al {date} l'accesso dalle reti usate da questo account.",
+ "enforcement.effect.no_other_accounts": "Non ti è consentito creare o usare altri account.",
+ "enforcement.effect.scope": "Questa decisione vale ovunque {product_name} sia disponibile.",
+ "enforcement.effect.suspension": "{target, select, bot {Fino ad allora il bot non può connettersi né agire da nessuna parte. Il tuo account personale non è soggetto a restrizioni.} other {Fino ad allora non puoi accedere né usare {product_name} da nessuna parte. Il tuo account, i tuoi messaggi e le tue community vengono conservati.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Il bot non può connettersi né agire da nessuna parte. Il tuo account personale non è soggetto a restrizioni.} other {Non puoi accedere né usare {product_name} da nessuna parte.}}",
+ "enforcement.effect.warning": "Il tuo account non è soggetto a restrizioni. Se succede di nuovo, potremmo limitarlo o sospenderlo.",
+ "enforcement.facts.channel": "{count, plural, one {# messaggio} other {# messaggi}} in #{channel} di {community}, {range, select, single {il {start}} other {tra il {start} e il {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# messaggio pubblicato} other {# messaggi pubblicati}} in #{channel}, {range, select, single {il {start}} other {tra il {start} e il {end}}}.",
+ "enforcement.facts.copyright": "Titolare dei diritti o diritto in questione: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# messaggio} other {# messaggi}} in una conversazione diretta, {range, select, single {il {start}} other {tra il {start} e il {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# messaggio} other {# messaggi}} in una conversazione diretta a {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# messaggio} other {# messaggi}} in una conversazione di gruppo, {range, select, single {il {start}} other {tra il {start} e il {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# messaggio} other {# messaggi}} in una conversazione di gruppo a {month}.",
+ "enforcement.facts.payment": "Un pagamento sul tuo account il {date}.",
+ "enforcement.facts.profile": "Il tuo profilo: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# messaggio} other {# messaggi}} in una conversazione che non esiste più, {range, select, single {il {start}} other {tra il {start} e il {end}}}.",
+ "enforcement.lead.adult_content": "Abbiamo verificato che il tuo account ha pubblicato contenuti sessuali al di fuori di uno spazio contrassegnato come 18+.",
+ "enforcement.lead.age_requirement": "Per usare {product_name} devi avere l'età minima prevista nel tuo paese. Non è una punizione, e potrai tornare quando avrai l'età richiesta.",
+ "enforcement.lead.automation": "Abbiamo riscontrato un'attività automatizzata proveniente dal tuo account che ha ostacolato il normale utilizzo del servizio.",
+ "enforcement.lead.ban_evasion": "Abbiamo verificato che questo account è stato usato per aggirare una restrizione su un altro account.",
+ "enforcement.lead.bot": "Abbiamo riscontrato un'attività del tuo bot che viola questa regola.",
+ "enforcement.lead.child_safety": "Abbiamo riscontrato sul tuo account contenuti o attività che violano le nostre regole sulla protezione dei minori.",
+ "enforcement.lead.community": "Abbiamo riscontrato in questa community contenuti che violano questa regola.",
+ "enforcement.lead.copyright": "Abbiamo verificato che il tuo account ha pubblicato contenuti che usano opere altrui senza autorizzazione.",
+ "enforcement.lead.fraud": "Abbiamo verificato che il tuo account ha pubblicato contenuti che cercavano di sottrarre con l'inganno denaro, account o informazioni personali.",
+ "enforcement.lead.harassment": "Abbiamo verificato che il tuo account ha inviato messaggi che molestavano o bullizzavano qualcuno.",
+ "enforcement.lead.harmful_deception": "Abbiamo verificato che il tuo account ha diffuso affermazioni false in grado di causare gravi danni.",
+ "enforcement.lead.hate": "Abbiamo verificato che il tuo account ha pubblicato contenuti che attaccano o denigrano le persone per ciò che sono.",
+ "enforcement.lead.illegal_activity": "Abbiamo verificato che il tuo account ha pubblicato contenuti che offrono beni o attività illegali o vi contribuiscono.",
+ "enforcement.lead.impersonation": "Abbiamo verificato che il tuo account si è spacciato per un'altra persona o organizzazione, o ha usato un'identità falsa per ingannare le persone.",
+ "enforcement.lead.intimate_images": "Abbiamo verificato che il tuo account ha condiviso immagini intime di una persona senza il suo consenso.",
+ "enforcement.lead.legacy": "Non abbiamo altri dettagli registrati su questa decisione.",
+ "enforcement.lead.malware": "Abbiamo verificato che il tuo account ha condiviso link o file che portano a malware o ad altri software dannosi.",
+ "enforcement.lead.payments": "Abbiamo riscontrato sul tuo account un problema di pagamento che viola i nostri termini di pagamento.",
+ "enforcement.lead.privacy": "Abbiamo verificato che il tuo account ha condiviso informazioni personali di qualcuno senza il suo consenso.",
+ "enforcement.lead.raids": "Abbiamo verificato che il tuo account ha partecipato a un attacco coordinato contro una community o una persona.",
+ "enforcement.lead.report_abuse": "Abbiamo verificato che il tuo account ha inviato ripetutamente segnalazioni false o in malafede.",
+ "enforcement.lead.self_harm": "Abbiamo verificato che il tuo account ha pubblicato contenuti che incoraggiano l'autolesionismo o danno istruzioni per praticarlo.",
+ "enforcement.lead.service_abuse": "Abbiamo verificato che il tuo account ha usato {product_name} in un modo che interferisce con il servizio o ne aggira i limiti.",
+ "enforcement.lead.spam": "Abbiamo verificato che il tuo account ha inviato messaggi indesiderati in massa.",
+ "enforcement.lead.threats": "Abbiamo verificato che il tuo account ha inviato messaggi che minacciavano violenza o incitavano alla violenza.",
+ "enforcement.lead.unwanted_sexual_content": "Abbiamo verificato che il tuo account ha inviato contenuti sessuali a una persona che non aveva acconsentito a riceverli.",
+ "enforcement.lead.violent_content": "Abbiamo verificato che il tuo account ha condiviso contenuti di violenza esplicita o gore.",
+ "enforcement.lead.violent_extremism": "Abbiamo riscontrato sul tuo account contenuti o attività che violano le nostre regole su terrorismo ed estremismo violento.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "biografia",
+ "enforcement.profile_field.global_name": "nome visualizzato",
+ "enforcement.profile_field.pronouns": "pronomi",
+ "enforcement.redress.out_of_court": "Se ti trovi nell'UE, puoi anche sottoporre questa decisione a un organismo certificato di risoluzione extragiudiziale delle controversie. La Commissione europea pubblica un [elenco di questi organismi]({url}).",
+ "enforcement.redress.regulator_and_court": "Puoi anche presentare un reclamo al coordinatore dei servizi digitali del tuo paese dell'UE o rivolgerti a un tribunale.",
+ "enforcement.rule.adult_content": "Contenuti per adulti fuori dagli spazi 18+",
+ "enforcement.rule.age_requirement": "Età minima",
+ "enforcement.rule.automation": "Automazione che disturba il servizio",
+ "enforcement.rule.ban_evasion": "Aggiramento delle restrizioni",
+ "enforcement.rule.child_safety": "Sicurezza dei minori",
+ "enforcement.rule.copyright": "Diritto d'autore",
+ "enforcement.rule.fraud": "Truffe e frodi",
+ "enforcement.rule.harassment": "Molestie",
+ "enforcement.rule.harmful_deception": "Inganni dannosi",
+ "enforcement.rule.hate": "Odio e discriminazione",
+ "enforcement.rule.illegal_activity": "Attività illegali e pericolose",
+ "enforcement.rule.impersonation": "Sostituzione di persona e account falsi",
+ "enforcement.rule.intimate_images": "Immagini intime condivise senza consenso",
+ "enforcement.rule.malware": "Link dannosi e malware",
+ "enforcement.rule.payments": "Pagamenti",
+ "enforcement.rule.privacy": "Privacy e informazioni personali",
+ "enforcement.rule.raids": "Raid e attacchi coordinati",
+ "enforcement.rule.report_abuse": "Uso improprio delle segnalazioni",
+ "enforcement.rule.self_harm": "Promozione dell'autolesionismo",
+ "enforcement.rule.service_abuse": "Abuso del servizio",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Minacce di violenza",
+ "enforcement.rule.unwanted_sexual_content": "Contenuti sessuali indesiderati",
+ "enforcement.rule.violent_content": "Violenza esplicita",
+ "enforcement.rule.violent_extremism": "Terrorismo ed estremismo violento",
+ "enforcement.source.own_review": "Lo abbiamo riscontrato durante un nostro controllo.",
+ "enforcement.source.report": "Abbiamo esaminato il caso in seguito a una segnalazione.",
+ "enforcement.summary.closure": "{target, select, bot {Abbiamo chiuso il tuo bot {bot_name}.} other {Abbiamo chiuso il tuo account.}}",
+ "enforcement.summary.community_removal": "Abbiamo rimosso la tua community {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Abbiamo rimosso tutti i messaggi che hai inviato.} other {Abbiamo rimosso {count, plural, one {# messaggio che hai inviato} other {# messaggi che hai inviato}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Abbiamo limitato una funzionalità del tuo account fino al {ends_at}.} other {Abbiamo limitato una funzionalità del tuo account.}}",
+ "enforcement.summary.profile_reset": "Abbiamo reimpostato alcune parti del tuo profilo: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Abbiamo sospeso il tuo bot {bot_name} fino al {ends_at}.} other {Abbiamo sospeso il tuo account fino al {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Abbiamo bannato il tuo bot {bot_name}.} other {Abbiamo bannato il tuo account.}}",
+ "enforcement.summary.warning": "Ti inviamo un avvertimento per l'attività del tuo account.",
+ "enforcement.welfare.self_harm": "Se stai attraversando un momento difficile, non devi affrontarlo senza aiuto. La [sezione 3 delle nostre linee guida della community]({url}) elenca le linee di ascolto.",
"guild.bulk_create.emoji_limit": "Raggiunto il numero massimo di emoji ({limit}).",
"guild.bulk_create.sticker_limit": "Raggiunto il numero massimo di sticker ({limit}).",
"guild.bulk_create.unknown_error": "Si è verificato un errore sconosciuto.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/ja.json b/fluxer_api/src/api/content_i18n/weblate/locales/ja.json
index 7abb1653c..2f1902a1c 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/ja.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/ja.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "私がEU/EEAの消費者である場合、{product_name} {premium_tier_name} のデジタルコンテンツが直ちに提供されることに明示的に同意し、アクセスが提供された時点で法定の撤回権を失うことを認めます。これは、法律によって保障されるその他の消費者の権利に影響を与えません。[利用規約]({terms_url})をご確認ください。",
"bulk_message_deletion.complete": "メッセージの削除が完了しました。{channel_count, plural, =0 {0 件の場所から} other {# 件の場所から}}{message_count, plural, =0 {0 件のメッセージを削除しました} other {# 件のメッセージを削除しました}}。",
"content.virus_detected": "このファイルは安全でない可能性があると判断されたため、削除されました。",
+ "enforcement.automation.automated": "これは、チームの担当者が確認するまでの間、自動的に適用される一時的な制限です。",
+ "enforcement.automation.flagged": "自動ツールがこれにフラグを付けました。チームの担当者が確認し、決定を下しました。",
+ "enforcement.automation.none": "チームの担当者がこれを確認し、決定を下しました。",
+ "enforcement.effect.account_not_restricted": "これ以外に、アカウントは制限されていません。",
+ "enforcement.effect.closure": "{target, select, bot {ボットはどこからも接続も操作もできません。{deletion_at}にボットとそのデータを削除します。あなた自身のアカウントは制限されていません。} other {どこからもログインや{product_name}の利用はできません。{deletion_at}に、法律で保持が義務付けられているデータを除き、アカウントとそのデータを削除します。}}",
+ "enforcement.effect.community_removed": "コミュニティとそのチャンネルやメッセージは、誰も利用できなくなりました。あなた自身のアカウントは制限されていません。",
+ "enforcement.effect.limit_direct_messages": "1対1のメッセージと友達リクエストは配信されず、プロフィールは非表示になります。コミュニティとグループDMでは、他の人にはあなたのメッセージが折りたたまれ、スパムの可能性があると表示されます。",
+ "enforcement.effect.limit_purchases": "{review, select, yes {チームの担当者が確認するまで、{product_name}で購入することはできません。} other {{product_name}で購入することはできません。}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {それまでの間、アプリ内で報告を送信することはできません。違法なコンテンツを報告するには、[会社情報ページ]({url})にある安全に関する窓口をご利用ください。} other {それまでの間、アプリ内で報告を送信することはできません。}}",
+ "enforcement.effect.messages_removed": "また、{count, plural, other {#件のメッセージ}}を削除しました。",
+ "enforcement.effect.networks_blocked": "また、このアカウントが使用していたネットワークからのアクセスを{date}までブロックしました。",
+ "enforcement.effect.no_other_accounts": "他のアカウントを作成または使用することは禁止されています。",
+ "enforcement.effect.scope": "この決定は、{product_name}を利用できるすべての場所に適用されます。",
+ "enforcement.effect.suspension": "{target, select, bot {それまでの間、ボットはどこからも接続も操作もできません。あなた自身のアカウントは制限されていません。} other {それまでの間、どこからもログインや{product_name}の利用はできません。アカウント、メッセージ、コミュニティは保持されます。}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {ボットはどこからも接続も操作もできません。あなた自身のアカウントは制限されていません。} other {どこからもログインや{product_name}の利用はできません。}}",
+ "enforcement.effect.warning": "アカウントは制限されていません。同じことが再び起きた場合は、アカウントを制限または一時停止することがあります。",
+ "enforcement.facts.channel": "{range, select, single {{start}に} other {{start}から{end}までの間に}}、{community}の#{channel}で送信された{count, plural, other {#件のメッセージ}}。",
+ "enforcement.facts.community_channel": "{range, select, single {{start}に} other {{start}から{end}までの間に}}、#{channel}に投稿された{count, plural, other {#件のメッセージ}}。",
+ "enforcement.facts.copyright": "権利者または関係する権利: {rights_holder}。",
+ "enforcement.facts.direct_message": "{range, select, single {{start}に} other {{start}から{end}までの間に}}、ダイレクトメッセージの会話で送信された{count, plural, other {#件のメッセージ}}。",
+ "enforcement.facts.direct_message_month": "{month}に、ダイレクトメッセージの会話で送信された{count, plural, other {#件のメッセージ}}。",
+ "enforcement.facts.group_message": "{range, select, single {{start}に} other {{start}から{end}までの間に}}、グループDMで送信された{count, plural, other {#件のメッセージ}}。",
+ "enforcement.facts.group_message_month": "{month}に、グループDMで送信された{count, plural, other {#件のメッセージ}}。",
+ "enforcement.facts.payment": "{date}にあなたのアカウントで行われた支払い。",
+ "enforcement.facts.profile": "あなたのプロフィール: {fields}。",
+ "enforcement.facts.unknown_location": "{range, select, single {{start}に} other {{start}から{end}までの間に}}、現在は存在しない会話で送信された{count, plural, other {#件のメッセージ}}。",
+ "enforcement.lead.adult_content": "18歳以上向けに設定されていない場所で、あなたのアカウントからの性的なコンテンツが見つかりました。",
+ "enforcement.lead.age_requirement": "{product_name}を利用するには、お住まいの国の最低年齢を満たしている必要があります。これは罰則ではありません。その年齢になったら、ぜひまたご利用ください。",
+ "enforcement.lead.automation": "あなたのアカウントから、サービスの通常の利用を妨げる自動化された活動が見つかりました。",
+ "enforcement.lead.ban_evasion": "このアカウントが、別のアカウントに対する制限を回避するために使われていたことがわかりました。",
+ "enforcement.lead.bot": "あなたのボットによる、このルールに違反するアクティビティが見つかりました。",
+ "enforcement.lead.child_safety": "あなたのアカウントで、子どもの保護に関するルールに違反するコンテンツまたは活動が見つかりました。",
+ "enforcement.lead.community": "このコミュニティで、このルールに違反するコンテンツが見つかりました。",
+ "enforcement.lead.copyright": "あなたのアカウントから、他者の著作物を許可なく使用したコンテンツが見つかりました。",
+ "enforcement.lead.fraud": "あなたのアカウントから、人をだましてお金、アカウント、個人情報を奪おうとするコンテンツが見つかりました。",
+ "enforcement.lead.harassment": "あなたのアカウントから、誰かに嫌がらせやいじめを行うメッセージが見つかりました。",
+ "enforcement.lead.harmful_deception": "あなたのアカウントから、深刻な害をもたらすおそれのある虚偽の主張を広めるコンテンツが見つかりました。",
+ "enforcement.lead.hate": "あなたのアカウントから、属性を理由に人を攻撃したりおとしめたりするコンテンツが見つかりました。",
+ "enforcement.lead.illegal_activity": "あなたのアカウントから、違法な物品や活動を提供または手助けするコンテンツが見つかりました。",
+ "enforcement.lead.impersonation": "あなたのアカウントが、他の人物や組織になりすましていたこと、または偽の身元を使って人を欺いていたことがわかりました。",
+ "enforcement.lead.intimate_images": "あなたのアカウントが、本人の同意なく誰かのプライベートな性的画像を共有していたことがわかりました。",
+ "enforcement.lead.legacy": "この決定について、記録に残っている詳細はこれ以上ありません。",
+ "enforcement.lead.malware": "あなたのアカウントから、マルウェアやその他の有害なソフトウェアにつながるリンクやファイルが見つかりました。",
+ "enforcement.lead.payments": "あなたのアカウントで、支払い条件に違反する支払いの問題が見つかりました。",
+ "enforcement.lead.privacy": "あなたのアカウントが、本人の同意なく誰かの個人情報を共有していたことがわかりました。",
+ "enforcement.lead.raids": "あなたのアカウントが、コミュニティまたは個人に対する組織的な攻撃に加わっていたことがわかりました。",
+ "enforcement.lead.report_abuse": "あなたのアカウントが、虚偽または悪意のある報告を繰り返し送信していたことがわかりました。",
+ "enforcement.lead.self_harm": "あなたのアカウントから、自傷行為を促す、またはその方法を教えるコンテンツが見つかりました。",
+ "enforcement.lead.service_abuse": "あなたのアカウントが、サービスを妨げる方法、またはサービスの制限を回避する方法で{product_name}を使用していたことがわかりました。",
+ "enforcement.lead.spam": "あなたのアカウントが、望まれていないメッセージを大量に送信していたことがわかりました。",
+ "enforcement.lead.threats": "あなたのアカウントから、暴力で脅す、または暴力をあおるメッセージが見つかりました。",
+ "enforcement.lead.unwanted_sexual_content": "あなたのアカウントが、受け取ることに同意していない相手に性的なコンテンツを送信していたことがわかりました。",
+ "enforcement.lead.violent_content": "あなたのアカウントが、生々しい暴力やグロテスクなコンテンツを共有していたことがわかりました。",
+ "enforcement.lead.violent_extremism": "あなたのアカウントで、テロリズムと暴力的過激主義に関するルールに違反するコンテンツまたは活動が見つかりました。",
+ "enforcement.profile_field.avatar": "アバター",
+ "enforcement.profile_field.banner": "バナー",
+ "enforcement.profile_field.bio": "自己紹介",
+ "enforcement.profile_field.global_name": "表示名",
+ "enforcement.profile_field.pronouns": "代名詞",
+ "enforcement.redress.out_of_court": "EU域内の方は、認定を受けた裁判外紛争解決機関にこの決定を付託することもできます。欧州委員会が[これらの機関の一覧]({url})を公開しています。",
+ "enforcement.redress.regulator_and_court": "また、お住まいのEU加盟国のデジタルサービス調整官(Digital Services Coordinator)に苦情を申し立てることや、裁判所に訴えることもできます。",
+ "enforcement.rule.adult_content": "18歳以上向けスペース以外での成人向けコンテンツ",
+ "enforcement.rule.age_requirement": "最低年齢",
+ "enforcement.rule.automation": "サービスを妨げる自動化",
+ "enforcement.rule.ban_evasion": "制限の回避",
+ "enforcement.rule.child_safety": "子どもの安全",
+ "enforcement.rule.copyright": "著作権",
+ "enforcement.rule.fraud": "詐欺と不正行為",
+ "enforcement.rule.harassment": "ハラスメント",
+ "enforcement.rule.harmful_deception": "有害な虚偽情報",
+ "enforcement.rule.hate": "ヘイトと差別",
+ "enforcement.rule.illegal_activity": "違法で危険な活動",
+ "enforcement.rule.impersonation": "なりすましと偽アカウント",
+ "enforcement.rule.intimate_images": "同意のないプライベートな性的画像の共有",
+ "enforcement.rule.malware": "悪意のあるリンクとマルウェア",
+ "enforcement.rule.payments": "支払い",
+ "enforcement.rule.privacy": "プライバシーと個人情報",
+ "enforcement.rule.raids": "レイドと組織的な攻撃",
+ "enforcement.rule.report_abuse": "報告機能の悪用",
+ "enforcement.rule.self_harm": "自傷行為の助長",
+ "enforcement.rule.service_abuse": "サービスの悪用",
+ "enforcement.rule.spam": "スパム",
+ "enforcement.rule.threats": "暴力による脅迫",
+ "enforcement.rule.unwanted_sexual_content": "望まない性的コンテンツ",
+ "enforcement.rule.violent_content": "生々しい暴力",
+ "enforcement.rule.violent_extremism": "テロリズムと暴力的過激主義",
+ "enforcement.source.own_review": "独自の確認の中でこの件を見つけました。",
+ "enforcement.source.report": "報告を受けてこの件を審査しました。",
+ "enforcement.summary.closure": "{target, select, bot {あなたのボット{bot_name}を閉鎖しました。} other {あなたのアカウントを閉鎖しました。}}",
+ "enforcement.summary.community_removal": "あなたのコミュニティ{community_name}を削除しました。",
+ "enforcement.summary.content_removal": "{all, select, yes {あなたが送信したすべてのメッセージを削除しました。} other {あなたが送信した{count, plural, other {#件のメッセージ}}を削除しました。}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {{ends_at}まで、あなたのアカウントの機能を1つ制限しました。} other {あなたのアカウントの機能を1つ制限しました。}}",
+ "enforcement.summary.profile_reset": "あなたのプロフィールの一部をリセットしました: {fields}。",
+ "enforcement.summary.suspension": "{target, select, bot {あなたのボット{bot_name}を{ends_at}まで一時停止しました。} other {あなたのアカウントを{ends_at}まで一時停止しました。}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {あなたのボット{bot_name}を永久停止しました。} other {あなたのアカウントを永久停止しました。}}",
+ "enforcement.summary.warning": "あなたのアカウントでの活動について警告します。",
+ "enforcement.welfare.self_harm": "つらい思いをしているなら、ひとりで抱え込む必要はありません。[コミュニティガイドラインのセクション3]({url})に相談窓口の一覧があります。",
"guild.bulk_create.emoji_limit": "絵文字の上限に達しました({limit})。",
"guild.bulk_create.sticker_limit": "ステッカーの上限に達しました({limit})。",
"guild.bulk_create.unknown_error": "不明なエラーが発生しました。",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/ko.json b/fluxer_api/src/api/content_i18n/weblate/locales/ko.json
index 43b0608c1..f577f6623 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/ko.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/ko.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "제가 EU/EEA 소비자인 경우, {product_name} {premium_tier_name} 디지털 콘텐츠를 즉시 제공받는 데 명시적으로 동의하며, 이용 권한이 제공된 후에는 법정 철회권을 상실함을 인정합니다. 이는 다른 법률상 보장되는 소비자 권리에 영향을 미치지 않습니다. [서비스 약관]({terms_url})을 확인하세요.",
"bulk_message_deletion.complete": "메시지 삭제를 완료했습니다. {channel_count, plural, =0 {0곳에서} other {#곳에서}} {message_count, plural, =0 {메시지 0개를 삭제했습니다} other {메시지 #개를 삭제했습니다}}.",
"content.virus_detected": "해당 파일은 잠재적으로 안전하지 않은 것으로 확인되어 삭제되었어요.",
+ "enforcement.automation.automated": "팀 담당자가 검토하는 동안 자동으로 적용되는 임시 제한이에요.",
+ "enforcement.automation.flagged": "자동화 도구가 이 건을 표시했어요. 팀 담당자가 검토하고 결정을 내렸어요.",
+ "enforcement.automation.none": "팀 담당자가 이 건을 검토하고 결정을 내렸어요.",
+ "enforcement.effect.account_not_restricted": "그 밖에는 계정이 제한되지 않아요.",
+ "enforcement.effect.closure": "{target, select, bot {봇은 어디에서도 연결하거나 작동할 수 없어요. {deletion_at}에 봇과 봇의 데이터를 삭제해요. 본인 계정은 제한되지 않아요.} other {어디에서도 {product_name}에 로그인하거나 서비스를 이용할 수 없어요. {deletion_at}에 법에 따라 보관해야 하는 데이터를 제외하고 계정과 계정의 데이터를 삭제해요.}}",
+ "enforcement.effect.community_removed": "커뮤니티와 커뮤니티의 채널, 메시지는 이제 누구도 이용할 수 없어요. 본인 계정은 제한되지 않아요.",
+ "enforcement.effect.limit_direct_messages": "1:1 메시지와 친구 요청은 전달되지 않고, 프로필은 숨겨져요. 커뮤니티와 그룹 DM에서는 다른 사람에게 메시지가 접힌 채 스팸일 수 있다는 표시와 함께 보여요.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {팀 담당자가 검토할 때까지 {product_name}에서 구매할 수 없어요.} other {{product_name}에서 구매할 수 없어요.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {그때까지 앱에서 신고할 수 없어요. 불법 콘텐츠를 신고하려면 [회사 정보 페이지]({url})에 있는 안전 신고 창구를 이용해 주세요.} other {그때까지 앱에서 신고할 수 없어요.}}",
+ "enforcement.effect.messages_removed": "또한 메시지 {count, plural, other {#개}}를 삭제했어요.",
+ "enforcement.effect.networks_blocked": "또한 이 계정이 사용한 네트워크의 접속을 {date}까지 차단했어요.",
+ "enforcement.effect.no_other_accounts": "다른 계정을 만들거나 사용하는 것은 금지돼요.",
+ "enforcement.effect.scope": "이 결정은 {product_name} 서비스가 제공되는 모든 곳에 적용돼요.",
+ "enforcement.effect.suspension": "{target, select, bot {그때까지 봇은 어디에서도 연결하거나 작동할 수 없어요. 본인 계정은 제한되지 않아요.} other {그때까지 어디에서도 {product_name}에 로그인하거나 서비스를 이용할 수 없어요. 계정, 메시지, 커뮤니티는 그대로 유지돼요.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {봇은 어디에서도 연결하거나 작동할 수 없어요. 본인 계정은 제한되지 않아요.} other {어디에서도 {product_name}에 로그인하거나 서비스를 이용할 수 없어요.}}",
+ "enforcement.effect.warning": "계정은 제한되지 않아요. 같은 일이 다시 발생하면 계정을 제한하거나 정지할 수 있어요.",
+ "enforcement.facts.channel": "{range, select, single {{start}에} other {{start}부터 {end}까지}} {community}의 #{channel}에서 전송된 메시지 {count, plural, other {#개}}.",
+ "enforcement.facts.community_channel": "{range, select, single {{start}에} other {{start}부터 {end}까지}} #{channel}에 게시된 메시지 {count, plural, other {#개}}.",
+ "enforcement.facts.copyright": "권리자 또는 관련 권리: {rights_holder}.",
+ "enforcement.facts.direct_message": "{range, select, single {{start}에} other {{start}부터 {end}까지}} DM 대화에서 전송된 메시지 {count, plural, other {#개}}.",
+ "enforcement.facts.direct_message_month": "{month}에 DM 대화에서 전송된 메시지 {count, plural, other {#개}}.",
+ "enforcement.facts.group_message": "{range, select, single {{start}에} other {{start}부터 {end}까지}} 그룹 DM에서 전송된 메시지 {count, plural, other {#개}}.",
+ "enforcement.facts.group_message_month": "{month}에 그룹 DM에서 전송된 메시지 {count, plural, other {#개}}.",
+ "enforcement.facts.payment": "{date}에 계정에서 이루어진 결제.",
+ "enforcement.facts.profile": "프로필: {fields}.",
+ "enforcement.facts.unknown_location": "{range, select, single {{start}에} other {{start}부터 {end}까지}} 지금은 존재하지 않는 대화에서 전송된 메시지 {count, plural, other {#개}}.",
+ "enforcement.lead.adult_content": "18세 이상으로 표시되지 않은 공간에서 계정이 올린 성적인 콘텐츠를 발견했어요.",
+ "enforcement.lead.age_requirement": "{product_name} 서비스를 이용하려면 거주 국가의 최소 연령 기준을 충족해야 해요. 처벌이 아니며, 해당 나이가 되면 언제든 다시 이용하실 수 있어요.",
+ "enforcement.lead.automation": "계정에서 서비스의 정상적인 이용을 방해한 자동화된 활동을 발견했어요.",
+ "enforcement.lead.ban_evasion": "이 계정이 다른 계정에 대한 제한을 우회하는 데 사용된 것을 확인했어요.",
+ "enforcement.lead.bot": "봇에서 이 규칙을 위반하는 활동을 발견했어요.",
+ "enforcement.lead.child_safety": "계정에서 아동 보호에 관한 규칙을 위반하는 콘텐츠나 활동을 발견했어요.",
+ "enforcement.lead.community": "이 커뮤니티에서 이 규칙을 위반하는 콘텐츠를 발견했어요.",
+ "enforcement.lead.copyright": "계정이 올린 콘텐츠에서 다른 사람의 저작물을 허락 없이 사용한 것을 발견했어요.",
+ "enforcement.lead.fraud": "계정이 올린 콘텐츠에서 사람들을 속여 돈, 계정 또는 개인 정보를 빼앗으려 한 것을 발견했어요.",
+ "enforcement.lead.harassment": "계정에서 다른 사람을 괴롭히거나 따돌린 메시지를 발견했어요.",
+ "enforcement.lead.harmful_deception": "계정이 올린 콘텐츠에서 심각한 피해를 줄 수 있는 허위 주장을 퍼뜨린 것을 발견했어요.",
+ "enforcement.lead.hate": "계정이 올린 콘텐츠에서 정체성을 이유로 사람들을 공격하거나 비하한 것을 발견했어요.",
+ "enforcement.lead.illegal_activity": "계정이 올린 콘텐츠에서 불법 상품이나 활동을 제공하거나 도운 것을 발견했어요.",
+ "enforcement.lead.impersonation": "계정이 다른 사람이나 단체를 사칭했거나, 가짜 신원으로 사람들을 속인 것을 확인했어요.",
+ "enforcement.lead.intimate_images": "계정이 다른 사람의 성적 이미지를 그 사람의 동의 없이 공유한 것을 확인했어요.",
+ "enforcement.lead.legacy": "이 결정에 대해 기록된 추가 정보는 없어요.",
+ "enforcement.lead.malware": "계정에서 악성 코드나 기타 유해한 소프트웨어로 연결되는 링크나 파일을 발견했어요.",
+ "enforcement.lead.payments": "계정에서 결제 약관을 위반하는 결제 문제를 발견했어요.",
+ "enforcement.lead.privacy": "계정이 다른 사람의 개인 정보를 그 사람의 동의 없이 공유한 것을 확인했어요.",
+ "enforcement.lead.raids": "계정이 커뮤니티나 개인을 노린 조직적인 공격에 참여한 것을 확인했어요.",
+ "enforcement.lead.report_abuse": "계정이 허위이거나 악의적인 신고를 반복해서 보낸 것을 확인했어요.",
+ "enforcement.lead.self_harm": "계정이 올린 콘텐츠에서 자해를 조장하거나 자해 방법을 알려 준 것을 발견했어요.",
+ "enforcement.lead.service_abuse": "계정이 서비스를 방해하거나 서비스 제한을 우회하는 방식으로 {product_name} 서비스를 이용한 것을 확인했어요.",
+ "enforcement.lead.spam": "계정이 원치 않는 메시지를 대량으로 보낸 것을 확인했어요.",
+ "enforcement.lead.threats": "계정에서 폭력으로 위협하거나 폭력을 부추긴 메시지를 발견했어요.",
+ "enforcement.lead.unwanted_sexual_content": "계정이 받기로 동의하지 않은 사람에게 성적인 콘텐츠를 보낸 것을 확인했어요.",
+ "enforcement.lead.violent_content": "계정이 잔인한 폭력이나 고어 콘텐츠를 공유한 것을 확인했어요.",
+ "enforcement.lead.violent_extremism": "계정에서 테러 및 폭력적 극단주의에 관한 규칙을 위반하는 콘텐츠나 활동을 발견했어요.",
+ "enforcement.profile_field.avatar": "아바타",
+ "enforcement.profile_field.banner": "배너",
+ "enforcement.profile_field.bio": "소개",
+ "enforcement.profile_field.global_name": "표시 이름",
+ "enforcement.profile_field.pronouns": "대명사",
+ "enforcement.redress.out_of_court": "EU에 있다면 이 결정을 인증된 재판 외 분쟁 해결 기관에 회부할 수도 있어요. 유럽연합 집행위원회가 [해당 기관 목록]({url})을 제공해요.",
+ "enforcement.redress.regulator_and_court": "거주하는 EU 국가의 디지털 서비스 조정관에게 민원을 제기하거나 법원에 소송을 제기할 수도 있어요.",
+ "enforcement.rule.adult_content": "18세 이상 공간 밖의 성인 콘텐츠",
+ "enforcement.rule.age_requirement": "최소 연령",
+ "enforcement.rule.automation": "서비스를 방해하는 자동화",
+ "enforcement.rule.ban_evasion": "제한 우회",
+ "enforcement.rule.child_safety": "아동 안전",
+ "enforcement.rule.copyright": "저작권",
+ "enforcement.rule.fraud": "사기 및 부정 행위",
+ "enforcement.rule.harassment": "괴롭힘",
+ "enforcement.rule.harmful_deception": "유해한 허위 정보",
+ "enforcement.rule.hate": "혐오 및 차별",
+ "enforcement.rule.illegal_activity": "불법 및 위험한 활동",
+ "enforcement.rule.impersonation": "사칭 및 가짜 계정",
+ "enforcement.rule.intimate_images": "동의 없이 공유된 성적 이미지",
+ "enforcement.rule.malware": "악성 링크 및 악성 코드",
+ "enforcement.rule.payments": "결제",
+ "enforcement.rule.privacy": "개인 정보 및 프라이버시",
+ "enforcement.rule.raids": "레이드 및 조직적인 공격",
+ "enforcement.rule.report_abuse": "신고 기능 악용",
+ "enforcement.rule.self_harm": "자해 조장",
+ "enforcement.rule.service_abuse": "서비스 악용",
+ "enforcement.rule.spam": "스팸",
+ "enforcement.rule.threats": "폭력 위협",
+ "enforcement.rule.unwanted_sexual_content": "원치 않는 성적 콘텐츠",
+ "enforcement.rule.violent_content": "잔인한 폭력",
+ "enforcement.rule.violent_extremism": "테러 및 폭력적 극단주의",
+ "enforcement.source.own_review": "자체 검토 중에 이 건을 발견했어요.",
+ "enforcement.source.report": "신고를 받고 이 건을 검토했어요.",
+ "enforcement.summary.closure": "{target, select, bot {{bot_name} 봇을 폐쇄했어요.} other {계정을 폐쇄했어요.}}",
+ "enforcement.summary.community_removal": "{community_name} 커뮤니티를 삭제했어요.",
+ "enforcement.summary.content_removal": "{all, select, yes {보낸 메시지를 모두 삭제했어요.} other {보낸 메시지 {count, plural, other {#개}}를 삭제했어요.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {{ends_at}까지 계정의 기능 하나를 제한했어요.} other {계정의 기능 하나를 제한했어요.}}",
+ "enforcement.summary.profile_reset": "프로필의 일부를 초기화했어요: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {{bot_name} 봇을 {ends_at}까지 정지했어요.} other {계정을 {ends_at}까지 정지했어요.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {{bot_name} 봇을 영구 정지했어요.} other {계정을 영구 정지했어요.}}",
+ "enforcement.summary.warning": "계정에서 발생한 활동에 대해 경고드려요.",
+ "enforcement.welfare.self_harm": "힘든 시간을 보내고 있다면 혼자 감당하지 않아도 돼요. [커뮤니티 가이드라인의 섹션 3]({url})에 상담 전화 목록이 있어요.",
"guild.bulk_create.emoji_limit": "이모지 최대 개수에 도달했습니다({limit}).",
"guild.bulk_create.sticker_limit": "최대 스티커 개수에 도달했습니다({limit}).",
"guild.bulk_create.unknown_error": "알 수 없는 오류가 발생했습니다.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/lt.json b/fluxer_api/src/api/content_i18n/weblate/locales/lt.json
index 2b4719298..94b895048 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/lt.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/lt.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Jei esu ES/EEE vartotojas, aiškiai sutinku, kad {product_name} {premium_tier_name} skaitmeninis turinys būtų suteiktas nedelsiant ir pripažįstu, kad, suteikus prieigą, netenku teisės atsisakyti sutarties. Tai neturi įtakos kitoms privalomoms vartotojų teisėms. Žr. [Paslaugų teikimo sąlygas]({terms_url}).",
"bulk_message_deletion.complete": "Baigėme trinti tavo žinutes. Pašalinome {message_count, plural, =0 {0 žinučių} one {# žinutę} few {# žinutes} many {# žinutės} other {# žinučių}} iš {channel_count, plural, =0 {0 vietų} one {# vietos} few {# vietų} many {# vietos} other {# vietų}}.",
"content.virus_detected": "Failas buvo pažymėtas kaip galimai nesaugus ir pašalintas.",
+ "enforcement.automation.automated": "Tai laikinas apribojimas, automatiškai taikomas tol, kol mūsų komandos narys jį peržiūri.",
+ "enforcement.automation.flagged": "Tai pažymėjo automatiniai įrankiai. Mūsų komandos narys tai peržiūrėjo ir priėmė sprendimą.",
+ "enforcement.automation.none": "Mūsų komandos narys tai peržiūrėjo ir priėmė sprendimą.",
+ "enforcement.effect.account_not_restricted": "Kitais atžvilgiais tavo paskyra neapribota.",
+ "enforcement.effect.closure": "{target, select, bot {Botas niekur negali prisijungti ir veikti. Jį ir jo duomenis ištrinsime {deletion_at}. Tavo asmeninė paskyra neapribota.} other {Niekur negali prisijungti ir naudotis {product_name}. Paskyrą ir jos duomenis ištrinsime {deletion_at}, išskyrus duomenis, kuriuos privalome saugoti pagal įstatymus.}}",
+ "enforcement.effect.community_removed": "Bendruomenė, jos kanalai ir žinutės niekam nebepasiekiami. Tavo asmeninė paskyra neapribota.",
+ "enforcement.effect.limit_direct_messages": "Tavo žinutės dviejų asmenų pokalbiuose ir draugystės užklausos nepristatomos, o tavo profilis paslėptas. Bendruomenėse ir grupių pokalbiuose žmonės tavo žinutes mato suskleistas ir pažymėtas kaip galimas šlamštas.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Negali pirkti {product_name} platformoje, kol mūsų komandos narys to neperžiūrės.} other {Negali pirkti {product_name} platformoje.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Iki tol negali siųsti pranešimų programėlėje. Apie neteisėtą turinį pranešk per saugos kanalą, nurodytą mūsų [įmonės informacijos puslapyje]({url}).} other {Iki tol negali siųsti pranešimų programėlėje.}}",
+ "enforcement.effect.messages_removed": "Taip pat pašalinome {count, plural, one {# žinutę} few {# žinutes} many {# žinutės} other {# žinučių}}.",
+ "enforcement.effect.networks_blocked": "Taip pat iki {date} užblokavome prieigą iš tinklų, kuriais naudojosi ši paskyra.",
+ "enforcement.effect.no_other_accounts": "Tau draudžiama kurti ar naudoti kitas paskyras.",
+ "enforcement.effect.scope": "Šis sprendimas galioja visur, kur galima naudotis {product_name}.",
+ "enforcement.effect.suspension": "{target, select, bot {Iki tol botas niekur negali prisijungti ir veikti. Tavo asmeninė paskyra neapribota.} other {Iki tol niekur negali prisijungti ir naudotis {product_name}. Tavo paskyra, žinutės ir bendruomenės išsaugomos.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Botas niekur negali prisijungti ir veikti. Tavo asmeninė paskyra neapribota.} other {Niekur negali prisijungti ir naudotis {product_name}.}}",
+ "enforcement.effect.warning": "Tavo paskyra neapribota. Jei tai pasikartos, galime ją apriboti arba sustabdyti.",
+ "enforcement.facts.channel": "{count, plural, one {# žinutė} few {# žinutės} many {# žinutės} other {# žinučių}} bendruomenės {community} kanale #{channel}, {range, select, single {{start}} other {nuo {start} iki {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# žinutė, paskelbta} few {# žinutės, paskelbtos} many {# žinutės, paskelbtos} other {# žinučių, paskelbtų}} kanale #{channel}, {range, select, single {{start}} other {nuo {start} iki {end}}}.",
+ "enforcement.facts.copyright": "Teisių turėtojas arba susijusi teisė: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# žinutė} few {# žinutės} many {# žinutės} other {# žinučių}} tiesioginių žinučių pokalbyje, {range, select, single {{start}} other {nuo {start} iki {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# žinutė} few {# žinutės} many {# žinutės} other {# žinučių}} tiesioginių žinučių pokalbyje laikotarpiu {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# žinutė} few {# žinutės} many {# žinutės} other {# žinučių}} grupės pokalbyje, {range, select, single {{start}} other {nuo {start} iki {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# žinutė} few {# žinutės} many {# žinutės} other {# žinučių}} grupės pokalbyje laikotarpiu {month}.",
+ "enforcement.facts.payment": "Mokėjimas tavo paskyroje {date}.",
+ "enforcement.facts.profile": "Tavo profilis: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# žinutė} few {# žinutės} many {# žinutės} other {# žinučių}} pokalbyje, kurio nebėra, {range, select, single {{start}} other {nuo {start} iki {end}}}.",
+ "enforcement.lead.adult_content": "Radome tavo paskyros seksualinio pobūdžio turinio už 18+ pažymėtų erdvių ribų.",
+ "enforcement.lead.age_requirement": "Naudotis {product_name} galima tik sulaukus tavo šalyje nustatyto minimalaus amžiaus. Tai nėra bausmė, ir kai sulauksi reikiamo amžiaus, kviečiame sugrįžti.",
+ "enforcement.lead.automation": "Nustatėme automatizuotą tavo paskyros veiklą, kuri trikdė įprastą paslaugos naudojimą.",
+ "enforcement.lead.ban_evasion": "Nustatėme, kad ši paskyra buvo naudojama kitai paskyrai taikomam apribojimui apeiti.",
+ "enforcement.lead.bot": "Radome tavo boto veiklos, pažeidžiančios šią taisyklę.",
+ "enforcement.lead.child_safety": "Tavo paskyroje radome turinio ar veiklos, pažeidžiančių mūsų vaikų apsaugos taisykles.",
+ "enforcement.lead.community": "Šioje bendruomenėje radome turinio, pažeidžiančio šią taisyklę.",
+ "enforcement.lead.copyright": "Radome tavo paskyros turinio, kuriame be leidimo naudojamas kito asmens kūrinys.",
+ "enforcement.lead.fraud": "Radome tavo paskyros turinio, kuriuo bandyta apgaule išvilioti iš žmonių pinigų, paskyrų ar asmeninės informacijos.",
+ "enforcement.lead.harassment": "Radome tavo paskyros žinučių, kuriose buvo priekabiaujama prie kito asmens arba iš jo tyčiojamasi.",
+ "enforcement.lead.harmful_deception": "Radome tavo paskyros turinio, kuriuo skleisti melagingi teiginiai, galintys sukelti rimtą žalą.",
+ "enforcement.lead.hate": "Radome tavo paskyros turinio, kuriuo žmonės puolami ar žeminami dėl to, kas jie yra.",
+ "enforcement.lead.illegal_activity": "Radome tavo paskyros turinio, kuriame siūlomos neteisėtos prekės ar veikla arba padedama jas gauti ar vykdyti.",
+ "enforcement.lead.impersonation": "Nustatėme, kad tavo paskyra apsimetinėjo kitu asmeniu ar organizacija arba naudojo netikrą tapatybę žmonėms suklaidinti.",
+ "enforcement.lead.intimate_images": "Nustatėme, kad tavo paskyra bendrino intymius kito asmens vaizdus be šio asmens sutikimo.",
+ "enforcement.lead.legacy": "Apie šį sprendimą daugiau informacijos neturime.",
+ "enforcement.lead.malware": "Radome tavo paskyros nuorodų ar failų, vedančių į kenkėjiškas ar kitas žalingas programas.",
+ "enforcement.lead.payments": "Tavo paskyroje radome su mokėjimu susijusią problemą, pažeidžiančią mūsų mokėjimo sąlygas.",
+ "enforcement.lead.privacy": "Nustatėme, kad tavo paskyra bendrino kito asmens asmeninę informaciją be šio asmens sutikimo.",
+ "enforcement.lead.raids": "Nustatėme, kad tavo paskyra dalyvavo koordinuotoje atakoje prieš bendruomenę ar asmenį.",
+ "enforcement.lead.report_abuse": "Nustatėme, kad tavo paskyra ne kartą siuntė melagingus arba nesąžiningus pranešimus.",
+ "enforcement.lead.self_harm": "Radome tavo paskyros turinio, kuriuo skatinama savižala arba pateikiama savižalos instrukcijų.",
+ "enforcement.lead.service_abuse": "Nustatėme, kad tavo paskyra naudojosi {product_name} taip, kad trikdė paslaugos veikimą arba apėjo jos apribojimus.",
+ "enforcement.lead.spam": "Nustatėme, kad tavo paskyra masiškai siuntė nepageidaujamas žinutes.",
+ "enforcement.lead.threats": "Radome tavo paskyros žinučių, kuriose grasinta smurtu arba jis skatintas.",
+ "enforcement.lead.unwanted_sexual_content": "Nustatėme, kad tavo paskyra siuntė seksualinio pobūdžio turinį asmeniui, kuris nebuvo sutikęs jo gauti.",
+ "enforcement.lead.violent_content": "Nustatėme, kad tavo paskyra bendrino žiauraus smurto arba kraupių sužalojimų vaizdus.",
+ "enforcement.lead.violent_extremism": "Tavo paskyroje radome turinio ar veiklos, pažeidžiančių mūsų taisykles dėl terorizmo ir smurtinio ekstremizmo.",
+ "enforcement.profile_field.avatar": "avataras",
+ "enforcement.profile_field.banner": "reklamjuostė",
+ "enforcement.profile_field.bio": "biografija",
+ "enforcement.profile_field.global_name": "rodomasis vardas",
+ "enforcement.profile_field.pronouns": "įvardžiai",
+ "enforcement.redress.out_of_court": "Jei esi ES, šį sprendimą taip pat gali perduoti sertifikuotai neteisminio ginčų sprendimo įstaigai. Europos Komisija skelbia [šių įstaigų sąrašą]({url}).",
+ "enforcement.redress.regulator_and_court": "Taip pat gali pateikti skundą savo ES šalies skaitmeninių paslaugų koordinatoriui arba kreiptis į teismą.",
+ "enforcement.rule.adult_content": "Suaugusiesiems skirtas turinys už 18+ erdvių ribų",
+ "enforcement.rule.age_requirement": "Minimalus amžius",
+ "enforcement.rule.automation": "Trikdanti automatizacija",
+ "enforcement.rule.ban_evasion": "Apribojimų apėjimas",
+ "enforcement.rule.child_safety": "Vaikų sauga",
+ "enforcement.rule.copyright": "Autorių teisės",
+ "enforcement.rule.fraud": "Sukčiavimas ir apgavystės",
+ "enforcement.rule.harassment": "Priekabiavimas",
+ "enforcement.rule.harmful_deception": "Žalingas klaidinimas",
+ "enforcement.rule.hate": "Neapykanta ir diskriminacija",
+ "enforcement.rule.illegal_activity": "Neteisėta ir pavojinga veikla",
+ "enforcement.rule.impersonation": "Apsimetinėjimas ir netikros paskyros",
+ "enforcement.rule.intimate_images": "Be sutikimo bendrinami intymūs vaizdai",
+ "enforcement.rule.malware": "Kenkėjiškos nuorodos ir kenkėjiškos programos",
+ "enforcement.rule.payments": "Mokėjimai",
+ "enforcement.rule.privacy": "Privatumas ir asmeninė informacija",
+ "enforcement.rule.raids": "Reidai ir koordinuotos atakos",
+ "enforcement.rule.report_abuse": "Piktnaudžiavimas pranešimais",
+ "enforcement.rule.self_harm": "Savižalos skatinimas",
+ "enforcement.rule.service_abuse": "Piktnaudžiavimas paslauga",
+ "enforcement.rule.spam": "Šlamštas",
+ "enforcement.rule.threats": "Grasinimai smurtu",
+ "enforcement.rule.unwanted_sexual_content": "Nepageidaujamas seksualinio pobūdžio turinys",
+ "enforcement.rule.violent_content": "Žiauraus smurto vaizdai",
+ "enforcement.rule.violent_extremism": "Terorizmas ir smurtinis ekstremizmas",
+ "enforcement.source.own_review": "Tai nustatėme atlikdami savo patikrą.",
+ "enforcement.source.report": "Tai peržiūrėjome gavę pranešimą.",
+ "enforcement.summary.closure": "{target, select, bot {Uždarėme tavo botą {bot_name}.} other {Uždarėme tavo paskyrą.}}",
+ "enforcement.summary.community_removal": "Pašalinome tavo bendruomenę {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Pašalinome visas tavo išsiųstas žinutes.} other {Pašalinome {count, plural, one {# tavo išsiųstą žinutę} few {# tavo išsiųstas žinutes} many {# tavo išsiųstos žinutės} other {# tavo išsiųstų žinučių}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Iki {ends_at} apribojome vieną tavo paskyros funkciją.} other {Apribojome vieną tavo paskyros funkciją.}}",
+ "enforcement.summary.profile_reset": "Iš naujo nustatėme kai kurias tavo profilio dalis: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Sustabdėme tavo botą {bot_name} iki {ends_at}.} other {Sustabdėme tavo paskyrą iki {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Visam laikui sustabdėme tavo botą {bot_name}.} other {Visam laikui sustabdėme tavo paskyrą.}}",
+ "enforcement.summary.warning": "Įspėjame tave dėl veiklos tavo paskyroje.",
+ "enforcement.welfare.self_harm": "Jei tau dabar sunku, nebūtina su tuo kovoti vienumoje. [Mūsų bendruomenės gairių 3 skyriuje]({url}) rasi pagalbos linijas.",
"guild.bulk_create.emoji_limit": "Pasiektas didžiausias leistinas emodžių skaičius ({limit}).",
"guild.bulk_create.sticker_limit": "Pasiektas didžiausias leistinas lipdukų skaičius ({limit}).",
"guild.bulk_create.unknown_error": "Nežinoma klaida.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/nl.json b/fluxer_api/src/api/content_i18n/weblate/locales/nl.json
index 1b69540fa..5c00b058a 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/nl.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/nl.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Als ik een EU/EER-consument ben, geef ik uitdrukkelijk toestemming dat de digitale inhoud van {product_name} {premium_tier_name} onmiddellijk wordt geleverd en erken ik dat ik mijn wettelijke herroepingsrecht verlies zodra toegang wordt verleend. Dit heeft geen invloed op andere dwingende consumentenrechten. Zie de [Servicevoorwaarden]({terms_url}).",
"bulk_message_deletion.complete": "We zijn klaar met het verwijderen van je berichten. We hebben {message_count, plural, =0 {0 berichten} one {# bericht} other {# berichten}} verwijderd uit {channel_count, plural, =0 {0 plekken} one {# plek} other {# plekken}}.",
"content.virus_detected": "Dit bestand is gemarkeerd als mogelijk onveilig en is verwijderd.",
+ "enforcement.automation.automated": "Dit is een tijdelijke beperking die automatisch is ingesteld terwijl iemand van ons team het beoordeelt.",
+ "enforcement.automation.flagged": "Geautomatiseerde tools hebben dit gesignaleerd. Iemand van ons team heeft het beoordeeld en de beslissing genomen.",
+ "enforcement.automation.none": "Iemand van ons team heeft dit beoordeeld en de beslissing genomen.",
+ "enforcement.effect.account_not_restricted": "Je account is verder niet beperkt.",
+ "enforcement.effect.closure": "{target, select, bot {De bot kan nergens verbinding maken of acties uitvoeren. We verwijderen hem en de bijbehorende gegevens op {deletion_at}. Je eigen account is niet beperkt.} other {Je kunt nergens inloggen of {product_name} gebruiken. We verwijderen het account en de bijbehorende gegevens op {deletion_at}, behalve gegevens die we wettelijk moeten bewaren.}}",
+ "enforcement.effect.community_removed": "De community en de kanalen en berichten ervan zijn voor niemand meer beschikbaar. Je eigen account is niet beperkt.",
+ "enforcement.effect.limit_direct_messages": "Je berichten in een-op-eengesprekken en je vriendschapsverzoeken worden niet bezorgd, en je profiel is verborgen. In community's en groepsgesprekken zien anderen je berichten ingeklapt en gemarkeerd als mogelijke spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Je kunt geen aankopen doen op {product_name} totdat iemand van ons team dit heeft beoordeeld.} other {Je kunt geen aankopen doen op {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Je kunt tot dan geen meldingen versturen in de app. Gebruik de veiligheidsroute op onze [pagina met bedrijfsgegevens]({url}) om illegale inhoud te melden.} other {Je kunt tot dan geen meldingen versturen in de app.}}",
+ "enforcement.effect.messages_removed": "We hebben ook {count, plural, =1 {# bericht} other {# berichten}} verwijderd.",
+ "enforcement.effect.networks_blocked": "We hebben tot {date} ook de toegang geblokkeerd vanaf netwerken die dit account heeft gebruikt.",
+ "enforcement.effect.no_other_accounts": "Je mag geen andere accounts aanmaken of gebruiken.",
+ "enforcement.effect.scope": "Deze beslissing geldt overal waar {product_name} beschikbaar is.",
+ "enforcement.effect.suspension": "{target, select, bot {De bot kan tot die tijd nergens verbinding maken of acties uitvoeren. Je eigen account is niet beperkt.} other {Je kunt tot die tijd nergens inloggen of {product_name} gebruiken. Je account, berichten en community's blijven bewaard.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {De bot kan nergens verbinding maken of acties uitvoeren. Je eigen account is niet beperkt.} other {Je kunt nergens inloggen of {product_name} gebruiken.}}",
+ "enforcement.effect.warning": "Je account is niet beperkt. Als dit opnieuw gebeurt, kunnen we het beperken of schorsen.",
+ "enforcement.facts.channel": "{count, plural, =1 {# bericht} other {# berichten}} in #{channel} van {community}, {range, select, single {op {start}} other {tussen {start} en {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, =1 {# bericht} other {# berichten}} geplaatst in #{channel}, {range, select, single {op {start}} other {tussen {start} en {end}}}.",
+ "enforcement.facts.copyright": "Rechthebbende of betrokken recht: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {# bericht} other {# berichten}} in een gesprek via directe berichten, {range, select, single {op {start}} other {tussen {start} en {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {# bericht} other {# berichten}} in een gesprek via directe berichten in {month}.",
+ "enforcement.facts.group_message": "{count, plural, =1 {# bericht} other {# berichten}} in een groepsgesprek, {range, select, single {op {start}} other {tussen {start} en {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {# bericht} other {# berichten}} in een groepsgesprek in {month}.",
+ "enforcement.facts.payment": "Een betaling op je account op {date}.",
+ "enforcement.facts.profile": "Je profiel: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {# bericht} other {# berichten}} in een gesprek dat niet meer bestaat, {range, select, single {op {start}} other {tussen {start} en {end}}}.",
+ "enforcement.lead.adult_content": "We hebben seksuele inhoud van je account gevonden buiten een ruimte die als 18+ is gemarkeerd.",
+ "enforcement.lead.age_requirement": "Je moet de minimumleeftijd in je land hebben om {product_name} te gebruiken. Dit is geen straf, en je bent weer welkom zodra je oud genoeg bent.",
+ "enforcement.lead.automation": "We hebben geautomatiseerde activiteit van je account gevonden die het normale gebruik van de dienst verstoorde.",
+ "enforcement.lead.ban_evasion": "We hebben vastgesteld dat dit account is gebruikt om een beperking op een ander account te omzeilen.",
+ "enforcement.lead.bot": "We hebben activiteit van je bot gevonden die deze regel overtreedt.",
+ "enforcement.lead.child_safety": "We hebben inhoud of activiteit op je account gevonden die onze regels voor de bescherming van kinderen overtreedt.",
+ "enforcement.lead.community": "We hebben inhoud in deze community gevonden die deze regel overtreedt.",
+ "enforcement.lead.copyright": "We hebben inhoud van je account gevonden die zonder toestemming het werk van iemand anders gebruikt.",
+ "enforcement.lead.fraud": "We hebben inhoud van je account gevonden die probeerde mensen geld, accounts of persoonsgegevens afhandig te maken.",
+ "enforcement.lead.harassment": "We hebben berichten van je account gevonden waarmee iemand werd lastiggevallen of gepest.",
+ "enforcement.lead.harmful_deception": "We hebben inhoud van je account gevonden die valse beweringen verspreidde die waarschijnlijk ernstige schade veroorzaken.",
+ "enforcement.lead.hate": "We hebben inhoud van je account gevonden die mensen aanvalt of kleineert om wie ze zijn.",
+ "enforcement.lead.illegal_activity": "We hebben inhoud van je account gevonden die illegale goederen of activiteiten aanbiedt of daarbij helpt.",
+ "enforcement.lead.impersonation": "We hebben vastgesteld dat je account zich voordeed als een andere persoon of organisatie, of een valse identiteit gebruikte om mensen te misleiden.",
+ "enforcement.lead.intimate_images": "We hebben vastgesteld dat je account intieme beelden van iemand heeft gedeeld zonder diens toestemming.",
+ "enforcement.lead.legacy": "We hebben geen verdere details over deze beslissing vastgelegd.",
+ "enforcement.lead.malware": "We hebben links of bestanden van je account gevonden die naar malware of andere schadelijke software leiden.",
+ "enforcement.lead.payments": "We hebben een betalingsprobleem op je account gevonden dat in strijd is met onze betalingsvoorwaarden.",
+ "enforcement.lead.privacy": "We hebben vastgesteld dat je account persoonsgegevens van iemand heeft gedeeld zonder diens toestemming.",
+ "enforcement.lead.raids": "We hebben vastgesteld dat je account heeft deelgenomen aan een gecoördineerde aanval op een community of een persoon.",
+ "enforcement.lead.report_abuse": "We hebben vastgesteld dat je account herhaaldelijk meldingen heeft gestuurd die onjuist waren of te kwader trouw zijn gedaan.",
+ "enforcement.lead.self_harm": "We hebben inhoud van je account gevonden die aanzet tot zelfbeschadiging of daar instructies voor geeft.",
+ "enforcement.lead.service_abuse": "We hebben vastgesteld dat je account {product_name} zo heeft gebruikt dat de dienst werd verstoord of de limieten ervan werden omzeild.",
+ "enforcement.lead.spam": "We hebben vastgesteld dat je account op grote schaal ongewenste berichten heeft gestuurd.",
+ "enforcement.lead.threats": "We hebben berichten van je account gevonden die met geweld dreigden of aanzetten tot geweld.",
+ "enforcement.lead.unwanted_sexual_content": "We hebben vastgesteld dat je account seksuele inhoud heeft gestuurd naar iemand die daar niet mee had ingestemd.",
+ "enforcement.lead.violent_content": "We hebben vastgesteld dat je account schokkend geweld of bloederige beelden heeft gedeeld.",
+ "enforcement.lead.violent_extremism": "We hebben inhoud of activiteit op je account gevonden die onze regels over terrorisme en gewelddadig extremisme overtreedt.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "bio",
+ "enforcement.profile_field.global_name": "weergavenaam",
+ "enforcement.profile_field.pronouns": "voornaamwoorden",
+ "enforcement.redress.out_of_court": "Als je in de EU bent, kun je deze beslissing ook voorleggen aan een gecertificeerd orgaan voor buitengerechtelijke geschillenbeslechting. De Europese Commissie houdt een [lijst van deze organen]({url}) bij.",
+ "enforcement.redress.regulator_and_court": "Je kunt ook een klacht indienen bij de digitaledienstencoördinator in je EU-land of naar de rechter stappen.",
+ "enforcement.rule.adult_content": "Inhoud voor volwassenen buiten 18+-ruimtes",
+ "enforcement.rule.age_requirement": "Minimumleeftijd",
+ "enforcement.rule.automation": "Verstorende automatisering",
+ "enforcement.rule.ban_evasion": "Beperkingen omzeilen",
+ "enforcement.rule.child_safety": "Veiligheid van kinderen",
+ "enforcement.rule.copyright": "Auteursrecht",
+ "enforcement.rule.fraud": "Oplichting en fraude",
+ "enforcement.rule.harassment": "Intimidatie",
+ "enforcement.rule.harmful_deception": "Schadelijke misleiding",
+ "enforcement.rule.hate": "Haat en discriminatie",
+ "enforcement.rule.illegal_activity": "Illegale en gevaarlijke activiteiten",
+ "enforcement.rule.impersonation": "Imitatie en nepaccounts",
+ "enforcement.rule.intimate_images": "Intieme beelden gedeeld zonder toestemming",
+ "enforcement.rule.malware": "Schadelijke links en malware",
+ "enforcement.rule.payments": "Betalingen",
+ "enforcement.rule.privacy": "Privacy en persoonsgegevens",
+ "enforcement.rule.raids": "Raids en gecoördineerde aanvallen",
+ "enforcement.rule.report_abuse": "Misbruik van meldingen",
+ "enforcement.rule.self_harm": "Aanzetten tot zelfbeschadiging",
+ "enforcement.rule.service_abuse": "Misbruik van de dienst",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Dreigen met geweld",
+ "enforcement.rule.unwanted_sexual_content": "Ongewenste seksuele inhoud",
+ "enforcement.rule.violent_content": "Schokkend geweld",
+ "enforcement.rule.violent_extremism": "Terrorisme en gewelddadig extremisme",
+ "enforcement.source.own_review": "We hebben dit gevonden tijdens ons eigen onderzoek.",
+ "enforcement.source.report": "We hebben dit beoordeeld na een melding.",
+ "enforcement.summary.closure": "{target, select, bot {We hebben je bot {bot_name} gesloten.} other {We hebben je account gesloten.}}",
+ "enforcement.summary.community_removal": "We hebben je community {community_name} verwijderd.",
+ "enforcement.summary.content_removal": "{all, select, yes {We hebben alle berichten verwijderd die je hebt gestuurd.} other {We hebben {count, plural, =1 {# bericht dat je hebt gestuurd} other {# berichten die je hebt gestuurd}} verwijderd.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {We hebben een functie op je account beperkt tot {ends_at}.} other {We hebben een functie op je account beperkt.}}",
+ "enforcement.summary.profile_reset": "We hebben delen van je profiel teruggezet: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {We hebben je bot {bot_name} geschorst tot {ends_at}.} other {We hebben je account geschorst tot {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {We hebben je bot {bot_name} verbannen.} other {We hebben je account verbannen.}}",
+ "enforcement.summary.warning": "We geven je een waarschuwing over activiteit op je account.",
+ "enforcement.welfare.self_harm": "Als je het moeilijk hebt, hoef je er niet alleen voor te staan. In [sectie 3 van onze communityrichtlijnen]({url}) staan hulplijnen.",
"guild.bulk_create.emoji_limit": "Maximaal aantal emoji bereikt ({limit}).",
"guild.bulk_create.sticker_limit": "Maximaal aantal stickers bereikt ({limit}).",
"guild.bulk_create.unknown_error": "Onbekende fout.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/no.json b/fluxer_api/src/api/content_i18n/weblate/locales/no.json
index 08cf1a478..5a8eee55d 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/no.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/no.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Hvis jeg er forbruker i EU/EØS, samtykker jeg uttrykkelig til at det digitale innholdet i {product_name} {premium_tier_name} leveres umiddelbart, og erkjenner at jeg mister min lovbestemte angrerett når jeg får tilgang. Dette påvirker ikke andre lovpålagte forbrukerrettigheter. Se [tjenestevilkårene]({terms_url}).",
"bulk_message_deletion.complete": "Vi er ferdige med å slette meldingene dine. Vi fjernet {message_count, plural, =0 {0 meldinger} one {# melding} other {# meldinger}} fra {channel_count, plural, =0 {0 steder} one {# sted} other {# steder}}.",
"content.virus_detected": "Filen ble flagget som potensielt utrygg og er fjernet.",
+ "enforcement.automation.automated": "Dette er en midlertidig begrensning som ble satt automatisk mens en person i teamet vårt går gjennom saken.",
+ "enforcement.automation.flagged": "Automatiske verktøy flagget dette. En person i teamet vårt gikk gjennom det og tok avgjørelsen.",
+ "enforcement.automation.none": "En person i teamet vårt gikk gjennom dette og tok avgjørelsen.",
+ "enforcement.effect.account_not_restricted": "Kontoen din er ikke begrenset på andre måter.",
+ "enforcement.effect.closure": "{target, select, bot {Boten kan ikke koble til eller utføre handlinger noe sted. Vi sletter den og dataene dens den {deletion_at}. Din egen konto er ikke begrenset.} other {Du kan ikke logge på eller bruke {product_name} noe sted. Vi sletter kontoen og dataene dens den {deletion_at}, bortsett fra data vi er pålagt å oppbevare ved lov.}}",
+ "enforcement.effect.community_removed": "Fellesskapet og kanalene og meldingene i det er ikke lenger tilgjengelige for noen. Din egen konto er ikke begrenset.",
+ "enforcement.effect.limit_direct_messages": "Meldingene dine i samtaler mellom to personer og venneforespørslene dine blir ikke levert, og profilen din er skjult. I fellesskap og gruppesamtaler ser andre meldingene dine minimert og merket som mulig spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Du kan ikke gjøre kjøp på {product_name} før en person i teamet vårt har gått gjennom dette.} other {Du kan ikke gjøre kjøp på {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Du kan ikke sende rapporter i appen før da. For å rapportere ulovlig innhold kan du bruke sikkerhetskontakten på [siden vår med selskapsinformasjon]({url}).} other {Du kan ikke sende rapporter i appen før da.}}",
+ "enforcement.effect.messages_removed": "Vi har også fjernet {count, plural, =1 {# melding} other {# meldinger}}.",
+ "enforcement.effect.networks_blocked": "Vi har også blokkert tilgang fra nettverk denne kontoen har brukt, frem til {date}.",
+ "enforcement.effect.no_other_accounts": "Du har ikke lov til å opprette eller bruke andre kontoer.",
+ "enforcement.effect.scope": "Denne avgjørelsen gjelder overalt der {product_name} er tilgjengelig.",
+ "enforcement.effect.suspension": "{target, select, bot {Boten kan ikke koble til eller utføre handlinger noe sted før da. Din egen konto er ikke begrenset.} other {Du kan ikke logge på eller bruke {product_name} noe sted før da. Kontoen, meldingene og fellesskapene dine blir tatt vare på.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Boten kan ikke koble til eller utføre handlinger noe sted. Din egen konto er ikke begrenset.} other {Du kan ikke logge på eller bruke {product_name} noe sted.}}",
+ "enforcement.effect.warning": "Kontoen din er ikke begrenset. Hvis dette skjer igjen, kan vi begrense eller suspendere den.",
+ "enforcement.facts.channel": "{count, plural, =1 {# melding} other {# meldinger}} i #{channel} i {community}, {range, select, single {den {start}} other {mellom {start} og {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, =1 {# melding} other {# meldinger}} publisert i #{channel}, {range, select, single {den {start}} other {mellom {start} og {end}}}.",
+ "enforcement.facts.copyright": "Rettighetshaver eller berørt rettighet: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {# melding} other {# meldinger}} i en samtale med direktemeldinger, {range, select, single {den {start}} other {mellom {start} og {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {# melding} other {# meldinger}} i en samtale med direktemeldinger i {month}.",
+ "enforcement.facts.group_message": "{count, plural, =1 {# melding} other {# meldinger}} i en gruppesamtale, {range, select, single {den {start}} other {mellom {start} og {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {# melding} other {# meldinger}} i en gruppesamtale i {month}.",
+ "enforcement.facts.payment": "En betaling på kontoen din den {date}.",
+ "enforcement.facts.profile": "Profilen din: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {# melding} other {# meldinger}} i en samtale som ikke finnes lenger, {range, select, single {den {start}} other {mellom {start} og {end}}}.",
+ "enforcement.lead.adult_content": "Vi fant seksuelt innhold fra kontoen din utenfor et område merket 18+.",
+ "enforcement.lead.age_requirement": "Du må ha nådd minstealderen i landet ditt for å bruke {product_name}. Dette er ikke en straff, og du er velkommen tilbake når du er gammel nok.",
+ "enforcement.lead.automation": "Vi fant automatisert aktivitet fra kontoen din som forstyrret normal bruk av tjenesten.",
+ "enforcement.lead.ban_evasion": "Vi fant ut at denne kontoen ble brukt til å omgå en begrensning på en annen konto.",
+ "enforcement.lead.bot": "Vi fant aktivitet fra boten din som bryter denne regelen.",
+ "enforcement.lead.child_safety": "Vi fant innhold eller aktivitet på kontoen din som bryter reglene våre om beskyttelse av barn.",
+ "enforcement.lead.community": "Vi fant innhold i dette fellesskapet som bryter denne regelen.",
+ "enforcement.lead.copyright": "Vi fant innhold fra kontoen din som bruker andres verk uten tillatelse.",
+ "enforcement.lead.fraud": "Vi fant innhold fra kontoen din som forsøkte å lure penger, kontoer eller personopplysninger fra folk.",
+ "enforcement.lead.harassment": "Vi fant meldinger fra kontoen din som trakasserte eller mobbet noen.",
+ "enforcement.lead.harmful_deception": "Vi fant innhold fra kontoen din som spredte falske påstander som sannsynligvis kan føre til alvorlig skade.",
+ "enforcement.lead.hate": "Vi fant innhold fra kontoen din som angriper eller nedverdiger mennesker for den de er.",
+ "enforcement.lead.illegal_activity": "Vi fant innhold fra kontoen din som tilbyr eller hjelper med ulovlige varer eller aktiviteter.",
+ "enforcement.lead.impersonation": "Vi fant ut at kontoen din utga seg for å være en annen person eller organisasjon, eller brukte en falsk identitet for å villede folk.",
+ "enforcement.lead.intimate_images": "Vi fant ut at kontoen din delte intime bilder av noen uten samtykke fra vedkommende.",
+ "enforcement.lead.legacy": "Vi har ikke flere detaljer registrert om denne avgjørelsen.",
+ "enforcement.lead.malware": "Vi fant lenker eller filer fra kontoen din som fører til skadevare eller annen skadelig programvare.",
+ "enforcement.lead.payments": "Vi fant et betalingsproblem på kontoen din som bryter betalingsvilkårene våre.",
+ "enforcement.lead.privacy": "Vi fant ut at kontoen din delte personopplysninger om noen uten samtykke fra vedkommende.",
+ "enforcement.lead.raids": "Vi fant ut at kontoen din deltok i et koordinert angrep på et fellesskap eller en person.",
+ "enforcement.lead.report_abuse": "Vi fant ut at kontoen din gjentatte ganger sendte rapporter som var falske eller sendt i ond tro.",
+ "enforcement.lead.self_harm": "Vi fant innhold fra kontoen din som oppfordrer til eller gir instruksjoner om selvskading.",
+ "enforcement.lead.service_abuse": "Vi fant ut at kontoen din brukte {product_name} på en måte som forstyrrer tjenesten eller omgår begrensningene dens.",
+ "enforcement.lead.spam": "Vi fant ut at kontoen din sendte uønskede meldinger i stort omfang.",
+ "enforcement.lead.threats": "Vi fant meldinger fra kontoen din som truet med eller oppfordret til vold.",
+ "enforcement.lead.unwanted_sexual_content": "Vi fant ut at kontoen din sendte seksuelt innhold til noen som ikke hadde sagt ja til å motta det.",
+ "enforcement.lead.violent_content": "Vi fant ut at kontoen din delte grove voldsskildringer eller blodig innhold.",
+ "enforcement.lead.violent_extremism": "Vi fant innhold eller aktivitet på kontoen din som bryter reglene våre om terrorisme og voldelig ekstremisme.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "bio",
+ "enforcement.profile_field.global_name": "visningsnavn",
+ "enforcement.profile_field.pronouns": "pronomen",
+ "enforcement.redress.out_of_court": "Hvis du er i EU, kan du også bringe denne avgjørelsen inn for et sertifisert organ for utenrettslig tvisteløsning. EU-kommisjonen har en [liste over disse organene]({url}).",
+ "enforcement.redress.regulator_and_court": "Du kan også klage til koordinatoren for digitale tjenester i EU-landet ditt, eller gå til domstolene.",
+ "enforcement.rule.adult_content": "Voksent innhold utenfor 18+-områder",
+ "enforcement.rule.age_requirement": "Minstealder",
+ "enforcement.rule.automation": "Forstyrrende automatisering",
+ "enforcement.rule.ban_evasion": "Omgåelse av begrensninger",
+ "enforcement.rule.child_safety": "Barns sikkerhet",
+ "enforcement.rule.copyright": "Opphavsrett",
+ "enforcement.rule.fraud": "Svindel og bedrageri",
+ "enforcement.rule.harassment": "Trakassering",
+ "enforcement.rule.harmful_deception": "Skadelig villedning",
+ "enforcement.rule.hate": "Hat og diskriminering",
+ "enforcement.rule.illegal_activity": "Ulovlig og farlig aktivitet",
+ "enforcement.rule.impersonation": "Etterligning og falske kontoer",
+ "enforcement.rule.intimate_images": "Intime bilder delt uten samtykke",
+ "enforcement.rule.malware": "Skadelige lenker og skadevare",
+ "enforcement.rule.payments": "Betalinger",
+ "enforcement.rule.privacy": "Personvern og personopplysninger",
+ "enforcement.rule.raids": "Raid og koordinerte angrep",
+ "enforcement.rule.report_abuse": "Misbruk av rapportering",
+ "enforcement.rule.self_harm": "Oppfordring til selvskading",
+ "enforcement.rule.service_abuse": "Misbruk av tjenesten",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Voldstrusler",
+ "enforcement.rule.unwanted_sexual_content": "Uønsket seksuelt innhold",
+ "enforcement.rule.violent_content": "Grove voldsskildringer",
+ "enforcement.rule.violent_extremism": "Terrorisme og voldelig ekstremisme",
+ "enforcement.source.own_review": "Vi fant dette i vår egen gjennomgang.",
+ "enforcement.source.report": "Vi gikk gjennom dette etter en rapport.",
+ "enforcement.summary.closure": "{target, select, bot {Vi har stengt boten din {bot_name}.} other {Vi har stengt kontoen din.}}",
+ "enforcement.summary.community_removal": "Vi har fjernet fellesskapet ditt {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Vi har fjernet alle meldinger du har sendt.} other {Vi har fjernet {count, plural, =1 {# melding} other {# meldinger}} du har sendt.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Vi har begrenset en funksjon på kontoen din frem til {ends_at}.} other {Vi har begrenset en funksjon på kontoen din.}}",
+ "enforcement.summary.profile_reset": "Vi har tilbakestilt deler av profilen din: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Vi har suspendert boten din {bot_name} frem til {ends_at}.} other {Vi har suspendert kontoen din frem til {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Vi har utestengt boten din {bot_name}.} other {Vi har utestengt kontoen din.}}",
+ "enforcement.summary.warning": "Vi gir deg en advarsel om aktivitet på kontoen din.",
+ "enforcement.welfare.self_harm": "Hvis du har det vanskelig, trenger du ikke å stå alene i det. [Avsnitt 3 i retningslinjene våre for fellesskapet]({url}) har en liste over hjelpetelefoner.",
"guild.bulk_create.emoji_limit": "Maksimalt antall emojier nådd ({limit}).",
"guild.bulk_create.sticker_limit": "Maksimalt antall klistremerker nådd ({limit}).",
"guild.bulk_create.unknown_error": "Ukjent feil.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/pl.json b/fluxer_api/src/api/content_i18n/weblate/locales/pl.json
index 1fbf4d7c5..5c76b41a5 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/pl.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/pl.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Jeśli jestem konsumentem z UE/EOG, wyraźnie zgadzam się na natychmiastowe dostarczenie treści cyfrowych {product_name} {premium_tier_name} i przyjmuję do wiadomości, że po uzyskaniu dostępu tracę ustawowe prawo do odstąpienia od umowy. Nie wpływa to na inne prawa konsumenta wynikające z bezwzględnie obowiązujących przepisów. Zobacz [Warunki użytkowania]({terms_url}).",
"bulk_message_deletion.complete": "Zakończyliśmy usuwanie Twoich wiadomości. Usunęliśmy {message_count, plural, =0 {0 wiadomości} one {# wiadomość} few {# wiadomości} many {# wiadomości} other {# wiadomości}} z {channel_count, plural, =0 {0 miejsc} one {# miejsca} few {# miejsc} many {# miejsc} other {# miejsc}}.",
"content.virus_detected": "Ten plik został oznaczony jako potencjalnie niebezpieczny i został usunięty.",
+ "enforcement.automation.automated": "To tymczasowe ograniczenie zostało nałożone automatycznie i obowiązuje, dopóki osoba z naszego zespołu tego nie sprawdzi.",
+ "enforcement.automation.flagged": "Narzędzia automatyczne oznaczyły tę sprawę. Osoba z naszego zespołu ją sprawdziła i podjęła decyzję.",
+ "enforcement.automation.none": "Osoba z naszego zespołu sprawdziła tę sprawę i podjęła decyzję.",
+ "enforcement.effect.account_not_restricted": "Poza tym Twoje konto nie jest ograniczone.",
+ "enforcement.effect.closure": "{target, select, bot {Bot nigdzie nie może się łączyć ani wykonywać działań. Dnia {deletion_at} usuniemy bota i jego dane. Twoje własne konto nie jest ograniczone.} other {Nigdzie nie możesz logować się ani korzystać z {product_name}. Dnia {deletion_at} usuniemy konto i jego dane, z wyjątkiem danych, które musimy przechowywać zgodnie z prawem.}}",
+ "enforcement.effect.community_removed": "Społeczność wraz z jej kanałami i wiadomościami nie jest już dla nikogo dostępna. Twoje własne konto nie jest ograniczone.",
+ "enforcement.effect.limit_direct_messages": "Twoje wiadomości w rozmowach jeden na jeden i zaproszenia do znajomych nie są dostarczane, a Twój profil jest ukryty. W społecznościach i czatach grupowych inne osoby widzą Twoje wiadomości zwinięte i oznaczone jako możliwy spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Nie możesz dokonywać zakupów w {product_name}, dopóki osoba z naszego zespołu tego nie sprawdzi.} other {Nie możesz dokonywać zakupów w {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Do tego czasu nie możesz wysyłać zgłoszeń w aplikacji. Aby zgłosić nielegalne treści, skorzystaj z kontaktu ds. bezpieczeństwa podanego na [stronie z informacjami o naszej firmie]({url}).} other {Do tego czasu nie możesz wysyłać zgłoszeń w aplikacji.}}",
+ "enforcement.effect.messages_removed": "Usunęliśmy też {count, plural, one {# wiadomość} few {# wiadomości} many {# wiadomości} other {# wiadomości}}.",
+ "enforcement.effect.networks_blocked": "Zablokowaliśmy też do {date} dostęp z sieci, z których korzystało to konto.",
+ "enforcement.effect.no_other_accounts": "Nie wolno Ci tworzyć ani używać innych kont.",
+ "enforcement.effect.scope": "Ta decyzja obowiązuje wszędzie, gdzie można korzystać z {product_name}.",
+ "enforcement.effect.suspension": "{target, select, bot {Do tego czasu bot nigdzie nie może się łączyć ani wykonywać działań. Twoje własne konto nie jest ograniczone.} other {Do tego czasu nigdzie nie możesz logować się ani korzystać z {product_name}. Twoje konto, wiadomości i społeczności zostają zachowane.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Bot nigdzie nie może się łączyć ani wykonywać działań. Twoje własne konto nie jest ograniczone.} other {Nigdzie nie możesz logować się ani korzystać z {product_name}.}}",
+ "enforcement.effect.warning": "Twoje konto nie jest ograniczone. Jeśli to się powtórzy, możemy je ograniczyć lub zawiesić.",
+ "enforcement.facts.channel": "{count, plural, one {# wiadomość} few {# wiadomości} many {# wiadomości} other {# wiadomości}} na kanale #{channel} w społeczności {community}, {range, select, single {{start}} other {w okresie od {start} do {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# wiadomość opublikowana} few {# wiadomości opublikowane} many {# wiadomości opublikowanych} other {# wiadomości opublikowanej}} na kanale #{channel}, {range, select, single {{start}} other {w okresie od {start} do {end}}}.",
+ "enforcement.facts.copyright": "Właściciel praw lub prawo, którego dotyczy sprawa: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# wiadomość} few {# wiadomości} many {# wiadomości} other {# wiadomości}} w rozmowie prywatnej, {range, select, single {{start}} other {w okresie od {start} do {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# wiadomość} few {# wiadomości} many {# wiadomości} other {# wiadomości}} w rozmowie prywatnej ({month}).",
+ "enforcement.facts.group_message": "{count, plural, one {# wiadomość} few {# wiadomości} many {# wiadomości} other {# wiadomości}} na czacie grupowym, {range, select, single {{start}} other {w okresie od {start} do {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# wiadomość} few {# wiadomości} many {# wiadomości} other {# wiadomości}} na czacie grupowym ({month}).",
+ "enforcement.facts.payment": "Płatność na Twoim koncie z dnia {date}.",
+ "enforcement.facts.profile": "Twój profil: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# wiadomość} few {# wiadomości} many {# wiadomości} other {# wiadomości}} w rozmowie, która już nie istnieje, {range, select, single {{start}} other {w okresie od {start} do {end}}}.",
+ "enforcement.lead.adult_content": "Stwierdziliśmy, że z Twojego konta publikowano treści o charakterze seksualnym poza przestrzeniami oznaczonymi jako 18+.",
+ "enforcement.lead.age_requirement": "Aby korzystać z {product_name}, musisz mieć co najmniej minimalny wiek obowiązujący w Twoim kraju. To nie jest kara i możesz wrócić, gdy osiągniesz wymagany wiek.",
+ "enforcement.lead.automation": "Stwierdziliśmy na Twoim koncie zautomatyzowaną aktywność, która zakłócała normalne korzystanie z usługi.",
+ "enforcement.lead.ban_evasion": "Stwierdziliśmy, że to konto służyło do obejścia ograniczenia nałożonego na inne konto.",
+ "enforcement.lead.bot": "Stwierdziliśmy aktywność Twojego bota naruszającą tę zasadę.",
+ "enforcement.lead.child_safety": "Stwierdziliśmy na Twoim koncie treści lub działania naruszające nasze zasady ochrony dzieci.",
+ "enforcement.lead.community": "Stwierdziliśmy w tej społeczności treści naruszające tę zasadę.",
+ "enforcement.lead.copyright": "Stwierdziliśmy, że z Twojego konta publikowano treści wykorzystujące cudze utwory bez zgody.",
+ "enforcement.lead.fraud": "Stwierdziliśmy, że z Twojego konta publikowano treści, które miały wyłudzić od ludzi pieniądze, konta lub dane osobowe.",
+ "enforcement.lead.harassment": "Stwierdziliśmy, że z Twojego konta wysyłano wiadomości nękające lub dręczące innych.",
+ "enforcement.lead.harmful_deception": "Stwierdziliśmy, że z Twojego konta rozpowszechniano fałszywe twierdzenia, które mogą wyrządzić poważną szkodę.",
+ "enforcement.lead.hate": "Stwierdziliśmy, że z Twojego konta publikowano treści atakujące lub poniżające ludzi z powodu tego, kim są.",
+ "enforcement.lead.illegal_activity": "Stwierdziliśmy, że z Twojego konta publikowano treści oferujące nielegalne towary lub usługi albo pomagające w nielegalnej działalności.",
+ "enforcement.lead.impersonation": "Stwierdziliśmy, że Twoje konto podszywało się pod inną osobę lub organizację albo używało fałszywej tożsamości, aby wprowadzać ludzi w błąd.",
+ "enforcement.lead.intimate_images": "Stwierdziliśmy, że z Twojego konta udostępniono intymne zdjęcia innej osoby bez jej zgody.",
+ "enforcement.lead.legacy": "Nie mamy w dokumentacji więcej szczegółów na temat tej decyzji.",
+ "enforcement.lead.malware": "Stwierdziliśmy, że z Twojego konta udostępniano linki lub pliki prowadzące do złośliwego lub innego szkodliwego oprogramowania.",
+ "enforcement.lead.payments": "Stwierdziliśmy na Twoim koncie problem z płatnością, który narusza nasze warunki płatności.",
+ "enforcement.lead.privacy": "Stwierdziliśmy, że z Twojego konta udostępniono czyjeś dane osobowe bez zgody tej osoby.",
+ "enforcement.lead.raids": "Stwierdziliśmy, że Twoje konto brało udział w skoordynowanym ataku na społeczność lub osobę.",
+ "enforcement.lead.report_abuse": "Stwierdziliśmy, że z Twojego konta wielokrotnie wysyłano fałszywe zgłoszenia lub zgłoszenia w złej wierze.",
+ "enforcement.lead.self_harm": "Stwierdziliśmy, że z Twojego konta publikowano treści zachęcające do samookaleczenia lub zawierające instrukcje, jak to zrobić.",
+ "enforcement.lead.service_abuse": "Stwierdziliśmy, że Twoje konto korzystało z {product_name} w sposób, który zakłóca działanie usługi lub obchodzi jej limity.",
+ "enforcement.lead.spam": "Stwierdziliśmy, że z Twojego konta masowo wysyłano niechciane wiadomości.",
+ "enforcement.lead.threats": "Stwierdziliśmy, że z Twojego konta wysyłano wiadomości zawierające groźby przemocy lub nawołujące do niej.",
+ "enforcement.lead.unwanted_sexual_content": "Stwierdziliśmy, że z Twojego konta wysłano treści o charakterze seksualnym osobie, która nie zgodziła się na ich otrzymywanie.",
+ "enforcement.lead.violent_content": "Stwierdziliśmy, że z Twojego konta udostępniano drastyczne treści przedstawiające przemoc lub krwawe sceny.",
+ "enforcement.lead.violent_extremism": "Stwierdziliśmy na Twoim koncie treści lub działania naruszające nasze zasady dotyczące terroryzmu i ekstremizmu z użyciem przemocy.",
+ "enforcement.profile_field.avatar": "awatar",
+ "enforcement.profile_field.banner": "baner",
+ "enforcement.profile_field.bio": "biogram",
+ "enforcement.profile_field.global_name": "nazwa wyświetlana",
+ "enforcement.profile_field.pronouns": "zaimki",
+ "enforcement.redress.out_of_court": "Jeśli jesteś w UE, możesz też skierować sprawę dotyczącą tej decyzji do certyfikowanego organu pozasądowego rozstrzygania sporów. Komisja Europejska prowadzi [listę takich organów]({url}).",
+ "enforcement.redress.regulator_and_court": "Możesz też złożyć skargę do koordynatora ds. usług cyfrowych w swoim kraju UE lub wystąpić do sądu.",
+ "enforcement.rule.adult_content": "Treści dla dorosłych poza przestrzeniami 18+",
+ "enforcement.rule.age_requirement": "Minimalny wiek",
+ "enforcement.rule.automation": "Zakłócająca automatyzacja",
+ "enforcement.rule.ban_evasion": "Obchodzenie ograniczeń",
+ "enforcement.rule.child_safety": "Bezpieczeństwo dzieci",
+ "enforcement.rule.copyright": "Prawa autorskie",
+ "enforcement.rule.fraud": "Oszustwa i wyłudzenia",
+ "enforcement.rule.harassment": "Nękanie",
+ "enforcement.rule.harmful_deception": "Szkodliwa dezinformacja",
+ "enforcement.rule.hate": "Nienawiść i dyskryminacja",
+ "enforcement.rule.illegal_activity": "Nielegalna i niebezpieczna działalność",
+ "enforcement.rule.impersonation": "Podszywanie się i fałszywe konta",
+ "enforcement.rule.intimate_images": "Udostępnianie intymnych zdjęć bez zgody",
+ "enforcement.rule.malware": "Złośliwe linki i oprogramowanie",
+ "enforcement.rule.payments": "Płatności",
+ "enforcement.rule.privacy": "Prywatność i dane osobowe",
+ "enforcement.rule.raids": "Najazdy i skoordynowane ataki",
+ "enforcement.rule.report_abuse": "Nadużywanie zgłoszeń",
+ "enforcement.rule.self_harm": "Promowanie samookaleczeń",
+ "enforcement.rule.service_abuse": "Nadużywanie usługi",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Groźby przemocy",
+ "enforcement.rule.unwanted_sexual_content": "Niechciane treści o charakterze seksualnym",
+ "enforcement.rule.violent_content": "Drastyczna przemoc",
+ "enforcement.rule.violent_extremism": "Terroryzm i ekstremizm z użyciem przemocy",
+ "enforcement.source.own_review": "Wykryliśmy to w ramach własnej weryfikacji.",
+ "enforcement.source.report": "Przeanalizowaliśmy to po zgłoszeniu.",
+ "enforcement.summary.closure": "{target, select, bot {Zamknęliśmy Twojego bota {bot_name}.} other {Zamknęliśmy Twoje konto.}}",
+ "enforcement.summary.community_removal": "Usunęliśmy Twoją społeczność {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Usunęliśmy wszystkie wysłane przez Ciebie wiadomości.} other {Usunęliśmy {count, plural, one {# wysłaną przez Ciebie wiadomość} few {# wysłane przez Ciebie wiadomości} many {# wysłanych przez Ciebie wiadomości} other {# wysłanej przez Ciebie wiadomości}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Ograniczyliśmy jedną z funkcji Twojego konta do {ends_at}.} other {Ograniczyliśmy jedną z funkcji Twojego konta.}}",
+ "enforcement.summary.profile_reset": "Zresetowaliśmy część Twojego profilu: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Zawiesiliśmy Twojego bota {bot_name} do {ends_at}.} other {Zawiesiliśmy Twoje konto do {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Zablokowaliśmy Twojego bota {bot_name}.} other {Zablokowaliśmy Twoje konto.}}",
+ "enforcement.summary.warning": "Udzielamy Ci ostrzeżenia w związku z aktywnością na Twoim koncie.",
+ "enforcement.welfare.self_harm": "Jeśli przechodzisz trudny okres, nie musisz mierzyć się z tym w pojedynkę. Listę linii wsparcia znajdziesz w [sekcji 3 naszych zasad społeczności]({url}).",
"guild.bulk_create.emoji_limit": "Osiągnięto maksymalną liczbę emoji ({limit}).",
"guild.bulk_create.sticker_limit": "Osiągnięto maksymalną liczbę naklejek ({limit}).",
"guild.bulk_create.unknown_error": "Wystąpił nieznany błąd.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/pt-BR.json b/fluxer_api/src/api/content_i18n/weblate/locales/pt-BR.json
index a2e00ab2d..474d62121 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/pt-BR.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/pt-BR.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Se eu for um consumidor da UE/EEE, consinto expressamente que o conteúdo digital {product_name} {premium_tier_name} seja fornecido imediatamente e reconheço que perco meu direito legal de arrependimento assim que o acesso for concedido. Isso não afeta outros direitos obrigatórios do consumidor. Consulte os [Termos de Serviço]({terms_url}).",
"bulk_message_deletion.complete": "Terminamos de excluir suas mensagens. Removemos {message_count, plural, =0 {0 mensagens} one {# mensagem} other {# mensagens}} de {channel_count, plural, =0 {0 lugares} one {# lugar} other {# lugares}}.",
"content.virus_detected": "Esse arquivo foi sinalizado como potencialmente inseguro e foi removido.",
+ "enforcement.automation.automated": "Este é um limite temporário aplicado automaticamente enquanto uma pessoa da nossa equipe analisa o caso.",
+ "enforcement.automation.flagged": "Ferramentas automatizadas sinalizaram este caso. Uma pessoa da nossa equipe o analisou e tomou a decisão.",
+ "enforcement.automation.none": "Uma pessoa da nossa equipe analisou este caso e tomou a decisão.",
+ "enforcement.effect.account_not_restricted": "Sua conta não tem nenhuma outra restrição.",
+ "enforcement.effect.closure": "{target, select, bot {O bot não pode se conectar nem agir em lugar nenhum. Excluiremos o bot e os dados dele em {deletion_at}. Sua própria conta não tem restrições.} other {Você não pode entrar nem usar o {product_name} em lugar nenhum. Excluiremos a conta e os dados dela em {deletion_at}, exceto os dados que a lei nos obriga a manter.}}",
+ "enforcement.effect.community_removed": "A comunidade, os canais e as mensagens dela não estão mais disponíveis para ninguém. Sua própria conta não tem restrições.",
+ "enforcement.effect.limit_direct_messages": "Suas mensagens em conversas individuais e seus pedidos de amizade não são entregues, e seu perfil fica oculto. Nas comunidades e nas conversas em grupo, as outras pessoas veem suas mensagens recolhidas e marcadas como possível spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Você não pode fazer compras no {product_name} até que uma pessoa da nossa equipe analise o caso.} other {Você não pode fazer compras no {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Até lá, você não pode enviar denúncias no app. Para denunciar conteúdo ilegal, use o canal de segurança indicado na nossa [página de informações da empresa]({url}).} other {Até lá, você não pode enviar denúncias no app.}}",
+ "enforcement.effect.messages_removed": "Também removemos {count, plural, one {# mensagem} other {# mensagens}}.",
+ "enforcement.effect.networks_blocked": "Também bloqueamos até {date} o acesso a partir das redes que esta conta usava.",
+ "enforcement.effect.no_other_accounts": "Você não tem permissão para criar nem usar outras contas.",
+ "enforcement.effect.scope": "Esta decisão se aplica em todos os lugares onde o {product_name} está disponível.",
+ "enforcement.effect.suspension": "{target, select, bot {Até lá, o bot não pode se conectar nem agir em lugar nenhum. Sua própria conta não tem restrições.} other {Até lá, você não pode entrar nem usar o {product_name} em lugar nenhum. Sua conta, suas mensagens e suas comunidades são mantidas.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {O bot não pode se conectar nem agir em lugar nenhum. Sua própria conta não tem restrições.} other {Você não pode entrar nem usar o {product_name} em lugar nenhum.}}",
+ "enforcement.effect.warning": "Sua conta não tem restrições. Se isso acontecer de novo, poderemos limitá-la ou suspendê-la.",
+ "enforcement.facts.channel": "{count, plural, one {# mensagem} other {# mensagens}} em #{channel} de {community}, {range, select, single {em {start}} other {entre {start} e {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# mensagem publicada} other {# mensagens publicadas}} em #{channel}, {range, select, single {em {start}} other {entre {start} e {end}}}.",
+ "enforcement.facts.copyright": "Titular dos direitos ou direito em questão: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# mensagem} other {# mensagens}} em uma conversa por mensagem direta, {range, select, single {em {start}} other {entre {start} e {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# mensagem} other {# mensagens}} em uma conversa por mensagem direta em {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# mensagem} other {# mensagens}} em uma conversa em grupo, {range, select, single {em {start}} other {entre {start} e {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# mensagem} other {# mensagens}} em uma conversa em grupo em {month}.",
+ "enforcement.facts.payment": "Um pagamento na sua conta em {date}.",
+ "enforcement.facts.profile": "Seu perfil: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# mensagem} other {# mensagens}} em uma conversa que não existe mais, {range, select, single {em {start}} other {entre {start} e {end}}}.",
+ "enforcement.lead.adult_content": "Encontramos conteúdo sexual da sua conta fora de um espaço marcado como 18+.",
+ "enforcement.lead.age_requirement": "Você precisa ter a idade mínima exigida no seu país para usar o {product_name}. Isto não é uma punição, e você poderá voltar quando tiver idade suficiente.",
+ "enforcement.lead.automation": "Encontramos atividade automatizada da sua conta que atrapalhou o uso normal do serviço.",
+ "enforcement.lead.ban_evasion": "Constatamos que esta conta foi usada para contornar uma restrição em outra conta.",
+ "enforcement.lead.bot": "Encontramos atividade do seu bot que viola esta regra.",
+ "enforcement.lead.child_safety": "Encontramos conteúdo ou atividade na sua conta que viola nossas regras de proteção de crianças.",
+ "enforcement.lead.community": "Encontramos conteúdo nesta comunidade que viola esta regra.",
+ "enforcement.lead.copyright": "Encontramos conteúdo da sua conta que usa obras de outras pessoas sem permissão.",
+ "enforcement.lead.fraud": "Encontramos conteúdo da sua conta que tentava enganar pessoas para obter dinheiro, contas ou informações pessoais.",
+ "enforcement.lead.harassment": "Encontramos mensagens da sua conta que assediavam ou intimidavam alguém.",
+ "enforcement.lead.harmful_deception": "Encontramos conteúdo da sua conta que espalhava alegações falsas com probabilidade de causar danos graves.",
+ "enforcement.lead.hate": "Encontramos conteúdo da sua conta que ataca ou menospreza pessoas por quem elas são.",
+ "enforcement.lead.illegal_activity": "Encontramos conteúdo da sua conta que oferece ou facilita produtos ou atividades ilegais.",
+ "enforcement.lead.impersonation": "Constatamos que sua conta se passou por outra pessoa ou organização, ou usou uma identidade falsa para enganar as pessoas.",
+ "enforcement.lead.intimate_images": "Constatamos que sua conta compartilhou imagens íntimas de alguém sem o consentimento da pessoa.",
+ "enforcement.lead.legacy": "Não temos mais detalhes registrados sobre esta decisão.",
+ "enforcement.lead.malware": "Encontramos links ou arquivos da sua conta que levam a malware ou a outros softwares nocivos.",
+ "enforcement.lead.payments": "Encontramos um problema de pagamento na sua conta que viola nossos termos de pagamento.",
+ "enforcement.lead.privacy": "Constatamos que sua conta compartilhou informações pessoais de alguém sem o consentimento da pessoa.",
+ "enforcement.lead.raids": "Constatamos que sua conta participou de um ataque coordenado contra uma comunidade ou uma pessoa.",
+ "enforcement.lead.report_abuse": "Constatamos que sua conta enviou repetidamente denúncias falsas ou de má-fé.",
+ "enforcement.lead.self_harm": "Encontramos conteúdo da sua conta que incentiva a automutilação ou dá instruções para praticá-la.",
+ "enforcement.lead.service_abuse": "Constatamos que sua conta usou o {product_name} de um jeito que interfere no serviço ou contorna os limites dele.",
+ "enforcement.lead.spam": "Constatamos que sua conta enviou mensagens indesejadas em massa.",
+ "enforcement.lead.threats": "Encontramos mensagens da sua conta que ameaçavam ou incentivavam violência.",
+ "enforcement.lead.unwanted_sexual_content": "Constatamos que sua conta enviou conteúdo sexual a alguém que não tinha concordado em recebê-lo.",
+ "enforcement.lead.violent_content": "Constatamos que sua conta compartilhou violência explícita ou conteúdo gore.",
+ "enforcement.lead.violent_extremism": "Encontramos conteúdo ou atividade na sua conta que viola nossas regras sobre terrorismo e extremismo violento.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "biografia",
+ "enforcement.profile_field.global_name": "nome de exibição",
+ "enforcement.profile_field.pronouns": "pronomes",
+ "enforcement.redress.out_of_court": "Se você estiver na UE, também pode submeter esta decisão a um organismo de resolução extrajudicial de litígios certificado. A Comissão Europeia publica uma [lista desses organismos]({url}).",
+ "enforcement.redress.regulator_and_court": "Você também pode apresentar uma reclamação ao coordenador dos serviços digitais do seu país da UE ou recorrer à Justiça.",
+ "enforcement.rule.adult_content": "Conteúdo adulto fora de espaços 18+",
+ "enforcement.rule.age_requirement": "Idade mínima",
+ "enforcement.rule.automation": "Automação prejudicial",
+ "enforcement.rule.ban_evasion": "Evasão de restrições",
+ "enforcement.rule.child_safety": "Segurança infantil",
+ "enforcement.rule.copyright": "Direitos autorais",
+ "enforcement.rule.fraud": "Golpes e fraudes",
+ "enforcement.rule.harassment": "Assédio",
+ "enforcement.rule.harmful_deception": "Engano prejudicial",
+ "enforcement.rule.hate": "Ódio e discriminação",
+ "enforcement.rule.illegal_activity": "Atividades ilegais e perigosas",
+ "enforcement.rule.impersonation": "Falsa identidade e contas falsas",
+ "enforcement.rule.intimate_images": "Imagens íntimas compartilhadas sem consentimento",
+ "enforcement.rule.malware": "Links maliciosos e malware",
+ "enforcement.rule.payments": "Pagamentos",
+ "enforcement.rule.privacy": "Privacidade e informações pessoais",
+ "enforcement.rule.raids": "Ataques em massa e coordenados",
+ "enforcement.rule.report_abuse": "Uso indevido de denúncias",
+ "enforcement.rule.self_harm": "Incentivo à automutilação",
+ "enforcement.rule.service_abuse": "Abuso do serviço",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Ameaças de violência",
+ "enforcement.rule.unwanted_sexual_content": "Conteúdo sexual indesejado",
+ "enforcement.rule.violent_content": "Violência explícita",
+ "enforcement.rule.violent_extremism": "Terrorismo e extremismo violento",
+ "enforcement.source.own_review": "Encontramos isto em uma revisão própria.",
+ "enforcement.source.report": "Analisamos isto após uma denúncia.",
+ "enforcement.summary.closure": "{target, select, bot {Encerramos seu bot {bot_name}.} other {Encerramos sua conta.}}",
+ "enforcement.summary.community_removal": "Removemos sua comunidade {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Removemos todas as mensagens que você enviou.} other {Removemos {count, plural, one {# mensagem que você enviou} other {# mensagens que você enviou}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Limitamos um recurso da sua conta até {ends_at}.} other {Limitamos um recurso da sua conta.}}",
+ "enforcement.summary.profile_reset": "Redefinimos partes do seu perfil: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Suspendemos seu bot {bot_name} até {ends_at}.} other {Suspendemos sua conta até {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Banimos seu bot {bot_name}.} other {Banimos sua conta.}}",
+ "enforcement.summary.warning": "Este é um aviso sobre atividades na sua conta.",
+ "enforcement.welfare.self_harm": "Se você está passando por um momento difícil, não precisa enfrentar isso sem apoio. A [seção 3 das nossas diretrizes da comunidade]({url}) lista linhas de apoio.",
"guild.bulk_create.emoji_limit": "Número máximo de emojis atingido ({limit}).",
"guild.bulk_create.sticker_limit": "Número máximo de figurinhas atingido ({limit}).",
"guild.bulk_create.unknown_error": "Erro desconhecido.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/ro.json b/fluxer_api/src/api/content_i18n/weblate/locales/ro.json
index e34575a78..c6cd0387c 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/ro.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/ro.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Dacă sunt un consumator din UE/SEE, îmi exprim consimțământul expres ca conținutul digital {product_name} {premium_tier_name} să fie furnizat imediat și recunosc că pierd dreptul legal de retragere odată ce accesul este acordat. Acest lucru nu afectează alte drepturi obligatorii ale consumatorilor. Vezi [Termenii și condițiile]({terms_url}).",
"bulk_message_deletion.complete": "Am terminat de șters mesajele tale. Am eliminat {message_count, plural, =0 {0 mesaje} one {# mesaj} few {# mesaje} other {# de mesaje}} din {channel_count, plural, =0 {0 locuri} one {# loc} few {# locuri} other {# de locuri}}.",
"content.virus_detected": "Acest fișier a fost marcat ca potențial nesigur și a fost eliminat.",
+ "enforcement.automation.automated": "Aceasta este o limită temporară aplicată automat cât timp o persoană din echipa noastră analizează cazul.",
+ "enforcement.automation.flagged": "Instrumentele noastre automate au semnalat acest caz. O persoană din echipa noastră l-a analizat și a luat decizia.",
+ "enforcement.automation.none": "O persoană din echipa noastră a analizat acest caz și a luat decizia.",
+ "enforcement.effect.account_not_restricted": "Contul tău nu are alte restricții.",
+ "enforcement.effect.closure": "{target, select, bot {Botul nu se poate conecta și nu poate acționa nicăieri. Îl vom șterge împreună cu datele sale pe {deletion_at}. Contul tău personal nu este restricționat.} other {Nu te poți conecta și nu poți folosi {product_name} nicăieri. Vom șterge contul și datele sale pe {deletion_at}, cu excepția datelor pe care legea ne obligă să le păstrăm.}}",
+ "enforcement.effect.community_removed": "Comunitatea, canalele și mesajele ei nu mai sunt disponibile pentru nimeni. Contul tău personal nu este restricționat.",
+ "enforcement.effect.limit_direct_messages": "Mesajele tale din conversațiile unu la unu și cererile tale de prietenie nu sunt livrate, iar profilul tău este ascuns. În comunități și în conversațiile de grup, ceilalți îți văd mesajele restrânse și marcate ca posibil spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Nu poți face achiziții pe {product_name} până când o persoană din echipa noastră analizează cazul.} other {Nu poți face achiziții pe {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Până atunci, nu poți trimite rapoarte în aplicație. Pentru a raporta conținut ilegal, folosește canalul de siguranță indicat pe [pagina cu informații despre companie]({url}).} other {Până atunci, nu poți trimite rapoarte în aplicație.}}",
+ "enforcement.effect.messages_removed": "Am eliminat și {count, plural, one {# mesaj} few {# mesaje} other {# de mesaje}}.",
+ "enforcement.effect.networks_blocked": "Am blocat și accesul din rețelele folosite de acest cont până la {date}.",
+ "enforcement.effect.no_other_accounts": "Nu ai voie să creezi sau să folosești alte conturi.",
+ "enforcement.effect.scope": "Această decizie se aplică peste tot unde se poate folosi {product_name}.",
+ "enforcement.effect.suspension": "{target, select, bot {Până atunci, botul nu se poate conecta și nu poate acționa nicăieri. Contul tău personal nu este restricționat.} other {Până atunci, nu te poți conecta și nu poți folosi {product_name} nicăieri. Contul, mesajele și comunitățile tale sunt păstrate.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Botul nu se poate conecta și nu poate acționa nicăieri. Contul tău personal nu este restricționat.} other {Nu te poți conecta și nu poți folosi {product_name} nicăieri.}}",
+ "enforcement.effect.warning": "Contul tău nu este restricționat. Dacă se întâmplă din nou, îl putem limita sau suspenda.",
+ "enforcement.facts.channel": "{count, plural, one {# mesaj} few {# mesaje} other {# de mesaje}} în #{channel} din {community}, {range, select, single {pe {start}} other {între {start} și {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# mesaj publicat} few {# mesaje publicate} other {# de mesaje publicate}} în #{channel}, {range, select, single {pe {start}} other {între {start} și {end}}}.",
+ "enforcement.facts.copyright": "Titularul drepturilor sau dreptul în cauză: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# mesaj} few {# mesaje} other {# de mesaje}} într-o conversație prin mesaje directe, {range, select, single {pe {start}} other {între {start} și {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# mesaj} few {# mesaje} other {# de mesaje}} într-o conversație prin mesaje directe în {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# mesaj} few {# mesaje} other {# de mesaje}} într-o conversație de grup, {range, select, single {pe {start}} other {între {start} și {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# mesaj} few {# mesaje} other {# de mesaje}} într-o conversație de grup în {month}.",
+ "enforcement.facts.payment": "O plată în contul tău pe {date}.",
+ "enforcement.facts.profile": "Profilul tău: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# mesaj} few {# mesaje} other {# de mesaje}} într-o conversație care nu mai există, {range, select, single {pe {start}} other {între {start} și {end}}}.",
+ "enforcement.lead.adult_content": "Am găsit conținut sexual publicat din contul tău în afara unui spațiu marcat 18+.",
+ "enforcement.lead.age_requirement": "Trebuie să ai vârsta minimă din țara ta ca să folosești {product_name}. Nu este o pedeapsă, și poți reveni când ai vârsta necesară.",
+ "enforcement.lead.automation": "Am găsit activitate automatizată din contul tău care a perturbat utilizarea normală a serviciului.",
+ "enforcement.lead.ban_evasion": "Am constatat că acest cont a fost folosit pentru a ocoli o restricție aplicată altui cont.",
+ "enforcement.lead.bot": "Am găsit activitate din partea botului tău care încalcă această regulă.",
+ "enforcement.lead.child_safety": "Am găsit pe contul tău conținut sau activitate care încalcă regulile noastre privind protecția copiilor.",
+ "enforcement.lead.community": "Am găsit în această comunitate conținut care încalcă această regulă.",
+ "enforcement.lead.copyright": "Am găsit conținut publicat din contul tău care folosește opera altcuiva fără permisiune.",
+ "enforcement.lead.fraud": "Am găsit conținut publicat din contul tău care încerca să păcălească oamenii ca să obțină bani, conturi sau informații personale.",
+ "enforcement.lead.harassment": "Am găsit mesaje trimise din contul tău care hărțuiau sau intimidau pe cineva.",
+ "enforcement.lead.harmful_deception": "Am găsit conținut publicat din contul tău care răspândea afirmații false ce pot provoca daune grave.",
+ "enforcement.lead.hate": "Am găsit conținut publicat din contul tău care atacă sau înjosește oameni pentru ceea ce sunt.",
+ "enforcement.lead.illegal_activity": "Am găsit conținut publicat din contul tău care oferă sau facilitează bunuri ori activități ilegale.",
+ "enforcement.lead.impersonation": "Am constatat că contul tău s-a dat drept o altă persoană sau organizație ori a folosit o identitate falsă pentru a induce oamenii în eroare.",
+ "enforcement.lead.intimate_images": "Am constatat că contul tău a distribuit imagini intime ale cuiva fără consimțământul acelei persoane.",
+ "enforcement.lead.legacy": "Nu avem alte detalii înregistrate despre această decizie.",
+ "enforcement.lead.malware": "Am găsit linkuri sau fișiere distribuite din contul tău care duc la malware ori la alte programe dăunătoare.",
+ "enforcement.lead.payments": "Am găsit pe contul tău o problemă de plată care încalcă condițiile noastre de plată.",
+ "enforcement.lead.privacy": "Am constatat că contul tău a distribuit informațiile personale ale cuiva fără consimțământul acelei persoane.",
+ "enforcement.lead.raids": "Am constatat că contul tău a participat la un atac coordonat asupra unei comunități sau a unei persoane.",
+ "enforcement.lead.report_abuse": "Am constatat că contul tău a trimis în mod repetat rapoarte false sau făcute cu rea-credință.",
+ "enforcement.lead.self_harm": "Am găsit conținut publicat din contul tău care încurajează autovătămarea sau oferă instrucțiuni pentru aceasta.",
+ "enforcement.lead.service_abuse": "Am constatat că contul tău a folosit {product_name} într-un mod care afectează serviciul sau îi ocolește limitele.",
+ "enforcement.lead.spam": "Am constatat că contul tău a trimis mesaje nedorite în masă.",
+ "enforcement.lead.threats": "Am găsit mesaje trimise din contul tău care amenințau cu violență sau încurajau violența.",
+ "enforcement.lead.unwanted_sexual_content": "Am constatat că contul tău a trimis conținut sexual unei persoane care nu a fost de acord să îl primească.",
+ "enforcement.lead.violent_content": "Am constatat că contul tău a distribuit violență explicită sau conținut gore.",
+ "enforcement.lead.violent_extremism": "Am găsit pe contul tău conținut sau activitate care încalcă regulile noastre privind terorismul și extremismul violent.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "biografie",
+ "enforcement.profile_field.global_name": "nume afișat",
+ "enforcement.profile_field.pronouns": "pronume",
+ "enforcement.redress.out_of_court": "Dacă te afli în UE, poți supune această decizie și unui organism certificat de soluționare extrajudiciară a litigiilor. Comisia Europeană publică o [listă a acestor organisme]({url}).",
+ "enforcement.redress.regulator_and_court": "Poți depune și o plângere la coordonatorul serviciilor digitale din țara ta din UE sau te poți adresa instanței.",
+ "enforcement.rule.adult_content": "Conținut pentru adulți în afara spațiilor 18+",
+ "enforcement.rule.age_requirement": "Vârsta minimă",
+ "enforcement.rule.automation": "Automatizare perturbatoare",
+ "enforcement.rule.ban_evasion": "Ocolirea restricțiilor",
+ "enforcement.rule.child_safety": "Siguranța copiilor",
+ "enforcement.rule.copyright": "Drepturi de autor",
+ "enforcement.rule.fraud": "Escrocherii și fraudă",
+ "enforcement.rule.harassment": "Hărțuire",
+ "enforcement.rule.harmful_deception": "Înșelăciune dăunătoare",
+ "enforcement.rule.hate": "Ură și discriminare",
+ "enforcement.rule.illegal_activity": "Activități ilegale și periculoase",
+ "enforcement.rule.impersonation": "Uzurpare de identitate și conturi false",
+ "enforcement.rule.intimate_images": "Imagini intime distribuite fără consimțământ",
+ "enforcement.rule.malware": "Linkuri rău intenționate și malware",
+ "enforcement.rule.payments": "Plăți",
+ "enforcement.rule.privacy": "Confidențialitate și informații personale",
+ "enforcement.rule.raids": "Raiduri și atacuri coordonate",
+ "enforcement.rule.report_abuse": "Utilizarea abuzivă a raportărilor",
+ "enforcement.rule.self_harm": "Promovarea autovătămării",
+ "enforcement.rule.service_abuse": "Utilizarea abuzivă a serviciului",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Amenințări cu violență",
+ "enforcement.rule.unwanted_sexual_content": "Conținut sexual nedorit",
+ "enforcement.rule.violent_content": "Violență explicită",
+ "enforcement.rule.violent_extremism": "Terorism și extremism violent",
+ "enforcement.source.own_review": "Am descoperit acest lucru în cadrul propriei verificări.",
+ "enforcement.source.report": "Am analizat cazul în urma unui raport.",
+ "enforcement.summary.closure": "{target, select, bot {Am închis botul tău {bot_name}.} other {Am închis contul tău.}}",
+ "enforcement.summary.community_removal": "Am eliminat comunitatea ta {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Am eliminat toate mesajele trimise de tine.} other {Am eliminat {count, plural, one {# mesaj trimis de tine} few {# mesaje trimise de tine} other {# de mesaje trimise de tine}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Am limitat o funcție a contului tău până la {ends_at}.} other {Am limitat o funcție a contului tău.}}",
+ "enforcement.summary.profile_reset": "Am resetat unele părți ale profilului tău: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Am suspendat botul tău {bot_name} până la {ends_at}.} other {Am suspendat contul tău până la {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Am suspendat permanent botul tău {bot_name}.} other {Am suspendat permanent contul tău.}}",
+ "enforcement.summary.warning": "Îți trimitem un avertisment privind activitatea contului tău.",
+ "enforcement.welfare.self_harm": "Dacă treci printr-o perioadă grea, nu trebuie să faci față fără sprijin. [Secțiunea 3 din regulile comunității noastre]({url}) include linii de sprijin.",
"guild.bulk_create.emoji_limit": "S-a atins numărul maxim de emojiuri ({limit}).",
"guild.bulk_create.sticker_limit": "S-a atins numărul maxim de stickere ({limit}).",
"guild.bulk_create.unknown_error": "A apărut o eroare necunoscută.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/ru.json b/fluxer_api/src/api/content_i18n/weblate/locales/ru.json
index 12f962001..b573ff9bd 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/ru.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/ru.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Если я являюсь потребителем из ЕС/ЕЭЗ, я даю явное согласие на немедленное предоставление цифрового контента {product_name} {premium_tier_name} и понимаю, что теряю законное право на отказ от договора после получения доступа. Это не затрагивает другие права потребителя, предусмотренные обязательными нормами закона. См. [Условия предоставления услуг]({terms_url}).",
"bulk_message_deletion.complete": "Мы завершили удаление твоих сообщений. Удалено {message_count, plural, =0 {0 сообщений} one {# сообщение} few {# сообщения} many {# сообщений} other {# сообщений}} из {channel_count, plural, =0 {0 мест} one {# места} few {# мест} many {# мест} other {# мест}}.",
"content.virus_detected": "Этот файл был отмечен как потенциально опасный и удалён.",
+ "enforcement.automation.automated": "Это временное ограничение было введено автоматически и действует, пока сотрудник нашей команды проверяет ситуацию.",
+ "enforcement.automation.flagged": "Это отметили автоматические инструменты. Сотрудник нашей команды проверил ситуацию и принял решение.",
+ "enforcement.automation.none": "Сотрудник нашей команды проверил ситуацию и принял решение.",
+ "enforcement.effect.account_not_restricted": "В остальном твой аккаунт не ограничен.",
+ "enforcement.effect.closure": "{target, select, bot {Бот нигде не может подключаться и выполнять действия. {deletion_at} мы удалим бота и его данные. Твой собственный аккаунт не ограничен.} other {Ты нигде не можешь входить в аккаунт и пользоваться {product_name}. {deletion_at} мы удалим аккаунт и его данные, кроме данных, которые мы обязаны хранить по закону.}}",
+ "enforcement.effect.community_removed": "Сообщество, его каналы и сообщения больше никому не доступны. Твой собственный аккаунт не ограничен.",
+ "enforcement.effect.limit_direct_messages": "Твои сообщения в личной переписке один на один и запросы на добавление в друзья не доставляются, а твой профиль скрыт. В сообществах и групповых чатах люди видят твои сообщения свёрнутыми и с пометкой о возможном спаме.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Ты не можешь совершать покупки в {product_name}, пока сотрудник нашей команды не проверит ситуацию.} other {Ты не можешь совершать покупки в {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {До этого времени ты не можешь отправлять жалобы в приложении. Чтобы сообщить о незаконном контенте, воспользуйся контактом по вопросам безопасности на [странице со сведениями о нашей компании]({url}).} other {До этого времени ты не можешь отправлять жалобы в приложении.}}",
+ "enforcement.effect.messages_removed": "Мы также удалили {count, plural, one {# сообщение} few {# сообщения} many {# сообщений} other {# сообщения}}.",
+ "enforcement.effect.networks_blocked": "Мы также заблокировали доступ из сетей, которые использовал этот аккаунт, до {date}.",
+ "enforcement.effect.no_other_accounts": "Тебе запрещено создавать или использовать другие аккаунты.",
+ "enforcement.effect.scope": "Это решение действует везде, где можно пользоваться {product_name}.",
+ "enforcement.effect.suspension": "{target, select, bot {До этого времени бот нигде не может подключаться и выполнять действия. Твой собственный аккаунт не ограничен.} other {До этого времени ты нигде не можешь входить в аккаунт и пользоваться {product_name}. Твой аккаунт, сообщения и сообщества сохраняются.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Бот нигде не может подключаться и выполнять действия. Твой собственный аккаунт не ограничен.} other {Ты нигде не можешь входить в аккаунт и пользоваться {product_name}.}}",
+ "enforcement.effect.warning": "Твой аккаунт не ограничен. Если это повторится, мы можем ограничить его или временно заблокировать.",
+ "enforcement.facts.channel": "{count, plural, one {# сообщение} few {# сообщения} many {# сообщений} other {# сообщения}} в канале #{channel} сообщества {community}, {range, select, single {{start}} other {в период с {start} по {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# сообщение, опубликованное} few {# сообщения, опубликованные} many {# сообщений, опубликованных} other {# сообщения, опубликованного}} в канале #{channel}, {range, select, single {{start}} other {в период с {start} по {end}}}.",
+ "enforcement.facts.copyright": "Правообладатель или затронутое право: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# сообщение} few {# сообщения} many {# сообщений} other {# сообщения}} в личной переписке, {range, select, single {{start}} other {в период с {start} по {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# сообщение} few {# сообщения} many {# сообщений} other {# сообщения}} в личной переписке за {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# сообщение} few {# сообщения} many {# сообщений} other {# сообщения}} в групповом чате, {range, select, single {{start}} other {в период с {start} по {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# сообщение} few {# сообщения} many {# сообщений} other {# сообщения}} в групповом чате за {month}.",
+ "enforcement.facts.payment": "Платёж по твоему аккаунту от {date}.",
+ "enforcement.facts.profile": "Твой профиль: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# сообщение} few {# сообщения} many {# сообщений} other {# сообщения}} в переписке, которой больше не существует, {range, select, single {{start}} other {в период с {start} по {end}}}.",
+ "enforcement.lead.adult_content": "Мы обнаружили, что с твоего аккаунта публиковался контент сексуального характера вне пространств с пометкой 18+.",
+ "enforcement.lead.age_requirement": "Чтобы пользоваться {product_name}, нужно достичь минимального возраста, установленного в твоей стране. Это не наказание, и ты сможешь вернуться, когда достигнешь нужного возраста.",
+ "enforcement.lead.automation": "Мы обнаружили автоматизированную активность с твоего аккаунта, которая мешала нормальной работе сервиса.",
+ "enforcement.lead.ban_evasion": "Мы обнаружили, что этот аккаунт использовался для обхода ограничения, наложенного на другой аккаунт.",
+ "enforcement.lead.bot": "Мы обнаружили у твоего бота активность, нарушающую это правило.",
+ "enforcement.lead.child_safety": "Мы обнаружили в твоём аккаунте контент или действия, нарушающие наши правила о защите детей.",
+ "enforcement.lead.community": "Мы обнаружили в этом сообществе контент, нарушающий это правило.",
+ "enforcement.lead.copyright": "Мы обнаружили, что с твоего аккаунта публиковался контент, в котором без разрешения используются чужие произведения.",
+ "enforcement.lead.fraud": "Мы обнаружили, что с твоего аккаунта публиковался контент, с помощью которого у людей пытались обманом получить деньги, аккаунты или личные данные.",
+ "enforcement.lead.harassment": "Мы обнаружили, что с твоего аккаунта отправлялись сообщения, в которых кого-то преследовали или травили.",
+ "enforcement.lead.harmful_deception": "Мы обнаружили, что с твоего аккаунта распространялись ложные утверждения, которые могут причинить серьёзный вред.",
+ "enforcement.lead.hate": "Мы обнаружили, что с твоего аккаунта публиковался контент, в котором людей оскорбляют или унижают из-за того, кто они есть.",
+ "enforcement.lead.illegal_activity": "Мы обнаружили, что с твоего аккаунта публиковался контент, который предлагает незаконные товары или услуги либо помогает в незаконной деятельности.",
+ "enforcement.lead.impersonation": "Мы обнаружили, что твой аккаунт выдавал себя за другого человека или организацию либо использовал вымышленную личность, чтобы вводить людей в заблуждение.",
+ "enforcement.lead.intimate_images": "Мы обнаружили, что с твоего аккаунта распространялись интимные изображения человека без его согласия.",
+ "enforcement.lead.legacy": "У нас нет дополнительных сведений об этом решении.",
+ "enforcement.lead.malware": "Мы обнаружили, что с твоего аккаунта распространялись ссылки или файлы, ведущие к вредоносным программам или другому опасному ПО.",
+ "enforcement.lead.payments": "Мы обнаружили проблему с платежом по твоему аккаунту, которая нарушает наши условия оплаты.",
+ "enforcement.lead.privacy": "Мы обнаружили, что с твоего аккаунта распространялись чужие персональные данные без согласия их владельца.",
+ "enforcement.lead.raids": "Мы обнаружили, что твой аккаунт участвовал в скоординированной атаке на сообщество или человека.",
+ "enforcement.lead.report_abuse": "Мы обнаружили, что с твоего аккаунта неоднократно отправлялись ложные или недобросовестные жалобы.",
+ "enforcement.lead.self_harm": "Мы обнаружили, что с твоего аккаунта публиковался контент, который призывает к самоповреждению или содержит инструкции по нему.",
+ "enforcement.lead.service_abuse": "Мы обнаружили, что твой аккаунт использовал {product_name} так, что это мешает работе сервиса или позволяет обходить его ограничения.",
+ "enforcement.lead.spam": "Мы обнаружили, что с твоего аккаунта массово рассылались нежелательные сообщения.",
+ "enforcement.lead.threats": "Мы обнаружили, что с твоего аккаунта отправлялись сообщения с угрозами насилия или призывами к нему.",
+ "enforcement.lead.unwanted_sexual_content": "Мы обнаружили, что с твоего аккаунта человеку отправлялся контент сексуального характера, на получение которого он не давал согласия.",
+ "enforcement.lead.violent_content": "Мы обнаружили, что с твоего аккаунта распространялись сцены жестокого насилия или кровавый контент.",
+ "enforcement.lead.violent_extremism": "Мы обнаружили в твоём аккаунте контент или действия, нарушающие наши правила о терроризме и насильственном экстремизме.",
+ "enforcement.profile_field.avatar": "аватар",
+ "enforcement.profile_field.banner": "баннер",
+ "enforcement.profile_field.bio": "раздел «О себе»",
+ "enforcement.profile_field.global_name": "отображаемое имя",
+ "enforcement.profile_field.pronouns": "местоимения",
+ "enforcement.redress.out_of_court": "Если ты находишься в ЕС, ты также можешь передать спор по этому решению в сертифицированный орган внесудебного разрешения споров. Европейская комиссия ведёт [список таких органов]({url}).",
+ "enforcement.redress.regulator_and_court": "Ты также можешь подать жалобу координатору цифровых услуг в своей стране ЕС или обратиться в суд.",
+ "enforcement.rule.adult_content": "Контент для взрослых вне пространств 18+",
+ "enforcement.rule.age_requirement": "Минимальный возраст",
+ "enforcement.rule.automation": "Автоматизация, мешающая работе сервиса",
+ "enforcement.rule.ban_evasion": "Обход ограничений",
+ "enforcement.rule.child_safety": "Безопасность детей",
+ "enforcement.rule.copyright": "Авторское право",
+ "enforcement.rule.fraud": "Мошенничество и обман",
+ "enforcement.rule.harassment": "Преследование и травля",
+ "enforcement.rule.harmful_deception": "Опасная дезинформация",
+ "enforcement.rule.hate": "Ненависть и дискриминация",
+ "enforcement.rule.illegal_activity": "Незаконная и опасная деятельность",
+ "enforcement.rule.impersonation": "Выдача себя за другого и фейковые аккаунты",
+ "enforcement.rule.intimate_images": "Распространение интимных изображений без согласия",
+ "enforcement.rule.malware": "Вредоносные ссылки и программы",
+ "enforcement.rule.payments": "Платежи",
+ "enforcement.rule.privacy": "Конфиденциальность и персональные данные",
+ "enforcement.rule.raids": "Рейды и скоординированные атаки",
+ "enforcement.rule.report_abuse": "Злоупотребление жалобами",
+ "enforcement.rule.self_harm": "Пропаганда самоповреждения",
+ "enforcement.rule.service_abuse": "Злоупотребление сервисом",
+ "enforcement.rule.spam": "Спам",
+ "enforcement.rule.threats": "Угрозы насилием",
+ "enforcement.rule.unwanted_sexual_content": "Нежелательный контент сексуального характера",
+ "enforcement.rule.violent_content": "Сцены жестокого насилия",
+ "enforcement.rule.violent_extremism": "Терроризм и насильственный экстремизм",
+ "enforcement.source.own_review": "Мы обнаружили это в ходе собственной проверки.",
+ "enforcement.source.report": "Мы рассмотрели это после жалобы.",
+ "enforcement.summary.closure": "{target, select, bot {Мы закрыли твоего бота {bot_name}.} other {Мы закрыли твой аккаунт.}}",
+ "enforcement.summary.community_removal": "Мы удалили твоё сообщество {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Мы удалили все твои сообщения.} other {Мы удалили {count, plural, one {# твоё сообщение} few {# твоих сообщения} many {# твоих сообщений} other {# твоего сообщения}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Мы ограничили одну из функций твоего аккаунта до {ends_at}.} other {Мы ограничили одну из функций твоего аккаунта.}}",
+ "enforcement.summary.profile_reset": "Мы сбросили часть данных твоего профиля: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Мы временно заблокировали твоего бота {bot_name} до {ends_at}.} other {Мы временно заблокировали твой аккаунт до {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Мы навсегда заблокировали твоего бота {bot_name}.} other {Мы навсегда заблокировали твой аккаунт.}}",
+ "enforcement.summary.warning": "Мы предупреждаем тебя из-за активности в твоём аккаунте.",
+ "enforcement.welfare.self_harm": "Если тебе сейчас тяжело, не обязательно справляться с этим в одиночку. В [разделе 3 правил нашего сообщества]({url}) перечислены телефоны доверия.",
"guild.bulk_create.emoji_limit": "Достигнуто максимальное количество эмодзи ({limit}).",
"guild.bulk_create.sticker_limit": "Достигнуто максимальное количество стикеров ({limit}).",
"guild.bulk_create.unknown_error": "Произошла неизвестная ошибка.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/sv-SE.json b/fluxer_api/src/api/content_i18n/weblate/locales/sv-SE.json
index 894b8bf50..c26e2c140 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/sv-SE.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/sv-SE.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Om jag är konsument i EU/EES samtycker jag uttryckligen till att det digitala innehållet i {product_name} {premium_tier_name} tillhandahålls omedelbart och bekräftar att jag förlorar min lagstadgade ångerrätt när jag får tillgång till innehållet. Detta påverkar inte andra tvingande konsumenträttigheter. Se [användarvillkoren]({terms_url}).",
"bulk_message_deletion.complete": "Vi har raderat dina meddelanden. Vi tog bort {message_count, plural, =0 {0 meddelanden} one {# meddelande} other {# meddelanden}} från {channel_count, plural, =0 {0 platser} one {# plats} other {# platser}}.",
"content.virus_detected": "Filen flaggades som potentiellt osäker och har tagits bort.",
+ "enforcement.automation.automated": "Det här är en tillfällig begränsning som infördes automatiskt medan en person i vårt team granskar ärendet.",
+ "enforcement.automation.flagged": "Automatiska verktyg flaggade detta. En person i vårt team granskade det och fattade beslutet.",
+ "enforcement.automation.none": "En person i vårt team granskade detta och fattade beslutet.",
+ "enforcement.effect.account_not_restricted": "Ditt konto är inte begränsat på något annat sätt.",
+ "enforcement.effect.closure": "{target, select, bot {Boten kan inte ansluta eller utföra åtgärder någonstans. Vi raderar den och dess data den {deletion_at}. Ditt eget konto är inte begränsat.} other {Du kan inte logga in eller använda {product_name} någonstans. Vi raderar kontot och dess data den {deletion_at}, förutom data som vi enligt lag måste spara.}}",
+ "enforcement.effect.community_removed": "Communityn och dess kanaler och meddelanden är inte längre tillgängliga för någon. Ditt eget konto är inte begränsat.",
+ "enforcement.effect.limit_direct_messages": "Dina meddelanden i konversationer mellan två personer och dina vänförfrågningar levereras inte, och din profil är dold. I communities och gruppkonversationer ser andra dina meddelanden hopfällda och markerade som möjlig spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Du kan inte göra köp på {product_name} förrän en person i vårt team har granskat detta.} other {Du kan inte göra köp på {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Du kan inte skicka anmälningar i appen förrän dess. Om du vill anmäla olagligt innehåll kan du använda säkerhetskontakten på vår [sida med företagsinformation]({url}).} other {Du kan inte skicka anmälningar i appen förrän dess.}}",
+ "enforcement.effect.messages_removed": "Vi har också tagit bort {count, plural, =1 {# meddelande} other {# meddelanden}}.",
+ "enforcement.effect.networks_blocked": "Fram till den {date} blockerar vi också åtkomst från nätverk som det här kontot har använt.",
+ "enforcement.effect.no_other_accounts": "Du får inte skapa eller använda andra konton.",
+ "enforcement.effect.scope": "Det här beslutet gäller överallt där {product_name} finns.",
+ "enforcement.effect.suspension": "{target, select, bot {Boten kan inte ansluta eller utföra åtgärder någonstans förrän dess. Ditt eget konto är inte begränsat.} other {Du kan inte logga in eller använda {product_name} någonstans förrän dess. Ditt konto, dina meddelanden och dina communities finns kvar.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Boten kan inte ansluta eller utföra åtgärder någonstans. Ditt eget konto är inte begränsat.} other {Du kan inte logga in eller använda {product_name} någonstans.}}",
+ "enforcement.effect.warning": "Ditt konto är inte begränsat. Om det här händer igen kan vi begränsa eller stänga av det.",
+ "enforcement.facts.channel": "{count, plural, =1 {# meddelande} other {# meddelanden}} i #{channel} i {community}, {range, select, single {den {start}} other {mellan {start} och {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, =1 {# meddelande} other {# meddelanden}} som publicerades i #{channel}, {range, select, single {den {start}} other {mellan {start} och {end}}}.",
+ "enforcement.facts.copyright": "Rättighetshavare eller berörd rättighet: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {# meddelande} other {# meddelanden}} i en konversation med direktmeddelanden, {range, select, single {den {start}} other {mellan {start} och {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {# meddelande} other {# meddelanden}} i en konversation med direktmeddelanden i {month}.",
+ "enforcement.facts.group_message": "{count, plural, =1 {# meddelande} other {# meddelanden}} i en gruppkonversation, {range, select, single {den {start}} other {mellan {start} och {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {# meddelande} other {# meddelanden}} i en gruppkonversation i {month}.",
+ "enforcement.facts.payment": "En betalning på ditt konto den {date}.",
+ "enforcement.facts.profile": "Din profil: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {# meddelande} other {# meddelanden}} i en konversation som inte längre finns, {range, select, single {den {start}} other {mellan {start} och {end}}}.",
+ "enforcement.lead.adult_content": "Vi hittade sexuellt innehåll från ditt konto utanför ett utrymme som är markerat som 18+.",
+ "enforcement.lead.age_requirement": "Du måste ha uppnått minimiåldern i ditt land för att använda {product_name}. Det här är inget straff, och du är välkommen tillbaka när du är gammal nog.",
+ "enforcement.lead.automation": "Vi hittade automatiserad aktivitet från ditt konto som störde normal användning av tjänsten.",
+ "enforcement.lead.ban_evasion": "Vi kom fram till att det här kontot användes för att kringgå en begränsning på ett annat konto.",
+ "enforcement.lead.bot": "Vi hittade aktivitet från din bot som bryter mot den här regeln.",
+ "enforcement.lead.child_safety": "Vi hittade innehåll eller aktivitet på ditt konto som bryter mot våra regler om att skydda barn.",
+ "enforcement.lead.community": "Vi hittade innehåll i den här communityn som bryter mot den här regeln.",
+ "enforcement.lead.copyright": "Vi hittade innehåll från ditt konto som använder någon annans verk utan tillstånd.",
+ "enforcement.lead.fraud": "Vi hittade innehåll från ditt konto som försökte lura av folk pengar, konton eller personuppgifter.",
+ "enforcement.lead.harassment": "Vi hittade meddelanden från ditt konto som trakasserade eller mobbade någon.",
+ "enforcement.lead.harmful_deception": "Vi hittade innehåll från ditt konto som spred falska påståenden som sannolikt kan orsaka allvarlig skada.",
+ "enforcement.lead.hate": "Vi hittade innehåll från ditt konto som angriper eller förnedrar människor för den de är.",
+ "enforcement.lead.illegal_activity": "Vi hittade innehåll från ditt konto som erbjuder eller hjälper till med olagliga varor eller aktiviteter.",
+ "enforcement.lead.impersonation": "Vi kom fram till att ditt konto utgav sig för att vara en annan person eller organisation, eller använde en falsk identitet för att vilseleda andra.",
+ "enforcement.lead.intimate_images": "Vi kom fram till att ditt konto delade intima bilder på någon utan personens samtycke.",
+ "enforcement.lead.legacy": "Vi har inga fler uppgifter registrerade om det här beslutet.",
+ "enforcement.lead.malware": "Vi hittade länkar eller filer från ditt konto som leder till skadlig kod eller annan skadlig programvara.",
+ "enforcement.lead.payments": "Vi hittade ett betalningsproblem på ditt konto som bryter mot våra betalningsvillkor.",
+ "enforcement.lead.privacy": "Vi kom fram till att ditt konto delade någons personuppgifter utan personens samtycke.",
+ "enforcement.lead.raids": "Vi kom fram till att ditt konto deltog i en samordnad attack mot en community eller en person.",
+ "enforcement.lead.report_abuse": "Vi kom fram till att ditt konto upprepade gånger skickade anmälningar som var falska eller gjordes i ond tro.",
+ "enforcement.lead.self_harm": "Vi hittade innehåll från ditt konto som uppmuntrar till eller ger instruktioner om självskada.",
+ "enforcement.lead.service_abuse": "Vi kom fram till att ditt konto använde {product_name} på ett sätt som stör tjänsten eller kringgår dess gränser.",
+ "enforcement.lead.spam": "Vi kom fram till att ditt konto skickade oönskade meddelanden i stora mängder.",
+ "enforcement.lead.threats": "Vi hittade meddelanden från ditt konto som hotade med eller uppmanade till våld.",
+ "enforcement.lead.unwanted_sexual_content": "Vi kom fram till att ditt konto skickade sexuellt innehåll till någon som inte hade gått med på att ta emot det.",
+ "enforcement.lead.violent_content": "Vi kom fram till att ditt konto delade grova våldsskildringar eller blodigt innehåll.",
+ "enforcement.lead.violent_extremism": "Vi hittade innehåll eller aktivitet på ditt konto som bryter mot våra regler om terrorism och våldsbejakande extremism.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "presentation",
+ "enforcement.profile_field.global_name": "visningsnamn",
+ "enforcement.profile_field.pronouns": "pronomen",
+ "enforcement.redress.out_of_court": "Om du befinner dig i EU kan du också hänskjuta det här beslutet till ett certifierat organ för tvistlösning utanför domstol. Europeiska kommissionen har en [lista över dessa organ]({url}).",
+ "enforcement.redress.regulator_and_court": "Du kan också klaga hos samordnaren för digitala tjänster i ditt EU-land eller vända dig till domstol.",
+ "enforcement.rule.adult_content": "Vuxeninnehåll utanför 18+-utrymmen",
+ "enforcement.rule.age_requirement": "Minimiålder",
+ "enforcement.rule.automation": "Störande automatisering",
+ "enforcement.rule.ban_evasion": "Kringgående av begränsningar",
+ "enforcement.rule.child_safety": "Barns säkerhet",
+ "enforcement.rule.copyright": "Upphovsrätt",
+ "enforcement.rule.fraud": "Bluffar och bedrägerier",
+ "enforcement.rule.harassment": "Trakasserier",
+ "enforcement.rule.harmful_deception": "Skadlig vilseledning",
+ "enforcement.rule.hate": "Hat och diskriminering",
+ "enforcement.rule.illegal_activity": "Olaglig och farlig verksamhet",
+ "enforcement.rule.impersonation": "Att utge sig för någon annan och falska konton",
+ "enforcement.rule.intimate_images": "Intima bilder som delats utan samtycke",
+ "enforcement.rule.malware": "Skadliga länkar och skadlig kod",
+ "enforcement.rule.payments": "Betalningar",
+ "enforcement.rule.privacy": "Integritet och personuppgifter",
+ "enforcement.rule.raids": "Räder och samordnade attacker",
+ "enforcement.rule.report_abuse": "Missbruk av anmälningar",
+ "enforcement.rule.self_harm": "Främjande av självskada",
+ "enforcement.rule.service_abuse": "Missbruk av tjänsten",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Hot om våld",
+ "enforcement.rule.unwanted_sexual_content": "Oönskat sexuellt innehåll",
+ "enforcement.rule.violent_content": "Grova våldsskildringar",
+ "enforcement.rule.violent_extremism": "Terrorism och våldsbejakande extremism",
+ "enforcement.source.own_review": "Vi hittade detta i vår egen granskning.",
+ "enforcement.source.report": "Vi granskade detta efter en anmälan.",
+ "enforcement.summary.closure": "{target, select, bot {Vi har stängt din bot {bot_name}.} other {Vi har stängt ditt konto.}}",
+ "enforcement.summary.community_removal": "Vi har tagit bort din community {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Vi har tagit bort alla meddelanden som du har skickat.} other {Vi har tagit bort {count, plural, =1 {# meddelande} other {# meddelanden}} som du har skickat.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Vi har begränsat en funktion på ditt konto fram till {ends_at}.} other {Vi har begränsat en funktion på ditt konto.}}",
+ "enforcement.summary.profile_reset": "Vi har återställt delar av din profil: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Vi har stängt av din bot {bot_name} fram till {ends_at}.} other {Vi har stängt av ditt konto fram till {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Vi har bannlyst din bot {bot_name}.} other {Vi har bannlyst ditt konto.}}",
+ "enforcement.summary.warning": "Vi ger dig en varning om aktivitet på ditt konto.",
+ "enforcement.welfare.self_harm": "Om du har det tufft behöver du inte gå igenom det ensam. I [avsnitt 3 i våra communityriktlinjer]({url}) finns stödlinjer.",
"guild.bulk_create.emoji_limit": "Maximalt antal emojis nått ({limit}).",
"guild.bulk_create.sticker_limit": "Maximalt antal klistermärken nått ({limit}).",
"guild.bulk_create.unknown_error": "Okänt fel.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/th.json b/fluxer_api/src/api/content_i18n/weblate/locales/th.json
index 78fcc38ef..9a52f9be5 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/th.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/th.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "หากฉันเป็นผู้บริโภคใน EU/EEA ฉันยินยอมให้มีการให้บริการเนื้อหาดิจิทัล {product_name} {premium_tier_name} ทันที และรับทราบว่าฉันสูญเสียสิทธิ์ในการถอนตัวตามกฎหมายเมื่อมีการให้สิทธิ์การเข้าถึงแล้ว ซึ่งไม่กระทบต่อสิทธิ์ผู้บริโภคอื่นๆ ที่จำเป็น ดู[ข้อกำหนดในการให้บริการ]({terms_url})",
"bulk_message_deletion.complete": "ลบข้อความของคุณเรียบร้อยแล้ว เราลบ {message_count, plural, =0 {0 ข้อความ} other {# ข้อความ}} จาก {channel_count, plural, =0 {0 ที่} other {# ที่}}",
"content.virus_detected": "ไฟล์นั้นถูกตรวจพบว่าอาจไม่ปลอดภัยและถูกลบออกแล้ว",
+ "enforcement.automation.automated": "นี่เป็นข้อจำกัดชั่วคราวที่มีผลโดยอัตโนมัติ ระหว่างที่เจ้าหน้าที่ในทีมของเรากำลังตรวจสอบ",
+ "enforcement.automation.flagged": "เครื่องมืออัตโนมัติได้ทำเครื่องหมายเรื่องนี้ไว้ เจ้าหน้าที่ในทีมของเราได้ตรวจสอบและเป็นผู้ตัดสิน",
+ "enforcement.automation.none": "เจ้าหน้าที่ในทีมของเราได้ตรวจสอบเรื่องนี้และเป็นผู้ตัดสิน",
+ "enforcement.effect.account_not_restricted": "บัญชีของคุณไม่ได้ถูกจำกัดในด้านอื่น",
+ "enforcement.effect.closure": "{target, select, bot {บอทไม่สามารถเชื่อมต่อหรือทำงานใดๆ ได้ไม่ว่าที่ใด เราจะลบบอทและข้อมูลของบอทในวันที่ {deletion_at} บัญชีของคุณเองไม่ได้ถูกจำกัด} other {คุณไม่สามารถลงชื่อเข้าใช้หรือใช้งาน {product_name} ได้ไม่ว่าที่ใด เราจะลบบัญชีและข้อมูลของบัญชีในวันที่ {deletion_at} ยกเว้นข้อมูลที่เราต้องเก็บไว้ตามกฎหมาย}}",
+ "enforcement.effect.community_removed": "คอมมูนิตี้นี้ รวมถึงช่องและข้อความในคอมมูนิตี้ ไม่มีผู้ใดเข้าถึงได้อีกต่อไป บัญชีของคุณเองไม่ได้ถูกจำกัด",
+ "enforcement.effect.limit_direct_messages": "ข้อความในแชทแบบตัวต่อตัวและคำขอเป็นเพื่อนของคุณจะไม่ถูกส่งถึงผู้รับ และโปรไฟล์ของคุณจะถูกซ่อน ในคอมมูนิตี้และการสนทนากลุ่ม ผู้อื่นจะเห็นข้อความของคุณถูกย่อไว้และทำเครื่องหมายว่าอาจเป็นสแปม",
+ "enforcement.effect.limit_purchases": "{review, select, yes {คุณไม่สามารถทำการซื้อใน {product_name} ได้จนกว่าเจ้าหน้าที่ในทีมของเราจะตรวจสอบเรื่องนี้} other {คุณไม่สามารถทำการซื้อใน {product_name} ได้}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {คุณไม่สามารถส่งรายงานในแอปได้จนถึงเวลานั้น หากต้องการรายงานเนื้อหาที่ผิดกฎหมาย โปรดใช้ช่องทางด้านความปลอดภัยใน[หน้าข้อมูลบริษัทของเรา]({url})} other {คุณไม่สามารถส่งรายงานในแอปได้จนถึงเวลานั้น}}",
+ "enforcement.effect.messages_removed": "เรายังได้ลบข้อความจำนวน {count, plural, =1 {# ข้อความ} other {# ข้อความ}} ด้วย",
+ "enforcement.effect.networks_blocked": "เรายังได้บล็อกการเข้าถึงจากเครือข่ายที่บัญชีนี้เคยใช้ จนถึง {date}",
+ "enforcement.effect.no_other_accounts": "คุณไม่ได้รับอนุญาตให้สร้างหรือใช้บัญชีอื่น",
+ "enforcement.effect.scope": "คำตัดสินนี้มีผลในทุกที่ที่ {product_name} ให้บริการ",
+ "enforcement.effect.suspension": "{target, select, bot {บอทไม่สามารถเชื่อมต่อหรือทำงานใดๆ ได้ไม่ว่าที่ใดจนถึงเวลานั้น บัญชีของคุณเองไม่ได้ถูกจำกัด} other {คุณไม่สามารถลงชื่อเข้าใช้หรือใช้งาน {product_name} ได้ไม่ว่าที่ใดจนถึงเวลานั้น บัญชี ข้อความ และคอมมูนิตี้ของคุณจะยังคงอยู่}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {บอทไม่สามารถเชื่อมต่อหรือทำงานใดๆ ได้ไม่ว่าที่ใด บัญชีของคุณเองไม่ได้ถูกจำกัด} other {คุณไม่สามารถลงชื่อเข้าใช้หรือใช้งาน {product_name} ได้ไม่ว่าที่ใด}}",
+ "enforcement.effect.warning": "บัญชีของคุณไม่ได้ถูกจำกัด หากเกิดเหตุการณ์นี้อีก เราอาจจำกัดหรือระงับบัญชีของคุณ",
+ "enforcement.facts.channel": "{count, plural, =1 {# ข้อความ} other {# ข้อความ}}ใน #{channel} ของ {community} {range, select, single {เมื่อ {start}} other {ระหว่าง {start} ถึง {end}}}",
+ "enforcement.facts.community_channel": "{count, plural, =1 {# ข้อความ} other {# ข้อความ}}ที่โพสต์ใน #{channel} {range, select, single {เมื่อ {start}} other {ระหว่าง {start} ถึง {end}}}",
+ "enforcement.facts.copyright": "ผู้ถือสิทธิ์หรือสิทธิ์ที่เกี่ยวข้อง: {rights_holder}",
+ "enforcement.facts.direct_message": "{count, plural, =1 {# ข้อความ} other {# ข้อความ}}ในการสนทนาข้อความส่วนตัว {range, select, single {เมื่อ {start}} other {ระหว่าง {start} ถึง {end}}}",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {# ข้อความ} other {# ข้อความ}}ในการสนทนาข้อความส่วนตัวในเดือน {month}",
+ "enforcement.facts.group_message": "{count, plural, =1 {# ข้อความ} other {# ข้อความ}}ในการสนทนากลุ่ม {range, select, single {เมื่อ {start}} other {ระหว่าง {start} ถึง {end}}}",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {# ข้อความ} other {# ข้อความ}}ในการสนทนากลุ่มในเดือน {month}",
+ "enforcement.facts.payment": "การชำระเงินในบัญชีของคุณเมื่อ {date}",
+ "enforcement.facts.profile": "โปรไฟล์ของคุณ: {fields}",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {# ข้อความ} other {# ข้อความ}}ในการสนทนาที่ไม่มีอยู่แล้ว {range, select, single {เมื่อ {start}} other {ระหว่าง {start} ถึง {end}}}",
+ "enforcement.lead.adult_content": "เราพบเนื้อหาทางเพศจากบัญชีของคุณนอกพื้นที่ที่ทำเครื่องหมายว่าเป็น 18+",
+ "enforcement.lead.age_requirement": "คุณต้องมีอายุถึงเกณฑ์ขั้นต่ำในประเทศของคุณจึงจะใช้ {product_name} ได้ นี่ไม่ใช่การลงโทษ และเรายินดีต้อนรับคุณกลับมาเมื่อคุณอายุถึงเกณฑ์",
+ "enforcement.lead.automation": "เราพบกิจกรรมอัตโนมัติจากบัญชีของคุณที่รบกวนการใช้งานบริการตามปกติ",
+ "enforcement.lead.ban_evasion": "เราพบว่ามีการใช้บัญชีนี้เพื่อหลีกเลี่ยงข้อจำกัดที่มีต่อบัญชีอื่น",
+ "enforcement.lead.bot": "เราพบกิจกรรมจากบอทของคุณที่ละเมิดกฎข้อนี้",
+ "enforcement.lead.child_safety": "เราพบเนื้อหาหรือกิจกรรมในบัญชีของคุณที่ละเมิดกฎของเราเรื่องการคุ้มครองเด็ก",
+ "enforcement.lead.community": "เราพบเนื้อหาในคอมมูนิตี้นี้ที่ละเมิดกฎข้อนี้",
+ "enforcement.lead.copyright": "เราพบเนื้อหาจากบัญชีของคุณที่ใช้ผลงานของผู้อื่นโดยไม่ได้รับอนุญาต",
+ "enforcement.lead.fraud": "เราพบเนื้อหาจากบัญชีของคุณที่พยายามหลอกเอาเงิน บัญชี หรือข้อมูลส่วนบุคคลของผู้อื่น",
+ "enforcement.lead.harassment": "เราพบข้อความจากบัญชีของคุณที่คุกคามหรือกลั่นแกล้งผู้อื่น",
+ "enforcement.lead.harmful_deception": "เราพบเนื้อหาจากบัญชีของคุณที่เผยแพร่ข้อกล่าวอ้างเท็จซึ่งมีแนวโน้มจะก่อให้เกิดอันตรายร้ายแรง",
+ "enforcement.lead.hate": "เราพบเนื้อหาจากบัญชีของคุณที่โจมตีหรือดูหมิ่นผู้อื่นเพราะตัวตนของพวกเขา",
+ "enforcement.lead.illegal_activity": "เราพบเนื้อหาจากบัญชีของคุณที่เสนอหรือช่วยเหลือเกี่ยวกับสินค้าหรือกิจกรรมที่ผิดกฎหมาย",
+ "enforcement.lead.impersonation": "เราพบว่าบัญชีของคุณแอบอ้างเป็นบุคคลหรือองค์กรอื่น หรือใช้ตัวตนปลอมเพื่อหลอกลวงผู้อื่น",
+ "enforcement.lead.intimate_images": "เราพบว่าบัญชีของคุณแชร์ภาพส่วนตัวทางเพศของผู้อื่นโดยไม่ได้รับความยินยอม",
+ "enforcement.lead.legacy": "เราไม่มีรายละเอียดเพิ่มเติมที่บันทึกไว้สำหรับคำตัดสินนี้",
+ "enforcement.lead.malware": "เราพบลิงก์หรือไฟล์จากบัญชีของคุณที่นำไปสู่มัลแวร์หรือซอฟต์แวร์อันตรายอื่นๆ",
+ "enforcement.lead.payments": "เราพบปัญหาการชำระเงินในบัญชีของคุณที่ละเมิดข้อกำหนดการชำระเงินของเรา",
+ "enforcement.lead.privacy": "เราพบว่าบัญชีของคุณแชร์ข้อมูลส่วนบุคคลของผู้อื่นโดยไม่ได้รับความยินยอม",
+ "enforcement.lead.raids": "เราพบว่าบัญชีของคุณมีส่วนร่วมในการโจมตีแบบประสานงานต่อคอมมูนิตี้หรือบุคคล",
+ "enforcement.lead.report_abuse": "เราพบว่าบัญชีของคุณส่งรายงานที่เป็นเท็จหรือไม่สุจริตซ้ำหลายครั้ง",
+ "enforcement.lead.self_harm": "เราพบเนื้อหาจากบัญชีของคุณที่ส่งเสริมหรือให้คำแนะนำในการทำร้ายตัวเอง",
+ "enforcement.lead.service_abuse": "เราพบว่าบัญชีของคุณใช้ {product_name} ในลักษณะที่รบกวนบริการหรือหลีกเลี่ยงข้อจำกัดของบริการ",
+ "enforcement.lead.spam": "เราพบว่าบัญชีของคุณส่งข้อความที่ไม่พึงประสงค์จำนวนมาก",
+ "enforcement.lead.threats": "เราพบข้อความจากบัญชีของคุณที่ข่มขู่ว่าจะใช้ความรุนแรงหรือยุยงให้เกิดความรุนแรง",
+ "enforcement.lead.unwanted_sexual_content": "เราพบว่าบัญชีของคุณส่งเนื้อหาทางเพศให้ผู้ที่ไม่ได้ยินยอมจะรับ",
+ "enforcement.lead.violent_content": "เราพบว่าบัญชีของคุณแชร์ภาพความรุนแรงหรือภาพสยดสยอง",
+ "enforcement.lead.violent_extremism": "เราพบเนื้อหาหรือกิจกรรมในบัญชีของคุณที่ละเมิดกฎของเราเรื่องการก่อการร้ายและแนวคิดสุดโต่งที่ใช้ความรุนแรง",
+ "enforcement.profile_field.avatar": "รูปโปรไฟล์",
+ "enforcement.profile_field.banner": "แบนเนอร์",
+ "enforcement.profile_field.bio": "ประวัติส่วนตัว",
+ "enforcement.profile_field.global_name": "ชื่อที่แสดง",
+ "enforcement.profile_field.pronouns": "คำสรรพนาม",
+ "enforcement.redress.out_of_court": "หากคุณอยู่ในสหภาพยุโรป คุณยังสามารถส่งคำตัดสินนี้ไปยังหน่วยงานระงับข้อพิพาทนอกศาลที่ได้รับการรับรองได้ คณะกรรมาธิการยุโรปจัดทำ[รายชื่อหน่วยงานเหล่านี้]({url})ไว้",
+ "enforcement.redress.regulator_and_court": "คุณยังสามารถร้องเรียนต่อผู้ประสานงานบริการดิจิทัลในประเทศสหภาพยุโรปของคุณ หรือฟ้องร้องต่อศาลได้",
+ "enforcement.rule.adult_content": "เนื้อหาสำหรับผู้ใหญ่นอกพื้นที่ 18+",
+ "enforcement.rule.age_requirement": "อายุขั้นต่ำ",
+ "enforcement.rule.automation": "ระบบอัตโนมัติที่รบกวนการใช้งาน",
+ "enforcement.rule.ban_evasion": "การหลีกเลี่ยงข้อจำกัด",
+ "enforcement.rule.child_safety": "ความปลอดภัยของเด็ก",
+ "enforcement.rule.copyright": "ลิขสิทธิ์",
+ "enforcement.rule.fraud": "การหลอกลวงและการฉ้อโกง",
+ "enforcement.rule.harassment": "การคุกคาม",
+ "enforcement.rule.harmful_deception": "การบิดเบือนที่ก่อให้เกิดอันตราย",
+ "enforcement.rule.hate": "ความเกลียดชังและการเลือกปฏิบัติ",
+ "enforcement.rule.illegal_activity": "กิจกรรมที่ผิดกฎหมายและเป็นอันตราย",
+ "enforcement.rule.impersonation": "การแอบอ้างตัวตนและบัญชีปลอม",
+ "enforcement.rule.intimate_images": "ภาพส่วนตัวทางเพศที่แชร์โดยไม่ได้รับความยินยอม",
+ "enforcement.rule.malware": "ลิงก์อันตรายและมัลแวร์",
+ "enforcement.rule.payments": "การชำระเงิน",
+ "enforcement.rule.privacy": "ความเป็นส่วนตัวและข้อมูลส่วนบุคคล",
+ "enforcement.rule.raids": "การบุกโจมตีและการโจมตีแบบประสานงาน",
+ "enforcement.rule.report_abuse": "การใช้การรายงานในทางที่ผิด",
+ "enforcement.rule.self_harm": "การส่งเสริมการทำร้ายตัวเอง",
+ "enforcement.rule.service_abuse": "การใช้บริการในทางที่ผิด",
+ "enforcement.rule.spam": "สแปม",
+ "enforcement.rule.threats": "การข่มขู่ว่าจะใช้ความรุนแรง",
+ "enforcement.rule.unwanted_sexual_content": "เนื้อหาทางเพศที่ไม่พึงประสงค์",
+ "enforcement.rule.violent_content": "ความรุนแรงที่โจ่งแจ้ง",
+ "enforcement.rule.violent_extremism": "การก่อการร้ายและแนวคิดสุดโต่งที่ใช้ความรุนแรง",
+ "enforcement.source.own_review": "เราพบเรื่องนี้จากการตรวจสอบของเราเอง",
+ "enforcement.source.report": "เราตรวจสอบเรื่องนี้หลังได้รับรายงาน",
+ "enforcement.summary.closure": "{target, select, bot {เราได้ปิดบอท {bot_name} ของคุณแล้ว} other {เราได้ปิดบัญชีของคุณแล้ว}}",
+ "enforcement.summary.community_removal": "เราได้ลบคอมมูนิตี้ {community_name} ของคุณแล้ว",
+ "enforcement.summary.content_removal": "{all, select, yes {เราได้ลบข้อความทั้งหมดที่คุณส่งแล้ว} other {เราได้ลบข้อความที่คุณส่งจำนวน {count, plural, =1 {# ข้อความ} other {# ข้อความ}} แล้ว}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {เราได้จำกัดฟีเจอร์หนึ่งในบัญชีของคุณจนถึง {ends_at}} other {เราได้จำกัดฟีเจอร์หนึ่งในบัญชีของคุณ}}",
+ "enforcement.summary.profile_reset": "เราได้รีเซ็ตบางส่วนของโปรไฟล์ของคุณ: {fields}",
+ "enforcement.summary.suspension": "{target, select, bot {เราได้ระงับบอท {bot_name} ของคุณชั่วคราวจนถึง {ends_at}} other {เราได้ระงับบัญชีของคุณชั่วคราวจนถึง {ends_at}}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {เราได้แบนบอท {bot_name} ของคุณ} other {เราได้แบนบัญชีของคุณ}}",
+ "enforcement.summary.warning": "เราขอแจ้งเตือนคุณเกี่ยวกับกิจกรรมในบัญชีของคุณ",
+ "enforcement.welfare.self_harm": "หากคุณกำลังผ่านช่วงเวลาที่ยากลำบาก คุณไม่จำเป็นต้องรับมือกับมันเพียงลำพัง [หัวข้อที่ 3 ของหลักเกณฑ์คอมมูนิตี้ของเรา]({url})มีรายชื่อสายด่วนให้ความช่วยเหลือ",
"guild.bulk_create.emoji_limit": "จำนวนอีโมจิถึงขีดจำกัดแล้ว ({limit})",
"guild.bulk_create.sticker_limit": "จำนวนสติกเกอร์ถึงขีดจำกัดแล้ว ({limit})",
"guild.bulk_create.unknown_error": "เกิดข้อผิดพลาดที่ไม่ทราบสาเหตุ",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/tr.json b/fluxer_api/src/api/content_i18n/weblate/locales/tr.json
index 17d55fa03..b856d7712 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/tr.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/tr.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "AB/AEA tüketicisiysem, {product_name} {premium_tier_name} dijital içeriğinin hemen sağlanmasına açıkça onay veriyorum ve erişim sağlandıktan sonra yasal cayma hakkımı kaybettiğimi kabul ediyorum. Bu, diğer zorunlu tüketici haklarını etkilemez. [Hizmet şartları]({terms_url}) sayfasına bakın.",
"bulk_message_deletion.complete": "Mesajlarını silme işlemini tamamladık. {channel_count, plural, =0 {0 yerden} one {# yerden} other {# yerden}} {message_count, plural, =0 {0 mesaj} one {# mesaj} other {# mesaj}} kaldırdık.",
"content.virus_detected": "Bu dosya potansiyel olarak güvensiz olarak işaretlendi ve kaldırıldı.",
+ "enforcement.automation.automated": "Bu, ekibimizden biri inceleme yaparken otomatik olarak uygulanan geçici bir kısıtlamadır.",
+ "enforcement.automation.flagged": "Bunu otomatik araçlar işaretledi. Ekibimizden biri inceledi ve kararı verdi.",
+ "enforcement.automation.none": "Ekibimizden biri bunu inceledi ve kararı verdi.",
+ "enforcement.effect.account_not_restricted": "Hesabın bunun dışında kısıtlanmadı.",
+ "enforcement.effect.closure": "{target, select, bot {Bot hiçbir yerde bağlanamaz veya işlem yapamaz. Botu ve verilerini {deletion_at} tarihinde sileceğiz. Kendi hesabın kısıtlanmadı.} other {Hiçbir yerde giriş yapamaz ve {product_name} hizmetini kullanamazsın. Yasal olarak saklamamız gereken veriler hariç, hesabı ve verilerini {deletion_at} tarihinde sileceğiz.}}",
+ "enforcement.effect.community_removed": "Topluluğa, kanallarına ve mesajlarına artık kimse erişemez. Kendi hesabın kısıtlanmadı.",
+ "enforcement.effect.limit_direct_messages": "Bire bir mesajların ve arkadaşlık isteklerin iletilmez ve profilin gizlenir. Topluluklarda ve grup sohbetlerinde diğer kişiler mesajlarını daraltılmış ve olası spam olarak işaretlenmiş şekilde görür.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Ekibimizden biri bunu inceleyene kadar {product_name} üzerinde satın alma yapamazsın.} other {{product_name} üzerinde satın alma yapamazsın.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {O zamana kadar uygulama içinden rapor gönderemezsin. Yasa dışı içeriği bildirmek için [şirket bilgileri sayfamızda]({url}) yer alan güvenlik kanalını kullan.} other {O zamana kadar uygulama içinden rapor gönderemezsin.}}",
+ "enforcement.effect.messages_removed": "Ayrıca {count, plural, one {# mesajı} other {# mesajı}} kaldırdık.",
+ "enforcement.effect.networks_blocked": "Ayrıca bu hesabın kullandığı ağlardan erişimi {date} tarihine kadar engelledik.",
+ "enforcement.effect.no_other_accounts": "Başka hesaplar oluşturman veya kullanman yasaktır.",
+ "enforcement.effect.scope": "Bu karar, {product_name} hizmetinin sunulduğu her yerde geçerlidir.",
+ "enforcement.effect.suspension": "{target, select, bot {Bot o zamana kadar hiçbir yerde bağlanamaz veya işlem yapamaz. Kendi hesabın kısıtlanmadı.} other {O zamana kadar hiçbir yerde giriş yapamaz ve {product_name} hizmetini kullanamazsın. Hesabın, mesajların ve toplulukların korunur.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Bot hiçbir yerde bağlanamaz veya işlem yapamaz. Kendi hesabın kısıtlanmadı.} other {Hiçbir yerde giriş yapamaz ve {product_name} hizmetini kullanamazsın.}}",
+ "enforcement.effect.warning": "Hesabın kısıtlanmadı. Bu tekrar olursa hesabını kısıtlayabilir veya askıya alabiliriz.",
+ "enforcement.facts.channel": "{community} topluluğunun #{channel} kanalındaki {count, plural, one {# mesaj} other {# mesaj}}, {range, select, single {{start}} other {{start} ile {end} arasında}}.",
+ "enforcement.facts.community_channel": "#{channel} kanalında paylaşılan {count, plural, one {# mesaj} other {# mesaj}}, {range, select, single {{start}} other {{start} ile {end} arasında}}.",
+ "enforcement.facts.copyright": "Hak sahibi veya ilgili hak: {rights_holder}.",
+ "enforcement.facts.direct_message": "Bir doğrudan mesaj sohbetindeki {count, plural, one {# mesaj} other {# mesaj}}, {range, select, single {{start}} other {{start} ile {end} arasında}}.",
+ "enforcement.facts.direct_message_month": "{month} döneminde bir doğrudan mesaj sohbetinde gönderilen {count, plural, one {# mesaj} other {# mesaj}}.",
+ "enforcement.facts.group_message": "Bir grup sohbetindeki {count, plural, one {# mesaj} other {# mesaj}}, {range, select, single {{start}} other {{start} ile {end} arasında}}.",
+ "enforcement.facts.group_message_month": "{month} döneminde bir grup sohbetinde gönderilen {count, plural, one {# mesaj} other {# mesaj}}.",
+ "enforcement.facts.payment": "Hesabında {date} tarihinde yapılan bir ödeme.",
+ "enforcement.facts.profile": "Profilin: {fields}.",
+ "enforcement.facts.unknown_location": "Artık mevcut olmayan bir sohbetteki {count, plural, one {# mesaj} other {# mesaj}}, {range, select, single {{start}} other {{start} ile {end} arasında}}.",
+ "enforcement.lead.adult_content": "Hesabından, 18+ olarak işaretlenmiş alanların dışında cinsel içerik tespit ettik.",
+ "enforcement.lead.age_requirement": "{product_name} hizmetini kullanmak için ülkendeki asgari yaş şartını karşılaman gerekir. Bu bir ceza değil ve yeterli yaşa geldiğinde seni yeniden aramızda görmekten memnuniyet duyarız.",
+ "enforcement.lead.automation": "Hesabından, hizmetin normal kullanımını bozan otomatik etkinlik tespit ettik.",
+ "enforcement.lead.ban_evasion": "Bu hesabın, başka bir hesaba uygulanan kısıtlamayı aşmak için kullanıldığını tespit ettik.",
+ "enforcement.lead.bot": "Botunda bu kuralı ihlal eden etkinlik tespit ettik.",
+ "enforcement.lead.child_safety": "Hesabında, çocukların korunmasına ilişkin kurallarımızı ihlal eden içerik veya etkinlik tespit ettik.",
+ "enforcement.lead.community": "Bu toplulukta bu kuralı ihlal eden içerik tespit ettik.",
+ "enforcement.lead.copyright": "Hesabından, başka birinin eserini izinsiz kullanan içerik tespit ettik.",
+ "enforcement.lead.fraud": "Hesabından, insanları kandırarak para, hesap veya kişisel bilgi elde etmeye çalışan içerik tespit ettik.",
+ "enforcement.lead.harassment": "Hesabından, birini taciz eden veya birine zorbalık yapan mesajlar tespit ettik.",
+ "enforcement.lead.harmful_deception": "Hesabından, ciddi zarara yol açması muhtemel yanlış iddialar yayan içerik tespit ettik.",
+ "enforcement.lead.hate": "Hesabından, insanlara kim oldukları nedeniyle saldıran veya onları aşağılayan içerik tespit ettik.",
+ "enforcement.lead.illegal_activity": "Hesabından, yasa dışı mal veya etkinlikler sunan ya da bunlara yardım eden içerik tespit ettik.",
+ "enforcement.lead.impersonation": "Hesabının başka bir kişi veya kuruluş gibi davrandığını ya da insanları yanıltmak için sahte bir kimlik kullandığını tespit ettik.",
+ "enforcement.lead.intimate_images": "Hesabının, birinin mahrem görüntülerini o kişinin rızası olmadan paylaştığını tespit ettik.",
+ "enforcement.lead.legacy": "Bu karar hakkında kayıtlarımızda daha fazla ayrıntı yok.",
+ "enforcement.lead.malware": "Hesabından, kötü amaçlı yazılıma veya başka zararlı yazılımlara yönlendiren bağlantılar veya dosyalar tespit ettik.",
+ "enforcement.lead.payments": "Hesabında, ödeme koşullarımızı ihlal eden bir ödeme sorunu tespit ettik.",
+ "enforcement.lead.privacy": "Hesabının, birinin kişisel bilgilerini o kişinin rızası olmadan paylaştığını tespit ettik.",
+ "enforcement.lead.raids": "Hesabının bir topluluğa veya kişiye yönelik koordineli bir saldırıya katıldığını tespit ettik.",
+ "enforcement.lead.report_abuse": "Hesabının tekrar tekrar asılsız veya kötü niyetli raporlar gönderdiğini tespit ettik.",
+ "enforcement.lead.self_harm": "Hesabından, kendine zarar vermeyi teşvik eden veya bunun için talimat veren içerik tespit ettik.",
+ "enforcement.lead.service_abuse": "Hesabının {product_name} hizmetini, hizmetin işleyişine müdahale eden veya sınırlarını aşan bir şekilde kullandığını tespit ettik.",
+ "enforcement.lead.spam": "Hesabının toplu halde istenmeyen mesajlar gönderdiğini tespit ettik.",
+ "enforcement.lead.threats": "Hesabından, şiddet tehdidi içeren veya şiddeti teşvik eden mesajlar tespit ettik.",
+ "enforcement.lead.unwanted_sexual_content": "Hesabının, almayı kabul etmemiş birine cinsel içerik gönderdiğini tespit ettik.",
+ "enforcement.lead.violent_content": "Hesabının vahşi şiddet içeren veya kanlı içerik paylaştığını tespit ettik.",
+ "enforcement.lead.violent_extremism": "Hesabında, terörizm ve şiddet içeren aşırıcılığa ilişkin kurallarımızı ihlal eden içerik veya etkinlik tespit ettik.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "biyografi",
+ "enforcement.profile_field.global_name": "görünen ad",
+ "enforcement.profile_field.pronouns": "zamirler",
+ "enforcement.redress.out_of_court": "AB içindeysen, bu kararı sertifikalı bir mahkeme dışı uyuşmazlık çözüm kuruluşuna da taşıyabilirsin. Avrupa Komisyonu [bu kuruluşların bir listesini]({url}) tutar.",
+ "enforcement.redress.regulator_and_court": "Ayrıca bulunduğun AB ülkesindeki Dijital Hizmetler Koordinatörüne şikâyette bulunabilir veya mahkemeye başvurabilirsin.",
+ "enforcement.rule.adult_content": "18+ alanlar dışındaki yetişkin içerik",
+ "enforcement.rule.age_requirement": "Asgari yaş",
+ "enforcement.rule.automation": "Hizmeti bozan otomasyon",
+ "enforcement.rule.ban_evasion": "Kısıtlamaları aşma",
+ "enforcement.rule.child_safety": "Çocuk güvenliği",
+ "enforcement.rule.copyright": "Telif hakkı",
+ "enforcement.rule.fraud": "Dolandırıcılık ve sahtekârlık",
+ "enforcement.rule.harassment": "Taciz",
+ "enforcement.rule.harmful_deception": "Zararlı aldatma",
+ "enforcement.rule.hate": "Nefret ve ayrımcılık",
+ "enforcement.rule.illegal_activity": "Yasa dışı ve tehlikeli etkinlikler",
+ "enforcement.rule.impersonation": "Kimliğe bürünme ve sahte hesaplar",
+ "enforcement.rule.intimate_images": "Rıza olmadan paylaşılan mahrem görüntüler",
+ "enforcement.rule.malware": "Kötü amaçlı bağlantılar ve yazılımlar",
+ "enforcement.rule.payments": "Ödemeler",
+ "enforcement.rule.privacy": "Gizlilik ve kişisel bilgiler",
+ "enforcement.rule.raids": "Baskınlar ve koordineli saldırılar",
+ "enforcement.rule.report_abuse": "Raporlama özelliğinin kötüye kullanılması",
+ "enforcement.rule.self_harm": "Kendine zarar vermeyi teşvik",
+ "enforcement.rule.service_abuse": "Hizmetin kötüye kullanılması",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Şiddet tehditleri",
+ "enforcement.rule.unwanted_sexual_content": "İstenmeyen cinsel içerik",
+ "enforcement.rule.violent_content": "Vahşi şiddet içeriği",
+ "enforcement.rule.violent_extremism": "Terörizm ve şiddet içeren aşırıcılık",
+ "enforcement.source.own_review": "Bunu kendi incelememiz sırasında tespit ettik.",
+ "enforcement.source.report": "Bunu bir rapor üzerine inceledik.",
+ "enforcement.summary.closure": "{target, select, bot {{bot_name} adlı botunu kapattık.} other {Hesabını kapattık.}}",
+ "enforcement.summary.community_removal": "{community_name} adlı topluluğunu kaldırdık.",
+ "enforcement.summary.content_removal": "{all, select, yes {Gönderdiğin tüm mesajları kaldırdık.} other {Gönderdiğin {count, plural, one {# mesajı} other {# mesajı}} kaldırdık.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Hesabındaki bir özelliği {ends_at} tarihine kadar kısıtladık.} other {Hesabındaki bir özelliği kısıtladık.}}",
+ "enforcement.summary.profile_reset": "Profilinin bazı bölümlerini sıfırladık: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {{bot_name} adlı botunu {ends_at} tarihine kadar askıya aldık.} other {Hesabını {ends_at} tarihine kadar askıya aldık.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {{bot_name} adlı botunu kalıcı olarak askıya aldık.} other {Hesabını kalıcı olarak askıya aldık.}}",
+ "enforcement.summary.warning": "Hesabındaki etkinlik nedeniyle seni uyarıyoruz.",
+ "enforcement.welfare.self_harm": "Zor bir dönemden geçiyorsan bununla tek başına başa çıkmak zorunda değilsin. [Topluluk yönergelerimizin 3. bölümünde]({url}) destek hatları listelenir.",
"guild.bulk_create.emoji_limit": "Maksimum emoji sayısına ulaşıldı ({limit}).",
"guild.bulk_create.sticker_limit": "Maksimum çıkartma sayısına ulaşıldı ({limit}).",
"guild.bulk_create.unknown_error": "Bilinmeyen bir hata oluştu.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/uk.json b/fluxer_api/src/api/content_i18n/weblate/locales/uk.json
index 79221b343..a6f6da604 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/uk.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/uk.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Якщо я є споживачем з ЄС/ЄЕЗ, я надаю явну згоду на негайне надання цифрового контенту {product_name} {premium_tier_name} і визнаю, що втрачаю своє законне право на відмову після отримання доступу. Це не впливає на інші обов'язкові права споживача. Див. [Умови надання послуг]({terms_url}).",
"bulk_message_deletion.complete": "Ми завершили видалення твоїх повідомлень. Видалено {message_count, plural, =0 {0 повідомлень} one {# повідомлення} few {# повідомлення} many {# повідомлень} other {# повідомлень}} з {channel_count, plural, =0 {0 місць} one {# місця} few {# місць} many {# місць} other {# місць}}.",
"content.virus_detected": "Цей файл позначено як потенційно небезпечний, і його вилучено.",
+ "enforcement.automation.automated": "Це тимчасове обмеження накладено автоматично, і воно діє, доки працівник нашої команди перевіряє ситуацію.",
+ "enforcement.automation.flagged": "Це позначили автоматичні інструменти. Працівник нашої команди перевірив ситуацію та ухвалив рішення.",
+ "enforcement.automation.none": "Працівник нашої команди перевірив ситуацію та ухвалив рішення.",
+ "enforcement.effect.account_not_restricted": "Інших обмежень для твого акаунта немає.",
+ "enforcement.effect.closure": "{target, select, bot {Бот ніде не може підключатися й виконувати дії. {deletion_at} ми видалимо бота та його дані. Твій власний акаунт не обмежено.} other {Ти ніде не можеш входити в акаунт і користуватися {product_name}. {deletion_at} ми видалимо акаунт і його дані, крім даних, які ми зобов'язані зберігати за законом.}}",
+ "enforcement.effect.community_removed": "Спільнота, її канали та повідомлення більше нікому не доступні. Твій власний акаунт не обмежено.",
+ "enforcement.effect.limit_direct_messages": "Твої повідомлення в особистих розмовах сам на сам і запити на додавання в друзі не доставляються, а твій профіль приховано. У спільнотах і групових чатах люди бачать твої повідомлення згорнутими й позначеними як можливий спам.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Ти не можеш здійснювати покупки в {product_name}, доки працівник нашої команди не перевірить ситуацію.} other {Ти не можеш здійснювати покупки в {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {До цього часу ти не можеш надсилати скарги в застосунку. Щоб повідомити про незаконний вміст, скористайся контактом із питань безпеки на [сторінці з відомостями про нашу компанію]({url}).} other {До цього часу ти не можеш надсилати скарги в застосунку.}}",
+ "enforcement.effect.messages_removed": "Ми також видалили {count, plural, one {# повідомлення} few {# повідомлення} many {# повідомлень} other {# повідомлення}}.",
+ "enforcement.effect.networks_blocked": "Ми також заблокували доступ із мереж, якими користувався цей акаунт, до {date}.",
+ "enforcement.effect.no_other_accounts": "Тобі заборонено створювати або використовувати інші акаунти.",
+ "enforcement.effect.scope": "Це рішення діє всюди, де можна користуватися {product_name}.",
+ "enforcement.effect.suspension": "{target, select, bot {До цього часу бот ніде не може підключатися й виконувати дії. Твій власний акаунт не обмежено.} other {До цього часу ти ніде не можеш входити в акаунт і користуватися {product_name}. Твій акаунт, повідомлення та спільноти зберігаються.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Бот ніде не може підключатися й виконувати дії. Твій власний акаунт не обмежено.} other {Ти ніде не можеш входити в акаунт і користуватися {product_name}.}}",
+ "enforcement.effect.warning": "Твій акаунт не обмежено. Якщо це повториться, ми можемо обмежити його або тимчасово заблокувати.",
+ "enforcement.facts.channel": "{count, plural, one {# повідомлення} few {# повідомлення} many {# повідомлень} other {# повідомлення}} у каналі #{channel} спільноти {community}, {range, select, single {{start}} other {у період з {start} по {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, one {# повідомлення, опубліковане} few {# повідомлення, опубліковані} many {# повідомлень, опублікованих} other {# повідомлення, опублікованого}} у каналі #{channel}, {range, select, single {{start}} other {у період з {start} по {end}}}.",
+ "enforcement.facts.copyright": "Правовласник або відповідне право: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, one {# повідомлення} few {# повідомлення} many {# повідомлень} other {# повідомлення}} в особистому листуванні, {range, select, single {{start}} other {у період з {start} по {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, one {# повідомлення} few {# повідомлення} many {# повідомлень} other {# повідомлення}} в особистому листуванні за {month}.",
+ "enforcement.facts.group_message": "{count, plural, one {# повідомлення} few {# повідомлення} many {# повідомлень} other {# повідомлення}} у груповому чаті, {range, select, single {{start}} other {у період з {start} по {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, one {# повідомлення} few {# повідомлення} many {# повідомлень} other {# повідомлення}} у груповому чаті за {month}.",
+ "enforcement.facts.payment": "Платіж у твоєму акаунті від {date}.",
+ "enforcement.facts.profile": "Твій профіль: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, one {# повідомлення} few {# повідомлення} many {# повідомлень} other {# повідомлення}} у розмові, якої більше не існує, {range, select, single {{start}} other {у період з {start} по {end}}}.",
+ "enforcement.lead.adult_content": "Ми виявили, що з твого акаунта публікувався вміст сексуального характеру поза просторами з позначкою 18+.",
+ "enforcement.lead.age_requirement": "Щоб користуватися {product_name}, потрібно досягти мінімального віку, встановленого у твоїй країні. Це не покарання, і ти зможеш повернутися, коли досягнеш потрібного віку.",
+ "enforcement.lead.automation": "Ми виявили автоматизовану активність із твого акаунта, яка заважала нормальній роботі сервісу.",
+ "enforcement.lead.ban_evasion": "Ми виявили, що цей акаунт використовувався для обходу обмеження, накладеного на інший акаунт.",
+ "enforcement.lead.bot": "Ми виявили активність твого бота, що порушує це правило.",
+ "enforcement.lead.child_safety": "Ми виявили у твоєму акаунті вміст або дії, що порушують наші правила щодо захисту дітей.",
+ "enforcement.lead.community": "Ми виявили в цій спільноті вміст, що порушує це правило.",
+ "enforcement.lead.copyright": "Ми виявили, що з твого акаунта публікувався вміст, у якому без дозволу використано чужі твори.",
+ "enforcement.lead.fraud": "Ми виявили, що з твого акаунта публікувався вміст, за допомогою якого в людей намагалися обманом виманити гроші, акаунти чи особисті дані.",
+ "enforcement.lead.harassment": "Ми виявили, що з твого акаунта надсилалися повідомлення, у яких когось переслідували або цькували.",
+ "enforcement.lead.harmful_deception": "Ми виявили, що з твого акаунта поширювалися неправдиві твердження, які можуть завдати серйозної шкоди.",
+ "enforcement.lead.hate": "Ми виявили, що з твого акаунта публікувався вміст, у якому людей атакують або принижують через те, ким вони є.",
+ "enforcement.lead.illegal_activity": "Ми виявили, що з твого акаунта публікувався вміст, який пропонує незаконні товари чи послуги або допомагає в незаконній діяльності.",
+ "enforcement.lead.impersonation": "Ми виявили, що твій акаунт видавав себе за іншу людину чи організацію або використовував вигадану особу, щоб вводити людей в оману.",
+ "enforcement.lead.intimate_images": "Ми виявили, що з твого акаунта поширювалися інтимні зображення людини без її згоди.",
+ "enforcement.lead.legacy": "Ми не маємо додаткових відомостей про це рішення.",
+ "enforcement.lead.malware": "Ми виявили, що з твого акаунта поширювалися посилання або файли, які ведуть до шкідливих програм чи іншого небезпечного ПЗ.",
+ "enforcement.lead.payments": "Ми виявили проблему з платежем у твоєму акаунті, яка порушує наші умови оплати.",
+ "enforcement.lead.privacy": "Ми виявили, що з твого акаунта поширювалися чужі персональні дані без згоди їхнього власника.",
+ "enforcement.lead.raids": "Ми виявили, що твій акаунт брав участь у скоординованій атаці на спільноту чи людину.",
+ "enforcement.lead.report_abuse": "Ми виявили, що з твого акаунта неодноразово надсилалися неправдиві або недобросовісні скарги.",
+ "enforcement.lead.self_harm": "Ми виявили, що з твого акаунта публікувався вміст, який закликає до самоушкодження або містить інструкції щодо нього.",
+ "enforcement.lead.service_abuse": "Ми виявили, що твій акаунт використовував {product_name} так, що це заважає роботі сервісу або дає змогу обходити його обмеження.",
+ "enforcement.lead.spam": "Ми виявили, що з твого акаунта масово надсилалися небажані повідомлення.",
+ "enforcement.lead.threats": "Ми виявили, що з твого акаунта надсилалися повідомлення з погрозами насильства або закликами до нього.",
+ "enforcement.lead.unwanted_sexual_content": "Ми виявили, що з твого акаунта людині надсилався вміст сексуального характеру, на отримання якого вона не давала згоди.",
+ "enforcement.lead.violent_content": "Ми виявили, що з твого акаунта поширювалися сцени жорстокого насильства або кривавий вміст.",
+ "enforcement.lead.violent_extremism": "Ми виявили у твоєму акаунті вміст або дії, що порушують наші правила щодо тероризму та насильницького екстремізму.",
+ "enforcement.profile_field.avatar": "аватар",
+ "enforcement.profile_field.banner": "банер",
+ "enforcement.profile_field.bio": "біографія",
+ "enforcement.profile_field.global_name": "ім'я для відображення",
+ "enforcement.profile_field.pronouns": "займенники",
+ "enforcement.redress.out_of_court": "Якщо ти перебуваєш у ЄС, ти також можеш передати спір щодо цього рішення до сертифікованого органу позасудового врегулювання спорів. Європейська комісія веде [перелік цих органів]({url}).",
+ "enforcement.redress.regulator_and_court": "Ти також можеш подати скаргу координатору цифрових послуг у своїй країні ЄС або звернутися до суду.",
+ "enforcement.rule.adult_content": "Вміст для дорослих поза просторами 18+",
+ "enforcement.rule.age_requirement": "Мінімальний вік",
+ "enforcement.rule.automation": "Автоматизація, що заважає роботі сервісу",
+ "enforcement.rule.ban_evasion": "Обхід обмежень",
+ "enforcement.rule.child_safety": "Безпека дітей",
+ "enforcement.rule.copyright": "Авторське право",
+ "enforcement.rule.fraud": "Шахрайство та обман",
+ "enforcement.rule.harassment": "Переслідування та цькування",
+ "enforcement.rule.harmful_deception": "Шкідлива дезінформація",
+ "enforcement.rule.hate": "Ненависть і дискримінація",
+ "enforcement.rule.illegal_activity": "Незаконна та небезпечна діяльність",
+ "enforcement.rule.impersonation": "Видавання себе за інших і фейкові акаунти",
+ "enforcement.rule.intimate_images": "Поширення інтимних зображень без згоди",
+ "enforcement.rule.malware": "Шкідливі посилання та програми",
+ "enforcement.rule.payments": "Платежі",
+ "enforcement.rule.privacy": "Конфіденційність і персональні дані",
+ "enforcement.rule.raids": "Рейди та скоординовані атаки",
+ "enforcement.rule.report_abuse": "Зловживання скаргами",
+ "enforcement.rule.self_harm": "Пропаганда самоушкодження",
+ "enforcement.rule.service_abuse": "Зловживання сервісом",
+ "enforcement.rule.spam": "Спам",
+ "enforcement.rule.threats": "Погрози насильством",
+ "enforcement.rule.unwanted_sexual_content": "Небажаний вміст сексуального характеру",
+ "enforcement.rule.violent_content": "Сцени жорстокого насильства",
+ "enforcement.rule.violent_extremism": "Тероризм і насильницький екстремізм",
+ "enforcement.source.own_review": "Ми виявили це під час власної перевірки.",
+ "enforcement.source.report": "Ми розглянули це після скарги.",
+ "enforcement.summary.closure": "{target, select, bot {Ми закрили твого бота {bot_name}.} other {Ми закрили твій акаунт.}}",
+ "enforcement.summary.community_removal": "Ми видалили твою спільноту {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {Ми видалили всі твої повідомлення.} other {Ми видалили {count, plural, one {# твоє повідомлення} few {# твої повідомлення} many {# твоїх повідомлень} other {# твого повідомлення}}.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Ми обмежили одну з функцій твого акаунта до {ends_at}.} other {Ми обмежили одну з функцій твого акаунта.}}",
+ "enforcement.summary.profile_reset": "Ми скинули частину даних твого профілю: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Ми тимчасово заблокували твого бота {bot_name} до {ends_at}.} other {Ми тимчасово заблокували твій акаунт до {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Ми назавжди заблокували твого бота {bot_name}.} other {Ми назавжди заблокували твій акаунт.}}",
+ "enforcement.summary.warning": "Ми попереджаємо тебе через активність у твоєму акаунті.",
+ "enforcement.welfare.self_harm": "Якщо тобі зараз важко, не обов'язково долати це самотужки. У [розділі 3 правил нашої спільноти]({url}) наведено телефони довіри.",
"guild.bulk_create.emoji_limit": "Досягнуто максимальної кількості емоджі ({limit}).",
"guild.bulk_create.sticker_limit": "Досягнуто максимальної кількості наліпок ({limit}).",
"guild.bulk_create.unknown_error": "Невідома помилка.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/vi.json b/fluxer_api/src/api/content_i18n/weblate/locales/vi.json
index f25ad1fc6..58f33c0a3 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/vi.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/vi.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "Nếu tôi là người tiêu dùng EU/EEA, tôi đồng ý rõ ràng rằng nội dung kỹ thuật số {product_name} {premium_tier_name} được cung cấp ngay lập tức và thừa nhận rằng tôi mất quyền hủy bỏ theo luật định sau khi có quyền truy cập. Điều này không ảnh hưởng đến các quyền lợi người tiêu dùng bắt buộc khác. Xem [Điều khoản dịch vụ]({terms_url}).",
"bulk_message_deletion.complete": "Chúng tôi đã xóa xong tin nhắn của bạn. Đã xóa {message_count, plural, =0 {0 tin nhắn} other {# tin nhắn}} khỏi {channel_count, plural, =0 {0 nơi} other {# nơi}}.",
"content.virus_detected": "Tệp đó bị gắn cờ là có khả năng không an toàn và đã bị xóa.",
+ "enforcement.automation.automated": "Đây là giới hạn tạm thời được áp dụng tự động trong khi một người trong đội ngũ của chúng tôi xem xét.",
+ "enforcement.automation.flagged": "Công cụ tự động đã gắn cờ việc này. Một người trong đội ngũ của chúng tôi đã xem xét và đưa ra quyết định.",
+ "enforcement.automation.none": "Một người trong đội ngũ của chúng tôi đã xem xét việc này và đưa ra quyết định.",
+ "enforcement.effect.account_not_restricted": "Ngoài việc này, tài khoản của bạn không bị hạn chế gì khác.",
+ "enforcement.effect.closure": "{target, select, bot {Bot không thể kết nối hoặc hoạt động ở bất cứ đâu. Chúng tôi sẽ xóa bot và dữ liệu của bot vào {deletion_at}. Tài khoản của chính bạn không bị hạn chế.} other {Bạn không thể đăng nhập hoặc sử dụng {product_name} ở bất cứ đâu. Chúng tôi sẽ xóa tài khoản và dữ liệu của tài khoản vào {deletion_at}, trừ dữ liệu mà pháp luật yêu cầu chúng tôi lưu giữ.}}",
+ "enforcement.effect.community_removed": "Cộng đồng cùng các kênh và tin nhắn của cộng đồng không còn khả dụng với bất kỳ ai. Tài khoản của chính bạn không bị hạn chế.",
+ "enforcement.effect.limit_direct_messages": "Tin nhắn riêng một-một và lời mời kết bạn của bạn sẽ không được chuyển đi, và hồ sơ của bạn bị ẩn. Trong các cộng đồng và cuộc trò chuyện nhóm, mọi người sẽ thấy tin nhắn của bạn bị thu gọn và gắn nhãn có thể là spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {Bạn không thể mua hàng trên {product_name} cho đến khi một người trong đội ngũ của chúng tôi xem xét việc này.} other {Bạn không thể mua hàng trên {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {Bạn không thể gửi báo cáo trong ứng dụng cho đến thời điểm đó. Để báo cáo nội dung bất hợp pháp, hãy dùng kênh báo cáo an toàn trên [trang thông tin công ty]({url}) của chúng tôi.} other {Bạn không thể gửi báo cáo trong ứng dụng cho đến thời điểm đó.}}",
+ "enforcement.effect.messages_removed": "Chúng tôi cũng đã xóa {count, plural, other {# tin nhắn}}.",
+ "enforcement.effect.networks_blocked": "Cho đến {date}, chúng tôi cũng chặn quyền truy cập từ các mạng mà tài khoản này đã dùng.",
+ "enforcement.effect.no_other_accounts": "Bạn không được phép tạo hoặc sử dụng tài khoản khác.",
+ "enforcement.effect.scope": "Quyết định này áp dụng ở mọi nơi có {product_name}.",
+ "enforcement.effect.suspension": "{target, select, bot {Bot không thể kết nối hoặc hoạt động ở bất cứ đâu cho đến thời điểm đó. Tài khoản của chính bạn không bị hạn chế.} other {Bạn không thể đăng nhập hoặc sử dụng {product_name} ở bất cứ đâu cho đến thời điểm đó. Tài khoản, tin nhắn và cộng đồng của bạn vẫn được giữ lại.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {Bot không thể kết nối hoặc hoạt động ở bất cứ đâu. Tài khoản của chính bạn không bị hạn chế.} other {Bạn không thể đăng nhập hoặc sử dụng {product_name} ở bất cứ đâu.}}",
+ "enforcement.effect.warning": "Tài khoản của bạn không bị hạn chế. Nếu điều này xảy ra lần nữa, chúng tôi có thể giới hạn hoặc đình chỉ tài khoản.",
+ "enforcement.facts.channel": "{count, plural, other {# tin nhắn}} được gửi trong #{channel} của {community}, {range, select, single {vào {start}} other {từ {start} đến {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, other {# tin nhắn}} được đăng trong #{channel}, {range, select, single {vào {start}} other {từ {start} đến {end}}}.",
+ "enforcement.facts.copyright": "Chủ sở hữu quyền hoặc quyền liên quan: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, other {# tin nhắn}} được gửi trong một cuộc trò chuyện tin nhắn trực tiếp, {range, select, single {vào {start}} other {từ {start} đến {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, other {# tin nhắn}} được gửi trong một cuộc trò chuyện tin nhắn trực tiếp trong {month}.",
+ "enforcement.facts.group_message": "{count, plural, other {# tin nhắn}} được gửi trong một cuộc trò chuyện nhóm, {range, select, single {vào {start}} other {từ {start} đến {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, other {# tin nhắn}} được gửi trong một cuộc trò chuyện nhóm trong {month}.",
+ "enforcement.facts.payment": "Một khoản thanh toán trên tài khoản của bạn vào {date}.",
+ "enforcement.facts.profile": "Hồ sơ của bạn: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, other {# tin nhắn}} được gửi trong một cuộc trò chuyện không còn tồn tại, {range, select, single {vào {start}} other {từ {start} đến {end}}}.",
+ "enforcement.lead.adult_content": "Chúng tôi phát hiện nội dung tình dục từ tài khoản của bạn bên ngoài không gian được đánh dấu 18+.",
+ "enforcement.lead.age_requirement": "Bạn cần đạt độ tuổi tối thiểu tại quốc gia của mình để sử dụng {product_name}. Đây không phải là hình phạt, và bạn luôn được chào đón quay lại khi đủ tuổi.",
+ "enforcement.lead.automation": "Chúng tôi phát hiện hoạt động tự động từ tài khoản của bạn đã làm gián đoạn việc sử dụng dịch vụ bình thường.",
+ "enforcement.lead.ban_evasion": "Chúng tôi phát hiện tài khoản này đã được dùng để lách một hạn chế áp dụng cho tài khoản khác.",
+ "enforcement.lead.bot": "Chúng tôi phát hiện hoạt động từ bot của bạn vi phạm quy tắc này.",
+ "enforcement.lead.child_safety": "Chúng tôi phát hiện nội dung hoặc hoạt động trên tài khoản của bạn vi phạm quy tắc của chúng tôi về bảo vệ trẻ em.",
+ "enforcement.lead.community": "Chúng tôi phát hiện nội dung trong cộng đồng này vi phạm quy tắc này.",
+ "enforcement.lead.copyright": "Chúng tôi phát hiện nội dung từ tài khoản của bạn sử dụng tác phẩm của người khác mà không được phép.",
+ "enforcement.lead.fraud": "Chúng tôi phát hiện nội dung từ tài khoản của bạn tìm cách lừa người khác để chiếm đoạt tiền, tài khoản hoặc thông tin cá nhân.",
+ "enforcement.lead.harassment": "Chúng tôi phát hiện tin nhắn từ tài khoản của bạn quấy rối hoặc bắt nạt người khác.",
+ "enforcement.lead.harmful_deception": "Chúng tôi phát hiện nội dung từ tài khoản của bạn lan truyền thông tin sai sự thật có khả năng gây hại nghiêm trọng.",
+ "enforcement.lead.hate": "Chúng tôi phát hiện nội dung từ tài khoản của bạn tấn công hoặc hạ thấp người khác dựa trên danh tính của họ.",
+ "enforcement.lead.illegal_activity": "Chúng tôi phát hiện nội dung từ tài khoản của bạn cung cấp hoặc hỗ trợ hàng hóa hay hoạt động bất hợp pháp.",
+ "enforcement.lead.impersonation": "Chúng tôi phát hiện tài khoản của bạn đã mạo danh người hoặc tổ chức khác, hoặc dùng danh tính giả để đánh lừa người khác.",
+ "enforcement.lead.intimate_images": "Chúng tôi phát hiện tài khoản của bạn đã chia sẻ hình ảnh nhạy cảm của một người mà không có sự đồng ý của họ.",
+ "enforcement.lead.legacy": "Chúng tôi không có thêm thông tin chi tiết nào được lưu lại về quyết định này.",
+ "enforcement.lead.malware": "Chúng tôi phát hiện liên kết hoặc tệp từ tài khoản của bạn dẫn đến phần mềm độc hại hoặc phần mềm có hại khác.",
+ "enforcement.lead.payments": "Chúng tôi phát hiện một vấn đề thanh toán trên tài khoản của bạn vi phạm điều khoản thanh toán của chúng tôi.",
+ "enforcement.lead.privacy": "Chúng tôi phát hiện tài khoản của bạn đã chia sẻ thông tin cá nhân của một người mà không có sự đồng ý của họ.",
+ "enforcement.lead.raids": "Chúng tôi phát hiện tài khoản của bạn đã tham gia một cuộc tấn công có phối hợp nhắm vào một cộng đồng hoặc một người.",
+ "enforcement.lead.report_abuse": "Chúng tôi phát hiện tài khoản của bạn đã nhiều lần gửi các báo cáo sai sự thật hoặc có ác ý.",
+ "enforcement.lead.self_harm": "Chúng tôi phát hiện nội dung từ tài khoản của bạn khuyến khích hoặc hướng dẫn cách tự làm hại bản thân.",
+ "enforcement.lead.service_abuse": "Chúng tôi phát hiện tài khoản của bạn đã sử dụng {product_name} theo cách gây cản trở dịch vụ hoặc lách các giới hạn của dịch vụ.",
+ "enforcement.lead.spam": "Chúng tôi phát hiện tài khoản của bạn đã gửi hàng loạt tin nhắn không mong muốn.",
+ "enforcement.lead.threats": "Chúng tôi phát hiện tin nhắn từ tài khoản của bạn đe dọa hoặc kích động bạo lực.",
+ "enforcement.lead.unwanted_sexual_content": "Chúng tôi phát hiện tài khoản của bạn đã gửi nội dung tình dục cho người chưa đồng ý nhận.",
+ "enforcement.lead.violent_content": "Chúng tôi phát hiện tài khoản của bạn đã chia sẻ nội dung bạo lực ghê rợn hoặc máu me.",
+ "enforcement.lead.violent_extremism": "Chúng tôi phát hiện nội dung hoặc hoạt động trên tài khoản của bạn vi phạm quy tắc của chúng tôi về khủng bố và chủ nghĩa cực đoan bạo lực.",
+ "enforcement.profile_field.avatar": "ảnh đại diện",
+ "enforcement.profile_field.banner": "ảnh bìa",
+ "enforcement.profile_field.bio": "tiểu sử",
+ "enforcement.profile_field.global_name": "tên hiển thị",
+ "enforcement.profile_field.pronouns": "đại từ nhân xưng",
+ "enforcement.redress.out_of_court": "Nếu bạn ở EU, bạn cũng có thể đưa quyết định này đến một cơ quan giải quyết tranh chấp ngoài tòa án đã được chứng nhận. Ủy ban châu Âu duy trì một [danh sách các cơ quan này]({url}).",
+ "enforcement.redress.regulator_and_court": "Bạn cũng có thể khiếu nại với Điều phối viên Dịch vụ Kỹ thuật số tại quốc gia EU của bạn, hoặc khởi kiện ra tòa.",
+ "enforcement.rule.adult_content": "Nội dung người lớn bên ngoài không gian 18+",
+ "enforcement.rule.age_requirement": "Độ tuổi tối thiểu",
+ "enforcement.rule.automation": "Tự động hóa gây gián đoạn",
+ "enforcement.rule.ban_evasion": "Lách hạn chế",
+ "enforcement.rule.child_safety": "An toàn trẻ em",
+ "enforcement.rule.copyright": "Bản quyền",
+ "enforcement.rule.fraud": "Lừa đảo và gian lận",
+ "enforcement.rule.harassment": "Quấy rối",
+ "enforcement.rule.harmful_deception": "Lừa dối gây hại",
+ "enforcement.rule.hate": "Thù ghét và phân biệt đối xử",
+ "enforcement.rule.illegal_activity": "Hoạt động bất hợp pháp và nguy hiểm",
+ "enforcement.rule.impersonation": "Mạo danh và tài khoản giả",
+ "enforcement.rule.intimate_images": "Hình ảnh nhạy cảm bị chia sẻ khi chưa có sự đồng ý",
+ "enforcement.rule.malware": "Liên kết độc hại và phần mềm độc hại",
+ "enforcement.rule.payments": "Thanh toán",
+ "enforcement.rule.privacy": "Quyền riêng tư và thông tin cá nhân",
+ "enforcement.rule.raids": "Raid và tấn công có phối hợp",
+ "enforcement.rule.report_abuse": "Lạm dụng báo cáo",
+ "enforcement.rule.self_harm": "Cổ xúy tự làm hại bản thân",
+ "enforcement.rule.service_abuse": "Lạm dụng dịch vụ",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Đe dọa bạo lực",
+ "enforcement.rule.unwanted_sexual_content": "Nội dung tình dục không mong muốn",
+ "enforcement.rule.violent_content": "Bạo lực ghê rợn",
+ "enforcement.rule.violent_extremism": "Khủng bố và chủ nghĩa cực đoan bạo lực",
+ "enforcement.source.own_review": "Chúng tôi phát hiện việc này trong quá trình tự rà soát.",
+ "enforcement.source.report": "Chúng tôi đã xem xét việc này sau khi nhận được báo cáo.",
+ "enforcement.summary.closure": "{target, select, bot {Chúng tôi đã đóng bot {bot_name} của bạn.} other {Chúng tôi đã đóng tài khoản của bạn.}}",
+ "enforcement.summary.community_removal": "Chúng tôi đã xóa cộng đồng {community_name} của bạn.",
+ "enforcement.summary.content_removal": "{all, select, yes {Chúng tôi đã xóa tất cả tin nhắn bạn đã gửi.} other {Chúng tôi đã xóa {count, plural, other {# tin nhắn}} bạn đã gửi.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {Chúng tôi đã giới hạn một tính năng trên tài khoản của bạn cho đến {ends_at}.} other {Chúng tôi đã giới hạn một tính năng trên tài khoản của bạn.}}",
+ "enforcement.summary.profile_reset": "Chúng tôi đã đặt lại một phần hồ sơ của bạn: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {Chúng tôi đã đình chỉ bot {bot_name} của bạn cho đến {ends_at}.} other {Chúng tôi đã đình chỉ tài khoản của bạn cho đến {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {Chúng tôi đã cấm bot {bot_name} của bạn.} other {Chúng tôi đã cấm tài khoản của bạn.}}",
+ "enforcement.summary.warning": "Chúng tôi cảnh báo bạn về hoạt động trên tài khoản của bạn.",
+ "enforcement.welfare.self_harm": "Nếu bạn đang trải qua giai đoạn khó khăn, bạn không phải đối mặt một mình. [Mục 3 trong Nguyên tắc Cộng đồng của chúng tôi]({url}) có danh sách các đường dây hỗ trợ.",
"guild.bulk_create.emoji_limit": "Đã đạt đến số lượng biểu tượng cảm xúc tối đa ({limit}).",
"guild.bulk_create.sticker_limit": "Đã đạt đến số lượng tối đa nhãn dán ({limit}).",
"guild.bulk_create.unknown_error": "Đã xảy ra lỗi không xác định.",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/zh-CN.json b/fluxer_api/src/api/content_i18n/weblate/locales/zh-CN.json
index 25e836814..871def8e5 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/zh-CN.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/zh-CN.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "如果我是欧盟/欧洲经济区消费者,我明确同意立即提供 {product_name} {premium_tier_name} 数字内容,并知晓一旦获得访问权限,我将失去法定撤销权。这不影响其他强制性消费者权利。请参阅[服务条款]({terms_url})。",
"bulk_message_deletion.complete": "我们已删除你的消息。从 {channel_count, plural, =0 {0 个位置} other {# 个位置}} 中移除了 {message_count, plural, =0 {0 条消息} other {# 条消息}}。",
"content.virus_detected": "该文件被标记为可能存在风险,已被移除。",
+ "enforcement.automation.automated": "这是一项自动实施的临时限制,在我们团队的工作人员审核期间有效。",
+ "enforcement.automation.flagged": "自动化工具标记了此事。我们团队的工作人员进行了审核并做出了决定。",
+ "enforcement.automation.none": "我们团队的工作人员审核了此事并做出了决定。",
+ "enforcement.effect.account_not_restricted": "除此之外,你的账号未受到限制。",
+ "enforcement.effect.closure": "{target, select, bot {该机器人在任何地方都无法连接或执行操作。我们将于 {deletion_at} 删除该机器人及其数据。你自己的账号未受到限制。} other {你在任何地方都无法登录或使用 {product_name}。我们将于 {deletion_at} 删除该账号及其数据,法律要求我们保留的数据除外。}}",
+ "enforcement.effect.community_removed": "该社区及其频道和消息已不再对任何人开放。你自己的账号未受到限制。",
+ "enforcement.effect.limit_direct_messages": "你的一对一私信和好友请求不会被送达,你的个人资料也会被隐藏。在社区和群聊中,其他人看到的你的消息会被折叠,并标记为可能是垃圾信息。",
+ "enforcement.effect.limit_purchases": "{review, select, yes {在我们团队的工作人员审核此事之前,你无法在 {product_name} 上购买。} other {你无法在 {product_name} 上购买。}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {在此之前,你无法在应用内提交举报。如需举报违法内容,请使用我们[公司信息页面]({url})上的安全举报渠道。} other {在此之前,你无法在应用内提交举报。}}",
+ "enforcement.effect.messages_removed": "我们还删除了 {count, plural, other {# 条消息}}。",
+ "enforcement.effect.networks_blocked": "我们还封锁了此账号使用过的网络,封锁持续至 {date}。",
+ "enforcement.effect.no_other_accounts": "你不得创建或使用其他账号。",
+ "enforcement.effect.scope": "此决定适用于所有提供 {product_name} 的地方。",
+ "enforcement.effect.suspension": "{target, select, bot {在此之前,该机器人在任何地方都无法连接或执行操作。你自己的账号未受到限制。} other {在此之前,你在任何地方都无法登录或使用 {product_name}。你的账号、消息和社区都会保留。}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {该机器人在任何地方都无法连接或执行操作。你自己的账号未受到限制。} other {你在任何地方都无法登录或使用 {product_name}。}}",
+ "enforcement.effect.warning": "你的账号未受到限制。如果再次发生这种情况,我们可能会限制你的账号或将其暂时封禁。",
+ "enforcement.facts.channel": "在 {community} 的 #{channel} 中发送的 {count, plural, other {# 条消息}},{range, select, single {时间为 {start}} other {时间为 {start} 至 {end}}}。",
+ "enforcement.facts.community_channel": "在 #{channel} 中发布的 {count, plural, other {# 条消息}},{range, select, single {时间为 {start}} other {时间为 {start} 至 {end}}}。",
+ "enforcement.facts.copyright": "权利人或相关权利:{rights_holder}。",
+ "enforcement.facts.direct_message": "在私信对话中发送的 {count, plural, other {# 条消息}},{range, select, single {时间为 {start}} other {时间为 {start} 至 {end}}}。",
+ "enforcement.facts.direct_message_month": "于 {month} 在私信对话中发送的 {count, plural, other {# 条消息}}。",
+ "enforcement.facts.group_message": "在群聊中发送的 {count, plural, other {# 条消息}},{range, select, single {时间为 {start}} other {时间为 {start} 至 {end}}}。",
+ "enforcement.facts.group_message_month": "于 {month} 在群聊中发送的 {count, plural, other {# 条消息}}。",
+ "enforcement.facts.payment": "{date} 在你的账号上进行的一笔付款。",
+ "enforcement.facts.profile": "你的个人资料:{fields}。",
+ "enforcement.facts.unknown_location": "在一个已不存在的对话中发送的 {count, plural, other {# 条消息}},{range, select, single {时间为 {start}} other {时间为 {start} 至 {end}}}。",
+ "enforcement.lead.adult_content": "我们发现你的账号在未标记为 18+ 的空间中发布了性内容。",
+ "enforcement.lead.age_requirement": "你需要达到所在国家或地区的最低年龄才能使用 {product_name}。这不是惩罚,等你达到年龄后,欢迎回来。",
+ "enforcement.lead.automation": "我们发现你的账号存在自动化活动,干扰了服务的正常使用。",
+ "enforcement.lead.ban_evasion": "我们发现此账号被用于规避对另一个账号的限制。",
+ "enforcement.lead.bot": "我们发现你的机器人有违反此规则的活动。",
+ "enforcement.lead.child_safety": "我们在你的账号上发现了违反我们儿童保护规则的内容或活动。",
+ "enforcement.lead.community": "我们在此社区中发现了违反此规则的内容。",
+ "enforcement.lead.copyright": "我们发现你的账号发布的内容未经许可使用了他人的作品。",
+ "enforcement.lead.fraud": "我们发现你的账号发布的内容试图骗取他人的钱财、账号或个人信息。",
+ "enforcement.lead.harassment": "我们发现你的账号发送了骚扰或欺凌他人的消息。",
+ "enforcement.lead.harmful_deception": "我们发现你的账号发布的内容传播了可能造成严重伤害的虚假说法。",
+ "enforcement.lead.hate": "我们发现你的账号发布的内容因他人的身份而攻击或贬低他们。",
+ "enforcement.lead.illegal_activity": "我们发现你的账号发布的内容提供或协助违法商品或活动。",
+ "enforcement.lead.impersonation": "我们发现你的账号冒充了其他个人或组织,或使用虚假身份误导他人。",
+ "enforcement.lead.intimate_images": "我们发现你的账号未经当事人同意分享了其私密图片。",
+ "enforcement.lead.legacy": "关于此决定,我们没有更多记录在案的详情。",
+ "enforcement.lead.malware": "我们发现你的账号发布的链接或文件指向恶意软件或其他有害软件。",
+ "enforcement.lead.payments": "我们发现你的账号存在违反我们付款条款的付款问题。",
+ "enforcement.lead.privacy": "我们发现你的账号未经当事人同意分享了其个人信息。",
+ "enforcement.lead.raids": "我们发现你的账号参与了针对某个社区或个人的协同攻击。",
+ "enforcement.lead.report_abuse": "我们发现你的账号反复提交虚假或恶意的举报。",
+ "enforcement.lead.self_harm": "我们发现你的账号发布的内容鼓励自残或提供自残方法。",
+ "enforcement.lead.service_abuse": "我们发现你的账号以干扰服务或规避服务限制的方式使用 {product_name}。",
+ "enforcement.lead.spam": "我们发现你的账号大量发送了他人不想收到的消息。",
+ "enforcement.lead.threats": "我们发现你的账号发送了威胁或煽动暴力的消息。",
+ "enforcement.lead.unwanted_sexual_content": "我们发现你的账号向未同意接收的人发送了性内容。",
+ "enforcement.lead.violent_content": "我们发现你的账号分享了血腥暴力内容。",
+ "enforcement.lead.violent_extremism": "我们在你的账号上发现了违反我们恐怖主义和暴力极端主义规则的内容或活动。",
+ "enforcement.profile_field.avatar": "头像",
+ "enforcement.profile_field.banner": "横幅",
+ "enforcement.profile_field.bio": "个人简介",
+ "enforcement.profile_field.global_name": "显示名称",
+ "enforcement.profile_field.pronouns": "代词",
+ "enforcement.redress.out_of_court": "如果你身在欧盟,还可以将此决定提交给经认证的庭外争议解决机构。欧盟委员会维护着一份[这些机构的列表]({url})。",
+ "enforcement.redress.regulator_and_court": "你还可以向你所在欧盟国家的数字服务协调员投诉,或向法院提起诉讼。",
+ "enforcement.rule.adult_content": "18+ 空间以外的成人内容",
+ "enforcement.rule.age_requirement": "最低年龄",
+ "enforcement.rule.automation": "破坏性自动化",
+ "enforcement.rule.ban_evasion": "规避限制",
+ "enforcement.rule.child_safety": "儿童安全",
+ "enforcement.rule.copyright": "版权",
+ "enforcement.rule.fraud": "诈骗与欺诈",
+ "enforcement.rule.harassment": "骚扰",
+ "enforcement.rule.harmful_deception": "有害的虚假信息",
+ "enforcement.rule.hate": "仇恨与歧视",
+ "enforcement.rule.illegal_activity": "违法和危险活动",
+ "enforcement.rule.impersonation": "冒充与虚假账号",
+ "enforcement.rule.intimate_images": "未经同意分享私密图片",
+ "enforcement.rule.malware": "恶意链接与恶意软件",
+ "enforcement.rule.payments": "付款",
+ "enforcement.rule.privacy": "隐私与个人信息",
+ "enforcement.rule.raids": "突袭与协同攻击",
+ "enforcement.rule.report_abuse": "滥用举报",
+ "enforcement.rule.self_harm": "宣扬自残",
+ "enforcement.rule.service_abuse": "滥用服务",
+ "enforcement.rule.spam": "垃圾信息",
+ "enforcement.rule.threats": "暴力威胁",
+ "enforcement.rule.unwanted_sexual_content": "不请自来的性内容",
+ "enforcement.rule.violent_content": "血腥暴力",
+ "enforcement.rule.violent_extremism": "恐怖主义与暴力极端主义",
+ "enforcement.source.own_review": "我们在自行审查中发现了此事。",
+ "enforcement.source.report": "我们在收到举报后审核了此事。",
+ "enforcement.summary.closure": "{target, select, bot {我们关闭了你的机器人 {bot_name}。} other {我们关闭了你的账号。}}",
+ "enforcement.summary.community_removal": "我们删除了你的社区 {community_name}。",
+ "enforcement.summary.content_removal": "{all, select, yes {我们删除了你发送的所有消息。} other {我们删除了你发送的 {count, plural, other {# 条消息}}。}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {我们限制了你账号上的一项功能,直至 {ends_at}。} other {我们限制了你账号上的一项功能。}}",
+ "enforcement.summary.profile_reset": "我们重置了你个人资料的部分内容:{fields}。",
+ "enforcement.summary.suspension": "{target, select, bot {我们暂时封禁了你的机器人 {bot_name},直至 {ends_at}。} other {我们暂时封禁了你的账号,直至 {ends_at}。}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {我们永久封禁了你的机器人 {bot_name}。} other {我们永久封禁了你的账号。}}",
+ "enforcement.summary.warning": "我们就你账号上的活动向你发出警告。",
+ "enforcement.welfare.self_harm": "如果你正经历困难,你不必独自面对。[我们社区准则的第 3 节]({url})列出了支持热线。",
"guild.bulk_create.emoji_limit": "已达到最大表情符号数量 ({limit})。",
"guild.bulk_create.sticker_limit": "已达到最大贴纸数量 ({limit})。",
"guild.bulk_create.unknown_error": "发生未知错误。",
diff --git a/fluxer_api/src/api/content_i18n/weblate/locales/zh-TW.json b/fluxer_api/src/api/content_i18n/weblate/locales/zh-TW.json
index 64b31b4fc..d42f98cd6 100644
--- a/fluxer_api/src/api/content_i18n/weblate/locales/zh-TW.json
+++ b/fluxer_api/src/api/content_i18n/weblate/locales/zh-TW.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "若我是歐盟/歐洲經濟區消費者,我明確同意立即提供 {product_name} {premium_tier_name} 數位內容,並了解一旦取得存取權,即喪失法定撤回權。這不影響其他強制性消費者權益。請參閱[服務條款]({terms_url})。",
"bulk_message_deletion.complete": "我們已刪除你的訊息。從 {channel_count, plural, =0 {0 個位置} other {# 個位置}} 中移除了 {message_count, plural, =0 {0 則訊息} other {# 則訊息}}。",
"content.virus_detected": "該檔案已被標記為可能不安全,並已移除。",
+ "enforcement.automation.automated": "這是一項自動施加的暫時限制,在我們團隊的成員審核期間有效。",
+ "enforcement.automation.flagged": "自動化工具標記了此事。我們團隊的成員已審核並做出決定。",
+ "enforcement.automation.none": "我們團隊的成員已審核此事並做出決定。",
+ "enforcement.effect.account_not_restricted": "除此之外,您的帳號未受到限制。",
+ "enforcement.effect.closure": "{target, select, bot {該機器人在任何地方都無法連線或執行動作。我們將於 {deletion_at} 刪除該機器人及其資料。您自己的帳號未受到限制。} other {您在任何地方都無法登入或使用 {product_name}。我們將於 {deletion_at} 刪除該帳號及其資料,但依法必須保留的資料除外。}}",
+ "enforcement.effect.community_removed": "該社群及其頻道和訊息已不再對任何人開放。您自己的帳號未受到限制。",
+ "enforcement.effect.limit_direct_messages": "您的一對一私訊和好友邀請不會送達,您的個人檔案也會被隱藏。在社群和群組私訊中,其他人看到的您的訊息會被摺疊,並標示為可能是垃圾訊息。",
+ "enforcement.effect.limit_purchases": "{review, select, yes {在我們團隊的成員審核此事之前,您無法在 {product_name} 上購買。} other {您無法在 {product_name} 上購買。}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {在此之前,您無法在應用程式內送出檢舉。如需檢舉違法內容,請使用我們[公司資訊頁面]({url})上的安全檢舉管道。} other {在此之前,您無法在應用程式內送出檢舉。}}",
+ "enforcement.effect.messages_removed": "我們也移除了 {count, plural, other {# 則訊息}}。",
+ "enforcement.effect.networks_blocked": "我們也封鎖了此帳號使用過的網路,封鎖持續到 {date}。",
+ "enforcement.effect.no_other_accounts": "您不得建立或使用其他帳號。",
+ "enforcement.effect.scope": "這項決定適用於所有提供 {product_name} 的地方。",
+ "enforcement.effect.suspension": "{target, select, bot {在此之前,該機器人在任何地方都無法連線或執行動作。您自己的帳號未受到限制。} other {在此之前,您在任何地方都無法登入或使用 {product_name}。您的帳號、訊息和社群都會保留。}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {該機器人在任何地方都無法連線或執行動作。您自己的帳號未受到限制。} other {您在任何地方都無法登入或使用 {product_name}。}}",
+ "enforcement.effect.warning": "您的帳號未受到限制。如果再次發生這種情況,我們可能會限制您的帳號或將其暫時停權。",
+ "enforcement.facts.channel": "在 {community} 的 #{channel} 中傳送的 {count, plural, other {# 則訊息}},{range, select, single {時間為 {start}} other {時間為 {start} 至 {end}}}。",
+ "enforcement.facts.community_channel": "在 #{channel} 中發布的 {count, plural, other {# 則訊息}},{range, select, single {時間為 {start}} other {時間為 {start} 至 {end}}}。",
+ "enforcement.facts.copyright": "權利人或相關權利:{rights_holder}。",
+ "enforcement.facts.direct_message": "在私訊對話中傳送的 {count, plural, other {# 則訊息}},{range, select, single {時間為 {start}} other {時間為 {start} 至 {end}}}。",
+ "enforcement.facts.direct_message_month": "於 {month} 在私訊對話中傳送的 {count, plural, other {# 則訊息}}。",
+ "enforcement.facts.group_message": "在群組私訊中傳送的 {count, plural, other {# 則訊息}},{range, select, single {時間為 {start}} other {時間為 {start} 至 {end}}}。",
+ "enforcement.facts.group_message_month": "於 {month} 在群組私訊中傳送的 {count, plural, other {# 則訊息}}。",
+ "enforcement.facts.payment": "{date} 在您的帳號上進行的一筆付款。",
+ "enforcement.facts.profile": "您的個人檔案:{fields}。",
+ "enforcement.facts.unknown_location": "在一個已不存在的對話中傳送的 {count, plural, other {# 則訊息}},{range, select, single {時間為 {start}} other {時間為 {start} 至 {end}}}。",
+ "enforcement.lead.adult_content": "我們發現您的帳號在未標示為 18 歲以上的空間中發布了性內容。",
+ "enforcement.lead.age_requirement": "您需要達到所在國家/地區的最低年齡才能使用 {product_name}。這不是懲罰,等您達到年齡後,歡迎回來。",
+ "enforcement.lead.automation": "我們發現您的帳號有自動化活動,干擾了服務的正常使用。",
+ "enforcement.lead.ban_evasion": "我們發現此帳號被用來規避對另一個帳號的限制。",
+ "enforcement.lead.bot": "我們發現您的機器人有違反此規則的活動。",
+ "enforcement.lead.child_safety": "我們在您的帳號上發現了違反我們兒童保護規則的內容或活動。",
+ "enforcement.lead.community": "我們在此社群中發現了違反此規則的內容。",
+ "enforcement.lead.copyright": "我們發現您的帳號發布的內容未經許可使用了他人的作品。",
+ "enforcement.lead.fraud": "我們發現您的帳號發布的內容試圖騙取他人的金錢、帳號或個人資訊。",
+ "enforcement.lead.harassment": "我們發現您的帳號傳送了騷擾或霸凌他人的訊息。",
+ "enforcement.lead.harmful_deception": "我們發現您的帳號發布的內容散播了可能造成嚴重傷害的不實說法。",
+ "enforcement.lead.hate": "我們發現您的帳號發布的內容因他人的身分而攻擊或貶低他們。",
+ "enforcement.lead.illegal_activity": "我們發現您的帳號發布的內容提供或協助非法商品或活動。",
+ "enforcement.lead.impersonation": "我們發現您的帳號冒充了其他個人或組織,或使用虛假身分誤導他人。",
+ "enforcement.lead.intimate_images": "我們發現您的帳號未經當事人同意分享了其私密影像。",
+ "enforcement.lead.legacy": "關於此決定,我們沒有更多記錄在案的詳細資訊。",
+ "enforcement.lead.malware": "我們發現您的帳號發布的連結或檔案會導向惡意軟體或其他有害軟體。",
+ "enforcement.lead.payments": "我們發現您的帳號有違反我們付款條款的付款問題。",
+ "enforcement.lead.privacy": "我們發現您的帳號未經當事人同意分享了其個人資訊。",
+ "enforcement.lead.raids": "我們發現您的帳號參與了針對某個社群或個人的協同攻擊。",
+ "enforcement.lead.report_abuse": "我們發現您的帳號一再送出不實或惡意的檢舉。",
+ "enforcement.lead.self_harm": "我們發現您的帳號發布的內容鼓勵自殘或提供自殘方法。",
+ "enforcement.lead.service_abuse": "我們發現您的帳號以干擾服務或規避服務限制的方式使用 {product_name}。",
+ "enforcement.lead.spam": "我們發現您的帳號大量傳送了他人不想收到的訊息。",
+ "enforcement.lead.threats": "我們發現您的帳號傳送了威脅或煽動暴力的訊息。",
+ "enforcement.lead.unwanted_sexual_content": "我們發現您的帳號向未同意接收的人傳送了性內容。",
+ "enforcement.lead.violent_content": "我們發現您的帳號分享了血腥暴力內容。",
+ "enforcement.lead.violent_extremism": "我們在您的帳號上發現了違反我們恐怖主義與暴力極端主義規則的內容或活動。",
+ "enforcement.profile_field.avatar": "大頭貼",
+ "enforcement.profile_field.banner": "橫幅",
+ "enforcement.profile_field.bio": "個人簡介",
+ "enforcement.profile_field.global_name": "顯示名稱",
+ "enforcement.profile_field.pronouns": "代名詞",
+ "enforcement.redress.out_of_court": "如果您身在歐盟,也可以將此決定提交給經認證的訴訟外爭議解決機構。歐盟執委會維護一份[這些機構的清單]({url})。",
+ "enforcement.redress.regulator_and_court": "您也可以向您所在歐盟國家的數位服務協調官提出申訴,或向法院提起訴訟。",
+ "enforcement.rule.adult_content": "18 歲以上空間以外的成人內容",
+ "enforcement.rule.age_requirement": "最低年齡",
+ "enforcement.rule.automation": "破壞性自動化",
+ "enforcement.rule.ban_evasion": "規避限制",
+ "enforcement.rule.child_safety": "兒童安全",
+ "enforcement.rule.copyright": "著作權",
+ "enforcement.rule.fraud": "詐騙與欺詐",
+ "enforcement.rule.harassment": "騷擾",
+ "enforcement.rule.harmful_deception": "有害的不實資訊",
+ "enforcement.rule.hate": "仇恨與歧視",
+ "enforcement.rule.illegal_activity": "非法與危險活動",
+ "enforcement.rule.impersonation": "冒充與假帳號",
+ "enforcement.rule.intimate_images": "未經同意分享私密影像",
+ "enforcement.rule.malware": "惡意連結與惡意軟體",
+ "enforcement.rule.payments": "付款",
+ "enforcement.rule.privacy": "隱私與個人資訊",
+ "enforcement.rule.raids": "突襲與協同攻擊",
+ "enforcement.rule.report_abuse": "濫用檢舉",
+ "enforcement.rule.self_harm": "宣揚自殘",
+ "enforcement.rule.service_abuse": "濫用服務",
+ "enforcement.rule.spam": "垃圾訊息",
+ "enforcement.rule.threats": "暴力威脅",
+ "enforcement.rule.unwanted_sexual_content": "不請自來的性內容",
+ "enforcement.rule.violent_content": "血腥暴力",
+ "enforcement.rule.violent_extremism": "恐怖主義與暴力極端主義",
+ "enforcement.source.own_review": "我們在自行審查時發現了此事。",
+ "enforcement.source.report": "我們在收到檢舉後審核了此事。",
+ "enforcement.summary.closure": "{target, select, bot {我們關閉了您的機器人 {bot_name}。} other {我們關閉了您的帳號。}}",
+ "enforcement.summary.community_removal": "我們移除了您的社群 {community_name}。",
+ "enforcement.summary.content_removal": "{all, select, yes {我們移除了您傳送的所有訊息。} other {我們移除了您傳送的 {count, plural, other {# 則訊息}}。}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {我們限制了您帳號的一項功能,直到 {ends_at}。} other {我們限制了您帳號的一項功能。}}",
+ "enforcement.summary.profile_reset": "我們重設了您個人檔案的部分內容:{fields}。",
+ "enforcement.summary.suspension": "{target, select, bot {我們暫時停權了您的機器人 {bot_name},直到 {ends_at}。} other {我們暫時停權了您的帳號,直到 {ends_at}。}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {我們永久停權了您的機器人 {bot_name}。} other {我們永久停權了您的帳號。}}",
+ "enforcement.summary.warning": "我們就您帳號上的活動向您提出警告。",
+ "enforcement.welfare.self_harm": "如果您正經歷難熬的時刻,您不必獨自面對。[我們社群指南的第 3 節]({url})列出了支援專線。",
"guild.bulk_create.emoji_limit": "已達最大表情符號數量限制 ({limit})。",
"guild.bulk_create.sticker_limit": "已達最大貼圖數量 ({limit})。",
"guild.bulk_create.unknown_error": "發生了未知的錯誤。",
diff --git a/fluxer_api/src/api/content_i18n/weblate/messages.json b/fluxer_api/src/api/content_i18n/weblate/messages.json
index 622493d0d..b59c76f49 100644
--- a/fluxer_api/src/api/content_i18n/weblate/messages.json
+++ b/fluxer_api/src/api/content_i18n/weblate/messages.json
@@ -8,6 +8,103 @@
"billing.eu_withdrawal_waiver_checkout": "If I am an EU/EEA consumer, I expressly consent to {product_name} {premium_tier_name} digital content being provided immediately and acknowledge that I lose my statutory withdrawal right once access is provided. This does not affect other mandatory consumer rights. See the [Terms of Service]({terms_url}).",
"bulk_message_deletion.complete": "We finished deleting your messages. We removed {message_count, plural, =0 {0 messages} one {# message} other {# messages}} from {channel_count, plural, =0 {0 places} one {# place} other {# places}}.",
"content.virus_detected": "That file was flagged as potentially unsafe and has been removed.",
+ "enforcement.automation.automated": "This is a temporary limit applied automatically while a person on our team reviews it.",
+ "enforcement.automation.flagged": "Automated tools flagged this. A person on our team reviewed it and made the decision.",
+ "enforcement.automation.none": "A person on our team reviewed this and made the decision.",
+ "enforcement.effect.account_not_restricted": "Your account is not otherwise restricted.",
+ "enforcement.effect.closure": "{target, select, bot {The bot can't connect or act anywhere. We'll delete it and its data on {deletion_at}. Your own account is not restricted.} other {You can't sign in or use {product_name} anywhere. We'll delete the account and its data on {deletion_at}, except data we have to keep by law.}}",
+ "enforcement.effect.community_removed": "The community and its channels and messages are no longer available to anyone. Your own account is not restricted.",
+ "enforcement.effect.limit_direct_messages": "Your one-to-one messages and friend requests are not delivered, and your profile is hidden. In communities and group conversations, people see your messages collapsed and marked as possible spam.",
+ "enforcement.effect.limit_purchases": "{review, select, yes {You can't make purchases on {product_name} until a person on our team reviews this.} other {You can't make purchases on {product_name}.}}",
+ "enforcement.effect.limit_reports": "{safety_route, select, yes {You can't send reports in the app until then. To report illegal content, use the safety route on our [company information page]({url}).} other {You can't send reports in the app until then.}}",
+ "enforcement.effect.messages_removed": "We also removed {count, plural, =1 {# message} other {# messages}}.",
+ "enforcement.effect.networks_blocked": "We also blocked access from networks this account used until {date}.",
+ "enforcement.effect.no_other_accounts": "You may not create or use other accounts.",
+ "enforcement.effect.scope": "This decision applies everywhere {product_name} is available.",
+ "enforcement.effect.suspension": "{target, select, bot {The bot can't connect or act anywhere until then. Your own account is not restricted.} other {You can't sign in or use {product_name} anywhere until then. Your account, messages and communities are kept.}}",
+ "enforcement.effect.suspension_permanent": "{target, select, bot {The bot can't connect or act anywhere. Your own account is not restricted.} other {You can't sign in or use {product_name} anywhere.}}",
+ "enforcement.effect.warning": "Your account is not restricted. If this happens again, we may limit or suspend it.",
+ "enforcement.facts.channel": "{count, plural, =1 {# message} other {# messages}} in #{channel} of {community}, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.facts.community_channel": "{count, plural, =1 {# message} other {# messages}} posted in #{channel}, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.facts.copyright": "Rights holder or right concerned: {rights_holder}.",
+ "enforcement.facts.direct_message": "{count, plural, =1 {# message} other {# messages}} in a direct message conversation, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.facts.direct_message_month": "{count, plural, =1 {# message} other {# messages}} in a direct message conversation in {month}.",
+ "enforcement.facts.group_message": "{count, plural, =1 {# message} other {# messages}} in a group conversation, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.facts.group_message_month": "{count, plural, =1 {# message} other {# messages}} in a group conversation in {month}.",
+ "enforcement.facts.payment": "A payment on your account on {date}.",
+ "enforcement.facts.profile": "Your profile: {fields}.",
+ "enforcement.facts.unknown_location": "{count, plural, =1 {# message} other {# messages}} in a conversation that no longer exists, {range, select, single {on {start}} other {between {start} and {end}}}.",
+ "enforcement.lead.adult_content": "We found sexual content from your account outside a space marked 18+.",
+ "enforcement.lead.age_requirement": "You need to meet the minimum age in your country to use {product_name}. This isn't a punishment, and you're welcome back once you're old enough.",
+ "enforcement.lead.automation": "We found automated activity from your account that disrupted normal use of the service.",
+ "enforcement.lead.ban_evasion": "We found that this account was used to get around a restriction on another account.",
+ "enforcement.lead.bot": "We found activity from your bot that breaks this rule.",
+ "enforcement.lead.child_safety": "We found content or activity on your account that breaks our rules on protecting children.",
+ "enforcement.lead.community": "We found content in this community that breaks this rule.",
+ "enforcement.lead.copyright": "We found content from your account that uses someone else's work without permission.",
+ "enforcement.lead.fraud": "We found content from your account that tried to trick people out of money, accounts or personal information.",
+ "enforcement.lead.harassment": "We found messages from your account that harassed or bullied someone.",
+ "enforcement.lead.harmful_deception": "We found content from your account that spread false claims likely to cause serious harm.",
+ "enforcement.lead.hate": "We found content from your account that attacks or demeans people for who they are.",
+ "enforcement.lead.illegal_activity": "We found content from your account that offers or helps with illegal goods or activity.",
+ "enforcement.lead.impersonation": "We found that your account pretended to be another person or organization, or used a fake identity to mislead people.",
+ "enforcement.lead.intimate_images": "We found that your account shared intimate images of someone without their consent.",
+ "enforcement.lead.legacy": "We don't have more detail on record for this decision.",
+ "enforcement.lead.malware": "We found links or files from your account that lead to malware or other harmful software.",
+ "enforcement.lead.payments": "We found a payment issue on your account that breaks our payment terms.",
+ "enforcement.lead.privacy": "We found that your account shared someone's personal information without their consent.",
+ "enforcement.lead.raids": "We found that your account took part in a coordinated attack on a community or a person.",
+ "enforcement.lead.report_abuse": "We found that your account repeatedly sent reports that were false or made in bad faith.",
+ "enforcement.lead.self_harm": "We found content from your account that encourages or gives instructions for self-harm.",
+ "enforcement.lead.service_abuse": "We found that your account used {product_name} in a way that interferes with the service or gets around its limits.",
+ "enforcement.lead.spam": "We found that your account sent unwanted messages in bulk.",
+ "enforcement.lead.threats": "We found messages from your account that threatened or encouraged violence.",
+ "enforcement.lead.unwanted_sexual_content": "We found that your account sent sexual content to someone who hadn't agreed to receive it.",
+ "enforcement.lead.violent_content": "We found that your account shared graphic violence or gore.",
+ "enforcement.lead.violent_extremism": "We found content or activity on your account that breaks our rules on terrorism and violent extremism.",
+ "enforcement.profile_field.avatar": "avatar",
+ "enforcement.profile_field.banner": "banner",
+ "enforcement.profile_field.bio": "bio",
+ "enforcement.profile_field.global_name": "display name",
+ "enforcement.profile_field.pronouns": "pronouns",
+ "enforcement.redress.out_of_court": "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies]({url}).",
+ "enforcement.redress.regulator_and_court": "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ "enforcement.rule.adult_content": "Adult content outside 18+ spaces",
+ "enforcement.rule.age_requirement": "Minimum age",
+ "enforcement.rule.automation": "Disruptive automation",
+ "enforcement.rule.ban_evasion": "Evading restrictions",
+ "enforcement.rule.child_safety": "Child safety",
+ "enforcement.rule.copyright": "Copyright",
+ "enforcement.rule.fraud": "Scams and fraud",
+ "enforcement.rule.harassment": "Harassment",
+ "enforcement.rule.harmful_deception": "Harmful deception",
+ "enforcement.rule.hate": "Hate and discrimination",
+ "enforcement.rule.illegal_activity": "Illegal and dangerous activity",
+ "enforcement.rule.impersonation": "Impersonation and fake accounts",
+ "enforcement.rule.intimate_images": "Intimate images shared without consent",
+ "enforcement.rule.malware": "Malicious links and malware",
+ "enforcement.rule.payments": "Payments",
+ "enforcement.rule.privacy": "Privacy and personal information",
+ "enforcement.rule.raids": "Raids and coordinated attacks",
+ "enforcement.rule.report_abuse": "Misuse of reporting",
+ "enforcement.rule.self_harm": "Promoting self-harm",
+ "enforcement.rule.service_abuse": "Service abuse",
+ "enforcement.rule.spam": "Spam",
+ "enforcement.rule.threats": "Threats of violence",
+ "enforcement.rule.unwanted_sexual_content": "Unwanted sexual content",
+ "enforcement.rule.violent_content": "Graphic violence",
+ "enforcement.rule.violent_extremism": "Terrorism and violent extremism",
+ "enforcement.source.own_review": "We found this in our own review.",
+ "enforcement.source.report": "We reviewed this after a report.",
+ "enforcement.summary.closure": "{target, select, bot {We closed your bot {bot_name}.} other {We closed your account.}}",
+ "enforcement.summary.community_removal": "We removed your community {community_name}.",
+ "enforcement.summary.content_removal": "{all, select, yes {We removed all messages you sent.} other {We removed {count, plural, =1 {# message} other {# messages}} you sent.}}",
+ "enforcement.summary.feature_limit": "{ends, select, yes {We limited a feature on your account until {ends_at}.} other {We limited a feature on your account.}}",
+ "enforcement.summary.profile_reset": "We reset parts of your profile: {fields}.",
+ "enforcement.summary.suspension": "{target, select, bot {We suspended your bot {bot_name} until {ends_at}.} other {We suspended your account until {ends_at}.}}",
+ "enforcement.summary.suspension_permanent": "{target, select, bot {We banned your bot {bot_name}.} other {We banned your account.}}",
+ "enforcement.summary.warning": "We're warning you about activity on your account.",
+ "enforcement.welfare.self_harm": "If you're going through a hard time, you don't have to deal with it alone. [Section 3 of our community guidelines]({url}) lists support lines.",
"guild.bulk_create.emoji_limit": "Maximum number of emojis reached ({limit}).",
"guild.bulk_create.sticker_limit": "Maximum number of stickers reached ({limit}).",
"guild.bulk_create.unknown_error": "Unknown error.",
diff --git a/fluxer_api/src/api/database/types/AdminArchiveTypes.ts b/fluxer_api/src/api/database/types/AdminArchiveTypes.ts
index 202294983..984c5f84c 100644
--- a/fluxer_api/src/api/database/types/AdminArchiveTypes.ts
+++ b/fluxer_api/src/api/database/types/AdminArchiveTypes.ts
@@ -77,6 +77,7 @@ export interface BannedIpRow {
reason?: string | null;
expires_at?: Date | null;
created_at?: Date | null;
+ decision_id?: bigint | null;
}
export const BANNED_IP_COLUMNS = [
@@ -85,6 +86,7 @@ export const BANNED_IP_COLUMNS = [
'reason',
'expires_at',
'created_at',
+ 'decision_id',
] as const satisfies ReadonlyArray<keyof BannedIpRow>;
export interface BannedEmailRow {
diff --git a/fluxer_api/src/api/database/types/EnforcementTypes.ts b/fluxer_api/src/api/database/types/EnforcementTypes.ts
new file mode 100644
index 000000000..66a58c332
--- /dev/null
+++ b/fluxer_api/src/api/database/types/EnforcementTypes.ts
@@ -0,0 +1,132 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {IARMessageContextRow} from '@app/api/database/types/ReportTypes';
+import type {EnforcementKind, EnforcementLimit, EnforcementReasonCode} from '@fluxer/constants/src/EnforcementReasons';
+
+export type EnforcementSubjectType = 'user' | 'guild';
+type EnforcementSource = 'report' | 'own_review';
+type EnforcementAutomation = 'none' | 'flagged' | 'automated';
+type EnforcementStatus = 'active' | 'ended';
+export type EnforcementEndOutcome = 'lifted' | 'reversed' | 'expired';
+export type EnforcementNoticeStatus = 'pending' | 'sent' | 'undelivered';
+export type EnforcementNoticeChannel = 'email' | 'system_dm' | 'sign_in';
+export type EvidenceChannelKind = 'direct_message' | 'group_message' | 'channel';
+
+export interface EnforcementDecisionRow {
+ decision_id: bigint;
+ subject_type: EnforcementSubjectType;
+ subject_id: bigint;
+ subject_name: string | null;
+ recipient_user_id: bigint | null;
+ kind: EnforcementKind;
+ reason_code: EnforcementReasonCode;
+ source: EnforcementSource;
+ automation: EnforcementAutomation;
+ statement: string | null;
+ rights_holder: string | null;
+ ends_at: Date | null;
+ deletion_at: Date | null;
+ feature_limit: EnforcementLimit | null;
+ profile_fields: Set<string> | null;
+ removed_message_count: number | null;
+ removed_all_messages: boolean | null;
+ payment_at: Date | null;
+ report_ids: Set<bigint> | null;
+ decided_by: bigint;
+ created_at: Date;
+ status: EnforcementStatus;
+ end_outcome: EnforcementEndOutcome | null;
+ ended_at: Date | null;
+ ended_by: bigint | null;
+ end_statement: string | null;
+ notice_status: EnforcementNoticeStatus;
+ notice_channels: Set<EnforcementNoticeChannel> | null;
+ notice_locale: string | null;
+ notice_text: string | null;
+ notice_sent_at: Date | null;
+}
+
+export const ENFORCEMENT_DECISION_COLUMNS = [
+ 'decision_id',
+ 'subject_type',
+ 'subject_id',
+ 'subject_name',
+ 'recipient_user_id',
+ 'kind',
+ 'reason_code',
+ 'source',
+ 'automation',
+ 'statement',
+ 'rights_holder',
+ 'ends_at',
+ 'deletion_at',
+ 'feature_limit',
+ 'profile_fields',
+ 'removed_message_count',
+ 'removed_all_messages',
+ 'payment_at',
+ 'report_ids',
+ 'decided_by',
+ 'created_at',
+ 'status',
+ 'end_outcome',
+ 'ended_at',
+ 'ended_by',
+ 'end_statement',
+ 'notice_status',
+ 'notice_channels',
+ 'notice_locale',
+ 'notice_text',
+ 'notice_sent_at',
+] as const satisfies ReadonlyArray<keyof EnforcementDecisionRow>;
+
+export interface EnforcementDecisionBySubjectRow {
+ subject_type: EnforcementSubjectType;
+ subject_id: bigint;
+ decision_id: bigint;
+}
+
+export const ENFORCEMENT_DECISION_BY_SUBJECT_COLUMNS = [
+ 'subject_type',
+ 'subject_id',
+ 'decision_id',
+] as const satisfies ReadonlyArray<keyof EnforcementDecisionBySubjectRow>;
+
+export interface EnforcementDecisionEvidenceRow {
+ decision_id: bigint;
+ messages: Array<IARMessageContextRow> | null;
+ message_locations: Map<bigint, EvidenceChannelKind> | null;
+ profile_values: Map<string, string> | null;
+}
+
+export const ENFORCEMENT_DECISION_EVIDENCE_COLUMNS = [
+ 'decision_id',
+ 'messages',
+ 'message_locations',
+ 'profile_values',
+] as const satisfies ReadonlyArray<keyof EnforcementDecisionEvidenceRow>;
+
+export interface EnforcementDecisionNoteRow {
+ decision_id: bigint;
+ note_id: bigint;
+ author_id: bigint;
+ body: string;
+ created_at: Date;
+}
+
+export const ENFORCEMENT_DECISION_NOTE_COLUMNS = [
+ 'decision_id',
+ 'note_id',
+ 'author_id',
+ 'body',
+ 'created_at',
+] as const satisfies ReadonlyArray<keyof EnforcementDecisionNoteRow>;
+
+export interface EnforcementReviewQueueRow {
+ bucket: number;
+ decision_id: bigint;
+}
+
+export const ENFORCEMENT_REVIEW_QUEUE_COLUMNS = ['bucket', 'decision_id'] as const satisfies ReadonlyArray<
+ keyof EnforcementReviewQueueRow
+>;
diff --git a/fluxer_api/src/api/database/types/ReportTypes.ts b/fluxer_api/src/api/database/types/ReportTypes.ts
index 076661191..72e99075f 100644
--- a/fluxer_api/src/api/database/types/ReportTypes.ts
+++ b/fluxer_api/src/api/database/types/ReportTypes.ts
@@ -86,6 +86,7 @@ export interface IARSubmissionRow {
reported_profile_snapshot?: string | null;
legal_hold_until?: Date | null;
legal_hold_reason?: string | null;
+ reporter_outcome?: string | null;
}
export interface DSAReportEmailVerificationRow {
@@ -183,6 +184,7 @@ export const IAR_SUBMISSION_COLUMNS = [
'reported_profile_snapshot',
'legal_hold_until',
'legal_hold_reason',
+ 'reporter_outcome',
] as const satisfies ReadonlyArray<keyof IARSubmissionRow>;
export const DSA_REPORT_EMAIL_VERIFICATION_COLUMNS = [
'email_lower',
diff --git a/fluxer_api/src/api/database/types/UserTypes.ts b/fluxer_api/src/api/database/types/UserTypes.ts
index e73786c46..4ae6d90af 100644
--- a/fluxer_api/src/api/database/types/UserTypes.ts
+++ b/fluxer_api/src/api/database/types/UserTypes.ts
@@ -74,6 +74,7 @@ export interface UserRow {
deletion_audit_log_reason: string | null;
deletion_scheduled_by?: UserID | null;
deletion_scheduled_at?: Date | null;
+ enforcement_decision_id?: bigint | null;
content_hidden_since?: Date | null;
acls: Set<string> | null;
traits: Set<string> | null;
@@ -139,6 +140,7 @@ export const USER_COLUMNS = [
'deletion_audit_log_reason',
'deletion_scheduled_by',
'deletion_scheduled_at',
+ 'enforcement_decision_id',
'content_hidden_since',
'acls',
'traits',
@@ -203,6 +205,7 @@ export const EMPTY_USER_ROW: UserRow = {
deletion_audit_log_reason: null,
deletion_scheduled_by: null,
deletion_scheduled_at: null,
+ enforcement_decision_id: null,
content_hidden_since: null,
acls: null,
traits: null,
diff --git a/fluxer_api/src/api/enforcement/ClosureState.ts b/fluxer_api/src/api/enforcement/ClosureState.ts
new file mode 100644
index 000000000..fdde88ff9
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/ClosureState.ts
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {SuspensionStateDeps} from '@app/api/enforcement/SuspensionState';
+import type {KVAccountDeletionQueueService} from '@app/api/infrastructure/KVAccountDeletionQueueService';
+import type {User} from '@app/api/models/User';
+import {clearNewConversationLimit} from '@app/api/user/NewConversationLimit';
+import {propagateUserUpdate} from '@app/api/user/services/PartialUserChangePropagation';
+import {clearPendingDeletion} from '@app/api/user/services/PendingDeletionCoordinator';
+import {UserFlags} from '@fluxer/constants/src/UserConstants';
+
+export interface ClosureStateDeps extends SuspensionStateDeps {
+ kvDeletionQueue: KVAccountDeletionQueueService;
+}
+
+export async function cancelClosure(
+ {apiContext, userUpdateDeps, kvDeletionQueue}: ClosureStateDeps,
+ user: User,
+): Promise<User> {
+ const updated = await apiContext.services.users.updateDeletionSchedule(user, {
+ flags: user.flags & ~UserFlags.DELETED & ~UserFlags.SELF_DELETED,
+ pending_deletion_at: null,
+ deletion_reason_code: null,
+ deletion_public_reason: null,
+ deletion_audit_log_reason: null,
+ enforcement_decision_id: null,
+ });
+ await clearPendingDeletion({userId: user.id, deletionQueue: kvDeletionQueue});
+ await propagateUserUpdate(userUpdateDeps, user, updated);
+ await clearNewConversationLimit(user.id, {cache: apiContext.services.cache});
+ return updated;
+}
diff --git a/fluxer_api/src/api/enforcement/DecisionStatus.ts b/fluxer_api/src/api/enforcement/DecisionStatus.ts
new file mode 100644
index 000000000..fea0b7284
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/DecisionStatus.ts
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {EnforcementDecisionRow} from '@app/api/database/types/EnforcementTypes';
+import type {User} from '@app/api/models/User';
+import {isAccountKind} from '@fluxer/constants/src/EnforcementReasons';
+
+export function isDecisionExpired(decision: EnforcementDecisionRow, now: number = Date.now()): boolean {
+ return (
+ decision.status === 'active' &&
+ (decision.kind === 'suspension' || decision.kind === 'feature_limit') &&
+ decision.ends_at !== null &&
+ decision.ends_at.getTime() < now
+ );
+}
+
+export function isDecisionReplaced(decision: EnforcementDecisionRow, subject: User | null): boolean {
+ return (
+ decision.status === 'active' &&
+ isAccountKind(decision.kind) &&
+ subject?.enforcementDecisionId !== decision.decision_id
+ );
+}
diff --git a/fluxer_api/src/api/enforcement/EnforcementAccountNotice.ts b/fluxer_api/src/api/enforcement/EnforcementAccountNotice.ts
new file mode 100644
index 000000000..785591d91
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/EnforcementAccountNotice.ts
@@ -0,0 +1,91 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {AdminRepository, type BannedIpEntry} from '@app/api/admin/AdminRepository';
+import type {AdminBanManagementService} from '@app/api/admin/services/AdminBanManagementService';
+import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
+import type {EnforcementDecisionRow, EvidenceChannelKind} from '@app/api/database/types/EnforcementTypes';
+import type {IARMessageContextRow} from '@app/api/database/types/ReportTypes';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {resolveEvidenceLocations} from '@app/api/enforcement/EnforcementEvidence';
+import {buildEnforcementNotice} from '@app/api/enforcement/EnforcementNotice';
+import {renderNoticeText} from '@app/api/enforcement/EnforcementNoticeDelivery';
+import {latestNetworkBlockExpiry} from '@app/api/enforcement/NetworkBlocks';
+import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
+import {getChannelRepository, getGuildRepository} from '@app/api/middleware/ServiceSingletons';
+import type {User} from '@app/api/models/User';
+import type {EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+
+interface NoticeLookupDeps {
+ repository: EnforcementDecisionRepository;
+ channelRepository: ChannelRepository;
+ guildRepository: GuildRepository;
+ banManagementService: Pick<AdminBanManagementService, 'listDecisionNetworkBlocks'>;
+}
+
+interface DecisionNoticeInputs {
+ messages: ReadonlyArray<IARMessageContextRow>;
+ channelKinds: ReadonlyMap<bigint, EvidenceChannelKind> | null;
+ networkBlocks: ReadonlyArray<BannedIpEntry>;
+ accountHasEmail: boolean;
+ locale: string | null;
+}
+
+export async function loadDecisionNotice(
+ deps: NoticeLookupDeps,
+ decision: EnforcementDecisionRow,
+ {messages, channelKinds, networkBlocks, accountHasEmail, locale}: DecisionNoticeInputs,
+): Promise<EnforcementNotice> {
+ return buildEnforcementNotice(
+ {
+ type: 'decision',
+ decision,
+ evidence: await resolveEvidenceLocations(messages, channelKinds, deps.channelRepository, deps.guildRepository),
+ networksBlockedUntil: latestNetworkBlockExpiry(networkBlocks),
+ accountHasEmail,
+ },
+ locale,
+ );
+}
+
+export function createNoticeLookupDeps(): NoticeLookupDeps {
+ const adminRepository = new AdminRepository();
+ return {
+ repository: new EnforcementDecisionRepository(),
+ channelRepository: getChannelRepository(),
+ guildRepository: getGuildRepository(),
+ banManagementService: {listDecisionNetworkBlocks: (decisionId) => adminRepository.listDecisionIpBans(decisionId)},
+ };
+}
+
+export async function loadAccountNotice(
+ deps: NoticeLookupDeps,
+ user: User,
+ locale: string,
+): Promise<EnforcementNotice> {
+ const stored = user.enforcementDecisionId === null ? null : await deps.repository.get(user.enforcementDecisionId);
+ if (!stored) {
+ return buildEnforcementNotice({type: 'legacy', user}, locale);
+ }
+ const decision = stored.notice_sent_at === null ? {...stored, notice_sent_at: new Date()} : stored;
+ const [evidence, networkBlocks] = await Promise.all([
+ deps.repository.getEvidence(decision.decision_id),
+ deps.banManagementService.listDecisionNetworkBlocks(decision.decision_id),
+ ]);
+ const notice = await loadDecisionNotice(deps, decision, {
+ messages: evidence?.messages ?? [],
+ channelKinds: evidence?.message_locations ?? null,
+ networkBlocks,
+ accountHasEmail: user.email !== null,
+ locale,
+ });
+ if (decision !== stored) {
+ await deps.repository.setNotice(decision.decision_id, {
+ status: 'sent',
+ channels: new Set(['sign_in']),
+ locale,
+ text: renderNoticeText(decision, notice, user.username, locale),
+ sentAt: decision.notice_sent_at,
+ });
+ }
+ return notice;
+}
diff --git a/fluxer_api/src/api/enforcement/EnforcementActor.ts b/fluxer_api/src/api/enforcement/EnforcementActor.ts
new file mode 100644
index 000000000..7429b4849
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/EnforcementActor.ts
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {UserID} from '@app/api/BrandedTypes';
+import type {HonoEnv} from '@app/api/types/HonoEnv';
+import type {Context} from 'hono';
+
+export interface EnforcementActor {
+ adminUserId: UserID;
+ acls: ReadonlySet<string>;
+ internalNote: string | null;
+}
+
+export function enforcementActor(ctx: Context<HonoEnv>): EnforcementActor {
+ return {
+ adminUserId: ctx.get('adminUserId'),
+ acls: ctx.get('adminUserAcls'),
+ internalNote: ctx.get('auditLogReason'),
+ };
+}
diff --git a/fluxer_api/src/api/enforcement/EnforcementDecisionRepository.ts b/fluxer_api/src/api/enforcement/EnforcementDecisionRepository.ts
new file mode 100644
index 000000000..e0621ea58
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/EnforcementDecisionRepository.ts
@@ -0,0 +1,217 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {
+ BatchBuilder,
+ executeConditional,
+ fetchMany,
+ fetchManyInChunks,
+ fetchOne,
+ upsertOne,
+} from '@app/api/database/CassandraQueryExecution';
+import {Db} from '@app/api/database/CassandraTypes';
+import type {
+ EnforcementDecisionBySubjectRow,
+ EnforcementDecisionEvidenceRow,
+ EnforcementDecisionNoteRow,
+ EnforcementDecisionRow,
+ EnforcementEndOutcome,
+ EnforcementNoticeChannel,
+ EnforcementNoticeStatus,
+ EnforcementReviewQueueRow,
+ EnforcementSubjectType,
+} from '@app/api/database/types/EnforcementTypes';
+import {
+ EnforcementDecisionEvidence,
+ EnforcementDecisionNotes,
+ EnforcementDecisions,
+ EnforcementDecisionsBySubject,
+ EnforcementReviewQueue,
+} from '@app/api/Tables';
+
+const GET_DECISION_QUERY = EnforcementDecisions.select({where: EnforcementDecisions.where.eq('decision_id')});
+const GET_DECISIONS_QUERY = EnforcementDecisions.select({
+ where: EnforcementDecisions.where.in('decision_id', 'decision_ids'),
+});
+const GET_EVIDENCE_QUERY = EnforcementDecisionEvidence.select({
+ where: EnforcementDecisionEvidence.where.eq('decision_id'),
+});
+const LIST_NOTES_QUERY = EnforcementDecisionNotes.select({
+ where: EnforcementDecisionNotes.where.eq('decision_id'),
+ orderBy: {col: 'note_id', direction: 'ASC'},
+});
+
+const REVIEW_QUEUE_BUCKET = 0;
+const LIST_REVIEW_QUEUE_QUERY = EnforcementReviewQueue.select({
+ columns: ['decision_id'],
+ where: EnforcementReviewQueue.where.eq('bucket'),
+ orderBy: {col: 'decision_id', direction: 'DESC'},
+});
+
+function listBySubjectQuery(limit: number, paged: boolean) {
+ const {where} = EnforcementDecisionsBySubject;
+ return EnforcementDecisionsBySubject.select({
+ columns: ['decision_id'],
+ where: paged
+ ? [where.eq('subject_type'), where.eq('subject_id'), where.lt('decision_id', 'before')]
+ : [where.eq('subject_type'), where.eq('subject_id')],
+ orderBy: {col: 'decision_id', direction: 'DESC'},
+ limit,
+ });
+}
+
+interface EnforcementDecisionCreate {
+ decision: EnforcementDecisionRow;
+ evidence: EnforcementDecisionEvidenceRow | null;
+ firstNote: EnforcementDecisionNoteRow;
+}
+
+interface EnforcementDecisionEnd {
+ outcome: EnforcementEndOutcome;
+ endedAt: Date;
+ endedBy: bigint;
+ statement: string | null;
+}
+
+export interface EnforcementNoticeRecord {
+ status: EnforcementNoticeStatus;
+ channels: ReadonlySet<EnforcementNoticeChannel>;
+ locale: string | null;
+ text: string | null;
+ sentAt: Date | null;
+}
+
+function subjectKey(decision: EnforcementDecisionRow): EnforcementDecisionBySubjectRow {
+ return {subject_type: decision.subject_type, subject_id: decision.subject_id, decision_id: decision.decision_id};
+}
+
+function deleteReviewQueueRow(decisionId: bigint) {
+ return EnforcementReviewQueue.deleteByPk({bucket: REVIEW_QUEUE_BUCKET, decision_id: decisionId});
+}
+
+function endPatch(end: EnforcementDecisionEnd) {
+ return {
+ status: Db.set<EnforcementDecisionRow['status']>('ended'),
+ end_outcome: Db.set(end.outcome),
+ ended_at: Db.set(end.endedAt),
+ ended_by: Db.set(end.endedBy),
+ end_statement: end.statement === null ? Db.clear() : Db.set(end.statement),
+ };
+}
+
+const SUBJECT_DECISION_SCAN_LIMIT = 100;
+
+export class EnforcementDecisionRepository {
+ async create({decision, evidence, firstNote}: EnforcementDecisionCreate): Promise<void> {
+ const batch = new BatchBuilder()
+ .addPrepared(EnforcementDecisions.insert(decision))
+ .addPrepared(EnforcementDecisionsBySubject.insert(subjectKey(decision)))
+ .addPrepared(EnforcementDecisionNotes.insert(firstNote));
+ if (evidence) {
+ batch.addPrepared(EnforcementDecisionEvidence.insert(evidence));
+ }
+ if (decision.automation === 'automated') {
+ batch.addPrepared(
+ EnforcementReviewQueue.insert({bucket: REVIEW_QUEUE_BUCKET, decision_id: decision.decision_id}),
+ );
+ }
+ await batch.execute();
+ }
+
+ async delete(decision: EnforcementDecisionRow): Promise<void> {
+ const batch = new BatchBuilder()
+ .addPrepared(EnforcementDecisions.deleteByPk({decision_id: decision.decision_id}))
+ .addPrepared(EnforcementDecisionsBySubject.deleteByPk(subjectKey(decision)))
+ .addPrepared(EnforcementDecisionEvidence.deleteByPk({decision_id: decision.decision_id}))
+ .addPrepared(EnforcementDecisionNotes.deletePartition({decision_id: decision.decision_id}));
+ if (decision.automation === 'automated') {
+ batch.addPrepared(deleteReviewQueueRow(decision.decision_id));
+ }
+ await batch.execute();
+ }
+
+ async get(decisionId: bigint): Promise<EnforcementDecisionRow | null> {
+ return fetchOne<EnforcementDecisionRow>(GET_DECISION_QUERY.bind({decision_id: decisionId}));
+ }
+
+ async getMany(decisionIds: ReadonlyArray<bigint>): Promise<Array<EnforcementDecisionRow>> {
+ const rows = await fetchManyInChunks<EnforcementDecisionRow, bigint>(
+ GET_DECISIONS_QUERY,
+ [...decisionIds],
+ (chunk) => ({decision_ids: chunk}),
+ );
+ const byId = new Map(rows.map((row) => [row.decision_id, row]));
+ return decisionIds.flatMap((decisionId) => {
+ const row = byId.get(decisionId);
+ return row ? [row] : [];
+ });
+ }
+
+ async listBySubject(
+ subjectType: EnforcementSubjectType,
+ subjectId: bigint,
+ limit: number = SUBJECT_DECISION_SCAN_LIMIT,
+ before?: bigint,
+ ): Promise<Array<EnforcementDecisionRow>> {
+ const keys = await fetchMany<Pick<EnforcementDecisionBySubjectRow, 'decision_id'>>(
+ listBySubjectQuery(limit, before !== undefined).bind({
+ subject_type: subjectType,
+ subject_id: subjectId,
+ ...(before !== undefined ? {before} : {}),
+ }),
+ );
+ return this.getMany(keys.map((key) => key.decision_id));
+ }
+
+ async end(decisionId: bigint, end: EnforcementDecisionEnd): Promise<void> {
+ await upsertOne(EnforcementDecisions.patchByPk({decision_id: decisionId}, endPatch(end)));
+ }
+
+ async endIfActive(decisionId: bigint, end: EnforcementDecisionEnd): Promise<boolean> {
+ return executeConditional(
+ EnforcementDecisions.conditionalPatchByPk({decision_id: decisionId}, endPatch(end), {status: 'active'}),
+ );
+ }
+
+ async setNotice(decisionId: bigint, notice: EnforcementNoticeRecord): Promise<void> {
+ await upsertOne(
+ EnforcementDecisions.patchByPk(
+ {decision_id: decisionId},
+ {
+ notice_status: Db.set(notice.status),
+ notice_channels: notice.channels.size > 0 ? Db.set(new Set(notice.channels)) : Db.clear(),
+ notice_locale: notice.locale === null ? Db.clear() : Db.set(notice.locale),
+ notice_text: notice.text === null ? Db.clear() : Db.set(notice.text),
+ notice_sent_at: notice.sentAt === null ? Db.clear() : Db.set(notice.sentAt),
+ },
+ ),
+ );
+ }
+
+ async listReviewQueue(): Promise<Array<EnforcementDecisionRow>> {
+ const keys = await fetchMany<Pick<EnforcementReviewQueueRow, 'decision_id'>>(
+ LIST_REVIEW_QUEUE_QUERY.bind({bucket: REVIEW_QUEUE_BUCKET}),
+ );
+ return this.getMany(keys.map((key) => key.decision_id));
+ }
+
+ async removeFromReviewQueue(decisionIds: ReadonlyArray<bigint>): Promise<void> {
+ if (decisionIds.length === 0) return;
+ const batch = new BatchBuilder();
+ for (const decisionId of decisionIds) {
+ batch.addPrepared(deleteReviewQueueRow(decisionId));
+ }
+ await batch.execute();
+ }
+
+ async addNote(note: EnforcementDecisionNoteRow): Promise<void> {
+ await upsertOne(EnforcementDecisionNotes.insert(note));
+ }
+
+ async listNotes(decisionId: bigint): Promise<Array<EnforcementDecisionNoteRow>> {
+ return fetchMany<EnforcementDecisionNoteRow>(LIST_NOTES_QUERY.bind({decision_id: decisionId}));
+ }
+
+ async getEvidence(decisionId: bigint): Promise<EnforcementDecisionEvidenceRow | null> {
+ return fetchOne<EnforcementDecisionEvidenceRow>(GET_EVIDENCE_QUERY.bind({decision_id: decisionId}));
+ }
+}
diff --git a/fluxer_api/src/api/enforcement/EnforcementDecisionResponses.ts b/fluxer_api/src/api/enforcement/EnforcementDecisionResponses.ts
new file mode 100644
index 000000000..303e4f467
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/EnforcementDecisionResponses.ts
@@ -0,0 +1,122 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {BannedIpEntry} from '@app/api/admin/AdminRepository';
+import type {
+ EnforcementDecisionEvidenceRow,
+ EnforcementDecisionNoteRow,
+ EnforcementDecisionRow,
+} from '@app/api/database/types/EnforcementTypes';
+import {isDecisionExpired, isDecisionReplaced} from '@app/api/enforcement/DecisionStatus';
+import {hasAdminACL} from '@app/api/middleware/AdminMiddleware';
+import type {User} from '@app/api/models/User';
+import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {maskIpForDisplay} from '@fluxer/ip_utils/src/IpAddress';
+import type {EnforcementDecisionResponse} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
+import type {EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+
+type EnforcementDecisionSummary = Omit<
+ EnforcementDecisionResponse,
+ 'notes' | 'evidence' | 'profile_values' | 'network_blocks' | 'notice'
+>;
+
+function iso(value: Date | null): string | null {
+ return value?.toISOString() ?? null;
+}
+
+export function toNoteResponse(note: EnforcementDecisionNoteRow): EnforcementDecisionResponse['notes'][number] {
+ return {
+ note_id: note.note_id.toString(),
+ author_id: note.author_id.toString(),
+ body: note.body,
+ created_at: note.created_at.toISOString(),
+ };
+}
+
+export function toDecisionSummary(
+ decision: EnforcementDecisionRow,
+ subject: User | null,
+ acls: ReadonlySet<string>,
+): EnforcementDecisionSummary {
+ return {
+ decision_id: decision.decision_id.toString(),
+ subject_type: decision.subject_type,
+ subject_id: decision.subject_id.toString(),
+ subject_name: decision.subject_name,
+ recipient_user_id: decision.recipient_user_id?.toString() ?? null,
+ kind: decision.kind,
+ reason_code: decision.reason_code,
+ source: decision.source,
+ automation: decision.automation,
+ statement: decision.statement,
+ rights_holder: decision.rights_holder,
+ ends_at: iso(decision.ends_at),
+ deletion_at: iso(decision.deletion_at),
+ limit: decision.feature_limit,
+ profile_fields: [...(decision.profile_fields ?? [])].sort(),
+ removed_message_count: decision.removed_message_count,
+ removed_all_messages: decision.removed_all_messages ?? false,
+ payment_at: iso(decision.payment_at),
+ report_ids: hasAdminACL(acls, AdminACLs.REPORT_VIEW)
+ ? [...(decision.report_ids ?? [])].map((reportId) => reportId.toString())
+ : [],
+ decided_by: decision.decided_by.toString(),
+ created_at: decision.created_at.toISOString(),
+ status: decision.status,
+ end_outcome: decision.end_outcome,
+ ended_at: iso(decision.ended_at),
+ ended_by: decision.ended_by?.toString() ?? null,
+ end_statement: decision.end_statement,
+ notice_status: decision.notice_status,
+ notice_channels: [...(decision.notice_channels ?? [])].sort(),
+ notice_locale: decision.notice_locale,
+ notice_text: decision.notice_text,
+ notice_sent_at: iso(decision.notice_sent_at),
+ expired: isDecisionExpired(decision),
+ replaced: isDecisionReplaced(decision, subject),
+ };
+}
+
+export function toAdminDecisionResponse({
+ decision,
+ subject,
+ notes,
+ evidence,
+ networkBlocks,
+ notice,
+ acls,
+}: {
+ decision: EnforcementDecisionRow;
+ subject: User | null;
+ notes: ReadonlyArray<EnforcementDecisionNoteRow>;
+ evidence: EnforcementDecisionEvidenceRow | null;
+ networkBlocks: ReadonlyArray<BannedIpEntry>;
+ notice: EnforcementNotice;
+ acls: ReadonlySet<string>;
+}): EnforcementDecisionResponse {
+ const canViewContent = hasAdminACL(acls, AdminACLs.MESSAGE_LOOKUP);
+ const canViewIp = hasAdminACL(acls, AdminACLs.USER_VIEW_IP);
+ return {
+ ...toDecisionSummary(decision, subject, acls),
+ notes: notes.map(toNoteResponse),
+ evidence: (evidence?.messages ?? []).map((message) => ({
+ message_id: message.message_id.toString(),
+ channel_id: message.channel_id?.toString() ?? null,
+ timestamp: message.timestamp.toISOString(),
+ content: canViewContent ? message.content : null,
+ attachments: canViewContent
+ ? (message.missing_attachments ?? []).map((attachment) => ({
+ filename: attachment.filename,
+ size: attachment.size.toString(),
+ content_type: attachment.content_type || null,
+ }))
+ : null,
+ attachment_count: message.missing_attachments?.length ?? 0,
+ })),
+ profile_values: canViewContent && evidence?.profile_values ? Object.fromEntries(evidence.profile_values) : null,
+ network_blocks: networkBlocks.map((block) => ({
+ ip: canViewIp ? block.ip : (maskIpForDisplay(block.ip) ?? '[redacted]'),
+ expires_at: iso(block.expiresAt),
+ })),
+ notice,
+ };
+}
diff --git a/fluxer_api/src/api/enforcement/EnforcementDecisionService.ts b/fluxer_api/src/api/enforcement/EnforcementDecisionService.ts
new file mode 100644
index 000000000..c59f37782
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/EnforcementDecisionService.ts
@@ -0,0 +1,938 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {BannedIpEntry} from '@app/api/admin/AdminRepository';
+import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
+import type {AdminBanManagementService} from '@app/api/admin/services/AdminBanManagementService';
+import {queueMessageShredJob} from '@app/api/admin/services/AdminMessageShredService';
+import type {AdminReportService} from '@app/api/admin/services/AdminReportService';
+import {createChannelID, createMessageID, createReportID, createUserID, type UserID} from '@app/api/BrandedTypes';
+import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
+import {SYSTEM_USER_ID} from '@app/api/constants/Core';
+import type {
+ EnforcementDecisionNoteRow,
+ EnforcementDecisionRow,
+ EvidenceChannelKind,
+} from '@app/api/database/types/EnforcementTypes';
+import type {IARMessageContextRow} from '@app/api/database/types/ReportTypes';
+import {type ClosureStateDeps, cancelClosure} from '@app/api/enforcement/ClosureState';
+import {loadDecisionNotice} from '@app/api/enforcement/EnforcementAccountNotice';
+import type {EnforcementActor} from '@app/api/enforcement/EnforcementActor';
+import type {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {
+ toAdminDecisionResponse,
+ toDecisionSummary,
+ toNoteResponse,
+} from '@app/api/enforcement/EnforcementDecisionResponses';
+import {
+ collectEvidence,
+ type EvidenceSubject,
+ type MessageReference,
+ resolveEvidenceLocations,
+ restrictedEvidence,
+ snapshotEvidenceChannelKinds,
+} from '@app/api/enforcement/EnforcementEvidence';
+import type {EnforcementNoticeDelivery} from '@app/api/enforcement/EnforcementNoticeDelivery';
+import {
+ findHoldingFeatureLimit,
+ listActiveFeatureLimits,
+ setFeatureLimit,
+} from '@app/api/enforcement/FeatureLimitState';
+import {
+ latestNetworkBlockExpiry,
+ listNetworkBlockCandidates,
+ type NetworkBlockPlan,
+ planNetworkBlocks,
+ type SkippedNetwork,
+} from '@app/api/enforcement/NetworkBlocks';
+import {hasHolderDeletionPending, liftSuspension} from '@app/api/enforcement/SuspensionState';
+import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
+import {emitAdminAction} from '@app/api/infrastructure/activity/AccountChangeEvents';
+import {Logger} from '@app/api/Logger';
+import {requireGrantedAdminACLs} from '@app/api/middleware/AdminMiddleware';
+import type {Guild} from '@app/api/models/Guild';
+import type {User} from '@app/api/models/User';
+import {type IARSubmission, ReportStatus} from '@app/api/report/ReportModels';
+import type {ReportService} from '@app/api/report/ReportService';
+import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {
+ ENFORCEMENT_REASONS,
+ ENFORCEMENT_RULES,
+ type EnforcementKind,
+ type EnforcementLimit,
+ type EnforcementReasonCode,
+ isAccountKind,
+ isEnforcementKindAllowed,
+ isEnforcementLimitAllowed,
+} from '@fluxer/constants/src/EnforcementReasons';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
+import {EnforcementDecisionEndedError} from '@fluxer/errors/src/domains/moderation/EnforcementDecisionEndedError';
+import {EnforcementDecisionReplacedError} from '@fluxer/errors/src/domains/moderation/EnforcementDecisionReplacedError';
+import {EnforcementDeletionStartedError} from '@fluxer/errors/src/domains/moderation/EnforcementDeletionStartedError';
+import {UnknownEnforcementDecisionError} from '@fluxer/errors/src/domains/moderation/UnknownEnforcementDecisionError';
+import {UnknownReportError} from '@fluxer/errors/src/domains/moderation/UnknownReportError';
+import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
+import type {ReportItemOutcome} from '@fluxer/schema/src/domains/admin/AdminSchemas';
+import type {UserProfileField} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
+import type {
+ EnforcementDecisionEndRequest,
+ EnforcementDecisionInput,
+ EnforcementDecisionListQuery,
+ EnforcementDecisionListResponse,
+ EnforcementDecisionResponse,
+ NetworkBlockCandidatesResponse,
+ NetworkBlockRequest,
+} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
+
+type EnforcementSubject = {type: 'user'; user: User} | {type: 'guild'; guild: Guild};
+
+type ContentRemoval = {type: 'messages'; entries: ReadonlyArray<MessageReference>} | {type: 'all_messages'};
+
+interface ProfileReset {
+ fields: ReadonlyArray<UserProfileField>;
+ values: ReadonlyMap<UserProfileField, string>;
+}
+
+interface RecordDecisionParams {
+ subject: EnforcementSubject;
+ kind: EnforcementKind;
+ input: EnforcementDecisionInput;
+ endsAt?: Date | null;
+ deletionAt?: Date;
+ limit?: EnforcementLimit;
+ removeEvidence?: boolean;
+ removal?: ContentRemoval;
+ profileReset?: ProfileReset;
+ blockNetworks?: NetworkBlockRequest;
+ actor: EnforcementActor;
+}
+
+export interface RecordedDecision {
+ decision: EnforcementDecisionRow;
+ blockedNetworks: Array<BannedIpEntry>;
+ skippedNetworks: Array<SkippedNetwork>;
+}
+
+interface AutomatedPurchaseLimitParams {
+ subject: User;
+ reasonCode: EnforcementReasonCode;
+ paymentAt: Date;
+ internalNote: string;
+}
+
+interface EnforcementDecisionServiceDeps extends ClosureStateDeps {
+ repository: EnforcementDecisionRepository;
+ delivery: EnforcementNoticeDelivery;
+ auditService: AdminAuditService;
+ banManagementService: AdminBanManagementService;
+ channelRepository: ChannelRepository;
+ guildRepository: GuildRepository;
+ reportService: ReportService;
+ adminReportService: AdminReportService;
+}
+
+const EVIDENCE_LIMIT = 50;
+const UNDOABLE_KINDS: ReadonlySet<EnforcementKind> = new Set(['suspension', 'closure', 'feature_limit']);
+const REVIEWING_KINDS: ReadonlySet<EnforcementKind> = new Set(['warning', 'suspension', 'closure']);
+const CONFIRMATIONS = ['evidence_preserved', 'reports_filed_or_not_required'] as const;
+const RESTRICTING_KINDS: ReadonlySet<EnforcementKind> = new Set(['suspension', 'closure', 'feature_limit']);
+
+function kindAcls(decision: EnforcementDecisionRow): Array<string> {
+ switch (decision.kind) {
+ case 'suspension':
+ return [AdminACLs.USER_TEMP_BAN];
+ case 'closure':
+ return [AdminACLs.USER_DELETE];
+ case 'warning':
+ case 'feature_limit':
+ return [AdminACLs.USER_UPDATE_FLAGS];
+ case 'content_removal':
+ return [decision.removed_all_messages ? AdminACLs.MESSAGE_DELETE_ALL : AdminACLs.MESSAGE_SHRED];
+ case 'profile_reset':
+ return [AdminACLs.USER_UPDATE_PROFILE];
+ case 'community_removal':
+ return [AdminACLs.GUILD_DELETE];
+ }
+}
+
+function firstNoteBody(
+ input: EnforcementDecisionInput,
+ internalNote: string,
+ cancelledHolderDeletionAt: Date | null,
+): string {
+ const lines = [internalNote];
+ if (input.confirmations?.length) {
+ lines.push(`Confirmed by staff: ${input.confirmations.join(', ')}`);
+ }
+ if (cancelledHolderDeletionAt) {
+ lines.push(
+ `Cancelled the deletion the account holder had scheduled for ${cancelledHolderDeletionAt.toISOString()}`,
+ );
+ }
+ return lines.join('\n\n');
+}
+
+export function decisionAuditMetadata(decision: EnforcementDecisionRow): Array<[string, string]> {
+ return [
+ ['decision_id', decision.decision_id.toString()],
+ ['reason_code', decision.reason_code.toString()],
+ ['kind', decision.kind],
+ ['notice_status', decision.notice_status],
+ ];
+}
+
+export function networkBlockAuditMetadata({blockedNetworks}: RecordedDecision): Array<[string, string]> {
+ const until = latestNetworkBlockExpiry(blockedNetworks);
+ if (!until) return [];
+ return [
+ ['blocked_ips', blockedNetworks.map((entry) => entry.ip).join(',')],
+ ['network_blocks_until', until.toISOString()],
+ ];
+}
+
+type DecisionSubjectFields = Pick<
+ EnforcementDecisionRow,
+ 'subject_type' | 'subject_id' | 'subject_name' | 'recipient_user_id'
+>;
+
+type DecisionFields = Pick<
+ EnforcementDecisionRow,
+ | 'kind'
+ | 'reason_code'
+ | 'source'
+ | 'automation'
+ | 'statement'
+ | 'rights_holder'
+ | 'ends_at'
+ | 'deletion_at'
+ | 'feature_limit'
+ | 'profile_fields'
+ | 'removed_message_count'
+ | 'removed_all_messages'
+ | 'payment_at'
+ | 'report_ids'
+ | 'decided_by'
+>;
+
+function evidenceSubject(subject: EnforcementSubject): EvidenceSubject {
+ if (subject.type === 'guild') return {type: 'guild', id: subject.guild.id};
+ const {id, username, discriminator} = subject.user;
+ return {type: 'user', id, username, discriminator};
+}
+
+function canBlockNetworks(kind: EnforcementKind, endsAt: Date | null | undefined): boolean {
+ return kind === 'closure' || (kind === 'suspension' && !endsAt);
+}
+
+function reportOutcome(
+ report: IARSubmission,
+ {kind, removal, removeEvidence}: RecordDecisionParams,
+ evidence: ReadonlyArray<IARMessageContextRow>,
+): ReportItemOutcome | null {
+ if (kind === 'community_removal') return 'removed';
+ if (kind === 'profile_reset' && report.reportedMessageId === null) return 'removed';
+ const messageId = report.reportedMessageId;
+ if (messageId !== null) {
+ const removed =
+ removal?.type === 'all_messages' ||
+ (removal?.type === 'messages' && removal.entries.some((entry) => entry.message_id === messageId)) ||
+ (removeEvidence && evidence.some((message) => message.message_id === messageId));
+ if (removed) return 'removed';
+ }
+ if (kind === 'warning') return 'action_taken';
+ return RESTRICTING_KINDS.has(kind) ? 'restricted' : null;
+}
+
+export class EnforcementDecisionService {
+ constructor(private readonly deps: EnforcementDecisionServiceDeps) {}
+
+ async record(
+ params: RecordDecisionParams,
+ applyState: (decisionId: bigint) => Promise<void>,
+ ): Promise<RecordedDecision> {
+ const {reports, evidence, removedMessageCount, internalNote, networkPlan} = await this.validate(params);
+ const {subject, kind, input, removal, profileReset, actor} = params;
+ const replacedDecisionId =
+ subject.type === 'user' && isAccountKind(kind) ? subject.user.enforcementDecisionId : null;
+ const restricted = ENFORCEMENT_REASONS[input.reason_code].handling === 'restricted';
+ const stored = restricted ? evidence.map(restrictedEvidence) : evidence;
+ const channelKinds = await snapshotEvidenceChannelKinds(evidence, this.deps.channelRepository);
+ const decision = await this.persist(
+ await this.subjectFields(subject),
+ {
+ kind,
+ reason_code: input.reason_code,
+ source: input.source,
+ automation: input.automation,
+ statement: input.statement ?? null,
+ rights_holder: input.rights_holder ?? null,
+ ends_at: params.endsAt ?? null,
+ deletion_at: params.deletionAt ?? null,
+ feature_limit: params.limit ?? null,
+ profile_fields: profileReset ? new Set(profileReset.fields) : null,
+ removed_message_count: removedMessageCount,
+ removed_all_messages: removal?.type === 'all_messages' ? true : null,
+ payment_at: null,
+ report_ids: reports.length > 0 ? new Set(reports.map((report) => report.reportId)) : null,
+ decided_by: actor.adminUserId,
+ },
+ {messages: stored, channelKinds, profileValues: profileReset?.values ?? null},
+ firstNoteBody(
+ input,
+ internalNote,
+ kind === 'suspension' && subject.type === 'user' && hasHolderDeletionPending(subject.user)
+ ? subject.user.pendingDeletionAt
+ : null,
+ ),
+ applyState,
+ );
+ if (subject.type === 'user' && REVIEWING_KINDS.has(kind)) {
+ await this.clearReviewQueueFor(subject.user.id);
+ }
+ if (params.removeEvidence) {
+ await this.queueEvidenceRemoval(decision, evidence, actor.adminUserId);
+ }
+ const carried = replacedDecisionId
+ ? await this.takeOverNetworkBlocks(replacedDecisionId, decision, canBlockNetworks(kind, params.endsAt))
+ : [];
+ const networks = networkPlan
+ ? await this.blockNetworks(decision, networkPlan)
+ : {blocked: [], skipped: [] as Array<SkippedNetwork>};
+ const blocked = [
+ ...carried.filter((entry) => !networks.blocked.some((block) => block.ip === entry.ip)),
+ ...networks.blocked,
+ ];
+ await this.resolveReports(
+ reports.map((report) => ({report, outcome: reportOutcome(report, params, evidence)})),
+ actor,
+ internalNote,
+ );
+ return {
+ decision: await this.deliverNotice(decision, stored, channelKinds, latestNetworkBlockExpiry(blocked)),
+ blockedNetworks: blocked,
+ skippedNetworks: networks.skipped,
+ };
+ }
+
+ async recordAutomatedPurchaseLimit({
+ subject,
+ reasonCode,
+ paymentAt,
+ internalNote,
+ }: AutomatedPurchaseLimitParams): Promise<EnforcementDecisionRow> {
+ const decision = await this.persist(
+ await this.subjectFields({type: 'user', user: subject}),
+ {
+ kind: 'feature_limit',
+ reason_code: reasonCode,
+ source: 'own_review',
+ automation: 'automated',
+ statement: null,
+ rights_holder: null,
+ ends_at: null,
+ deletion_at: null,
+ feature_limit: 'purchases',
+ profile_fields: null,
+ removed_message_count: null,
+ removed_all_messages: null,
+ payment_at: paymentAt,
+ report_ids: null,
+ decided_by: SYSTEM_USER_ID,
+ },
+ {messages: [], channelKinds: new Map(), profileValues: null},
+ internalNote,
+ async () => {
+ await setFeatureLimit(this.deps, subject, 'purchases', true, SYSTEM_USER_ID);
+ },
+ );
+ return this.deliverNotice(decision, [], new Map(), null);
+ }
+
+ async end(
+ decisionId: bigint,
+ request: EnforcementDecisionEndRequest,
+ actor: EnforcementActor,
+ ): Promise<EnforcementDecisionResponse> {
+ const decision = await this.requireDecision(decisionId);
+ requireGrantedAdminACLs(actor.acls, kindAcls(decision));
+ if (isAccountKind(decision.kind)) {
+ const networkBlocks = await this.deps.banManagementService.listDecisionNetworkBlocks(decisionId);
+ if (networkBlocks.length > 0) {
+ requireGrantedAdminACLs(actor.acls, [AdminACLs.BAN_IP_REMOVE]);
+ }
+ }
+ await this.finish(decision, request, actor.adminUserId, actor.internalNote);
+ return this.get(decisionId, actor.acls);
+ }
+
+ async reverseAutomatedPurchaseLimits(subjectId: UserID, paymentAt: Date, internalNote: string): Promise<void> {
+ const active = await listActiveFeatureLimits(this.deps.repository, subjectId, 'purchases');
+ const matching = active.filter(
+ (decision) => decision.automation === 'automated' && decision.payment_at?.getTime() === paymentAt.getTime(),
+ );
+ for (const decision of matching) {
+ await this.finish(decision, {outcome: 'reversed'}, SYSTEM_USER_ID, internalNote);
+ }
+ }
+
+ async get(decisionId: bigint, acls: ReadonlySet<string>): Promise<EnforcementDecisionResponse> {
+ const {repository, delivery} = this.deps;
+ const decision = await this.requireDecision(decisionId);
+ const [notes, evidence, subject, recipient, networkBlocks] = await Promise.all([
+ repository.listNotes(decisionId),
+ repository.getEvidence(decisionId),
+ this.findUserSubject(decision),
+ delivery.findRecipient(decision),
+ this.deps.banManagementService.listDecisionNetworkBlocks(decisionId),
+ ]);
+ const notice = loadDecisionNotice(this.deps, decision, {
+ messages: evidence?.messages ?? [],
+ channelKinds: evidence?.message_locations ?? null,
+ networkBlocks,
+ accountHasEmail: Boolean(recipient?.email),
+ locale: 'en-US',
+ });
+ return toAdminDecisionResponse({decision, subject, notes, evidence, networkBlocks, notice: await notice, acls});
+ }
+
+ async list(query: EnforcementDecisionListQuery, acls: ReadonlySet<string>): Promise<EnforcementDecisionListResponse> {
+ if (query.review_queue || query.subject_type === undefined || query.subject_id === undefined) {
+ const queued = await this.deps.repository.listReviewQueue();
+ return {decisions: queued.slice(0, query.limit).map((decision) => toDecisionSummary(decision, null, acls))};
+ }
+ const decisions = await this.deps.repository.listBySubject(
+ query.subject_type,
+ query.subject_id,
+ query.limit,
+ query.before,
+ );
+ const subject =
+ query.subject_type === 'user'
+ ? await this.deps.apiContext.services.users.findUnique(createUserID(query.subject_id))
+ : null;
+ return {decisions: decisions.map((decision) => toDecisionSummary(decision, subject, acls))};
+ }
+
+ async listNetworkBlockCandidates(userId: bigint): Promise<NetworkBlockCandidatesResponse> {
+ const {users} = this.deps.apiContext.services;
+ const user = await users.findUnique(createUserID(userId));
+ if (!user) {
+ throw new UnknownUserError();
+ }
+ return listNetworkBlockCandidates(users, user);
+ }
+
+ async addNote(decisionId: bigint, body: string, actor: EnforcementActor) {
+ await this.requireDecision(decisionId);
+ const note = {
+ decision_id: decisionId,
+ note_id: await this.deps.apiContext.services.snowflake.generate(),
+ author_id: actor.adminUserId,
+ body,
+ created_at: new Date(),
+ };
+ await this.deps.repository.addNote(note);
+ await this.deps.auditService.createAuditLog({
+ adminUserId: actor.adminUserId,
+ targetType: 'enforcement_decision',
+ targetId: decisionId,
+ action: 'annotate_enforcement_decision',
+ auditLogReason: actor.internalNote,
+ metadata: new Map([
+ ['decision_id', decisionId.toString()],
+ ['note_id', note.note_id.toString()],
+ ]),
+ });
+ return toNoteResponse(note);
+ }
+
+ private async subjectFields(subject: EnforcementSubject): Promise<DecisionSubjectFields> {
+ if (subject.type === 'guild') {
+ const {guild} = subject;
+ return {subject_type: 'guild', subject_id: guild.id, subject_name: guild.name, recipient_user_id: guild.ownerId};
+ }
+ const {user} = subject;
+ return {
+ subject_type: 'user',
+ subject_id: user.id,
+ subject_name: user.isBot ? user.username : null,
+ recipient_user_id: user.isBot ? await this.deps.delivery.findBotOwner(user.id) : user.id,
+ };
+ }
+
+ private async persist(
+ subject: DecisionSubjectFields,
+ fields: DecisionFields,
+ evidence: {
+ messages: ReadonlyArray<IARMessageContextRow>;
+ channelKinds: ReadonlyMap<bigint, EvidenceChannelKind>;
+ profileValues: ReadonlyMap<string, string> | null;
+ },
+ firstNote: string,
+ applyState: (decisionId: bigint) => Promise<void>,
+ ): Promise<EnforcementDecisionRow> {
+ const {repository} = this.deps;
+ const {snowflake} = this.deps.apiContext.services;
+ const decisionId = await snowflake.generate();
+ const now = new Date();
+ const decision: EnforcementDecisionRow = {
+ ...subject,
+ ...fields,
+ decision_id: decisionId,
+ created_at: now,
+ status: 'active',
+ end_outcome: null,
+ ended_at: null,
+ ended_by: null,
+ end_statement: null,
+ notice_status: 'pending',
+ notice_channels: null,
+ notice_locale: null,
+ notice_text: null,
+ notice_sent_at: null,
+ };
+ const note: EnforcementDecisionNoteRow = {
+ decision_id: decisionId,
+ note_id: await snowflake.generate(),
+ author_id: fields.decided_by,
+ body: firstNote,
+ created_at: now,
+ };
+ const hasEvidence = evidence.messages.length > 0 || (evidence.profileValues?.size ?? 0) > 0;
+ await repository.create({
+ decision,
+ evidence: hasEvidence
+ ? {
+ decision_id: decisionId,
+ messages: evidence.messages.length > 0 ? [...evidence.messages] : null,
+ message_locations: evidence.channelKinds.size > 0 ? new Map(evidence.channelKinds) : null,
+ profile_values: evidence.profileValues?.size ? new Map(evidence.profileValues) : null,
+ }
+ : null,
+ firstNote: note,
+ });
+ try {
+ await applyState(decisionId);
+ } catch (error) {
+ if (await this.subjectNamesDecision(decision)) {
+ Logger.error(
+ {decisionId: decisionId.toString(), error},
+ 'An enforcement state change failed after the account was updated, so the decision is kept',
+ );
+ } else {
+ await repository.delete(decision).catch((deleteError: unknown) => {
+ Logger.error(
+ {decisionId: decisionId.toString(), deleteError},
+ 'Failed to delete an enforcement decision whose state change failed',
+ );
+ });
+ }
+ throw error;
+ }
+ return decision;
+ }
+
+ private async finish(
+ decision: EnforcementDecisionRow,
+ request: EnforcementDecisionEndRequest,
+ endedBy: UserID,
+ internalNote: string | null,
+ ): Promise<void> {
+ if (decision.status === 'ended' && !(decision.end_outcome === 'expired' && request.outcome === 'reversed')) {
+ throw new EnforcementDecisionEndedError();
+ }
+ if (request.outcome === 'lifted' && !UNDOABLE_KINDS.has(decision.kind)) {
+ throw InputValidationError.fromCode('outcome', ValidationErrorCodes.ENFORCEMENT_OUTCOME_NOT_ALLOWED);
+ }
+ const inForce = await this.undo(decision, request, endedBy, internalNote);
+ const ended: EnforcementDecisionRow = {
+ ...decision,
+ status: 'ended',
+ end_outcome: request.outcome,
+ ended_at: new Date(),
+ ended_by: endedBy,
+ end_statement: request.statement ?? null,
+ };
+ await this.deps.repository.end(decision.decision_id, {
+ outcome: request.outcome,
+ endedAt: ended.ended_at!,
+ endedBy,
+ statement: ended.end_statement,
+ });
+ if (decision.automation === 'automated') {
+ await this.deps.repository.removeFromReviewQueue([decision.decision_id]);
+ }
+ await this.deps.delivery.deliverEnded(ended, request.outcome, inForce);
+ await this.deps.auditService.createAuditLog({
+ adminUserId: endedBy,
+ targetType: 'enforcement_decision',
+ targetId: decision.decision_id,
+ action: 'end_enforcement_decision',
+ auditLogReason: internalNote,
+ metadata: new Map([
+ ['decision_id', decision.decision_id.toString()],
+ ['kind', decision.kind],
+ ['outcome', request.outcome],
+ ['subject_id', decision.subject_id.toString()],
+ ]),
+ });
+ }
+
+ private async undo(
+ decision: EnforcementDecisionRow,
+ request: EnforcementDecisionEndRequest,
+ actorId: UserID,
+ internalNote: string | null,
+ ): Promise<boolean> {
+ const subjectId = createUserID(decision.subject_id);
+ switch (decision.kind) {
+ case 'suspension':
+ case 'closure': {
+ const user = await this.requireUserSubject(decision);
+ if (user.enforcementDecisionId !== decision.decision_id) {
+ if (request.outcome !== 'reversed' && user.enforcementDecisionId !== null) {
+ throw new EnforcementDecisionReplacedError();
+ }
+ if (request.outcome !== 'reversed') {
+ throw InputValidationError.fromCode('outcome', ValidationErrorCodes.ENFORCEMENT_OUTCOME_NOT_ALLOWED);
+ }
+ await this.deps.banManagementService.removeDecisionNetworkBlocks([decision.decision_id]);
+ return false;
+ }
+ if (decision.kind === 'suspension') {
+ await liftSuspension(this.deps, user);
+ await this.deps.banManagementService.removeDecisionNetworkBlocks([decision.decision_id]);
+ await emitAdminAction(actorId, subjectId, 'unban');
+ return true;
+ }
+ if (user.deletionStartedAt) {
+ throw new EnforcementDeletionStartedError();
+ }
+ await cancelClosure(this.deps, user);
+ await this.deps.banManagementService.removeDecisionNetworkBlocks([decision.decision_id]);
+ const {rule} = ENFORCEMENT_REASONS[decision.reason_code];
+ if (ENFORCEMENT_RULES[rule].barsNewAccounts && user.email) {
+ await this.deps.banManagementService.unbanEmail({email: user.email}, actorId, internalNote);
+ }
+ await emitAdminAction(actorId, subjectId, 'cancel_deletion');
+ return true;
+ }
+ case 'feature_limit': {
+ const limit = decision.feature_limit!;
+ const user = await this.requireUserSubject(decision);
+ const holding = await findHoldingFeatureLimit(this.deps.repository, subjectId, limit, decision.decision_id);
+ if (!holding) {
+ await setFeatureLimit(this.deps, user, limit, false, actorId);
+ }
+ return true;
+ }
+ default:
+ return true;
+ }
+ }
+
+ private async subjectNamesDecision(decision: EnforcementDecisionRow): Promise<boolean> {
+ if (decision.subject_type !== 'user' || !isAccountKind(decision.kind)) return false;
+ try {
+ const user = await this.findUserSubject(decision);
+ return user?.enforcementDecisionId === decision.decision_id;
+ } catch {
+ return true;
+ }
+ }
+
+ private async takeOverNetworkBlocks(
+ replacedDecisionId: bigint,
+ decision: EnforcementDecisionRow,
+ keep: boolean,
+ ): Promise<Array<BannedIpEntry>> {
+ const {banManagementService} = this.deps;
+ try {
+ if (keep) {
+ return await banManagementService.relinkDecisionNetworkBlocks(replacedDecisionId, decision.decision_id);
+ }
+ await banManagementService.removeDecisionNetworkBlocks([replacedDecisionId]);
+ } catch (error) {
+ Logger.error(
+ {decisionId: decision.decision_id.toString(), replacedDecisionId: replacedDecisionId.toString(), error},
+ 'Failed to move the network blocks of a replaced decision',
+ );
+ }
+ return [];
+ }
+
+ private async clearReviewQueueFor(subjectId: UserID): Promise<void> {
+ try {
+ const queued = await this.deps.repository.listReviewQueue();
+ await this.deps.repository.removeFromReviewQueue(
+ queued.filter((decision) => decision.subject_id === subjectId).map((decision) => decision.decision_id),
+ );
+ } catch (error) {
+ Logger.warn({subjectId: subjectId.toString(), error}, 'Failed to clear the review queue for a subject');
+ }
+ }
+
+ private async requireDecision(decisionId: bigint): Promise<EnforcementDecisionRow> {
+ const decision = await this.deps.repository.get(decisionId);
+ if (!decision) {
+ throw new UnknownEnforcementDecisionError();
+ }
+ return decision;
+ }
+
+ private async findUserSubject(decision: EnforcementDecisionRow): Promise<User | null> {
+ if (decision.subject_type !== 'user') return null;
+ return this.deps.apiContext.services.users.findUnique(createUserID(decision.subject_id));
+ }
+
+ private async requireUserSubject(decision: EnforcementDecisionRow): Promise<User> {
+ const user = await this.findUserSubject(decision);
+ if (!user) {
+ throw new UnknownUserError();
+ }
+ return user;
+ }
+
+ private async validate({
+ subject,
+ kind,
+ input,
+ endsAt,
+ limit,
+ removeEvidence,
+ removal,
+ blockNetworks,
+ actor,
+ }: RecordDecisionParams): Promise<{
+ reports: Array<IARSubmission>;
+ evidence: Array<IARMessageContextRow>;
+ removedMessageCount: number | null;
+ internalNote: string;
+ networkPlan: NetworkBlockPlan | null;
+ }> {
+ const reportIds = input.report_ids ?? [];
+ const explicitEvidence = input.evidence ?? [];
+ requireGrantedAdminACLs(actor.acls, [
+ ...(explicitEvidence.length > 0 ? [AdminACLs.MESSAGE_LOOKUP] : []),
+ ...(reportIds.length > 0 ? [AdminACLs.REPORT_VIEW, AdminACLs.REPORT_RESOLVE] : []),
+ ...(removeEvidence ? [AdminACLs.MESSAGE_SHRED] : []),
+ ...(blockNetworks ? [AdminACLs.BAN_IP_ADD, AdminACLs.USER_VIEW_IP] : []),
+ ]);
+ if (!actor.internalNote) {
+ throw InputValidationError.fromCode(
+ 'X-Audit-Log-Reason',
+ ValidationErrorCodes.ENFORCEMENT_INTERNAL_NOTE_REQUIRED,
+ );
+ }
+ if (removal?.type === 'messages' && explicitEvidence.length > 0) {
+ throw InputValidationError.fromCode('decision.evidence', ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_ALLOWED);
+ }
+ const reason = ENFORCEMENT_REASONS[input.reason_code];
+ if (
+ !isEnforcementKindAllowed(input.reason_code, kind) ||
+ (subject.type === 'user' && subject.user.isBot && !isAccountKind(kind)) ||
+ (removal?.type === 'all_messages' && reason.handling === 'restricted')
+ ) {
+ throw InputValidationError.fromCode('decision.reason_code', ValidationErrorCodes.ENFORCEMENT_KIND_NOT_ALLOWED);
+ }
+ if (kind === 'feature_limit' && (!limit || !isEnforcementLimitAllowed(input.reason_code, limit))) {
+ throw InputValidationError.fromCode('limit', ValidationErrorCodes.ENFORCEMENT_LIMIT_NOT_ALLOWED);
+ }
+ if (blockNetworks && (subject.type !== 'user' || !canBlockNetworks(kind, endsAt))) {
+ throw InputValidationError.fromCode('block_networks', ValidationErrorCodes.ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED);
+ }
+ if (input.source === 'report' && reportIds.length === 0) {
+ throw InputValidationError.fromCode('decision.report_ids', ValidationErrorCodes.ENFORCEMENT_REPORT_REQUIRED);
+ }
+ const reports = await this.loadReports(reportIds, subject);
+ const removed = removal?.type === 'messages' ? removal.entries : [];
+ const snapshotted = reason.handling === 'restricted' ? removed.length : EVIDENCE_LIMIT;
+ const evidence = await collectEvidence({
+ subject: evidenceSubject(subject),
+ messages: removed.length > 0 ? removed.slice(0, snapshotted) : explicitEvidence,
+ path: removed.length > 0 ? 'entries' : 'decision.evidence',
+ reports,
+ channelRepository: this.deps.channelRepository,
+ });
+ if (removeEvidence && evidence.length === 0) {
+ throw InputValidationError.fromCode('remove_evidence', ValidationErrorCodes.ENFORCEMENT_EVIDENCE_REQUIRED);
+ }
+ if (reason.handling === 'restricted') {
+ this.validateRestricted(input, kind, endsAt ?? null, evidence.length);
+ } else if (evidence.length === 0 && !input.statement && kind !== 'profile_reset') {
+ throw InputValidationError.fromCode('decision', ValidationErrorCodes.ENFORCEMENT_FACTS_REQUIRED);
+ }
+ if (reason.rule === 'copyright' && !input.rights_holder) {
+ throw InputValidationError.fromCode(
+ 'decision.rights_holder',
+ ValidationErrorCodes.ENFORCEMENT_RIGHTS_HOLDER_REQUIRED,
+ );
+ }
+ if (reason.rule !== 'copyright' && input.rights_holder) {
+ throw InputValidationError.fromCode(
+ 'decision.rights_holder',
+ ValidationErrorCodes.ENFORCEMENT_RIGHTS_HOLDER_NOT_ALLOWED,
+ );
+ }
+ const networkPlan =
+ blockNetworks && subject.type === 'user'
+ ? await planNetworkBlocks(this.deps.apiContext.services.users, subject.user, blockNetworks)
+ : null;
+ const removedMessageCount =
+ removal?.type === 'messages'
+ ? evidence.length + (await this.countOwnMessages(subject, removed.slice(snapshotted)))
+ : removeEvidence
+ ? evidence.length
+ : null;
+ return {reports, evidence, removedMessageCount, internalNote: actor.internalNote, networkPlan};
+ }
+
+ private async countOwnMessages(
+ subject: EnforcementSubject,
+ entries: ReadonlyArray<MessageReference>,
+ ): Promise<number> {
+ if (subject.type !== 'user') return 0;
+ let count = 0;
+ for (const entry of entries) {
+ const message = await this.deps.channelRepository.messages.getMessage(
+ createChannelID(entry.channel_id),
+ createMessageID(entry.message_id),
+ );
+ if (message?.authorId === subject.user.id) count += 1;
+ }
+ return count;
+ }
+
+ private async blockNetworks(
+ decision: EnforcementDecisionRow,
+ plan: NetworkBlockPlan,
+ ): Promise<{blocked: Array<BannedIpEntry>; skipped: Array<SkippedNetwork>}> {
+ if (plan.ips.length === 0) return {blocked: [], skipped: plan.skipped};
+ try {
+ const {blocked, alreadyBlocked} = await this.deps.banManagementService.blockNetworksForDecision(
+ plan.ips,
+ decision.decision_id,
+ plan.expiresAt,
+ );
+ return {
+ blocked,
+ skipped: [...plan.skipped, ...alreadyBlocked.map((ip) => ({ip, reason: 'already_blocked' as const}))],
+ };
+ } catch (error) {
+ Logger.error({decisionId: decision.decision_id.toString(), error}, 'Failed to block the networks of a decision');
+ return {blocked: [], skipped: plan.skipped};
+ }
+ }
+
+ private validateRestricted(
+ input: EnforcementDecisionInput,
+ kind: EnforcementKind,
+ endsAt: Date | null,
+ evidenceCount: number,
+ ): void {
+ if (input.statement) {
+ throw InputValidationError.fromCode('decision.statement', ValidationErrorCodes.ENFORCEMENT_STATEMENT_NOT_ALLOWED);
+ }
+ if (evidenceCount === 0) {
+ throw InputValidationError.fromCode('decision.evidence', ValidationErrorCodes.ENFORCEMENT_EVIDENCE_REQUIRED);
+ }
+ if (kind === 'suspension' && endsAt !== null) {
+ throw InputValidationError.fromCode('duration_hours', ValidationErrorCodes.ENFORCEMENT_PERMANENT_REQUIRED);
+ }
+ if (!CONFIRMATIONS.every((confirmation) => input.confirmations?.includes(confirmation))) {
+ throw InputValidationError.fromCode(
+ 'decision.confirmations',
+ ValidationErrorCodes.ENFORCEMENT_CONFIRMATIONS_REQUIRED,
+ );
+ }
+ }
+
+ private async loadReports(
+ reportIds: ReadonlyArray<bigint>,
+ subject: EnforcementSubject,
+ ): Promise<Array<IARSubmission>> {
+ const subjectId = subject.type === 'user' ? subject.user.id : subject.guild.id;
+ const reports: Array<IARSubmission> = [];
+ for (const [index, reportId] of [...new Set(reportIds)].entries()) {
+ const report = await this.deps.reportService.getReport(createReportID(reportId)).catch((error: unknown) => {
+ if (error instanceof UnknownReportError) return null;
+ throw error;
+ });
+ const reported = subject.type === 'user' ? report?.reportedUserId : report?.reportedGuildId;
+ if (!report || reported !== subjectId) {
+ throw InputValidationError.fromCode(
+ `decision.report_ids.${index}`,
+ ValidationErrorCodes.ENFORCEMENT_REPORT_MISMATCH,
+ );
+ }
+ reports.push(report);
+ }
+ return reports;
+ }
+
+ private async queueEvidenceRemoval(
+ decision: EnforcementDecisionRow,
+ evidence: ReadonlyArray<IARMessageContextRow>,
+ adminUserId: UserID,
+ ): Promise<void> {
+ const entries = evidence.flatMap((message) =>
+ message.channel_id ? [{channel_id: message.channel_id, message_id: message.message_id}] : [],
+ );
+ try {
+ await queueMessageShredJob(this.deps.apiContext, adminUserId, decision.subject_id, entries);
+ } catch (error) {
+ Logger.error(
+ {decisionId: decision.decision_id.toString(), error},
+ 'Failed to queue the removal of enforcement evidence',
+ );
+ }
+ }
+
+ private async resolveReports(
+ outcomes: ReadonlyArray<{report: IARSubmission; outcome: ReportItemOutcome | null}>,
+ actor: EnforcementActor,
+ internalNote: string,
+ ): Promise<void> {
+ for (const {report, outcome} of outcomes) {
+ if (report.status !== ReportStatus.PENDING || outcome === null) continue;
+ try {
+ await this.deps.adminReportService.resolveReport(report.reportId, {
+ adminUserId: actor.adminUserId,
+ publicComment: null,
+ auditLogReason: internalNote,
+ notifyReporter: true,
+ resolution: 'actioned',
+ outcome,
+ });
+ } catch (error) {
+ Logger.warn({reportId: report.reportId.toString(), error}, 'Failed to resolve a report linked to a decision');
+ }
+ }
+ }
+
+ private async deliverNotice(
+ decision: EnforcementDecisionRow,
+ evidence: ReadonlyArray<IARMessageContextRow>,
+ channelKinds: ReadonlyMap<bigint, EvidenceChannelKind>,
+ networksBlockedUntil: Date | null,
+ ): Promise<EnforcementDecisionRow> {
+ const {repository, delivery, channelRepository, guildRepository} = this.deps;
+ try {
+ const locations = await resolveEvidenceLocations(evidence, channelKinds, channelRepository, guildRepository);
+ const notice = await delivery.deliver(decision, locations, networksBlockedUntil);
+ if (!notice) return decision;
+ await repository.setNotice(decision.decision_id, notice);
+ return {
+ ...decision,
+ notice_status: notice.status,
+ notice_channels: notice.channels.size > 0 ? new Set(notice.channels) : null,
+ notice_locale: notice.locale,
+ notice_text: notice.text,
+ notice_sent_at: notice.sentAt,
+ };
+ } catch (error) {
+ Logger.error({decisionId: decision.decision_id.toString(), error}, 'Failed to deliver an enforcement notice');
+ return decision;
+ }
+ }
+}
diff --git a/fluxer_api/src/api/enforcement/EnforcementEvidence.ts b/fluxer_api/src/api/enforcement/EnforcementEvidence.ts
new file mode 100644
index 000000000..b44e69771
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/EnforcementEvidence.ts
@@ -0,0 +1,270 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {type ChannelID, createChannelID, createMessageID, type GuildID, type UserID} from '@app/api/BrandedTypes';
+import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
+import type {EvidenceChannelKind} from '@app/api/database/types/EnforcementTypes';
+import type {MessageAttachment} from '@app/api/database/types/MessageTypes';
+import type {IARMessageContextRow} from '@app/api/database/types/ReportTypes';
+import type {EvidenceMessageLocation} from '@app/api/enforcement/EnforcementNotice';
+import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
+import type {Channel} from '@app/api/models/Channel';
+import type {Message} from '@app/api/models/Message';
+import type {IARMessageContext, IARSubmission} from '@app/api/report/ReportModels';
+import {ChannelTypes, MessageTypes} from '@fluxer/constants/src/ChannelConstants';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
+import {snowflakeToDate} from '@fluxer/snowflake/src/Snowflake';
+
+function isAuthoredContent(type: number): boolean {
+ return type === MessageTypes.DEFAULT || type === MessageTypes.REPLY;
+}
+
+function isConversation(type: number): boolean {
+ return type === ChannelTypes.DM || type === ChannelTypes.GROUP_DM;
+}
+
+function attachmentMetadata(attachment: MessageAttachment): MessageAttachment {
+ return {
+ attachment_id: attachment.attachment_id,
+ filename: attachment.filename,
+ size: attachment.size,
+ title: null,
+ description: null,
+ width: null,
+ height: null,
+ content_type: attachment.content_type,
+ content_hash: null,
+ placeholder: null,
+ flags: 0,
+ duration: null,
+ nsfw: null,
+ waveform: null,
+ };
+}
+
+function orNull<T>(items: Array<T>): Array<T> | null {
+ return items.length > 0 ? items : null;
+}
+
+function fromReportContext(entry: IARMessageContext, report: IARSubmission): IARMessageContextRow {
+ return {
+ message_id: entry.messageId,
+ channel_id: entry.channelId ?? report.reportedChannelId,
+ author_id: entry.authorId,
+ webhook_id: entry.webhookId,
+ author_username: entry.authorUsername,
+ author_discriminator: entry.authorDiscriminator,
+ author_avatar_hash: entry.authorAvatarHash,
+ content: entry.content,
+ timestamp: entry.timestamp,
+ edited_timestamp: entry.editedTimestamp,
+ type: entry.type,
+ flags: entry.flags,
+ mention_everyone: entry.mentionEveryone,
+ mention_users: orNull(entry.mentionUsers),
+ mention_roles: orNull(entry.mentionRoles),
+ mention_channels: orNull(entry.mentionChannels),
+ attachments: null,
+ embeds: orNull(entry.embeds),
+ sticker_items: orNull(entry.stickers),
+ missing_attachments: orNull([...entry.attachments, ...entry.missingAttachments].map(attachmentMetadata)),
+ };
+}
+
+function fromLiveMessage(message: Message, author: {username: string; discriminator: number}): IARMessageContextRow {
+ return {
+ message_id: message.id,
+ channel_id: message.channelId,
+ author_id: message.authorId,
+ webhook_id: message.webhookId,
+ author_username: author.username,
+ author_discriminator: author.discriminator,
+ author_avatar_hash: null,
+ content: message.content || null,
+ timestamp: snowflakeToDate(message.id),
+ edited_timestamp: message.editedTimestamp,
+ type: message.type,
+ flags: message.flags,
+ mention_everyone: message.mentionEveryone,
+ mention_users: orNull([...message.mentionedUserIds]),
+ mention_roles: orNull([...message.mentionedRoleIds]),
+ mention_channels: orNull([...message.mentionedChannelIds]),
+ attachments: null,
+ embeds: orNull(message.embeds.map((embed) => embed.toMessageEmbed())),
+ sticker_items: orNull(message.stickers.map((sticker) => sticker.toMessageStickerItem())),
+ missing_attachments: orNull(
+ message.attachments.map((attachment) => attachmentMetadata(attachment.toMessageAttachment())),
+ ),
+ };
+}
+
+export function restrictedEvidence(message: IARMessageContextRow): IARMessageContextRow {
+ return {
+ message_id: message.message_id,
+ channel_id: message.channel_id,
+ author_id: null,
+ webhook_id: null,
+ author_username: '',
+ author_discriminator: 0,
+ author_avatar_hash: null,
+ content: null,
+ timestamp: message.timestamp,
+ edited_timestamp: null,
+ type: 0,
+ flags: 0,
+ mention_everyone: false,
+ mention_users: null,
+ mention_roles: null,
+ mention_channels: null,
+ attachments: null,
+ embeds: null,
+ sticker_items: null,
+ missing_attachments: orNull(
+ (message.missing_attachments ?? []).map((attachment) => ({
+ ...attachmentMetadata(attachment),
+ filename: '',
+ size: 0n,
+ content_type: '',
+ })),
+ ),
+ };
+}
+
+export type EvidenceSubject =
+ | {type: 'user'; id: UserID; username: string; discriminator: number}
+ | {type: 'guild'; id: GuildID};
+
+export interface MessageReference {
+ channel_id: bigint;
+ message_id: bigint;
+}
+
+interface CollectEvidenceParams {
+ subject: EvidenceSubject;
+ messages: ReadonlyArray<MessageReference>;
+ path: string;
+ reports: ReadonlyArray<IARSubmission>;
+ channelRepository: ChannelRepository;
+}
+
+const UNKNOWN_AUTHOR = {username: '', discriminator: 0};
+
+export async function collectEvidence({
+ subject,
+ messages,
+ path,
+ reports,
+ channelRepository,
+}: CollectEvidenceParams): Promise<Array<IARMessageContextRow>> {
+ const channels = new Map<bigint, Channel | null>();
+ const findChannel = async (channelId: bigint): Promise<Channel | null> => {
+ if (!channels.has(channelId)) {
+ channels.set(channelId, await channelRepository.channelData.findUnique(createChannelID(channelId)));
+ }
+ return channels.get(channelId) ?? null;
+ };
+ const belongsToSubject = async (authorId: bigint | null, channelId: bigint | null): Promise<boolean> => {
+ if (subject.type === 'user') return authorId === subject.id;
+ return channelId !== null && (await findChannel(channelId))?.guildId === subject.id;
+ };
+ const reported = reports.flatMap((report) =>
+ (report.messageContext ?? []).map((entry) => fromReportContext(entry, report)),
+ );
+ const collected = new Map<bigint, IARMessageContextRow>();
+ for (const [index, entry] of messages.entries()) {
+ const entryPath = `${path}.${index}`;
+ const fromReport = reported.find(
+ (message) => message.message_id === entry.message_id && message.channel_id === entry.channel_id,
+ );
+ if (fromReport) {
+ if (!(await belongsToSubject(fromReport.author_id, fromReport.channel_id))) {
+ throw InputValidationError.fromCode(entryPath, ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_SUBJECT);
+ }
+ collected.set(fromReport.message_id, fromReport);
+ continue;
+ }
+ const channelId = createChannelID(entry.channel_id);
+ const message = await channelRepository.messages.getMessage(channelId, createMessageID(entry.message_id));
+ if (!message) {
+ throw InputValidationError.fromCode(entryPath, ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_FOUND);
+ }
+ if (!(await belongsToSubject(message.authorId, channelId))) {
+ throw InputValidationError.fromCode(entryPath, ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_SUBJECT);
+ }
+ const channel = await findChannel(channelId);
+ if (channel && isConversation(channel.type) && !reports.some((report) => report.reportedChannelId === channelId)) {
+ throw InputValidationError.fromCode(entryPath, ValidationErrorCodes.ENFORCEMENT_EVIDENCE_DM_UNREPORTED);
+ }
+ collected.set(message.id, fromLiveMessage(message, subject.type === 'user' ? subject : UNKNOWN_AUTHOR));
+ }
+ for (const message of reported) {
+ if (
+ isAuthoredContent(message.type) &&
+ !collected.has(message.message_id) &&
+ (await belongsToSubject(message.author_id, message.channel_id))
+ ) {
+ collected.set(message.message_id, message);
+ }
+ }
+ return [...collected.values()];
+}
+
+function channelKindOf(channel: Channel): EvidenceChannelKind {
+ if (channel.type === ChannelTypes.DM) return 'direct_message';
+ if (channel.type === ChannelTypes.GROUP_DM) return 'group_message';
+ return 'channel';
+}
+
+function channelIdsOf(messages: ReadonlyArray<IARMessageContextRow>): Set<ChannelID> {
+ return new Set(messages.flatMap((message) => (message.channel_id ? [message.channel_id as ChannelID] : [])));
+}
+
+export async function snapshotEvidenceChannelKinds(
+ messages: ReadonlyArray<IARMessageContextRow>,
+ channelRepository: ChannelRepository,
+): Promise<Map<bigint, EvidenceChannelKind>> {
+ const kinds = new Map<bigint, EvidenceChannelKind>();
+ for (const channelId of channelIdsOf(messages)) {
+ const channel = await channelRepository.channelData.findUnique(channelId);
+ if (channel) kinds.set(channelId, channelKindOf(channel));
+ }
+ return new Map(
+ messages.flatMap((message) => {
+ const kind = message.channel_id ? kinds.get(message.channel_id) : undefined;
+ return kind ? [[message.message_id, kind] as const] : [];
+ }),
+ );
+}
+
+export async function resolveEvidenceLocations(
+ messages: ReadonlyArray<IARMessageContextRow>,
+ recordedKinds: ReadonlyMap<bigint, EvidenceChannelKind> | null,
+ channelRepository: ChannelRepository,
+ guildRepository: GuildRepository,
+): Promise<Array<EvidenceMessageLocation>> {
+ const channels = new Map<string, EvidenceMessageLocation['location']>();
+ for (const channelId of channelIdsOf(messages)) {
+ const channel = await channelRepository.channelData.findUnique(channelId);
+ if (!channel) continue;
+ const kind = channelKindOf(channel);
+ if (kind !== 'channel') {
+ channels.set(channelId.toString(), {type: kind});
+ } else if (channel.guildId) {
+ const guild = await guildRepository.findUnique(channel.guildId);
+ if (guild) {
+ channels.set(channelId.toString(), {
+ type: 'channel',
+ channelName: channel.name ?? '',
+ communityName: guild.name,
+ });
+ }
+ }
+ }
+ return messages.map((message) => {
+ const locationKey = message.channel_id?.toString() ?? 'none';
+ const recorded = recordedKinds?.get(message.message_id);
+ const location =
+ recorded && recorded !== 'channel' ? {type: recorded} : (channels.get(locationKey) ?? {type: 'unknown' as const});
+ return {locationKey, location, timestamp: message.timestamp};
+ });
+}
diff --git a/fluxer_api/src/api/enforcement/EnforcementNotice.ts b/fluxer_api/src/api/enforcement/EnforcementNotice.ts
new file mode 100644
index 000000000..97bc6599e
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/EnforcementNotice.ts
@@ -0,0 +1,416 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {Config} from '@app/api/Config';
+import {type ContentI18nMessageArgs, getContentMessage} from '@app/api/content_i18n/ContentI18n';
+import type {ContentI18nKey} from '@app/api/content_i18n/ContentI18nMessages';
+import {joinLocalizedList} from '@app/api/content_i18n/JoinLocalizedList';
+import type {EnforcementDecisionRow} from '@app/api/database/types/EnforcementTypes';
+import {
+ formatNoticeDate,
+ formatNoticeMonth,
+ formatNoticeTimeUtc,
+ isPermanentSuspensionEnd,
+} from '@app/api/enforcement/NoticeDates';
+import {resolveContactEmails} from '@app/api/instance/ContactEmails';
+import {getLegalUrls} from '@app/api/instance/LegalUrls';
+import {getInstanceProductName} from '@app/api/instance/ProductName';
+import type {User} from '@app/api/models/User';
+import {isAccountClosed} from '@app/api/user/UserHelpers';
+import {
+ ENFORCEMENT_APPEAL_WINDOW_DAYS,
+ ENFORCEMENT_REASONS,
+ ENFORCEMENT_RULES,
+ type EnforcementRuleKey,
+ enforcementReasonOf,
+ isAccountKind,
+} from '@fluxer/constants/src/EnforcementReasons';
+import type {UserProfileField} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
+import type {EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+import {ms} from 'itty-time';
+
+type EnforcementContentKey = Extract<ContentI18nKey, `enforcement.${string}`>;
+type NoticeArgs<K extends EnforcementContentKey> = K extends EnforcementContentKey
+ ? ContentI18nMessageArgs<K> extends [variables: infer Variables]
+ ? [keyof Omit<Variables, 'product_name'>] extends [never]
+ ? [variables?: undefined]
+ : [variables: Omit<Variables, 'product_name'>]
+ : [variables?: undefined]
+ : never;
+
+interface NoticeTarget {
+ target: 'account' | 'bot';
+ bot_name: string;
+}
+
+type EvidenceLocation =
+ | {type: 'channel'; channelName: string; communityName: string}
+ | {type: 'direct_message'}
+ | {type: 'group_message'}
+ | {type: 'unknown'};
+
+export interface EvidenceMessageLocation {
+ locationKey: string;
+ location: EvidenceLocation;
+ timestamp: Date;
+}
+
+type EnforcementNoticeSource =
+ | {
+ type: 'decision';
+ decision: EnforcementDecisionRow;
+ evidence: ReadonlyArray<EvidenceMessageLocation>;
+ networksBlockedUntil: Date | null;
+ accountHasEmail: boolean;
+ }
+ | {type: 'legacy'; user: User};
+
+const OUT_OF_COURT_URL = 'https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement';
+const SELF_HARM_ANCHOR = ENFORCEMENT_RULES.self_harm.anchor;
+const DOUBLED_PERIOD = /(?<!\.)\.\.(?!\.)/g;
+
+interface NoticeContext {
+ locale: string | null;
+ hosted: boolean;
+ appealsEmail: string | null;
+ productName: string;
+}
+
+export function isBotDecision(decision: EnforcementDecisionRow): boolean {
+ return decision.subject_type === 'user' && decision.subject_name !== null;
+}
+
+function text<K extends EnforcementContentKey>(ctx: NoticeContext, key: K, ...args: NoticeArgs<K>): string {
+ const variables = [{product_name: ctx.productName, ...args[0]}] as ContentI18nMessageArgs<K>;
+ return getContentMessage(key, ctx.locale, ...variables).replace(DOUBLED_PERIOD, '.');
+}
+
+function ruleUrl(ctx: NoticeContext, rule: EnforcementRuleKey): string | null {
+ const {policy, anchor} = ENFORCEMENT_RULES[rule];
+ const legal = getLegalUrls();
+ const base = policy === 'terms' ? legal.termsUrl : legal.guidelinesUrl;
+ if (!base) return null;
+ return ctx.hosted ? `${base}#${anchor}` : base;
+}
+
+type RuleReference = NonNullable<EnforcementNotice['rule']>;
+
+function ruleOf(ctx: NoticeContext, rule: EnforcementRuleKey): RuleReference {
+ return {title: text(ctx, `enforcement.rule.${rule}`), url: ruleUrl(ctx, rule)};
+}
+
+function redressLines(ctx: NoticeContext): Array<string> {
+ if (!ctx.hosted) return [];
+ return [
+ text(ctx, 'enforcement.redress.out_of_court', {url: OUT_OF_COURT_URL}),
+ text(ctx, 'enforcement.redress.regulator_and_court'),
+ ];
+}
+
+function appealOf(ctx: NoticeContext, from: Date | null, accountHasEmail: boolean): EnforcementNotice['appeal'] {
+ if (!ctx.appealsEmail) return null;
+ return {
+ email: ctx.appealsEmail,
+ deadline: from
+ ? formatNoticeDate(new Date(from.getTime() + ms(`${ENFORCEMENT_APPEAL_WINDOW_DAYS} days`)), ctx.locale)
+ : null,
+ account_has_email: accountHasEmail,
+ };
+}
+
+function profileFieldList(ctx: NoticeContext, fields: ReadonlySet<string> | null): string {
+ const labels = [...(fields ?? [])].map((field) =>
+ text(ctx, `enforcement.profile_field.${field as UserProfileField}`),
+ );
+ return joinLocalizedList(labels, ctx.locale);
+}
+
+interface LocationGroup {
+ location: EvidenceLocation;
+ first: Date;
+ last: Date;
+ count: number;
+}
+
+function isPrivateLocation(location: EvidenceLocation): boolean {
+ return location.type === 'direct_message' || location.type === 'group_message';
+}
+
+function groupLocations(
+ ctx: NoticeContext,
+ evidence: ReadonlyArray<EvidenceMessageLocation>,
+ byMonth: boolean,
+): Array<LocationGroup> {
+ const groups = new Map<string, LocationGroup>();
+ const sorted = [...evidence].sort((left, right) => left.timestamp.getTime() - right.timestamp.getTime());
+ for (const message of sorted) {
+ const key =
+ byMonth && isPrivateLocation(message.location)
+ ? `${message.locationKey}:${formatNoticeMonth(message.timestamp, ctx.locale)}`
+ : message.locationKey;
+ const group = groups.get(key);
+ if (group) {
+ group.last = message.timestamp;
+ group.count += 1;
+ } else {
+ groups.set(key, {location: message.location, first: message.timestamp, last: message.timestamp, count: 1});
+ }
+ }
+ return [...groups.values()];
+}
+
+function locationLine(ctx: NoticeContext, group: LocationGroup, community: boolean, byMonth: boolean): string {
+ const start = formatNoticeTimeUtc(group.first, ctx.locale);
+ const end = formatNoticeTimeUtc(group.last, ctx.locale);
+ const range = {count: group.count, range: start === end ? 'single' : 'other', start, end};
+ const month = {count: group.count, month: formatNoticeMonth(group.first, ctx.locale)};
+ switch (group.location.type) {
+ case 'channel':
+ return community
+ ? text(ctx, 'enforcement.facts.community_channel', {...range, channel: group.location.channelName})
+ : text(ctx, 'enforcement.facts.channel', {
+ ...range,
+ channel: group.location.channelName,
+ community: group.location.communityName,
+ });
+ case 'direct_message':
+ return byMonth
+ ? text(ctx, 'enforcement.facts.direct_message_month', month)
+ : text(ctx, 'enforcement.facts.direct_message', range);
+ case 'group_message':
+ return byMonth
+ ? text(ctx, 'enforcement.facts.group_message_month', month)
+ : text(ctx, 'enforcement.facts.group_message', range);
+ case 'unknown':
+ return text(ctx, 'enforcement.facts.unknown_location', range);
+ }
+}
+
+function decisionSummary(ctx: NoticeContext, decision: EnforcementDecisionRow, target: NoticeTarget): string {
+ switch (decision.kind) {
+ case 'suspension':
+ return decision.ends_at
+ ? text(ctx, 'enforcement.summary.suspension', {
+ ...target,
+ ends_at: formatNoticeTimeUtc(decision.ends_at, ctx.locale),
+ })
+ : text(ctx, 'enforcement.summary.suspension_permanent', target);
+ case 'warning':
+ return text(ctx, 'enforcement.summary.warning');
+ case 'closure':
+ return text(ctx, 'enforcement.summary.closure', target);
+ case 'feature_limit':
+ return text(ctx, 'enforcement.summary.feature_limit', {
+ ends: decision.ends_at ? 'yes' : 'no',
+ ends_at: decision.ends_at ? formatNoticeTimeUtc(decision.ends_at, ctx.locale) : '',
+ });
+ case 'content_removal':
+ return text(ctx, 'enforcement.summary.content_removal', {
+ all: decision.removed_all_messages ? 'yes' : 'no',
+ count: decision.removed_message_count ?? 0,
+ });
+ case 'profile_reset':
+ return text(ctx, 'enforcement.summary.profile_reset', {
+ fields: profileFieldList(ctx, decision.profile_fields),
+ });
+ case 'community_removal':
+ return text(ctx, 'enforcement.summary.community_removal', {community_name: decision.subject_name ?? ''});
+ }
+}
+
+function kindEffect(ctx: NoticeContext, decision: EnforcementDecisionRow, target: NoticeTarget): string {
+ switch (decision.kind) {
+ case 'suspension':
+ return text(
+ ctx,
+ decision.ends_at ? 'enforcement.effect.suspension' : 'enforcement.effect.suspension_permanent',
+ target,
+ );
+ case 'warning':
+ return text(ctx, 'enforcement.effect.warning');
+ case 'closure':
+ return text(ctx, 'enforcement.effect.closure', {
+ ...target,
+ deletion_at: decision.deletion_at ? formatNoticeDate(decision.deletion_at, ctx.locale) : '',
+ });
+ case 'feature_limit':
+ switch (decision.feature_limit) {
+ case 'reports':
+ return text(ctx, 'enforcement.effect.limit_reports', {
+ safety_route: ctx.hosted ? 'yes' : 'no',
+ url: `${Config.endpoints.marketing}/company-information`,
+ });
+ case 'purchases':
+ return text(ctx, 'enforcement.effect.limit_purchases', {
+ review: decision.automation === 'automated' ? 'yes' : 'no',
+ });
+ default:
+ return text(ctx, 'enforcement.effect.limit_direct_messages');
+ }
+ case 'content_removal':
+ case 'profile_reset':
+ return text(ctx, 'enforcement.effect.account_not_restricted');
+ case 'community_removal':
+ return text(ctx, 'enforcement.effect.community_removed');
+ }
+}
+
+function decisionEffects(
+ ctx: NoticeContext,
+ decision: EnforcementDecisionRow,
+ target: NoticeTarget,
+ networksBlockedUntil: Date | null,
+): Array<string> {
+ const reason = ENFORCEMENT_REASONS[decision.reason_code];
+ const ownAccount = decision.subject_type === 'user' && target.target === 'account';
+ const accountKind = isAccountKind(decision.kind);
+ const effects = [kindEffect(ctx, decision, target)];
+ if (!accountKind) {
+ effects.push(text(ctx, 'enforcement.effect.scope'));
+ }
+ const barsNewAccounts =
+ (decision.kind === 'closure' || (decision.kind === 'suspension' && !decision.ends_at)) &&
+ ENFORCEMENT_RULES[reason.rule].barsNewAccounts;
+ if (ownAccount && barsNewAccounts) {
+ effects.push(text(ctx, 'enforcement.effect.no_other_accounts'));
+ }
+ if (accountKind && (decision.removed_message_count ?? 0) > 0) {
+ effects.push(text(ctx, 'enforcement.effect.messages_removed', {count: decision.removed_message_count ?? 0}));
+ }
+ if (accountKind && networksBlockedUntil) {
+ effects.push(
+ text(ctx, 'enforcement.effect.networks_blocked', {date: formatNoticeDate(networksBlockedUntil, ctx.locale)}),
+ );
+ }
+ return effects;
+}
+
+function leadKey(decision: EnforcementDecisionRow, rule: EnforcementRuleKey): EnforcementContentKey {
+ if (decision.kind === 'community_removal') return 'enforcement.lead.community';
+ if (isBotDecision(decision)) return 'enforcement.lead.bot';
+ return `enforcement.lead.${rule}`;
+}
+
+function decisionFacts(
+ ctx: NoticeContext,
+ decision: EnforcementDecisionRow,
+ evidence: ReadonlyArray<EvidenceMessageLocation>,
+): Array<string> {
+ const reason = ENFORCEMENT_REASONS[decision.reason_code];
+ const community = decision.kind === 'community_removal';
+ const facts = [text(ctx, leadKey(decision, reason.rule))];
+ if (reason.handling !== 'restricted') {
+ const byMonth = reason.handling === 'protected';
+ for (const group of groupLocations(ctx, evidence, byMonth)) {
+ facts.push(locationLine(ctx, group, community, byMonth));
+ }
+ }
+ if (decision.kind === 'profile_reset') {
+ facts.push(text(ctx, 'enforcement.facts.profile', {fields: profileFieldList(ctx, decision.profile_fields)}));
+ }
+ if (decision.payment_at) {
+ facts.push(text(ctx, 'enforcement.facts.payment', {date: formatNoticeDate(decision.payment_at, ctx.locale)}));
+ }
+ if (decision.rights_holder) {
+ facts.push(text(ctx, 'enforcement.facts.copyright', {rights_holder: decision.rights_holder}));
+ }
+ const guidelinesUrl = getLegalUrls().guidelinesUrl;
+ if (reason.rule === 'self_harm' && ctx.hosted && guidelinesUrl) {
+ facts.push(text(ctx, 'enforcement.welfare.self_harm', {url: `${guidelinesUrl}#${SELF_HARM_ANCHOR}`}));
+ }
+ return facts;
+}
+
+function howWeDecided(ctx: NoticeContext, decision: EnforcementDecisionRow): Array<string> {
+ return [
+ text(ctx, `enforcement.source.${decision.source}`),
+ text(ctx, `enforcement.automation.${decision.automation}`),
+ ];
+}
+
+function buildDecisionNotice(
+ ctx: NoticeContext,
+ {decision, evidence, networksBlockedUntil, accountHasEmail}: Extract<EnforcementNoticeSource, {type: 'decision'}>,
+): EnforcementNotice {
+ const reason = ENFORCEMENT_REASONS[decision.reason_code];
+ const target: NoticeTarget = {
+ target: isBotDecision(decision) ? 'bot' : 'account',
+ bot_name: decision.subject_name ?? '',
+ };
+ return {
+ decision_id: decision.decision_id.toString(),
+ kind: decision.kind,
+ permanent: decision.kind === 'suspension' && decision.ends_at === null,
+ issued_at: decision.created_at.toISOString(),
+ ends_at: decision.ends_at?.toISOString() ?? null,
+ deletion_at: decision.deletion_at?.toISOString() ?? null,
+ summary: decisionSummary(ctx, decision, target),
+ effects: decisionEffects(ctx, decision, target, networksBlockedUntil),
+ rule: ruleOf(ctx, reason.rule),
+ facts: decisionFacts(ctx, decision, evidence),
+ statement: reason.handling === 'restricted' ? null : decision.statement,
+ how_we_decided: howWeDecided(ctx, decision),
+ appeal: appealOf(ctx, decision.notice_sent_at, accountHasEmail),
+ redress: redressLines(ctx),
+ };
+}
+
+function buildLegacyNotice(ctx: NoticeContext, user: User, now: Date): EnforcementNotice {
+ const closed = isAccountClosed(user);
+ const permanent = !closed && (user.tempBannedUntil === null || isPermanentSuspensionEnd(user.tempBannedUntil, now));
+ const target: NoticeTarget = {target: 'account', bot_name: ''};
+ const reason = closed ? enforcementReasonOf(user.deletionReasonCode) : null;
+ const rule = reason ? ruleOf(ctx, reason.rule) : null;
+ const statement = closed && reason?.handling === 'standard' ? user.deletionPublicReason : null;
+ const summary = closed
+ ? text(ctx, 'enforcement.summary.closure', target)
+ : permanent
+ ? text(ctx, 'enforcement.summary.suspension_permanent', target)
+ : text(ctx, 'enforcement.summary.suspension', {
+ ...target,
+ ends_at: formatNoticeTimeUtc(user.tempBannedUntil!, ctx.locale),
+ });
+ const effect = closed
+ ? text(ctx, 'enforcement.effect.closure', {
+ ...target,
+ deletion_at: user.pendingDeletionAt ? formatNoticeDate(user.pendingDeletionAt, ctx.locale) : '',
+ })
+ : text(ctx, permanent ? 'enforcement.effect.suspension_permanent' : 'enforcement.effect.suspension', target);
+ return {
+ decision_id: null,
+ kind: closed ? 'closure' : 'suspension',
+ permanent,
+ issued_at: null,
+ ends_at: closed || permanent ? null : (user.tempBannedUntil?.toISOString() ?? null),
+ deletion_at: closed ? (user.pendingDeletionAt?.toISOString() ?? null) : null,
+ summary,
+ effects: [effect],
+ rule,
+ facts: statement ? [] : [text(ctx, 'enforcement.lead.legacy')],
+ statement,
+ how_we_decided: [],
+ appeal: appealOf(ctx, closed ? user.deletionScheduledAt : null, user.email !== null),
+ redress: redressLines(ctx),
+ };
+}
+
+function noticeContext(locale: string | null): NoticeContext {
+ return {
+ locale,
+ hosted: !Config.instance.selfHosted,
+ appealsEmail: resolveContactEmails().appealsEmail,
+ productName: getInstanceProductName(),
+ };
+}
+
+export function describeRule(rule: EnforcementRuleKey, locale: string | null): RuleReference {
+ return ruleOf(noticeContext(locale), rule);
+}
+
+export function buildEnforcementNotice(
+ source: EnforcementNoticeSource,
+ locale: string | null,
+ now: Date = new Date(),
+): EnforcementNotice {
+ const ctx = noticeContext(locale);
+ return source.type === 'decision' ? buildDecisionNotice(ctx, source) : buildLegacyNotice(ctx, source.user, now);
+}
diff --git a/fluxer_api/src/api/enforcement/EnforcementNoticeDelivery.ts b/fluxer_api/src/api/enforcement/EnforcementNoticeDelivery.ts
new file mode 100644
index 000000000..3a6949e8a
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/EnforcementNoticeDelivery.ts
@@ -0,0 +1,226 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {ApiContext} from '@app/api/ApiContext';
+import {trySendAdminNotification} from '@app/api/admin/services/AdminNotification';
+import {createApplicationID, createUserID, type UserID} from '@app/api/BrandedTypes';
+import type {EnforcementDecisionRow, EnforcementNoticeChannel} from '@app/api/database/types/EnforcementTypes';
+import type {EnforcementNoticeRecord} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {
+ buildEnforcementNotice,
+ type EvidenceMessageLocation,
+ isBotDecision,
+} from '@app/api/enforcement/EnforcementNotice';
+import {getInstanceProductName} from '@app/api/instance/ProductName';
+import {Logger} from '@app/api/Logger';
+import {getInstanceConfigRepository} from '@app/api/middleware/ServiceSingletons';
+import type {User} from '@app/api/models/User';
+import type {ApplicationRepository} from '@app/api/oauth/repositories/ApplicationRepository';
+import {type SystemDmDeps, systemDmBody, trySendSystemDm} from '@app/api/user/services/SystemDmMessage';
+import {ENFORCEMENT_REASONS, isAccountKind} from '@fluxer/constants/src/EnforcementReasons';
+import type {EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+import {getEmailTemplate} from '@pkgs/email/src/email_i18n/EmailI18n';
+import type {EmailTemplateVariables, EnforcementNoticeKindLabel} from '@pkgs/email/src/email_i18n/EmailI18nTypes';
+
+interface EnforcementNoticeDeliveryDeps {
+ apiContext: ApiContext;
+ applicationRepository: ApplicationRepository;
+ systemDm: SystemDmDeps;
+}
+
+function sendsSystemDm(decision: EnforcementDecisionRow): boolean {
+ return !isAccountKind(decision.kind) || isBotDecision(decision);
+}
+
+type NoticeFormat = 'email' | 'system_dm';
+
+const MARKDOWN_LINK = /\[([^\]]+)\]\((\S+?)\)/g;
+
+function lineText(line: string, format: NoticeFormat): string {
+ return format === 'email' ? line.replace(MARKDOWN_LINK, '$1 ($2)') : line;
+}
+
+function joinLines(lines: ReadonlyArray<string>, format: NoticeFormat): string {
+ return lines.map((line) => lineText(line, format)).join('\n');
+}
+
+function ruleTitle(rule: EnforcementNotice['rule'], format: NoticeFormat): string {
+ if (!rule) return '';
+ return format === 'system_dm' && rule.url ? `[${rule.title}](${rule.url})` : rule.title;
+}
+
+function kindLabel(decision: EnforcementDecisionRow, notice: EnforcementNotice): EnforcementNoticeKindLabel {
+ if (isBotDecision(decision)) return 'bot';
+ return notice.permanent ? 'ban' : decision.kind;
+}
+
+function noticeVariables(
+ decision: EnforcementDecisionRow,
+ notice: EnforcementNotice,
+ username: string,
+ format: NoticeFormat,
+): EmailTemplateVariables['enforcement_notice'] {
+ const {handling} = ENFORCEMENT_REASONS[decision.reason_code];
+ return {
+ username,
+ kind_label: kindLabel(decision, notice),
+ neutral: handling === 'restricted' ? 'yes' : 'no',
+ summary: lineText(notice.summary, format),
+ effects: joinLines(notice.effects, format),
+ rule_title: ruleTitle(notice.rule, format),
+ rule_url: format === 'email' ? (notice.rule?.url ?? null) : null,
+ facts: joinLines(notice.facts, format),
+ statement: notice.statement,
+ how_we_decided: joinLines(notice.how_we_decided, format),
+ appeals_email: notice.appeal?.email ?? null,
+ appeal_deadline: notice.appeal?.deadline ?? '',
+ redress: notice.redress.length > 0 ? joinLines(notice.redress, format) : null,
+ decision_id: decision.decision_id.toString(),
+ };
+}
+
+function renderNotice(variables: EmailTemplateVariables['enforcement_notice'], locale: string | null) {
+ return getEmailTemplate('enforcement_notice', locale, variables, getInstanceProductName());
+}
+
+export function renderNoticeText(
+ decision: EnforcementDecisionRow,
+ notice: EnforcementNotice,
+ username: string,
+ locale: string | null,
+): string | null {
+ const rendered = renderNotice(noticeVariables(decision, notice, username, 'system_dm'), locale);
+ return rendered.ok ? systemDmBody(rendered.value.body) : null;
+}
+
+export class EnforcementNoticeDelivery {
+ constructor(private readonly deps: EnforcementNoticeDeliveryDeps) {}
+
+ async findRecipient(decision: EnforcementDecisionRow): Promise<User | null> {
+ const {users} = this.deps.apiContext.services;
+ if (decision.recipient_user_id === null) return null;
+ return users.findUnique(createUserID(decision.recipient_user_id));
+ }
+
+ async findBotOwner(botUserId: UserID): Promise<UserID | null> {
+ const application = await this.deps.applicationRepository.getApplication(createApplicationID(BigInt(botUserId)));
+ return application?.botUserId === botUserId ? application.ownerUserId : null;
+ }
+
+ async deliver(
+ decision: EnforcementDecisionRow,
+ evidence: ReadonlyArray<EvidenceMessageLocation>,
+ networksBlockedUntil: Date | null,
+ ): Promise<EnforcementNoticeRecord | null> {
+ const recipient = await this.findRecipient(decision);
+ const email = (await getInstanceConfigRepository().getEffectiveEmailConfig()).enabled ? recipient?.email : null;
+ const systemDm = sendsSystemDm(decision);
+ if (!recipient || (!email && !systemDm)) {
+ return {status: 'undelivered', channels: new Set(), locale: recipient?.locale ?? null, text: null, sentAt: null};
+ }
+ const sentAt = new Date();
+ const notice = buildEnforcementNotice(
+ {
+ type: 'decision',
+ decision: {...decision, notice_sent_at: sentAt},
+ evidence,
+ networksBlockedUntil,
+ accountHasEmail: Boolean(email),
+ },
+ recipient.locale,
+ );
+ const variables = noticeVariables(decision, notice, recipient.username, 'email');
+ const rendered = renderNotice(variables, recipient.locale);
+ const dmText = renderNoticeText(decision, notice, recipient.username, recipient.locale);
+ if (!rendered.ok || dmText === null) {
+ Logger.error(
+ {decisionId: decision.decision_id.toString(), error: rendered.ok ? null : rendered.error},
+ 'Failed to render an enforcement notice',
+ );
+ return null;
+ }
+ const channels = new Set<EnforcementNoticeChannel>();
+ const targetId = decision.decision_id.toString();
+ if (
+ email &&
+ (await trySendAdminNotification(
+ () => this.deps.apiContext.services.email.sendEnforcementNoticeEmail(email, variables, recipient.locale),
+ {action: 'enforcement_notice', targetId},
+ ))
+ ) {
+ channels.add('email');
+ }
+ if (systemDm && (await this.sendSystemDm(recipient, dmText))) {
+ channels.add('system_dm');
+ }
+ if (channels.size === 0) return null;
+ return {
+ status: 'sent',
+ channels,
+ locale: recipient.locale,
+ text: channels.has('email') ? rendered.value.body : dmText,
+ sentAt,
+ };
+ }
+
+ async deliverEnded(
+ decision: EnforcementDecisionRow,
+ outcome: EmailTemplateVariables['enforcement_ended']['outcome'],
+ inForce: boolean,
+ ): Promise<void> {
+ const recipient = await this.findRecipient(decision);
+ if (!recipient) return;
+ const variables: EmailTemplateVariables['enforcement_ended'] = {
+ username: recipient.username,
+ outcome,
+ decision_id: decision.decision_id.toString(),
+ restores_access: inForce && isAccountKind(decision.kind) ? 'yes' : 'no',
+ statement: decision.end_statement,
+ content_removed:
+ decision.kind === 'community_removal' ||
+ (decision.removed_message_count ?? 0) > 0 ||
+ decision.removed_all_messages
+ ? 'yes'
+ : 'no',
+ };
+ await this.sendEnded(recipient, variables, sendsSystemDm(decision));
+ }
+
+ async sendLegacyEnded(recipient: User): Promise<void> {
+ await this.sendEnded(
+ recipient,
+ {
+ username: recipient.username,
+ outcome: 'lifted',
+ decision_id: null,
+ restores_access: 'yes',
+ statement: null,
+ content_removed: 'no',
+ },
+ false,
+ );
+ }
+
+ private async sendEnded(
+ recipient: User,
+ variables: EmailTemplateVariables['enforcement_ended'],
+ systemDm: boolean,
+ ): Promise<void> {
+ const targetId = variables.decision_id ?? recipient.id.toString();
+ const email = recipient.email;
+ if (email) {
+ await trySendAdminNotification(
+ () => this.deps.apiContext.services.email.sendEnforcementEndedEmail(email, variables, recipient.locale),
+ {action: 'enforcement_ended', targetId},
+ );
+ }
+ if (!systemDm) return;
+ const rendered = getEmailTemplate('enforcement_ended', recipient.locale, variables, getInstanceProductName());
+ if (rendered.ok) {
+ await this.sendSystemDm(recipient, systemDmBody(rendered.value.body));
+ }
+ }
+
+ private sendSystemDm(recipient: User, content: string): Promise<boolean> {
+ return trySendSystemDm(this.deps.systemDm, this.deps.apiContext.services.users, recipient.id, content);
+ }
+}
diff --git a/fluxer_api/src/api/enforcement/FeatureLimitState.ts b/fluxer_api/src/api/enforcement/FeatureLimitState.ts
new file mode 100644
index 000000000..b9e7d4b5f
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/FeatureLimitState.ts
@@ -0,0 +1,78 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {UserID} from '@app/api/BrandedTypes';
+import type {EnforcementDecisionRow} from '@app/api/database/types/EnforcementTypes';
+import {isDecisionExpired} from '@app/api/enforcement/DecisionStatus';
+import type {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import type {SuspensionStateDeps} from '@app/api/enforcement/SuspensionState';
+import {emitAdminAction} from '@app/api/infrastructure/activity/AccountChangeEvents';
+import type {User} from '@app/api/models/User';
+import {clearNewConversationLimit} from '@app/api/user/NewConversationLimit';
+import {propagateUserUpdate} from '@app/api/user/services/PartialUserChangePropagation';
+import type {EnforcementLimit} from '@fluxer/constants/src/EnforcementReasons';
+import {PremiumFlags, UserFlags} from '@fluxer/constants/src/UserConstants';
+import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
+
+export const FEATURE_LIMIT_USER_FLAGS: Readonly<Partial<Record<EnforcementLimit, bigint>>> = {
+ direct_messages: UserFlags.SPAMMER,
+ reports: UserFlags.REPORT_BANNED,
+};
+
+export const FEATURE_LIMIT_PREMIUM_FLAGS: Readonly<Partial<Record<EnforcementLimit, number>>> = {
+ purchases: PremiumFlags.PURCHASE_DISABLED,
+};
+
+export async function listActiveFeatureLimits(
+ repository: EnforcementDecisionRepository,
+ subjectId: UserID,
+ limit: EnforcementLimit,
+): Promise<Array<EnforcementDecisionRow>> {
+ const decisions = await repository.listBySubject('user', subjectId);
+ return decisions.filter(
+ (decision) => decision.kind === 'feature_limit' && decision.status === 'active' && decision.feature_limit === limit,
+ );
+}
+
+export async function findHoldingFeatureLimit(
+ repository: EnforcementDecisionRepository,
+ subjectId: UserID,
+ limit: EnforcementLimit,
+ exceptDecisionId: bigint | null = null,
+): Promise<EnforcementDecisionRow | null> {
+ const active = await listActiveFeatureLimits(repository, subjectId, limit);
+ return active.find((decision) => decision.decision_id !== exceptDecisionId && !isDecisionExpired(decision)) ?? null;
+}
+
+export async function setFeatureLimit(
+ {apiContext, userUpdateDeps}: SuspensionStateDeps,
+ user: User,
+ limit: EnforcementLimit,
+ enabled: boolean,
+ actorId: UserID,
+): Promise<User> {
+ const {users, cache} = apiContext.services;
+ const userFlag = FEATURE_LIMIT_USER_FLAGS[limit];
+ let updated: User;
+ if (userFlag !== undefined) {
+ const flagged = await users.updateFlags(user.id, (flags) => (enabled ? flags | userFlag : flags & ~userFlag));
+ if (!flagged) {
+ throw new UnknownUserError();
+ }
+ updated = flagged;
+ } else {
+ const premiumFlag = FEATURE_LIMIT_PREMIUM_FLAGS[limit]!;
+ updated = await users.patchUpsert(
+ user.id,
+ {premium_flags: enabled ? user.premiumFlags | premiumFlag : user.premiumFlags & ~premiumFlag},
+ user.toRow(),
+ );
+ }
+ await propagateUserUpdate(userUpdateDeps, user, updated);
+ if (!enabled) {
+ await clearNewConversationLimit(user.id, {cache});
+ }
+ if (userFlag !== undefined) {
+ await emitAdminAction(actorId, user.id, 'update_flags');
+ }
+ return updated;
+}
diff --git a/fluxer_api/src/api/enforcement/NetworkBlockError.ts b/fluxer_api/src/api/enforcement/NetworkBlockError.ts
new file mode 100644
index 000000000..adfcae8ac
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/NetworkBlockError.ts
@@ -0,0 +1,37 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {BannedIpKind} from '@app/api/admin/AdminRepository';
+import {Config} from '@app/api/Config';
+import {describeRule} from '@app/api/enforcement/EnforcementNotice';
+import {formatNoticeTimeUtc} from '@app/api/enforcement/NoticeDates';
+import {resolveContactEmails} from '@app/api/instance/ContactEmails';
+import {getInstanceProductName} from '@app/api/instance/ProductName';
+import {ENFORCEMENT_RULES, enforcementReasonOf} from '@fluxer/constants/src/EnforcementReasons';
+import {IpBannedError} from '@fluxer/errors/src/domains/moderation/IpBannedError';
+
+export interface NetworkBlock {
+ ipAddress: string;
+ kind: BannedIpKind;
+ expiresAt: Date | null;
+ reasonCode: number | null;
+}
+
+function shownReason(reasonCode: number | null, locale: string) {
+ const reason = enforcementReasonOf(reasonCode);
+ return reason && ENFORCEMENT_RULES[reason.rule].showOnNetworkScreen ? describeRule(reason.rule, locale) : null;
+}
+
+export function createNetworkBlockError(block: NetworkBlock, locale: string): IpBannedError {
+ const contacts = resolveContactEmails();
+ const reason = shownReason(block.reasonCode, locale);
+ return new IpBannedError({
+ ipAddress: block.ipAddress,
+ kind: block.kind,
+ expiresAt: block.expiresAt,
+ expiresAtText: block.expiresAt ? formatNoticeTimeUtc(block.expiresAt, locale) : null,
+ appealEmail: reason ? contacts.appealsEmail : contacts.supportEmail,
+ appealsSupported: !Config.instance.selfHosted,
+ reason,
+ productName: getInstanceProductName(),
+ });
+}
diff --git a/fluxer_api/src/api/enforcement/NetworkBlocks.ts b/fluxer_api/src/api/enforcement/NetworkBlocks.ts
new file mode 100644
index 000000000..9006abda3
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/NetworkBlocks.ts
@@ -0,0 +1,111 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {BannedIpEntry} from '@app/api/admin/AdminRepository';
+import {listRecentUserIps} from '@app/api/admin/services/KnownUserIps';
+import type {UserID} from '@app/api/BrandedTypes';
+import {isIpBanExempt} from '@app/api/ban/IpBanExemptions';
+import type {User} from '@app/api/models/User';
+import type {UserRepository} from '@app/api/user/repositories/UserRepository';
+import {isSignInRefused} from '@app/api/user/UserHelpers';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
+import {canonicalizeIpAddress, isPublicIpAddress} from '@fluxer/ip_utils/src/IpAddress';
+import type {NetworkBlockCandidatesResponse} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
+import {ms} from 'itty-time';
+
+type NetworkSkipReason = 'exempt' | 'special_purpose';
+
+export interface SkippedNetwork {
+ ip: string;
+ reason: NetworkSkipReason | 'already_blocked';
+}
+
+export interface NetworkBlockPlan {
+ ips: Array<string>;
+ skipped: Array<SkippedNetwork>;
+ expiresAt: Date;
+}
+
+const RECENT_NETWORK_WINDOW = ms('30 days');
+const SHARED_ACCOUNT_SCAN_LIMIT = 200;
+
+export function latestNetworkBlockExpiry(entries: ReadonlyArray<BannedIpEntry>): Date | null {
+ let latest: Date | null = null;
+ for (const {expiresAt} of entries) {
+ if (expiresAt && (!latest || expiresAt.getTime() > latest.getTime())) latest = expiresAt;
+ }
+ return latest;
+}
+
+function skipReasonOf(ip: string): NetworkSkipReason | null {
+ if (isIpBanExempt(ip)) return 'exempt';
+ if (!isPublicIpAddress(ip)) return 'special_purpose';
+ return null;
+}
+
+async function countOtherUnrestrictedAccounts(users: UserRepository, ip: string, subjectId: UserID): Promise<number> {
+ const {userIds, total} = await users.listUserIdsByLastActiveIp(ip, SHARED_ACCOUNT_SCAN_LIMIT, 0);
+ const others = userIds.filter((userId) => userId !== subjectId);
+ if (total > SHARED_ACCOUNT_SCAN_LIMIT) return total - (userIds.length - others.length);
+ if (others.length === 0) return 0;
+ const accounts = await users.listUsers(others);
+ return accounts.filter((account) => !isSignInRefused(account)).length;
+}
+
+function recentSince(now: Date): Date {
+ return new Date(now.getTime() - RECENT_NETWORK_WINDOW);
+}
+
+export async function listNetworkBlockCandidates(
+ users: UserRepository,
+ user: User,
+ now: Date = new Date(),
+): Promise<NetworkBlockCandidatesResponse> {
+ const recent = await listRecentUserIps(users, user, recentSince(now));
+ const networks = await Promise.all(
+ recent.map(async ({ip, lastSeenAt}) => {
+ const skipReason = skipReasonOf(ip);
+ return {
+ ip,
+ last_seen_at: lastSeenAt.toISOString(),
+ skip_reason: skipReason,
+ other_unrestricted_accounts: skipReason ? 0 : await countOtherUnrestrictedAccounts(users, ip, user.id),
+ };
+ }),
+ );
+ return {networks};
+}
+
+export async function planNetworkBlocks(
+ users: UserRepository,
+ user: User,
+ request: {ips: ReadonlyArray<string>; days: number},
+ now: Date = new Date(),
+): Promise<NetworkBlockPlan> {
+ const recent = new Set((await listRecentUserIps(users, user, recentSince(now))).map(({ip}) => ip));
+ const plan: NetworkBlockPlan = {
+ ips: [],
+ skipped: [],
+ expiresAt: new Date(now.getTime() + ms(`${request.days} days`)),
+ };
+ const seen = new Set<string>();
+ for (const [index, requested] of request.ips.entries()) {
+ const ip = canonicalizeIpAddress(requested) ?? requested;
+ if (seen.has(ip)) continue;
+ seen.add(ip);
+ const path = `block_networks.ips.${index}`;
+ if (!recent.has(ip)) {
+ throw InputValidationError.fromCode(path, ValidationErrorCodes.ENFORCEMENT_NETWORK_UNKNOWN);
+ }
+ const skipReason = skipReasonOf(ip);
+ if (skipReason) {
+ plan.skipped.push({ip, reason: skipReason});
+ continue;
+ }
+ if ((await countOtherUnrestrictedAccounts(users, ip, user.id)) > 0) {
+ throw InputValidationError.fromCode(path, ValidationErrorCodes.ENFORCEMENT_NETWORK_SHARED);
+ }
+ plan.ips.push(ip);
+ }
+ return plan;
+}
diff --git a/fluxer_api/src/api/enforcement/NoticeDates.ts b/fluxer_api/src/api/enforcement/NoticeDates.ts
new file mode 100644
index 000000000..040d14540
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/NoticeDates.ts
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {resolveContentLocale} from '@app/api/content_i18n/ContentI18n';
+
+const PERMANENT_SUSPENSION_YEARS = 100;
+const PERMANENT_SUSPENSION_THRESHOLD_YEARS = 50;
+
+export function permanentSuspensionEnd(now: Date): Date {
+ const end = new Date(now);
+ end.setUTCFullYear(end.getUTCFullYear() + PERMANENT_SUSPENSION_YEARS);
+ return end;
+}
+
+export function isPermanentSuspensionEnd(end: Date, now: Date): boolean {
+ return end.getUTCFullYear() - now.getUTCFullYear() >= PERMANENT_SUSPENSION_THRESHOLD_YEARS;
+}
+
+function format(date: Date, locale: string | null | undefined, options: Intl.DateTimeFormatOptions): string {
+ return new Intl.DateTimeFormat(resolveContentLocale(locale), {...options, timeZone: 'UTC'}).format(date);
+}
+
+export function formatNoticeTimeUtc(date: Date, locale: string | null | undefined): string {
+ return `${format(date, locale, {dateStyle: 'medium', timeStyle: 'short'})} UTC`;
+}
+
+export function formatNoticeDate(date: Date, locale: string | null | undefined): string {
+ return format(date, locale, {dateStyle: 'medium'});
+}
+
+export function formatNoticeMonth(date: Date, locale: string | null | undefined): string {
+ return format(date, locale, {month: 'long', year: 'numeric'});
+}
diff --git a/fluxer_api/src/api/enforcement/SuspensionState.ts b/fluxer_api/src/api/enforcement/SuspensionState.ts
new file mode 100644
index 000000000..955343bb1
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/SuspensionState.ts
@@ -0,0 +1,121 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {ApiContext} from '@app/api/ApiContext';
+import {revokeAllAuthSessions} from '@app/api/auth/AuthSessionRevocation';
+import {SYSTEM_USER_ID} from '@app/api/constants/Core';
+import type {ClosureStateDeps} from '@app/api/enforcement/ClosureState';
+import type {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import type {User} from '@app/api/models/User';
+import {clearNewConversationLimit} from '@app/api/user/NewConversationLimit';
+import type {UserRepository} from '@app/api/user/repositories/UserRepository';
+import {
+ type PartialUserChangePropagationDeps,
+ propagateUserUpdate,
+} from '@app/api/user/services/PartialUserChangePropagation';
+import {clearPendingDeletion} from '@app/api/user/services/PendingDeletionCoordinator';
+import {UserFlags} from '@fluxer/constants/src/UserConstants';
+
+export interface SuspensionStateDeps {
+ apiContext: ApiContext;
+ userUpdateDeps: PartialUserChangePropagationDeps;
+}
+
+export function hasHolderDeletionPending(user: User): boolean {
+ return (user.flags & UserFlags.SELF_DELETED) !== 0n && user.pendingDeletionAt !== null;
+}
+
+async function cancelHolderDeletionAndSuspend(
+ {apiContext, kvDeletionQueue}: ClosureStateDeps,
+ user: User,
+ until: Date,
+ decisionId: bigint,
+): Promise<User> {
+ const updated = await apiContext.services.users.updateDeletionSchedule(user, {
+ flags: (user.flags | UserFlags.DISABLED) & ~UserFlags.SELF_DELETED,
+ pending_deletion_at: null,
+ deletion_reason_code: null,
+ deletion_public_reason: null,
+ deletion_audit_log_reason: null,
+ temp_banned_until: until,
+ enforcement_decision_id: decisionId,
+ });
+ await clearPendingDeletion({userId: user.id, deletionQueue: kvDeletionQueue});
+ return updated;
+}
+
+export async function applySuspension(
+ deps: ClosureStateDeps,
+ user: User,
+ until: Date,
+ decisionId: bigint,
+): Promise<User> {
+ const {apiContext, userUpdateDeps} = deps;
+ const {users} = apiContext.services;
+ let updated: User;
+ if (hasHolderDeletionPending(user)) {
+ updated = await cancelHolderDeletionAndSuspend(deps, user, until, decisionId);
+ } else {
+ const suspended = await users.patchUpsert(
+ user.id,
+ {temp_banned_until: until, enforcement_decision_id: decisionId},
+ user.toRow(),
+ );
+ updated = (await users.updateFlags(user.id, (flags) => flags | UserFlags.DISABLED)) ?? suspended;
+ }
+ await revokeAllAuthSessions(apiContext.services, user.id);
+ await propagateUserUpdate(userUpdateDeps, user, updated);
+ return updated;
+}
+
+export async function clearSuspensionState(
+ users: Pick<UserRepository, 'patchUpsert' | 'updateFlags'>,
+ user: User,
+): Promise<User> {
+ const lifted = await users.patchUpsert(
+ user.id,
+ {temp_banned_until: null, enforcement_decision_id: null},
+ user.toRow(),
+ );
+ return (await users.updateFlags(user.id, (flags) => flags & ~UserFlags.DISABLED)) ?? lifted;
+}
+
+export interface ExpiredSuspensionDeps {
+ users: Pick<UserRepository, 'findUnique' | 'patchUpsert' | 'updateFlags'>;
+ repository: Pick<EnforcementDecisionRepository, 'get' | 'endIfActive'>;
+}
+
+export function hasExpiredSuspension(user: User, now: Date = new Date()): boolean {
+ return (
+ (user.flags & UserFlags.DISABLED) !== 0n &&
+ user.tempBannedUntil !== null &&
+ user.tempBannedUntil.getTime() <= now.getTime()
+ );
+}
+
+export async function clearExpiredSuspension(
+ {users, repository}: ExpiredSuspensionDeps,
+ user: User,
+ now: Date = new Date(),
+): Promise<{previous: User; cleared: User} | null> {
+ if (!hasExpiredSuspension(user, now)) return null;
+ const current = await users.findUnique(user.id);
+ if (!current || !hasExpiredSuspension(current, now)) return null;
+ const decision = current.enforcementDecisionId === null ? null : await repository.get(current.enforcementDecisionId);
+ if (decision?.kind === 'suspension' && decision.status === 'active' && decision.ends_at !== null) {
+ await repository.endIfActive(decision.decision_id, {
+ outcome: 'expired',
+ endedAt: current.tempBannedUntil!,
+ endedBy: SYSTEM_USER_ID,
+ statement: null,
+ });
+ }
+ return {previous: current, cleared: await clearSuspensionState(users, current)};
+}
+
+export async function liftSuspension({apiContext, userUpdateDeps}: SuspensionStateDeps, user: User): Promise<User> {
+ const {users, cache} = apiContext.services;
+ const updated = await clearSuspensionState(users, user);
+ await propagateUserUpdate(userUpdateDeps, user, updated);
+ await clearNewConversationLimit(user.id, {cache});
+ return updated;
+}
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementClosure.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementClosure.test.ts
new file mode 100644
index 000000000..33656b1c8
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementClosure.test.ts
@@ -0,0 +1,384 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {AdminRepository} from '@app/api/admin/AdminRepository';
+import {resolveDeletionDays} from '@app/api/admin/services/AdminUserDeletionService';
+import {clearTestEmails, createTestAccount, loginAccount, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {getConfig} from '@app/api/Config';
+import {createNoticeLookupDeps, loadAccountNotice} from '@app/api/enforcement/EnforcementAccountNotice';
+import {formatNoticeDate} from '@app/api/enforcement/NoticeDates';
+import {
+ close,
+ closeRequest,
+ createStaff,
+ decisionBody,
+ emailsTo,
+ endDecision,
+ getDecision,
+ listDecisions,
+ loadUser,
+ suspend,
+} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {resetActivityEventsForTests, startActivityEvents} from '@app/api/infrastructure/activity/ActivityEvents';
+import type {ActivityPublisher} from '@app/api/infrastructure/activity/ActivitySpool';
+import type {Event} from '@app/api/infrastructure/activity/Contract.generated';
+import {getUserRepository} from '@app/api/middleware/ServiceSingletons';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder} from '@app/api/test/TestRequestBuilder';
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {UserFlags} from '@fluxer/constants/src/UserConstants';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {MockKVProvider} from '@pkgs/kv_client/src/testing/MockKVProvider';
+import {ms} from 'itty-time';
+import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, test} from 'vitest';
+
+class CapturingPublisher implements ActivityPublisher {
+ readonly events: Array<Event> = [];
+
+ async publish(_subject: string, payload: string): Promise<void> {
+ this.events.push(JSON.parse(payload) as Event);
+ }
+
+ adminActions(targetId: string): Array<Extract<Event, {kind: 'admin_action'}>['data']> {
+ return this.events
+ .filter((event): event is Extract<Event, {kind: 'admin_action'}> => event.kind === 'admin_action')
+ .filter((event) => event.data.target_id === targetId)
+ .map((event) => event.data);
+ }
+}
+
+function daysFromNow(iso: string | null): number {
+ return Math.round((new Date(iso!).getTime() - Date.now()) / ms('1 day'));
+}
+
+describe('Enforcement closures', () => {
+ let harness: ApiTestHarness;
+ let staff: TestAccount;
+ let publisher: CapturingPublisher;
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ staff = await createStaff(harness);
+ publisher = new CapturingPublisher();
+ await startActivityEvents({publisher, kv: new MockKVProvider()});
+ });
+
+ afterEach(() => {
+ resetActivityEventsForTests();
+ });
+
+ afterAll(async () => {
+ await harness?.shutdown();
+ });
+
+ async function isEmailBanned(account: TestAccount): Promise<boolean> {
+ return new AdminRepository().isEmailBanned(account.email);
+ }
+
+ describe('holder request', () => {
+ test('writes the self-deletion state with code 1 and at least 14 days, with no decision', async () => {
+ const target = await createTestAccount(harness);
+ await clearTestEmails(harness);
+ const {user} = await closeRequest(harness, staff, target.userId, {
+ days_until_deletion: 1,
+ basis: {type: 'holder_request'},
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(daysFromNow(user.pending_deletion_at)).toBe(14);
+ expect(user.enforcement_decision_id).toBeNull();
+ const stored = await loadUser(target);
+ expect(stored.flags & UserFlags.SELF_DELETED).toBe(UserFlags.SELF_DELETED);
+ expect(stored.flags & UserFlags.DELETED).toBe(0n);
+ expect(stored.deletionReasonCode).toBe(DeletionReasons.USER_REQUESTED);
+ expect(await listDecisions(harness, staff, target.userId)).toEqual([]);
+ const [email] = await emailsTo(harness, target, 'account_deletion_scheduled_requested');
+ expect(email?.metadata.deletion_date).toBe(formatNoticeDate(stored.pendingDeletionAt!, stored.locale));
+ expect(await emailsTo(harness, target, 'enforcement_notice')).toEqual([]);
+ expect(await isEmailBanned(target)).toBe(false);
+ expect(publisher.adminActions(target.userId)).toEqual([
+ expect.objectContaining({action: 'schedule_deletion', reason_code: DeletionReasons.USER_REQUESTED, ips: []}),
+ ]);
+ });
+
+ test('signing in cancels it', async () => {
+ const target = await createTestAccount(harness);
+ await closeRequest(harness, staff, target.userId, {days_until_deletion: 14, basis: {type: 'holder_request'}})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ await loginAccount(harness, target);
+ const stored = await loadUser(target);
+ expect(stored.pendingDeletionAt).toBeNull();
+ expect(stored.flags & UserFlags.SELF_DELETED).toBe(0n);
+ });
+
+ test('remove_evidence is refused without a broken rule', async () => {
+ const target = await createTestAccount(harness);
+ const {json} = await closeRequest(harness, staff, target.userId, {
+ days_until_deletion: 14,
+ basis: {type: 'holder_request'},
+ remove_evidence: true,
+ })
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .executeWithResponse();
+ expect(JSON.stringify(json)).toContain(ValidationErrorCodes.ENFORCEMENT_EVIDENCE_REQUIRED);
+ expect((await loadUser(target)).pendingDeletionAt).toBeNull();
+ });
+ });
+
+ test('housekeeping writes code 19, sends the inactivity email and never bans the email', async () => {
+ const target = await createTestAccount(harness);
+ await clearTestEmails(harness);
+ await closeRequest(harness, staff, target.userId, {days_until_deletion: 30, basis: {type: 'housekeeping'}})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const stored = await loadUser(target);
+ expect(stored.deletionReasonCode).toBe(DeletionReasons.INACTIVITY);
+ expect(stored.flags & UserFlags.SELF_DELETED).toBe(UserFlags.SELF_DELETED);
+ expect(await emailsTo(harness, target, 'account_deletion_scheduled_inactivity')).toHaveLength(1);
+ expect(await isEmailBanned(target)).toBe(false);
+ expect(publisher.adminActions(target.userId)[0]?.ips).toEqual([]);
+ });
+
+ test.each([
+ ['holder_request', 'holder_request'],
+ ['housekeeping', 'housekeeping'],
+ ])('a %s closure is refused while a decision owns the account', async (_label, type) => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ const response = await closeRequest(harness, staff, target.userId, {days_until_deletion: 30, basis: {type}})
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.ENFORCEMENT_DECISION_OWNS_STATE)
+ .execute();
+ expect((response as unknown as {decision_id: string}).decision_id).toBe(decisionId);
+ expect((await loadUser(target)).pendingDeletionAt).toBeNull();
+ });
+
+ describe('enforcement basis', () => {
+ test('records a closure decision that lasts at least 74 days and bans the email', async () => {
+ const target = await createTestAccount(harness);
+ await clearTestEmails(harness);
+ const {user} = await closeRequest(harness, staff, target.userId, {
+ days_until_deletion: 14,
+ basis: {type: 'enforcement', decision: decisionBody()},
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(daysFromNow(user.pending_deletion_at)).toBe(74);
+ const stored = await loadUser(target);
+ expect(stored.flags & UserFlags.DELETED).toBe(UserFlags.DELETED);
+ expect(stored.flags & UserFlags.SELF_DELETED).toBe(0n);
+ expect(stored.deletionReasonCode).toBe(DeletionReasons.SPAM);
+ expect(stored.deletionPublicReason).toBeNull();
+ expect(stored.deletionAuditLogReason).toBeNull();
+ expect(stored.enforcementDecisionId?.toString()).toBe(user.enforcement_decision_id);
+ const decision = await getDecision(harness, staff, user.enforcement_decision_id!);
+ expect(decision).toMatchObject({kind: 'closure', status: 'active', notice_status: 'sent'});
+ expect(decision.deletion_at).toBe(user.pending_deletion_at);
+ expect(decision.notice_text).toContain(
+ "We closed your account.\n\nYou can't sign in or use Fluxer anywhere. We'll delete the account and its data on ",
+ );
+ expect(decision.notice_text).toContain('You may not create or use other accounts.');
+ expect(await emailsTo(harness, target, 'enforcement_notice')).toHaveLength(1);
+ expect(await isEmailBanned(target)).toBe(true);
+ const [action] = publisher.adminActions(target.userId);
+ expect(action).toMatchObject({action: 'schedule_deletion', reason_code: DeletionReasons.SPAM});
+ expect(action?.ips.length).toBeGreaterThan(0);
+ });
+
+ test('a self-hosted instance has no appeal route, so a closure lasts at least 14 days', async () => {
+ const config = getConfig();
+ const selfHosted = config.instance.selfHosted;
+ config.instance.selfHosted = true;
+ try {
+ const target = await createTestAccount(harness);
+ const {user} = await closeRequest(harness, staff, target.userId, {
+ days_until_deletion: 3,
+ basis: {type: 'enforcement', decision: decisionBody()},
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(daysFromNow(user.pending_deletion_at)).toBe(14);
+ const decision = await getDecision(harness, staff, user.enforcement_decision_id!);
+ expect(decision).toMatchObject({kind: 'closure', status: 'active'});
+ expect(decision.deletion_at).toBe(user.pending_deletion_at);
+ expect((await loadUser(target)).flags & UserFlags.DELETED).toBe(UserFlags.DELETED);
+ } finally {
+ config.instance.selfHosted = selfHosted;
+ }
+ });
+
+ test('each mode raises every basis to its own floor and keeps longer requests', () => {
+ const config = getConfig();
+ const selfHosted = config.instance.selfHosted;
+ try {
+ config.instance.selfHosted = false;
+ expect(resolveDeletionDays('enforcement', 1)).toBe(74);
+ expect(resolveDeletionDays('holder_request', 1)).toBe(14);
+ expect(resolveDeletionDays('housekeeping', 1)).toBe(14);
+ expect(resolveDeletionDays('enforcement', 90)).toBe(90);
+ config.instance.selfHosted = true;
+ expect(resolveDeletionDays('enforcement', 1)).toBe(14);
+ expect(resolveDeletionDays('holder_request', 1)).toBe(14);
+ expect(resolveDeletionDays('housekeeping', 1)).toBe(14);
+ expect(resolveDeletionDays('enforcement', 90)).toBe(90);
+ } finally {
+ config.instance.selfHosted = selfHosted;
+ }
+ });
+
+ test('a rule that does not bar new accounts neither bans the email nor sends IPs', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await close(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({reason_code: DeletionReasons.UNDERAGE_ACCOUNT}),
+ );
+ expect(await isEmailBanned(target)).toBe(false);
+ expect(publisher.adminActions(target.userId)[0]?.ips).toEqual([]);
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision.notice_text).toContain("you're welcome back once you're old enough");
+ expect(decision.notice_text).not.toContain('You may not create or use other accounts.');
+ });
+
+ test('replaces a suspension and the suspension reads as replaced', async () => {
+ const target = await createTestAccount(harness);
+ const suspensionId = await suspend(harness, staff, target.userId);
+ await clearTestEmails(harness);
+ const closureId = await close(harness, staff, target.userId);
+ const stored = await loadUser(target);
+ expect(stored.enforcementDecisionId?.toString()).toBe(closureId);
+ expect(stored.tempBannedUntil).toBeNull();
+ expect(stored.flags & UserFlags.DISABLED).toBe(0n);
+ const decisions = await listDecisions(harness, staff, target.userId);
+ expect(decisions.find((decision) => decision.decision_id === suspensionId)?.replaced).toBe(true);
+ expect(await emailsTo(harness, target, 'enforcement_ended')).toEqual([]);
+ });
+
+ test('restricted reasons cannot close an account', async () => {
+ const target = await createTestAccount(harness);
+ await closeRequest(harness, staff, target.userId, {
+ days_until_deletion: 74,
+ basis: {type: 'enforcement', decision: decisionBody({reason_code: DeletionReasons.CHILD_SAFETY_VIOLATION})},
+ })
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ expect((await loadUser(target)).pendingDeletionAt).toBeNull();
+ });
+
+ test('ending it cancels the deletion, lifts the email ban and tells the holder', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await close(harness, staff, target.userId);
+ await clearTestEmails(harness);
+ await endDecision(harness, staff, decisionId, 'lifted').expect(HTTP_STATUS.OK).execute();
+ const stored = await loadUser(target);
+ expect(stored.pendingDeletionAt).toBeNull();
+ expect(stored.flags & UserFlags.DELETED).toBe(0n);
+ expect(stored.enforcementDecisionId).toBeNull();
+ expect(stored.deletionReasonCode).toBeNull();
+ expect(await isEmailBanned(target)).toBe(false);
+ expect(await harness.kvProvider.zcard('deletion_queue')).toBe(0);
+ const [email] = await emailsTo(harness, target, 'enforcement_ended');
+ expect(email?.metadata).toMatchObject({outcome: 'lifted', decision_id: decisionId, restores_access: 'yes'});
+ expect(publisher.adminActions(target.userId).map((action) => action.action)).toEqual([
+ 'schedule_deletion',
+ 'cancel_deletion',
+ ]);
+ });
+
+ test('ending it is refused once the deletion has started', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await close(harness, staff, target.userId);
+ const users = getUserRepository();
+ const user = await loadUser(target);
+ const due = new Date(Date.now() - ms('1 minute'));
+ await users.updateDeletionSchedule(user, {
+ flags: user.flags,
+ pending_deletion_at: due,
+ deletion_reason_code: user.deletionReasonCode,
+ deletion_scheduled_by: user.deletionScheduledBy,
+ deletion_scheduled_at: user.deletionScheduledAt,
+ });
+ expect((await users.startDeletion(user.id, due))?.deletionStartedAt).not.toBeNull();
+ await endDecision(harness, staff, decisionId)
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.ENFORCEMENT_DELETION_STARTED)
+ .execute();
+ expect((await getDecision(harness, staff, decisionId)).status).toBe('active');
+ });
+
+ test('the legacy cancel route refuses a closure a decision owns', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await close(harness, staff, target.userId);
+ const user = await loadUser(target);
+ const response = await createBuilder<{decision_id: string}>(harness, staff.token)
+ .delete(`/admin/users/${target.userId}/deletion`)
+ .body({expected_pending_deletion_at: user.pendingDeletionAt!.toISOString()})
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.ENFORCEMENT_DECISION_OWNS_STATE)
+ .execute();
+ expect(response.decision_id).toBe(decisionId);
+ expect((await loadUser(target)).pendingDeletionAt).not.toBeNull();
+ });
+ });
+
+ describe('closures from before decisions', () => {
+ async function legacyClose(
+ target: TestAccount,
+ publicReason: string | null,
+ reasonCode: number = DeletionReasons.HARASSMENT_OR_BULLYING,
+ ) {
+ const users = getUserRepository();
+ const user = await loadUser(target);
+ return users.updateDeletionSchedule(user, {
+ flags: user.flags | UserFlags.DELETED,
+ pending_deletion_at: new Date(Date.now() + ms('60 days')),
+ deletion_reason_code: reasonCode,
+ deletion_public_reason: publicReason,
+ deletion_scheduled_at: new Date(),
+ });
+ }
+
+ test('the notice shows the stored public reason for a standard reason', async () => {
+ const target = await createTestAccount(harness);
+ const closed = await legacyClose(target, 'Sent the same invite to many people', DeletionReasons.SPAM);
+ const notice = await loadAccountNotice(createNoticeLookupDeps(), closed, 'en-US');
+ expect(notice).toMatchObject({
+ decision_id: null,
+ kind: 'closure',
+ statement: 'Sent the same invite to many people',
+ facts: [],
+ rule: {title: 'Spam'},
+ });
+ });
+
+ test.each([DeletionReasons.HARASSMENT_OR_BULLYING, DeletionReasons.CHILD_SEXUAL_CONTENT])(
+ 'the notice withholds the stored public reason for code %s',
+ async (code) => {
+ const target = await createTestAccount(harness);
+ const closed = await legacyClose(target, 'Details about another person', code);
+ const notice = await loadAccountNotice(createNoticeLookupDeps(), closed, 'en-US');
+ expect(notice.statement).toBeNull();
+ expect(notice.facts).toEqual(["We don't have more detail on record for this decision."]);
+ },
+ );
+
+ test('the legacy cancel route cancels it and sends the ended email', async () => {
+ const target = await createTestAccount(harness);
+ const closed = await legacyClose(target, null);
+ await clearTestEmails(harness);
+ await createBuilder(harness, staff.token)
+ .delete(`/admin/users/${target.userId}/deletion`)
+ .body({expected_pending_deletion_at: closed.pendingDeletionAt!.toISOString()})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect((await loadUser(target)).pendingDeletionAt).toBeNull();
+ const [email] = await emailsTo(harness, target, 'enforcement_ended');
+ expect(email?.metadata).toMatchObject({outcome: 'lifted', decision_id: '', restores_access: 'yes'});
+ expect(await emailsTo(harness, target, 'account_deletion_cancelled')).toEqual([]);
+ });
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementContent.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementContent.test.ts
new file mode 100644
index 000000000..af260b229
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementContent.test.ts
@@ -0,0 +1,521 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {clearTestEmails, createTestAccount, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {createGuildID} from '@app/api/BrandedTypes';
+import {resetApiServicesForTesting} from '@app/api/CreateApiContext';
+import {
+ createDmChannel,
+ createFriendship,
+ sendChannelMessage,
+ setupTestGuildWithMembers,
+} from '@app/api/channel/tests/ChannelTestUtils';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {formatNoticeMonth} from '@app/api/enforcement/NoticeDates';
+import {
+ createStaff,
+ type DecisionBody,
+ decisionBody,
+ emailsTo,
+ getDecision,
+ INTERNAL_NOTE,
+ listDecisions,
+ loadUser,
+ suspend,
+ warn,
+} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {setInjectedWorkerService} from '@app/api/middleware/ServiceRegistry';
+import {getGuildRepository} from '@app/api/middleware/ServiceSingletons';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {RecordingWorkerService} from '@app/api/test/RecordingWorkerService';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder} from '@app/api/test/TestRequestBuilder';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, test, vi} from 'vitest';
+
+interface ValidationErrorBody {
+ errors: Array<{path: string; code: string}>;
+}
+
+interface MessageRef {
+ channel_id: string;
+ message_id: string;
+}
+
+const RESTRICTED: DecisionBody = {
+ reason_code: DeletionReasons.CHILD_SAFETY_VIOLATION,
+ source: 'own_review',
+ automation: 'none',
+ confirmations: ['evidence_preserved', 'reports_filed_or_not_required'],
+};
+
+function enforcement(decision: DecisionBody = decisionBody()) {
+ return {type: 'enforcement', decision};
+}
+
+describe('Enforcement content, profile and community decisions', () => {
+ let harness: ApiTestHarness;
+ let staff: TestAccount;
+ let worker: RecordingWorkerService;
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ worker = new RecordingWorkerService();
+ setInjectedWorkerService(worker);
+ resetApiServicesForTesting();
+ staff = await createStaff(harness);
+ });
+
+ afterEach(() => {
+ vi.restoreAllMocks();
+ });
+
+ afterAll(async () => {
+ await harness?.shutdown();
+ });
+
+ async function guildMessages(count = 2) {
+ const {owner, members, guild, systemChannel} = await setupTestGuildWithMembers(harness, 2);
+ const target = members[0]!;
+ const reporter = members[1]!;
+ const entries: Array<MessageRef> = [];
+ for (let index = 0; index < count; index += 1) {
+ const message = await sendChannelMessage(harness, target.token, systemChannel.id, `spam link ${index}`);
+ entries.push({channel_id: systemChannel.id, message_id: message.id});
+ }
+ return {owner, target, reporter, guildId: guild.id, entries};
+ }
+
+ async function reportMessage(reporter: TestAccount, entry: MessageRef): Promise<string> {
+ const {report_id} = await createBuilder<{report_id: string}>(harness, reporter.token)
+ .post('/reports/message')
+ .body({...entry, category: 'harassment'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return report_id;
+ }
+
+ function shredRequest(userId: string, body: Record<string, unknown>) {
+ return createBuilder<{job_id: string; requested: number; decision_id?: string}>(harness, staff.token)
+ .post(`/admin/users/${userId}/message-shreds`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body(body);
+ }
+
+ function deleteAllRequest(userId: string, body: Record<string, unknown>, dryRun = false) {
+ return createBuilder<{message_count: number; job_id?: string; decision_id?: string}>(harness, staff.token)
+ .delete(`/admin/users/${userId}/messages?dry_run=${dryRun}`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body(body);
+ }
+
+ function removeCommunityRequest(guildId: string, body: Record<string, unknown>) {
+ return createBuilder<{success: true}>(harness, staff.token)
+ .delete(`/admin/guilds/${guildId}`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body(body);
+ }
+
+ async function refused<T>(request: {expect: (status: number) => {execute: () => Promise<T>}}): Promise<string> {
+ const body = (await request.expect(HTTP_STATUS.BAD_REQUEST).execute()) as ValidationErrorBody;
+ return body.errors[0]!.code;
+ }
+
+ describe('message shreds', () => {
+ test('a holder request or housekeeping shred queues the job without a decision', async () => {
+ const {target, entries} = await guildMessages(1);
+ for (const type of ['holder_request', 'housekeeping']) {
+ const response = await shredRequest(target.userId, {entries, basis: {type}}).expect(HTTP_STATUS.OK).execute();
+ expect(response.decision_id).toBeUndefined();
+ }
+ expect(worker.byTask('messageShred')).toHaveLength(2);
+ expect(await listDecisions(harness, staff, target.userId)).toEqual([]);
+ });
+
+ test('an enforcement shred snapshots the entries, records the removal and tells the user', async () => {
+ const {target, entries} = await guildMessages(2);
+ await clearTestEmails(harness);
+ const response = await shredRequest(target.userId, {entries, basis: enforcement()})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const [job] = worker.byTask('messageShred');
+ expect(job?.payload).toMatchObject({target_user_id: target.userId, entries});
+ const decision = await getDecision(harness, staff, response.decision_id!);
+ expect(decision).toMatchObject({
+ kind: 'content_removal',
+ removed_message_count: 2,
+ removed_all_messages: false,
+ notice_status: 'sent',
+ });
+ expect(decision.notice_channels.sort()).toEqual(['email', 'system_dm']);
+ expect(decision.evidence.map((message) => message.content)).toEqual(['spam link 0', 'spam link 1']);
+ expect(decision.notice_text).toContain('We removed 2 messages you sent.');
+ expect(decision.notice_text).toContain('Your account is not otherwise restricted.');
+ expect(await emailsTo(harness, target, 'enforcement_notice')).toHaveLength(1);
+ });
+
+ test('evidence messages are refused because the entries are the evidence', async () => {
+ const {target, entries} = await guildMessages(1);
+ const code = await refused(
+ shredRequest(target.userId, {entries, basis: enforcement(decisionBody({evidence: entries}))}),
+ );
+ expect(code).toBe(ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_ALLOWED);
+ expect(worker.byTask('messageShred')).toEqual([]);
+ });
+
+ test('a restricted shred stores every entry without content before the job is queued', async () => {
+ const {target, entries} = await guildMessages(2);
+ const repository = new EnforcementDecisionRepository();
+ const queuedWithEvidence: Array<number> = [];
+ const addJob = worker.addJob.bind(worker);
+ vi.spyOn(worker, 'addJob').mockImplementation(async (taskType, payload, options) => {
+ if (taskType === 'messageShred') {
+ const [decision] = await repository.listBySubject('user', BigInt(target.userId), 1);
+ const evidence = decision ? await repository.getEvidence(decision.decision_id) : null;
+ queuedWithEvidence.push(evidence?.messages?.length ?? 0);
+ }
+ return addJob(taskType, payload, options);
+ });
+ const response = await shredRequest(target.userId, {entries, basis: enforcement(RESTRICTED)})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(queuedWithEvidence).toEqual([2]);
+ const decision = await getDecision(harness, staff, response.decision_id!);
+ expect(decision.evidence.map((message) => [message.message_id, message.content])).toEqual(
+ entries.map((entry) => [entry.message_id, null]),
+ );
+ expect(decision.notice.facts).toEqual([
+ 'We found content or activity on your account that breaks our rules on protecting children.',
+ ]);
+ });
+
+ test('a failed queue leaves no decision behind', async () => {
+ const {target, entries} = await guildMessages(1);
+ worker.failure = (taskType) => (taskType === 'messageShred' ? new Error('queue down') : null);
+ await shredRequest(target.userId, {entries, basis: enforcement()})
+ .expect(HTTP_STATUS.INTERNAL_SERVER_ERROR)
+ .execute();
+ expect(await listDecisions(harness, staff, target.userId)).toEqual([]);
+ });
+ });
+
+ describe('delete all messages', () => {
+ test('a dry run records nothing and a deletion needs a basis', async () => {
+ const {target} = await guildMessages(1);
+ const preview = await deleteAllRequest(target.userId, {}, true).expect(HTTP_STATUS.OK).execute();
+ expect(preview.message_count).toBeGreaterThan(0);
+ expect(await refused(deleteAllRequest(target.userId, {}))).toBe(ValidationErrorCodes.MODERATION_BASIS_REQUIRED);
+ expect(worker.byTask('messageShred')).toEqual([]);
+ expect(await listDecisions(harness, staff, target.userId)).toEqual([]);
+ });
+
+ test('housekeeping deletes without a decision', async () => {
+ const {target} = await guildMessages(1);
+ const response = await deleteAllRequest(target.userId, {basis: {type: 'housekeeping'}})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(response.job_id).toEqual(expect.any(String));
+ expect(response.decision_id).toBeUndefined();
+ expect(worker.byTask('messageShred')).toHaveLength(1);
+ });
+
+ test('an enforcement deletion records that all messages were removed', async () => {
+ const {target} = await guildMessages(2);
+ const response = await deleteAllRequest(target.userId, {basis: enforcement()}).expect(HTTP_STATUS.OK).execute();
+ const decision = await getDecision(harness, staff, response.decision_id!);
+ expect(decision).toMatchObject({
+ kind: 'content_removal',
+ removed_all_messages: true,
+ removed_message_count: null,
+ });
+ expect(decision.notice_text).toContain('We removed all messages you sent.');
+ expect(worker.byTask('messageShred')).toHaveLength(1);
+ });
+
+ test('restricted reasons are refused because the messages cannot be snapshotted first', async () => {
+ const {target, entries} = await guildMessages(1);
+ const code = await refused(
+ deleteAllRequest(target.userId, {basis: enforcement({...RESTRICTED, evidence: entries})}),
+ );
+ expect(code).toBe(ValidationErrorCodes.ENFORCEMENT_KIND_NOT_ALLOWED);
+ expect(worker.byTask('messageShred')).toEqual([]);
+ expect(await listDecisions(harness, staff, target.userId)).toEqual([]);
+ });
+ });
+
+ describe('single message delete', () => {
+ test('takes a holder request or housekeeping basis and refuses enforcement', async () => {
+ const {entries} = await guildMessages(2);
+ const [first, second] = entries;
+ await createBuilder(harness, staff.token)
+ .delete(`/admin/channels/${first!.channel_id}/messages/${first!.message_id}`)
+ .body({basis: enforcement()})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ await createBuilder(harness, staff.token)
+ .delete(`/admin/channels/${second!.channel_id}/messages/${second!.message_id}`)
+ .body({basis: {type: 'holder_request'}})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ });
+ });
+
+ describe('profile reset', () => {
+ test('saves the old values as evidence before clearing and needs no other facts', async () => {
+ const target = await createTestAccount(harness);
+ await createBuilder(harness, target.token)
+ .patch('/users/@me')
+ .body({bio: 'buy followers at example.com', pronouns: 'they/them'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ await createBuilder(harness, staff.token)
+ .delete(`/admin/users/${target.userId}/profile-fields`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body({fields: ['bio'], basis: enforcement(decisionBody({statement: undefined}))})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const user = await loadUser(target);
+ expect(user.bio).toBeNull();
+ expect(user.pronouns).toBe('they/them');
+ const [summary] = await listDecisions(harness, staff, target.userId);
+ const decision = await getDecision(harness, staff, summary!.decision_id);
+ expect(decision).toMatchObject({kind: 'profile_reset', profile_fields: ['bio']});
+ expect(decision.profile_values).toEqual({bio: 'buy followers at example.com'});
+ expect(decision.notice_text).toContain('We reset parts of your profile: bio.');
+ expect(decision.notice_text).toContain('Your profile: bio.');
+ expect(decision.notice_text).not.toContain('buy followers');
+ });
+
+ test('a holder request clears without a decision', async () => {
+ const target = await createTestAccount(harness);
+ await createBuilder(harness, staff.token)
+ .delete(`/admin/users/${target.userId}/profile-fields`)
+ .body({fields: ['global_name'], basis: {type: 'holder_request'}})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(await listDecisions(harness, staff, target.userId)).toEqual([]);
+ });
+ });
+
+ describe('community removal', () => {
+ test('records the community as the subject and notifies the owner', async () => {
+ const {owner, guildId, entries} = await guildMessages(1);
+ await clearTestEmails(harness);
+ await removeCommunityRequest(guildId, {basis: enforcement(decisionBody({evidence: entries}))})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const [summary] = await createBuilder<{decisions: Array<{decision_id: string}>}>(harness, staff.token)
+ .get(`/admin/enforcement-decisions?subject_type=guild&subject_id=${guildId}`)
+ .expect(HTTP_STATUS.OK)
+ .execute()
+ .then((response) => response.decisions);
+ const decision = await getDecision(harness, staff, summary!.decision_id);
+ expect(decision).toMatchObject({
+ kind: 'community_removal',
+ subject_type: 'guild',
+ subject_id: guildId,
+ subject_name: 'Test Guild',
+ recipient_user_id: owner.userId,
+ notice_status: 'sent',
+ });
+ expect(decision.notice_text).toContain('We removed your community Test Guild.');
+ expect(decision.notice_text).toContain('We found content in this community that breaks this rule.');
+ expect(decision.notice_text).toMatch(/1 message posted in #\S+, on /);
+ expect(await emailsTo(harness, owner, 'enforcement_notice')).toHaveLength(1);
+ expect(worker.byTask('guildProcessDeletion')).toHaveLength(1);
+ });
+
+ test('evidence must be in the community', async () => {
+ const {guildId} = await guildMessages(1);
+ const other = await guildMessages(1);
+ const code = await refused(
+ removeCommunityRequest(guildId, {basis: enforcement(decisionBody({evidence: other.entries}))}),
+ );
+ expect(code).toBe(ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_SUBJECT);
+ });
+
+ test('restricted reasons are refused and the community stays', async () => {
+ const {guildId, entries} = await guildMessages(1);
+ const code = await refused(
+ removeCommunityRequest(guildId, {basis: enforcement({...RESTRICTED, evidence: entries})}),
+ );
+ expect(code).toBe(ValidationErrorCodes.ENFORCEMENT_KIND_NOT_ALLOWED);
+ expect(await getGuildRepository().findUnique(createGuildID(BigInt(guildId)))).not.toBeNull();
+ expect(worker.byTask('guildProcessDeletion')).toEqual([]);
+ });
+ });
+
+ describe('direct message evidence', () => {
+ test('a reported conversation names the report as the source and protected reasons show the month only', async () => {
+ const target = await createTestAccount(harness);
+ const recipient = await createTestAccount(harness);
+ await createFriendship(harness, target, recipient);
+ const dm = await createDmChannel(harness, target.token, recipient.userId);
+ const message = await sendChannelMessage(harness, target.token, dm.id, 'you will regret this');
+ const entry = {channel_id: dm.id, message_id: message.id};
+ const reportId = await reportMessage(recipient, entry);
+ const response = await shredRequest(target.userId, {
+ entries: [entry],
+ basis: enforcement(
+ decisionBody({
+ reason_code: DeletionReasons.HARASSMENT_OR_BULLYING,
+ source: 'report',
+ report_ids: [reportId],
+ }),
+ ),
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const decision = await getDecision(harness, staff, response.decision_id!);
+ expect(decision.notice.how_we_decided[0]).toBe('We reviewed this after a report.');
+ expect(decision.notice.facts).toContain(
+ `1 message in a direct message conversation in ${formatNoticeMonth(new Date(), 'en-US')}.`,
+ );
+ expect(decision.notice_text).not.toContain(' (UTC)');
+ });
+
+ test('an unreported conversation is refused', async () => {
+ const target = await createTestAccount(harness);
+ const recipient = await createTestAccount(harness);
+ await createFriendship(harness, target, recipient);
+ const dm = await createDmChannel(harness, target.token, recipient.userId);
+ const message = await sendChannelMessage(harness, target.token, dm.id, 'hello');
+ const code = await refused(
+ shredRequest(target.userId, {entries: [{channel_id: dm.id, message_id: message.id}], basis: enforcement()}),
+ );
+ expect(code).toBe(ValidationErrorCodes.ENFORCEMENT_EVIDENCE_DM_UNREPORTED);
+ });
+ });
+
+ describe('reporter outcomes', () => {
+ test('linked reports are resolved and reporters are told what happened to the item', async () => {
+ const {target, reporter, entries} = await guildMessages(2);
+ const removedReport = await reportMessage(reporter, entries[0]!);
+ const restrictedReport = await reportMessage(reporter, entries[1]!);
+ await clearTestEmails(harness);
+ await shredRequest(target.userId, {
+ entries: [entries[0]],
+ basis: enforcement(decisionBody({source: 'report', report_ids: [removedReport]})),
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ await suspend(harness, staff, target.userId, decisionBody({source: 'report', report_ids: [restrictedReport]}));
+ const sent = await emailsTo(harness, reporter, 'report_resolved');
+ expect(sent.map((email) => [email.metadata.report_id, email.metadata.outcome])).toEqual([
+ [removedReport, 'removed'],
+ [restrictedReport, 'restricted'],
+ ]);
+ });
+
+ test('a warning resolves linked reports and tells the reporter only that action was taken', async () => {
+ const {target, reporter, entries} = await guildMessages(1);
+ const reportId = await reportMessage(reporter, entries[0]!);
+ await clearTestEmails(harness);
+ await warn(harness, staff, target.userId, decisionBody({source: 'report', report_ids: [reportId]}));
+ const sent = await emailsTo(harness, reporter, 'report_resolved');
+ expect(sent.map((email) => [email.metadata.report_id, email.metadata.outcome])).toEqual([
+ [reportId, 'action_taken'],
+ ]);
+ const report = await createBuilder<{status: number}>(harness, staff.token)
+ .get(`/admin/reports/${reportId}`)
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(report.status).toBe(1);
+ });
+
+ test('a content removal that left the reported message alone leaves the report open', async () => {
+ const {target, reporter, entries} = await guildMessages(2);
+ const reportId = await reportMessage(reporter, entries[1]!);
+ await clearTestEmails(harness);
+ await shredRequest(target.userId, {
+ entries: [entries[0]],
+ basis: enforcement(decisionBody({source: 'report', report_ids: [reportId]})),
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(await emailsTo(harness, reporter, 'report_resolved')).toEqual([]);
+ });
+
+ test('a suspension that removes the reported message as evidence tells the reporter it was removed', async () => {
+ const {target, reporter, entries} = await guildMessages(1);
+ const reportId = await reportMessage(reporter, entries[0]!);
+ await clearTestEmails(harness);
+ await suspend(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({source: 'report', report_ids: [reportId], evidence: [entries[0]!]}),
+ {remove_evidence: true},
+ );
+ const [sent] = await emailsTo(harness, reporter, 'report_resolved');
+ expect(sent?.metadata.outcome).toBe('removed');
+ });
+
+ test('manual resolutions take only the outcome their resolution allows', async () => {
+ const {reporter, entries} = await guildMessages(1);
+ const reportId = await reportMessage(reporter, entries[0]!);
+ const resolve = (body: Record<string, unknown>) =>
+ createBuilder<ValidationErrorBody>(harness, staff.token)
+ .patch(`/admin/reports/${reportId}`)
+ .body({status: 'resolved', ...body});
+ for (const body of [
+ {resolution: 'actioned'},
+ {resolution: 'actioned', outcome: 'no_violation'},
+ {resolution: 'duplicate'},
+ {resolution: 'duplicate', outcome: 'restricted', duplicate_of: reportId},
+ {resolution: 'duplicate', duplicate_of: reportId},
+ {resolution: 'no_violation', outcome: 'removed'},
+ {resolution: 'no_violation', duplicate_of: reportId},
+ ]) {
+ expect(await refused(resolve(body))).toBe(ValidationErrorCodes.REPORT_OUTCOME_INVALID);
+ }
+ });
+
+ test('a duplicate tells the reporter the outcome of the report it repeats', async () => {
+ const {owner: second, reporter, entries} = await guildMessages(1);
+ const originalId = await reportMessage(reporter, entries[0]!);
+ const duplicateId = await reportMessage(second, entries[0]!);
+ const resolve = (reportId: string, body: Record<string, unknown>) =>
+ createBuilder(harness, staff.token)
+ .patch(`/admin/reports/${reportId}`)
+ .body({status: 'resolved', ...body})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ await resolve(originalId, {resolution: 'actioned', outcome: 'restricted'});
+ await clearTestEmails(harness);
+ await resolve(duplicateId, {resolution: 'duplicate', duplicate_of: originalId});
+ const [email] = await emailsTo(harness, second, 'report_resolved');
+ expect(email?.metadata.outcome).toBe('restricted');
+ });
+
+ test('a duplicate of a report with no outcome yet tells the reporter nothing', async () => {
+ const {owner: second, reporter, entries} = await guildMessages(1);
+ const originalId = await reportMessage(reporter, entries[0]!);
+ const duplicateId = await reportMessage(second, entries[0]!);
+ await clearTestEmails(harness);
+ await createBuilder(harness, staff.token)
+ .patch(`/admin/reports/${duplicateId}`)
+ .body({status: 'resolved', resolution: 'duplicate', duplicate_of: originalId})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(await emailsTo(harness, second, 'report_resolved')).toEqual([]);
+ });
+
+ test('a no violation resolution tells the reporter the item was left up', async () => {
+ const {reporter, entries} = await guildMessages(1);
+ const reportId = await reportMessage(reporter, entries[0]!);
+ await clearTestEmails(harness);
+ await createBuilder(harness, staff.token)
+ .patch(`/admin/reports/${reportId}`)
+ .body({status: 'resolved', resolution: 'no_violation'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const [email] = await emailsTo(harness, reporter, 'report_resolved');
+ expect(email?.metadata.outcome).toBe('no_violation');
+ });
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementCopy.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementCopy.test.ts
new file mode 100644
index 000000000..d4c44a30c
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementCopy.test.ts
@@ -0,0 +1,82 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {CONTENT_I18N_MESSAGES} from '@app/api/content_i18n/ContentI18nMessages';
+import {ERROR_I18N_MESSAGES} from '@fluxer/errors/src/i18n/ErrorI18nMessages';
+import {EMAIL_I18N_MESSAGES} from '@pkgs/email/src/email_i18n/EmailI18nMessages';
+import {describe, expect, it} from 'vitest';
+
+const FORBIDDEN = [
+ /[–—]/,
+ /;/,
+ /\b(carry|carries|carried|matters|sitting)\b/i,
+ /\bservers?\b/i,
+ /platform admin/i,
+ /self-?bot|modified client|unofficial client/i,
+ /@fluxer\.app/i,
+];
+
+const ENFORCEMENT_EMAILS = new Set(['account_deletion_scheduled_requested', 'report_resolved', 'dsa_report_resolved']);
+
+const ENFORCEMENT_ERRORS = new Set([
+ 'admin_and_system.moderation_basis_required',
+ 'moderation_and_reports.report_outcome_invalid',
+ 'moderation_and_reports.ip_ban_linked_to_decision',
+ 'permissions.global_ip_banned',
+ 'permissions.global_ip_temporarily_banned',
+]);
+
+const SERVER_CATALOG_TEXT: Array<[string, string]> = [
+ ...Object.entries(CONTENT_I18N_MESSAGES),
+ ...Object.entries(ERROR_I18N_MESSAGES),
+ ...Object.entries(EMAIL_I18N_MESSAGES).map(([key, template]): [string, string] => [
+ key,
+ `${template.subject}\n${template.body}`,
+ ]),
+];
+
+const ENFORCEMENT_COPY: Array<[string, string]> = [
+ ...Object.entries(CONTENT_I18N_MESSAGES).filter(([key]) => key.startsWith('enforcement.')),
+ ...Object.entries(EMAIL_I18N_MESSAGES)
+ .filter(([key]) => key.startsWith('enforcement_') || ENFORCEMENT_EMAILS.has(key))
+ .flatMap(
+ ([key, template]): Array<[string, string]> => [
+ [`${key}.subject`, template.subject],
+ [`${key}.body`, template.body],
+ ],
+ ),
+ ...Object.entries(ERROR_I18N_MESSAGES).filter(([key]) => key.includes('enforcement') || ENFORCEMENT_ERRORS.has(key)),
+];
+
+describe('enforcement copy', () => {
+ it('covers every catalog', () => {
+ expect(ENFORCEMENT_COPY.length).toBeGreaterThan(100);
+ });
+
+ it.each(ENFORCEMENT_COPY)('%s follows the house style', (_key, text) => {
+ for (const pattern of FORBIDDEN) {
+ expect(text).not.toMatch(pattern);
+ }
+ });
+
+ it('no server catalog blames platform administrators', () => {
+ expect(SERVER_CATALOG_TEXT.filter(([, text]) => /platform admin/i.test(text)).map(([key]) => key)).toEqual([]);
+ });
+
+ it.each(['permissions.global_ip_banned', 'permissions.global_ip_temporarily_banned'] as const)(
+ '%s never says the reader did something or should sign in',
+ (key) => {
+ expect(ERROR_I18N_MESSAGES[key]).not.toMatch(/\byou (did|broke|violated)\b|sign in/i);
+ expect(ERROR_I18N_MESSAGES[key]).toContain('this block may have nothing to do with you');
+ },
+ );
+
+ it.each(['report_resolved', 'dsa_report_resolved'] as const)(
+ '%s states the decision about the item instead of a generic review line',
+ (key) => {
+ const {subject, body} = EMAIL_I18N_MESSAGES[key];
+ expect(body).toContain('{outcome, select, removed {');
+ expect(body).toContain('} action_taken {We found that what you reported broke our rules, and we took action. ');
+ expect(`${subject}\n${body}`).not.toMatch(/already reviewed|take all reports seriously/i);
+ },
+ );
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementDecisionRepository.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementDecisionRepository.test.ts
new file mode 100644
index 000000000..14dbcf351
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementDecisionRepository.test.ts
@@ -0,0 +1,228 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {setCassandraQueryExecutorForTesting} from '@app/api/database/CassandraQueryExecution';
+import {PostgresKvQueryExecutor} from '@app/api/database/PostgresKvQueryExecutor';
+import type {EnforcementDecisionRow} from '@app/api/database/types/EnforcementTypes';
+import type {IARMessageContextRow} from '@app/api/database/types/ReportTypes';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {
+ EnforcementDecisionEvidence,
+ EnforcementDecisionNotes,
+ EnforcementDecisions,
+ EnforcementDecisionsBySubject,
+} from '@app/api/Tables';
+import {dockerAvailable, startPostgresKv, stopPostgresKv} from '@app/api/test/DockerTestContainer';
+import {InMemoryCassandraQueryExecutor} from '@app/api/test/InMemoryCassandraQueryExecutor';
+import type {IPostgresClient} from '@pkgs/postgres/src/Client';
+import {seconds} from 'itty-time';
+import {afterAll, beforeAll, beforeEach, describe, expect, it} from 'vitest';
+
+const KV_TABLE = 'kv_enforcement_repository';
+
+function decisionRow(decisionId: bigint, overrides: Partial<EnforcementDecisionRow> = {}): EnforcementDecisionRow {
+ return {
+ decision_id: decisionId,
+ subject_type: 'user',
+ subject_id: 40n,
+ subject_name: null,
+ recipient_user_id: 40n,
+ kind: 'suspension',
+ reason_code: 3,
+ source: 'report',
+ automation: 'none',
+ statement: 'Stop sending invites',
+ rights_holder: null,
+ ends_at: new Date('2026-11-01T00:00:00.000Z'),
+ deletion_at: null,
+ feature_limit: null,
+ profile_fields: null,
+ removed_message_count: null,
+ removed_all_messages: null,
+ payment_at: null,
+ report_ids: new Set([7n, 8n]),
+ decided_by: 1n,
+ created_at: new Date('2026-10-14T10:00:00.000Z'),
+ status: 'active',
+ end_outcome: null,
+ ended_at: null,
+ ended_by: null,
+ end_statement: null,
+ notice_status: 'pending',
+ notice_channels: null,
+ notice_locale: null,
+ notice_text: null,
+ notice_sent_at: null,
+ ...overrides,
+ };
+}
+
+const evidenceMessage: IARMessageContextRow = {
+ message_id: 30n,
+ channel_id: 20n,
+ author_id: 40n,
+ webhook_id: null,
+ author_username: 'target',
+ author_discriminator: 1,
+ author_avatar_hash: null,
+ content: 'buy now',
+ timestamp: new Date('2026-10-01T10:00:00.000Z'),
+ edited_timestamp: null,
+ type: 0,
+ flags: 0,
+ mention_everyone: false,
+ mention_users: null,
+ mention_roles: null,
+ mention_channels: null,
+ attachments: null,
+ embeds: null,
+ sticker_items: null,
+ missing_attachments: null,
+};
+
+async function create(
+ repository: EnforcementDecisionRepository,
+ decision: EnforcementDecisionRow,
+ withEvidence = true,
+) {
+ await repository.create({
+ decision,
+ evidence: withEvidence
+ ? {
+ decision_id: decision.decision_id,
+ messages: [evidenceMessage],
+ message_locations: new Map([[evidenceMessage.message_id, 'channel' as const]]),
+ profile_values: null,
+ }
+ : null,
+ firstNote: {
+ decision_id: decision.decision_id,
+ note_id: decision.decision_id + 1n,
+ author_id: 1n,
+ body: 'Internal note',
+ created_at: decision.created_at,
+ },
+ });
+}
+
+function describeRepository(backend: string, setup: () => Promise<void>, teardown: () => Promise<void>) {
+ describe(`EnforcementDecisionRepository on ${backend}`, () => {
+ const repository = new EnforcementDecisionRepository();
+
+ beforeEach(setup);
+ afterAll(teardown);
+
+ it('round-trips a decision with its subject index, evidence and first note', async () => {
+ await create(repository, decisionRow(100n));
+ expect(await repository.get(100n)).toEqual(decisionRow(100n));
+ expect((await repository.getEvidence(100n))?.messages).toEqual([evidenceMessage]);
+ expect((await repository.listNotes(100n)).map((note) => note.body)).toEqual(['Internal note']);
+ expect(await repository.getEvidence(101n)).toBeNull();
+ expect(await repository.get(101n)).toBeNull();
+ });
+
+ it('lists a subject newest first and pages before a decision', async () => {
+ for (const id of [200n, 210n, 220n]) {
+ await create(repository, decisionRow(id), false);
+ }
+ await create(repository, decisionRow(230n, {subject_id: 41n}), false);
+ const ids = async (limit: number, before?: bigint) =>
+ (await repository.listBySubject('user', 40n, limit, before)).map((row) => row.decision_id);
+ expect(await ids(10)).toEqual([220n, 210n, 200n]);
+ expect(await ids(2)).toEqual([220n, 210n]);
+ expect(await ids(10, 220n)).toEqual([210n, 200n]);
+ expect(await ids(10, 200n)).toEqual([]);
+ expect((await repository.getMany([210n, 999n, 200n])).map((row) => row.decision_id)).toEqual([210n, 200n]);
+ });
+
+ it('records the notice, notes and the end', async () => {
+ await create(repository, decisionRow(300n));
+ const sentAt = new Date('2026-10-14T10:01:00.000Z');
+ await repository.setNotice(300n, {
+ status: 'sent',
+ channels: new Set(['email']),
+ locale: 'sv-SE',
+ text: 'Hello',
+ sentAt,
+ });
+ await repository.addNote({decision_id: 300n, note_id: 305n, author_id: 2n, body: 'Second', created_at: sentAt});
+ await repository.end(300n, {outcome: 'reversed', endedAt: sentAt, endedBy: 2n, statement: null});
+ expect(await repository.get(300n)).toEqual(
+ decisionRow(300n, {
+ notice_status: 'sent',
+ notice_channels: new Set(['email']),
+ notice_locale: 'sv-SE',
+ notice_text: 'Hello',
+ notice_sent_at: sentAt,
+ status: 'ended',
+ end_outcome: 'reversed',
+ ended_at: sentAt,
+ ended_by: 2n,
+ }),
+ );
+ expect((await repository.listNotes(300n)).map((note) => note.body)).toEqual(['Internal note', 'Second']);
+ });
+
+ it('deletes every row it created', async () => {
+ const decision = decisionRow(400n);
+ await create(repository, decision);
+ await repository.delete(decision);
+ expect(await repository.get(400n)).toBeNull();
+ expect(await repository.getEvidence(400n)).toBeNull();
+ expect(await repository.listNotes(400n)).toEqual([]);
+ expect(await repository.listBySubject('user', 40n, 10)).toEqual([]);
+ });
+ });
+}
+
+describeRepository(
+ 'the in-memory executor',
+ async () => {
+ setCassandraQueryExecutorForTesting(new InMemoryCassandraQueryExecutor());
+ },
+ async () => {
+ setCassandraQueryExecutorForTesting(null);
+ },
+);
+
+describe.skipIf(!dockerAvailable)('Postgres KV', () => {
+ let raw: IPostgresClient;
+ let container: string;
+
+ beforeAll(async () => {
+ const started = await startPostgresKv({namePrefix: 'fluxer-enforcementkv', kvTable: KV_TABLE, maxConnections: 8});
+ container = started.container;
+ raw = started.client;
+ }, 900_000);
+
+ afterAll(async () => {
+ setCassandraQueryExecutorForTesting(null);
+ await stopPostgresKv(container);
+ });
+
+ describeRepository(
+ 'the Postgres KV backend',
+ async () => {
+ setCassandraQueryExecutorForTesting(new PostgresKvQueryExecutor(raw));
+ await raw.query(`DELETE FROM ${KV_TABLE}`);
+ },
+ async () => {},
+ );
+
+ it('gives evidence and notes a one year expiry and keeps decisions', async () => {
+ setCassandraQueryExecutorForTesting(new PostgresKvQueryExecutor(raw));
+ await raw.query(`DELETE FROM ${KV_TABLE}`);
+ await create(new EnforcementDecisionRepository(), decisionRow(500n));
+ const rows = await raw.query<{table_name: string; expires_at: Date | null}>(
+ `SELECT table_name, expires_at FROM ${KV_TABLE}`,
+ );
+ const expiry = (table: string) => rows.rows.filter((row) => row.table_name === table).map((row) => row.expires_at);
+ for (const table of [EnforcementDecisionEvidence.name, EnforcementDecisionNotes.name]) {
+ const [expiresAt] = expiry(table);
+ const remaining = (expiresAt!.getTime() - Date.now()) / 1000;
+ expect(remaining).toBeGreaterThan(seconds('365 days') - 60);
+ expect(remaining).toBeLessThanOrEqual(seconds('365 days'));
+ }
+ expect(expiry(EnforcementDecisions.name)).toEqual([null]);
+ expect(expiry(EnforcementDecisionsBySubject.name)).toEqual([null]);
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementEvidence.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementEvidence.test.ts
new file mode 100644
index 000000000..03510bcd6
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementEvidence.test.ts
@@ -0,0 +1,136 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import fs from 'node:fs';
+import path from 'node:path';
+import {fileURLToPath} from 'node:url';
+import type {TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {loadFixture, sendMessageWithAttachments} from '@app/api/channel/tests/AttachmentTestUtils';
+import {setupTestGuildWithMembers} from '@app/api/channel/tests/ChannelTestUtils';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {createStaff, decisionBody, getDecision, suspend} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {EnforcementDecisionEvidence, EnforcementDecisionNotes} from '@app/api/Tables';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {seconds} from 'itty-time';
+import {afterAll, beforeAll, beforeEach, describe, expect, test} from 'vitest';
+
+const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../../..');
+const SCHEMA = JSON.parse(fs.readFileSync(path.join(REPO_ROOT, 'tools/dev/cassandra_target_schema.json'), 'utf8')) as {
+ tables: Array<{name: string; options: string}>;
+};
+
+describe('Enforcement evidence', () => {
+ let harness: ApiTestHarness;
+ let staff: TestAccount;
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ staff = await createStaff(harness);
+ });
+
+ afterAll(async () => {
+ await harness?.shutdown();
+ });
+
+ async function messageWithAttachment() {
+ const {members, systemChannel} = await setupTestGuildWithMembers(harness, 1);
+ const target = members[0]!;
+ const {json: message} = await sendMessageWithAttachments(
+ harness,
+ target.token,
+ systemChannel.id,
+ {content: 'look at this', attachments: [{id: 0, filename: 'evidence.png'}]},
+ [{index: 0, filename: 'evidence.png', data: loadFixture('yeah.png')}],
+ );
+ return {target, evidence: [{channel_id: systemChannel.id, message_id: message.id}]};
+ }
+
+ test('attachments are stored as details without the files', async () => {
+ const {target, evidence} = await messageWithAttachment();
+ const decisionId = await suspend(harness, staff, target.userId, decisionBody({evidence}));
+ const stored = await new EnforcementDecisionRepository().getEvidence(BigInt(decisionId));
+ const [message] = stored!.messages!;
+ expect(message!.content).toBe('look at this');
+ expect(message!.attachments).toBeNull();
+ expect(message!.missing_attachments).toEqual([
+ expect.objectContaining({
+ filename: 'evidence.png',
+ content_type: 'image/png',
+ content_hash: null,
+ placeholder: null,
+ }),
+ ]);
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision.evidence).toEqual([
+ expect.objectContaining({
+ content: 'look at this',
+ attachments: [expect.objectContaining({filename: 'evidence.png', content_type: 'image/png'})],
+ attachment_count: 1,
+ }),
+ ]);
+ });
+
+ test('restricted evidence keeps only the message, channel, time and attachment count', async () => {
+ const {target, evidence} = await messageWithAttachment();
+ const decisionId = await suspend(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({
+ reason_code: DeletionReasons.CHILD_SAFETY_VIOLATION,
+ statement: undefined,
+ evidence,
+ confirmations: ['evidence_preserved', 'reports_filed_or_not_required'],
+ }),
+ {duration_hours: 0},
+ );
+ const stored = await new EnforcementDecisionRepository().getEvidence(BigInt(decisionId));
+ const [message] = stored!.messages!;
+ expect(message).toMatchObject({
+ message_id: BigInt(evidence[0]!.message_id),
+ channel_id: BigInt(evidence[0]!.channel_id),
+ content: null,
+ author_id: null,
+ author_username: '',
+ author_avatar_hash: null,
+ attachments: null,
+ embeds: null,
+ sticker_items: null,
+ });
+ expect(message!.missing_attachments).toHaveLength(1);
+ expect(message!.missing_attachments![0]).toMatchObject({filename: '', content_type: '', size: 0n});
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision.notice.facts).toEqual([
+ 'We found content or activity on your account that breaks our rules on protecting children.',
+ ]);
+ expect(decision.notice.statement).toBeNull();
+ expect(decision.notice_text).not.toContain('look at this');
+ expect(decision.notice_text).not.toContain('you sent in');
+ });
+
+ test('evidence content is hidden without message lookup and report IDs without report view', async () => {
+ const {target, evidence} = await messageWithAttachment();
+ const decisionId = await suspend(harness, staff, target.userId, decisionBody({evidence}));
+ const viewer = await createStaff(harness, [AdminACLs.ENFORCEMENT_VIEW]);
+ const decision = await getDecision(harness, viewer, decisionId);
+ expect(decision.evidence).toEqual([
+ expect.objectContaining({content: null, attachments: null, attachment_count: 1}),
+ ]);
+ expect(decision.report_ids).toEqual([]);
+ });
+
+ test('evidence and notes expire after a year', () => {
+ const year = seconds('365 days');
+ for (const table of [EnforcementDecisionEvidence, EnforcementDecisionNotes]) {
+ expect(table.defaultTtlSeconds).toBe(year);
+ expect(SCHEMA.tables.find((entry) => entry.name === table.name)?.options).toContain(
+ `default_time_to_live = ${year}`,
+ );
+ }
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementFeatureLimits.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementFeatureLimits.test.ts
new file mode 100644
index 000000000..91cbe1316
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementFeatureLimits.test.ts
@@ -0,0 +1,271 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {clearTestEmails, createTestAccount, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {upsertOne} from '@app/api/database/CassandraQueryExecution';
+import {Db} from '@app/api/database/CassandraTypes';
+import {
+ createStaff,
+ decisionBody,
+ emailsTo,
+ endDecision,
+ getDecision,
+ INTERNAL_NOTE,
+ limitFeatures,
+ limitRequest,
+ loadUser,
+ suspend,
+} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {getUserRepository} from '@app/api/middleware/ServiceSingletons';
+import {EnforcementDecisions} from '@app/api/Tables';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder} from '@app/api/test/TestRequestBuilder';
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {PremiumFlags, UserFlags} from '@fluxer/constants/src/UserConstants';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {ms} from 'itty-time';
+import {afterAll, beforeAll, beforeEach, describe, expect, test} from 'vitest';
+
+const REPORT_ABUSE = decisionBody({
+ reason_code: DeletionReasons.REPORTING_ABUSE,
+ statement: 'You sent many reports about the same person that were not true.',
+});
+const PAYMENTS = decisionBody({
+ reason_code: DeletionReasons.BILLING_DISPUTE_OR_ABUSE,
+ statement: 'You disputed several charges you had made yourself.',
+});
+
+describe('Enforcement feature limits', () => {
+ let harness: ApiTestHarness;
+ let staff: TestAccount;
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ staff = await createStaff(harness);
+ });
+
+ afterAll(async () => {
+ await harness?.shutdown();
+ });
+
+ function reportUser(reporter: TestAccount, target: TestAccount) {
+ return createBuilder<{report_id: string}>(harness, reporter.token)
+ .post('/reports/user')
+ .body({user_id: target.userId, category: 'harassment'});
+ }
+
+ async function expireDecision(decisionId: string) {
+ await upsertOne(
+ EnforcementDecisions.patchByPk(
+ {decision_id: BigInt(decisionId)},
+ {ends_at: Db.set(new Date(Date.now() - ms('1 hour')))},
+ ),
+ );
+ }
+
+ function patchFlags(target: TestAccount, body: Record<string, Array<string | number>>, path = 'flags') {
+ return createBuilder<{decision_id?: string}>(harness, staff.token)
+ .patch(`/admin/users/${target.userId}/${path}`)
+ .body(body);
+ }
+
+ test('a direct message limit records one limit, sets the spammer flag and notifies by email and DM', async () => {
+ const target = await createTestAccount(harness);
+ await clearTestEmails(harness);
+ const decisionId = await limitFeatures(harness, staff, target.userId, 'direct_messages');
+ expect((await loadUser(target)).flags & UserFlags.SPAMMER).toBe(UserFlags.SPAMMER);
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision).toMatchObject({kind: 'feature_limit', limit: 'direct_messages', ends_at: null});
+ expect(decision.notice_channels).toEqual(['email', 'system_dm']);
+ expect(decision.notice_text).toContain('We limited a feature on your account.');
+ expect(decision.notice_text).toContain('Your one-to-one messages and friend requests are not delivered');
+ const [email] = await emailsTo(harness, target, 'enforcement_notice');
+ expect(email?.metadata.kind_label).toBe('feature_limit');
+ });
+
+ test.each([
+ ['harassment', DeletionReasons.HARASSMENT_OR_BULLYING, ValidationErrorCodes.ENFORCEMENT_KIND_NOT_ALLOWED],
+ ['misuse of reporting', DeletionReasons.REPORTING_ABUSE, ValidationErrorCodes.ENFORCEMENT_LIMIT_NOT_ALLOWED],
+ ])('a direct message limit is refused for %s', async (_label, reasonCode, errorCode) => {
+ const target = await createTestAccount(harness);
+ const {json} = await limitRequest(harness, staff, target.userId, {
+ limit: 'direct_messages',
+ decision: decisionBody({reason_code: reasonCode}),
+ })
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .executeWithResponse();
+ expect(JSON.stringify(json)).toContain(errorCode);
+ expect((await loadUser(target)).flags & UserFlags.SPAMMER).toBe(0n);
+ });
+
+ describe('reports', () => {
+ test('ends after 90 days by default and refuses an end beyond 365 days', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await limitFeatures(harness, staff, target.userId, 'reports', REPORT_ABUSE);
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(Math.round((new Date(decision.ends_at!).getTime() - Date.now()) / ms('1 day'))).toBe(90);
+ expect(decision.notice_text).toContain('use the safety route on our company information page');
+ const {json} = await limitRequest(harness, staff, target.userId, {
+ limit: 'reports',
+ ends_at: new Date(Date.now() + ms('400 days')).toISOString(),
+ decision: REPORT_ABUSE,
+ })
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .executeWithResponse();
+ expect(JSON.stringify(json)).toContain(ValidationErrorCodes.ENFORCEMENT_LIMIT_END_INVALID);
+ });
+
+ test('an end date is refused for other limits', async () => {
+ const target = await createTestAccount(harness);
+ const {json} = await limitRequest(harness, staff, target.userId, {
+ limit: 'purchases',
+ ends_at: new Date(Date.now() + ms('30 days')).toISOString(),
+ decision: PAYMENTS,
+ })
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .executeWithResponse();
+ expect(JSON.stringify(json)).toContain(ValidationErrorCodes.ENFORCEMENT_LIMIT_END_INVALID);
+ });
+
+ test('refuses reports while active and expires lazily at the next report', async () => {
+ const reporter = await createTestAccount(harness);
+ const reported = await createTestAccount(harness);
+ const decisionId = await limitFeatures(harness, staff, reporter.userId, 'reports', REPORT_ABUSE);
+ await reportUser(reporter, reported).expect(HTTP_STATUS.FORBIDDEN, APIErrorCodes.REPORT_BANNED).execute();
+ await expireDecision(decisionId);
+ expect((await getDecision(harness, staff, decisionId)).expired).toBe(true);
+ await reportUser(reporter, reported).expect(HTTP_STATUS.OK).execute();
+ expect((await loadUser(reporter)).flags & UserFlags.REPORT_BANNED).toBe(0n);
+ });
+
+ test('a flag set before decisions existed keeps refusing reports', async () => {
+ const reporter = await createTestAccount(harness);
+ const reported = await createTestAccount(harness);
+ await getUserRepository().updateFlags((await loadUser(reporter)).id, (flags) => flags | UserFlags.REPORT_BANNED);
+ await reportUser(reporter, reported).expect(HTTP_STATUS.FORBIDDEN, APIErrorCodes.REPORT_BANNED).execute();
+ });
+
+ test('a limited reporter still hears the outcome of reports filed before the limit', async () => {
+ const reporter = await createTestAccount(harness);
+ const reported = await createTestAccount(harness);
+ const {report_id: reportId} = await reportUser(reporter, reported).expect(HTTP_STATUS.OK).execute();
+ await limitFeatures(harness, staff, reporter.userId, 'reports', REPORT_ABUSE);
+ await clearTestEmails(harness);
+ await createBuilder(harness, staff.token)
+ .patch(`/admin/reports/${reportId}`)
+ .body({status: 'resolved', resolution: 'no_violation', public_comment: 'Handled'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(await emailsTo(harness, reporter, 'report_resolved')).toHaveLength(1);
+ });
+ });
+
+ test('a purchase limit sets the purchase flag and ending it clears the flag', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await limitFeatures(harness, staff, target.userId, 'purchases', PAYMENTS);
+ expect((await loadUser(target)).premiumFlags & PremiumFlags.PURCHASE_DISABLED).toBe(PremiumFlags.PURCHASE_DISABLED);
+ await clearTestEmails(harness);
+ await endDecision(harness, staff, decisionId, 'lifted').expect(HTTP_STATUS.OK).execute();
+ expect((await loadUser(target)).premiumFlags & PremiumFlags.PURCHASE_DISABLED).toBe(0);
+ const [email] = await emailsTo(harness, target, 'enforcement_ended');
+ expect(email?.metadata).toMatchObject({outcome: 'lifted', restores_access: 'no'});
+ });
+
+ test('ending one limit keeps the flag while another decision holds the same limit', async () => {
+ const target = await createTestAccount(harness);
+ const first = await limitFeatures(harness, staff, target.userId, 'direct_messages');
+ const second = await limitFeatures(
+ harness,
+ staff,
+ target.userId,
+ 'direct_messages',
+ decisionBody({reason_code: DeletionReasons.MALICIOUS_LINKS_OR_MALWARE}),
+ );
+ await endDecision(harness, staff, first).expect(HTTP_STATUS.OK).execute();
+ expect((await loadUser(target)).flags & UserFlags.SPAMMER).toBe(UserFlags.SPAMMER);
+ await endDecision(harness, staff, second).expect(HTTP_STATUS.OK).execute();
+ expect((await loadUser(target)).flags & UserFlags.SPAMMER).toBe(0n);
+ });
+
+ describe('flag route guards', () => {
+ test.each([
+ ['DISABLED', UserFlags.DISABLED],
+ ['DELETED', UserFlags.DELETED],
+ ['SPAMMER', UserFlags.SPAMMER],
+ ['REPORT_BANNED', UserFlags.REPORT_BANNED],
+ ])('adding %s is refused', async (_label, flag) => {
+ const target = await createTestAccount(harness);
+ await patchFlags(target, {add_flags: [flag.toString()]})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ expect((await loadUser(target)).flags & flag).toBe(0n);
+ });
+
+ test('adding the purchase flag is refused', async () => {
+ const target = await createTestAccount(harness);
+ await patchFlags(target, {add_flags: [PremiumFlags.PURCHASE_DISABLED]}, 'premium-flags')
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ });
+
+ test('removing a flag a decision holds is refused with the decision', async () => {
+ const target = await createTestAccount(harness);
+ const spam = await limitFeatures(harness, staff, target.userId, 'direct_messages');
+ const purchases = await limitFeatures(harness, staff, target.userId, 'purchases', PAYMENTS);
+ const spamResponse = await patchFlags(target, {remove_flags: [UserFlags.SPAMMER.toString()]})
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.ENFORCEMENT_DECISION_OWNS_STATE)
+ .execute();
+ expect(spamResponse.decision_id).toBe(spam);
+ const purchaseResponse = await patchFlags(
+ target,
+ {remove_flags: [PremiumFlags.PURCHASE_DISABLED]},
+ 'premium-flags',
+ )
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.ENFORCEMENT_DECISION_OWNS_STATE)
+ .execute();
+ expect(purchaseResponse.decision_id).toBe(purchases);
+ });
+
+ test('removing DISABLED from a suspended account and removing DELETED are refused', async () => {
+ const target = await createTestAccount(harness);
+ await suspend(harness, staff, target.userId);
+ await patchFlags(target, {remove_flags: [UserFlags.DISABLED.toString()]})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ const other = await createTestAccount(harness);
+ await getUserRepository().updateFlags((await loadUser(other)).id, (flags) => flags | UserFlags.DELETED);
+ await patchFlags(other, {remove_flags: [UserFlags.DELETED.toString()]})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ });
+
+ test('a self-disabled account can still have DISABLED removed', async () => {
+ const target = await createTestAccount(harness);
+ await getUserRepository().updateFlags((await loadUser(target)).id, (flags) => flags | UserFlags.DISABLED);
+ await patchFlags(target, {remove_flags: [UserFlags.DISABLED.toString()]})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect((await loadUser(target)).flags & UserFlags.DISABLED).toBe(0n);
+ });
+
+ test('a bulk flag job cannot add a restriction flag', async () => {
+ const target = await createTestAccount(harness);
+ await createBuilder(harness, staff.token)
+ .post('/admin/bulk-jobs')
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body({
+ task: 'update_user_flags',
+ user_ids: [target.userId],
+ add_flags: [UserFlags.SPAMMER.toString()],
+ remove_flags: [],
+ })
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ });
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementNetworkBlock.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementNetworkBlock.test.ts
new file mode 100644
index 000000000..514b1013b
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementNetworkBlock.test.ts
@@ -0,0 +1,451 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {AdminRepository} from '@app/api/admin/AdminRepository';
+import {createTestAccount, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {resetIpBanExemptionsForTesting} from '@app/api/ban/IpBanExemptions';
+import {getConfig} from '@app/api/Config';
+import {upsertOne} from '@app/api/database/CassandraQueryExecution';
+import {formatNoticeDate} from '@app/api/enforcement/NoticeDates';
+import {
+ close,
+ createStaff,
+ type DecisionBody,
+ decisionBody,
+ endDecision,
+ getDecision,
+ INTERNAL_NOTE,
+ loadUser,
+ suspend,
+ suspendRequest,
+} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {ipBanCache} from '@app/api/middleware/IpBanMiddleware';
+import {getUserRepository} from '@app/api/middleware/ServiceSingletons';
+import {BannedIps} from '@app/api/Tables';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder, createBuilderWithoutAuth} from '@app/api/test/TestRequestBuilder';
+import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {ms} from 'itty-time';
+import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, test, vi} from 'vitest';
+
+interface ValidationErrorBody {
+ errors: Array<{path: string; code: string}>;
+}
+
+interface RestrictionResponse {
+ user: {enforcement_decision_id: string | null};
+ skipped_ips: Array<{ip: string; reason: string}>;
+}
+
+interface BlockErrorBody {
+ code: string;
+ message: string;
+ ip_address: string;
+ appeal_email: string | null;
+ appeals_supported: boolean;
+ ban_kind: string;
+ expires_at: string | null;
+ reason: {title: string; url: string | null} | null;
+}
+
+const TARGET_IP = '45.33.10.1';
+const DAY = ms('1 day');
+
+describe('Enforcement network blocks', () => {
+ let harness: ApiTestHarness;
+ let staff: TestAccount;
+ const adminRepository = new AdminRepository();
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ ipBanCache.resetCaches();
+ staff = await createStaff(harness);
+ });
+
+ afterEach(() => {
+ vi.restoreAllMocks();
+ });
+
+ afterAll(async () => {
+ await harness?.shutdown();
+ });
+
+ function blockingSuspension(
+ target: TestAccount,
+ ips: Array<string>,
+ {decision = decisionBody(), days}: {decision?: DecisionBody; days?: number} = {},
+ ) {
+ return suspendRequest(harness, staff, target.userId, {
+ duration_hours: 0,
+ decision,
+ block_networks: {ips, days},
+ });
+ }
+
+ async function refusedBlock(target: TestAccount, ips: Array<string>): Promise<string> {
+ const body = await createBuilder<ValidationErrorBody>(harness, staff.token)
+ .put(`/admin/users/${target.userId}/ban`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body({duration_hours: 0, decision: decisionBody(), block_networks: {ips}})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ return body.errors[0]!.code;
+ }
+
+ async function requestFrom(ip: string, path = '/users/@me') {
+ return createBuilderWithoutAuth<BlockErrorBody>(harness).get(path).header('x-forwarded-for', ip).executeRaw();
+ }
+
+ async function insertPlainBlock(ip: string, expiresAt: Date): Promise<void> {
+ await upsertOne(
+ BannedIps.insertWithTtl(
+ {
+ ip,
+ ban_kind: 'temporary_24h',
+ reason: 'platform_admin_enforcement',
+ expires_at: expiresAt,
+ created_at: new Date(),
+ decision_id: null,
+ },
+ Math.ceil((expiresAt.getTime() - Date.now()) / 1000),
+ ),
+ );
+ }
+
+ describe('writing blocks', () => {
+ test('a permanent suspension blocks recent networks for 90 days and the notice names the end', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const before = Date.now();
+ const response = await blockingSuspension(target, [TARGET_IP]).expect(HTTP_STATUS.OK).execute();
+ expect(response.skipped_ips).toEqual([]);
+ const decisionId = response.user.enforcement_decision_id!;
+
+ const [row] = await adminRepository.listDecisionIpBans(BigInt(decisionId));
+ expect(row?.ip).toBe(TARGET_IP);
+ expect(row?.kind).toBe('temporary_24h');
+ const expiresAt = row!.expiresAt!.getTime();
+ expect(expiresAt).toBeGreaterThanOrEqual(before + 90 * DAY);
+ expect(expiresAt).toBeLessThanOrEqual(Date.now() + 90 * DAY);
+
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision.network_blocks).toEqual([{ip: TARGET_IP, expires_at: row!.expiresAt!.toISOString()}]);
+ const line = `We also blocked access from networks this account used until ${formatNoticeDate(row!.expiresAt!, 'en-US')}.`;
+ expect(decision.notice_text).toContain(line);
+ expect(decision.notice.effects).toContain(line);
+ expect(decision.notice_text).not.toContain(TARGET_IP);
+ });
+
+ test('the block length can be set and is recorded on the audit row', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const response = await blockingSuspension(target, [TARGET_IP], {days: 7}).expect(HTTP_STATUS.OK).execute();
+ const [row] = await adminRepository.listDecisionIpBans(BigInt(response.user.enforcement_decision_id!));
+ expect(row!.expiresAt!.getTime()).toBeLessThanOrEqual(Date.now() + 7 * DAY);
+ expect(row!.expiresAt!.getTime()).toBeGreaterThan(Date.now() + 6 * DAY);
+ });
+
+ test('only a permanent suspension or a closure can block networks', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const body = await createBuilder<ValidationErrorBody>(harness, staff.token)
+ .put(`/admin/users/${target.userId}/ban`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body({duration_hours: 24, decision: decisionBody(), block_networks: {ips: [TARGET_IP]}})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ expect(body.errors[0]).toMatchObject({
+ path: 'block_networks',
+ code: ValidationErrorCodes.ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED,
+ });
+ const holder = await createBuilder<ValidationErrorBody>(harness, staff.token)
+ .put(`/admin/users/${target.userId}/deletion`)
+ .body({days_until_deletion: 14, basis: {type: 'holder_request'}, block_networks: {ips: [TARGET_IP]}})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ expect(holder.errors[0]!.code).toBe(ValidationErrorCodes.ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED);
+ expect(await adminRepository.loadAllBannedIpEntries()).toEqual([]);
+ });
+
+ test('blocking networks needs the IP block and IP view permissions', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ staff = await createStaff(harness, [AdminACLs.USER_TEMP_BAN, AdminACLs.BAN_IP_ADD]);
+ await blockingSuspension(target, [TARGET_IP]).expect(HTTP_STATUS.FORBIDDEN, APIErrorCodes.MISSING_ACL).execute();
+ expect((await loadUser(target)).enforcementDecisionId).toBeNull();
+ });
+
+ function sightings(entries: Array<[string, number]>) {
+ vi.spyOn(getUserRepository(), 'listAuthSessionTombstones').mockResolvedValue(
+ entries.map(([ip, lastUsed]) => ({clientIp: ip, approximateLastUsedAt: new Date(lastUsed)})) as never,
+ );
+ }
+
+ test('only addresses the account used in the last 30 days can be blocked', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ sightings([['45.33.20.1', Date.now() - 40 * DAY]]);
+ expect(await refusedBlock(target, ['45.33.20.1'])).toBe(ValidationErrorCodes.ENFORCEMENT_NETWORK_UNKNOWN);
+ expect(await refusedBlock(target, ['45.33.30.1'])).toBe(ValidationErrorCodes.ENFORCEMENT_NETWORK_UNKNOWN);
+ await blockingSuspension(target, [TARGET_IP]).expect(HTTP_STATUS.OK).execute();
+ });
+
+ test('exempt addresses and special-purpose ranges are skipped and listed', async () => {
+ const config = getConfig();
+ const exempt = config.ipBanExemptIps;
+ config.ipBanExemptIps = ['45.33.40.1'];
+ resetIpBanExemptionsForTesting();
+ try {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ sightings([
+ ['45.33.40.1', Date.now()],
+ ['100.64.1.1', Date.now()],
+ ['192.168.1.5', Date.now()],
+ ]);
+ const response = await blockingSuspension(target, ['45.33.40.1', '100.64.1.1', '192.168.1.5', TARGET_IP])
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(response.skipped_ips).toEqual([
+ {ip: '45.33.40.1', reason: 'exempt'},
+ {ip: '100.64.1.1', reason: 'special_purpose'},
+ {ip: '192.168.1.5', reason: 'special_purpose'},
+ ]);
+ expect((await adminRepository.loadAllBannedIpEntries()).map((entry) => entry.ip)).toEqual([TARGET_IP]);
+ } finally {
+ config.ipBanExemptIps = exempt;
+ resetIpBanExemptionsForTesting();
+ }
+ });
+
+ test('an address shared with an unrestricted account is refused, IPv6 by /64', async () => {
+ const ipv6 = '2a01:e0a:d10:95b0::1';
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ await createTestAccount(harness, {ipAddress: TARGET_IP});
+ expect(await refusedBlock(target, [TARGET_IP])).toBe(ValidationErrorCodes.ENFORCEMENT_NETWORK_SHARED);
+
+ const v6Target = await createTestAccount(harness, {ipAddress: ipv6});
+ await createTestAccount(harness, {ipAddress: '2a01:e0a:d10:95b0:abcd::7'});
+ expect(await refusedBlock(v6Target, [ipv6])).toBe(ValidationErrorCodes.ENFORCEMENT_NETWORK_SHARED);
+ expect(await adminRepository.loadAllBannedIpEntries()).toEqual([]);
+ });
+
+ test('accounts that are themselves suspended or closed do not count as sharing', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const suspended = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const closed = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ await suspend(harness, staff, suspended.userId);
+ await close(harness, staff, closed.userId);
+
+ const candidates = await createBuilder<{
+ networks: Array<{ip: string; skip_reason: string | null; other_unrestricted_accounts: number}>;
+ }>(harness, staff.token)
+ .get(`/admin/users/${target.userId}/network-block-candidates`)
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(candidates.networks).toEqual([
+ {ip: TARGET_IP, last_seen_at: expect.any(String), skip_reason: null, other_unrestricted_accounts: 0},
+ ]);
+ await blockingSuspension(target, [TARGET_IP]).expect(HTTP_STATUS.OK).execute();
+ });
+
+ test('a closure blocks networks too', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const {user} = await createBuilder<RestrictionResponse>(harness, staff.token)
+ .put(`/admin/users/${target.userId}/deletion`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body({
+ days_until_deletion: 74,
+ basis: {type: 'enforcement', decision: decisionBody()},
+ block_networks: {ips: [TARGET_IP]},
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(await adminRepository.listDecisionIpBans(BigInt(user.enforcement_decision_id!))).toHaveLength(1);
+ });
+ });
+
+ describe('linked rows and the blocklist', () => {
+ test('a plain write never overwrites a linked row', async () => {
+ await adminRepository.banIpForDecision(TARGET_IP, 42n, new Date(Date.now() + 90 * DAY));
+ await adminRepository.banIp(TARGET_IP);
+ await adminRepository.banIpTemp(TARGET_IP, 60);
+ const [row] = await adminRepository.loadAllBannedIpEntries();
+ expect(row?.decisionId).toBe(42n);
+ expect(row?.kind).toBe('temporary_24h');
+
+ await createBuilder(harness, staff.token)
+ .post('/admin/blocklists/ip/entries')
+ .body({ip: TARGET_IP})
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.IP_BAN_LINKED_TO_DECISION)
+ .execute();
+ });
+
+ test('a plain row becomes linked and keeps the later expiry, another decision keeps its row', async () => {
+ const later = new Date(Date.now() + 200 * DAY);
+ await insertPlainBlock(TARGET_IP, later);
+ const linked = await adminRepository.banIpForDecision(TARGET_IP, 7n, new Date(Date.now() + 90 * DAY));
+ expect(linked?.decisionId).toBe(7n);
+ expect(linked?.expiresAt?.getTime()).toBe(later.getTime());
+ expect(await adminRepository.banIpForDecision(TARGET_IP, 8n, new Date(Date.now() + DAY))).toBeNull();
+ expect((await adminRepository.loadAllBannedIpEntries())[0]?.decisionId).toBe(7n);
+
+ await adminRepository.banIp('45.33.50.1');
+ expect(await adminRepository.banIpForDecision('45.33.50.1', 9n, new Date(Date.now() + DAY))).toBeNull();
+ });
+
+ test('the blocklist refuses to remove a linked row and the check names the decision', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const {user} = await blockingSuspension(target, [TARGET_IP]).expect(HTTP_STATUS.OK).execute();
+ const decisionId = user.enforcement_decision_id!;
+ const refused = await createBuilder<{decision_id: string}>(harness, staff.token)
+ .delete(`/admin/blocklists/ip/entries/${encodeURIComponent(TARGET_IP)}`)
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.IP_BAN_LINKED_TO_DECISION)
+ .execute();
+ expect(refused.decision_id).toBe(decisionId);
+ const check = await createBuilder<{banned: boolean; decision_id: string | null}>(harness, staff.token)
+ .get(`/admin/blocklists/ip/entries/${encodeURIComponent(TARGET_IP)}`)
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(check).toMatchObject({banned: true, decision_id: decisionId});
+ });
+
+ test('ending the decision removes its rows and needs the IP removal permission', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const {user} = await blockingSuspension(target, [TARGET_IP]).expect(HTTP_STATUS.OK).execute();
+ const decisionId = user.enforcement_decision_id!;
+ const limited = await createStaff(harness, [AdminACLs.ENFORCEMENT_VIEW, AdminACLs.USER_TEMP_BAN]);
+ await endDecision(harness, limited, decisionId)
+ .expect(HTTP_STATUS.FORBIDDEN, APIErrorCodes.MISSING_ACL)
+ .execute();
+
+ const ended = await endDecision(harness, staff, decisionId).expect(HTTP_STATUS.OK).execute();
+ expect(ended.network_blocks).toEqual([]);
+ expect(await adminRepository.loadAllBannedIpEntries()).toEqual([]);
+ expect(ipBanCache.isBanned(TARGET_IP)).toBe(false);
+ });
+
+ test('a closure takes over the blocks of the suspension it replaces and reversing it removes them', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const {user} = await blockingSuspension(target, [TARGET_IP]).expect(HTTP_STATUS.OK).execute();
+ const closureId = await close(harness, staff, target.userId);
+ expect(await adminRepository.listDecisionIpBans(BigInt(user.enforcement_decision_id!))).toEqual([]);
+ expect(await adminRepository.listDecisionIpBans(BigInt(closureId))).toHaveLength(1);
+ const closure = await getDecision(harness, staff, closureId);
+ expect(closure.network_blocks).toHaveLength(1);
+ await endDecision(harness, staff, closureId, 'reversed').expect(HTTP_STATUS.OK).execute();
+ expect(await adminRepository.loadAllBannedIpEntries()).toEqual([]);
+ await endDecision(harness, staff, user.enforcement_decision_id!, 'reversed').expect(HTTP_STATUS.OK).execute();
+ });
+
+ test('a temporary suspension that replaces a blocking one removes its blocks', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ await blockingSuspension(target, [TARGET_IP]).expect(HTTP_STATUS.OK).execute();
+ await suspend(harness, staff, target.userId);
+ expect(await adminRepository.loadAllBannedIpEntries()).toEqual([]);
+ });
+
+ test('executing the deletion removes the rows of every decision on the account', async () => {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ await blockingSuspension(target, [TARGET_IP]).expect(HTTP_STATUS.OK).execute();
+ const closureId = await close(harness, staff, target.userId);
+ const closed = await loadUser(target);
+ const due = new Date(Date.now() - ms('1 minute'));
+ await getUserRepository().updateDeletionSchedule(closed, {
+ flags: closed.flags,
+ pending_deletion_at: due,
+ deletion_reason_code: closed.deletionReasonCode,
+ deletion_scheduled_by: closed.deletionScheduledBy,
+ deletion_scheduled_at: closed.deletionScheduledAt,
+ });
+ expect(await adminRepository.listDecisionIpBans(BigInt(closureId))).toHaveLength(1);
+ await createBuilderWithoutAuth(harness)
+ .post(`/test/worker/process-pending-deletion/${target.userId}`)
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(await adminRepository.loadAllBannedIpEntries()).toEqual([]);
+ });
+ });
+
+ describe('the block screen', () => {
+ async function linkedBlock(reasonCode: DecisionBody['reason_code']): Promise<string> {
+ const target = await createTestAccount(harness, {ipAddress: TARGET_IP});
+ const {user} = await blockingSuspension(target, [TARGET_IP], {decision: decisionBody({reason_code: reasonCode})})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return user.enforcement_decision_id!;
+ }
+
+ test('a rule shown on the network screen gives its title and the appeals address', async () => {
+ const decisionId = await linkedBlock(DeletionReasons.SPAM);
+ expect(ipBanCache.getMatch(TARGET_IP)?.decision).toEqual({
+ decisionId: BigInt(decisionId),
+ reasonCode: DeletionReasons.SPAM,
+ });
+ const {response, json} = await requestFrom(TARGET_IP);
+ expect(response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ expect(json.code).toBe(APIErrorCodes.GLOBAL_IP_TEMPORARILY_BANNED);
+ expect(json.reason?.title).toBe('Spam');
+ expect(json.appeal_email).toBe('[email protected]');
+ expect(json.appeals_supported).toBe(true);
+ expect(json.message).toMatch(
+ /^Fluxer blocked access from this network because of activity that broke its rules\. The block ends on /,
+ );
+ expect(json.message).not.toMatch(/platform admin|sign in/i);
+ expect(JSON.stringify(json)).not.toContain(decisionId);
+ });
+
+ test('a withheld reason is byte-identical to a plain block', async () => {
+ const expiresAt = new Date(Date.now() + 90 * DAY);
+ await insertPlainBlock(TARGET_IP, expiresAt);
+ await ipBanCache.refresh();
+ const plain = await requestFrom(TARGET_IP);
+ expect(plain.response.status).toBe(HTTP_STATUS.FORBIDDEN);
+
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({reason_code: DeletionReasons.SCAM_OR_SOCIAL_ENGINEERING}),
+ );
+ await adminRepository.banIpForDecision(TARGET_IP, BigInt(decisionId), expiresAt);
+ await ipBanCache.refresh();
+ expect(ipBanCache.getMatch(TARGET_IP)?.decision?.reasonCode).toBe(DeletionReasons.SCAM_OR_SOCIAL_ENGINEERING);
+ const withheld = await requestFrom(TARGET_IP);
+
+ expect(withheld.text).toBe(plain.text);
+ expect(withheld.json.reason).toBeNull();
+ expect(withheld.json.appeal_email).toBe('[email protected]');
+ });
+
+ test('self-hosted blocks give no contact and do not support appeals', async () => {
+ const config = getConfig();
+ const selfHosted = config.instance.selfHosted;
+ config.instance.selfHosted = true;
+ try {
+ await linkedBlock(DeletionReasons.SPAM);
+ const {json} = await requestFrom(TARGET_IP);
+ expect(json.appeal_email).toBeNull();
+ expect(json.appeals_supported).toBe(false);
+ expect(json.message).not.toMatch(/@|Fluxer/);
+ } finally {
+ config.instance.selfHosted = selfHosted;
+ }
+ });
+
+ test('instance discovery is served to a blocked network and an unknown sign-in gets the block', async () => {
+ await linkedBlock(DeletionReasons.SPAM);
+ const discovery = await requestFrom(TARGET_IP, '/.well-known/fluxer');
+ expect(discovery.response.status).toBe(HTTP_STATUS.OK);
+ const login = await createBuilderWithoutAuth<BlockErrorBody>(harness)
+ .post('/auth/login')
+ .header('x-forwarded-for', TARGET_IP)
+ .body({email: '[email protected]', password: 'a-strong-password'})
+ .executeRaw();
+ expect(login.response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ expect(login.json.code).toBe(APIErrorCodes.GLOBAL_IP_TEMPORARILY_BANNED);
+ });
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementNotice.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementNotice.test.ts
new file mode 100644
index 000000000..26ca8c806
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementNotice.test.ts
@@ -0,0 +1,488 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {UserID} from '@app/api/BrandedTypes';
+import {getConfig} from '@app/api/Config';
+import {CONTENT_I18N_MESSAGES} from '@app/api/content_i18n/ContentI18nMessages';
+import {joinLocalizedList} from '@app/api/content_i18n/JoinLocalizedList';
+import type {EnforcementDecisionRow} from '@app/api/database/types/EnforcementTypes';
+import {EMPTY_USER_ROW} from '@app/api/database/types/UserTypes';
+import {buildEnforcementNotice, type EvidenceMessageLocation} from '@app/api/enforcement/EnforcementNotice';
+import {renderNoticeText} from '@app/api/enforcement/EnforcementNoticeDelivery';
+import {resolveContactEmails} from '@app/api/instance/ContactEmails';
+import {getInstanceProductName, setCachedProductName} from '@app/api/instance/ProductName';
+import {User} from '@app/api/models/User';
+import {systemDmBody} from '@app/api/user/services/SystemDmMessage';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {ENFORCEMENT_RULES, type EnforcementRuleKey, isAccountKind} from '@fluxer/constants/src/EnforcementReasons';
+import {UserFlags} from '@fluxer/constants/src/UserConstants';
+import {AdminUserClearFieldsRequest} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
+import type {EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+import {getEmailTemplate} from '@pkgs/email/src/email_i18n/EmailI18n';
+import {afterEach, describe, expect, it} from 'vitest';
+
+const CREATED_AT = new Date('2026-10-14T10:00:00.000Z');
+const NOW = new Date('2026-10-14T12:00:00.000Z');
+const STAFF_ID = 987654321987n;
+const REPORT_ID = 555444333222n;
+
+function decision(overrides: Partial<EnforcementDecisionRow> = {}): EnforcementDecisionRow {
+ return {
+ decision_id: 1234567890123n,
+ subject_type: 'user',
+ subject_id: 40n,
+ subject_name: null,
+ recipient_user_id: 40n,
+ kind: 'suspension',
+ reason_code: DeletionReasons.SPAM,
+ source: 'own_review',
+ automation: 'none',
+ statement: null,
+ rights_holder: null,
+ ends_at: new Date('2026-10-21T10:00:00.000Z'),
+ deletion_at: null,
+ feature_limit: null,
+ profile_fields: null,
+ removed_message_count: null,
+ removed_all_messages: null,
+ payment_at: null,
+ report_ids: new Set([REPORT_ID]),
+ decided_by: STAFF_ID,
+ created_at: CREATED_AT,
+ status: 'active',
+ end_outcome: null,
+ ended_at: null,
+ ended_by: null,
+ end_statement: null,
+ notice_status: 'sent',
+ notice_channels: new Set(['email']),
+ notice_locale: 'en-US',
+ notice_text: null,
+ notice_sent_at: CREATED_AT,
+ ...overrides,
+ };
+}
+
+const IN_CHANNEL: Array<EvidenceMessageLocation> = [
+ {
+ locationKey: '20',
+ location: {type: 'channel', channelName: 'general', communityName: 'Plant Club'},
+ timestamp: new Date('2026-10-01T09:00:00.000Z'),
+ },
+ {
+ locationKey: '20',
+ location: {type: 'channel', channelName: 'general', communityName: 'Plant Club'},
+ timestamp: new Date('2026-10-02T18:30:00.000Z'),
+ },
+];
+
+const IN_DIRECT_MESSAGE: Array<EvidenceMessageLocation> = [
+ {locationKey: '21', location: {type: 'direct_message'}, timestamp: new Date('2026-09-03T08:15:00.000Z')},
+ {locationKey: '22', location: {type: 'group_message'}, timestamp: new Date('2026-09-04T08:15:00.000Z')},
+ {locationKey: '23', location: {type: 'unknown'}, timestamp: new Date('2026-09-05T08:15:00.000Z')},
+];
+
+function notice(
+ row: EnforcementDecisionRow,
+ evidence: ReadonlyArray<EvidenceMessageLocation> = IN_CHANNEL,
+ locale = 'en-US',
+): EnforcementNotice {
+ return buildEnforcementNotice(
+ {type: 'decision', decision: row, evidence, networksBlockedUntil: null, accountHasEmail: true},
+ locale,
+ NOW,
+ );
+}
+
+function legacyUser(overrides: Partial<typeof EMPTY_USER_ROW>): User {
+ return new User({
+ ...EMPTY_USER_ROW,
+ user_id: 41n as UserID,
+ username: 'legacy',
+ email: '[email protected]',
+ ...overrides,
+ });
+}
+
+const KINDS: Record<string, EnforcementDecisionRow> = {
+ suspension: decision({statement: 'You posted the same link in ten communities.'}),
+ permanent_suspension: decision({ends_at: null, removed_message_count: 3}),
+ bot_suspension: decision({subject_name: 'helperbot', recipient_user_id: 77n}),
+ warning: decision({kind: 'warning', ends_at: null}),
+ closure: decision({kind: 'closure', ends_at: null, deletion_at: new Date('2026-12-27T10:00:00.000Z')}),
+ feature_limit_direct_messages: decision({kind: 'feature_limit', ends_at: null, feature_limit: 'direct_messages'}),
+ feature_limit_reports: decision({
+ kind: 'feature_limit',
+ reason_code: DeletionReasons.REPORTING_ABUSE,
+ feature_limit: 'reports',
+ }),
+ feature_limit_purchases: decision({
+ kind: 'feature_limit',
+ reason_code: DeletionReasons.PAYMENT_FRAUD,
+ ends_at: null,
+ feature_limit: 'purchases',
+ automation: 'automated',
+ payment_at: new Date('2026-10-10T00:00:00.000Z'),
+ }),
+ content_removal: decision({kind: 'content_removal', ends_at: null, removed_message_count: 2}),
+ content_removal_all: decision({kind: 'content_removal', ends_at: null, removed_all_messages: true}),
+ profile_reset: decision({kind: 'profile_reset', ends_at: null, profile_fields: new Set(['bio', 'global_name'])}),
+ community_removal: decision({
+ kind: 'community_removal',
+ subject_type: 'guild',
+ subject_name: 'Plant Club',
+ ends_at: null,
+ }),
+ protected_harassment: decision({reason_code: DeletionReasons.HARASSMENT_OR_BULLYING, source: 'report'}),
+ restricted_child_safety: decision({reason_code: DeletionReasons.CHILD_SAFETY_VIOLATION, ends_at: null}),
+ copyright: decision({
+ kind: 'warning',
+ ends_at: null,
+ reason_code: DeletionReasons.COPYRIGHT,
+ rights_holder: 'Example Records',
+ }),
+ self_harm: decision({
+ kind: 'warning',
+ ends_at: null,
+ reason_code: DeletionReasons.SELF_HARM_PROMOTION,
+ automation: 'flagged',
+ }),
+};
+
+describe('buildEnforcementNotice', () => {
+ const config = getConfig();
+ const selfHosted = config.instance.selfHosted;
+
+ afterEach(() => {
+ config.instance.selfHosted = selfHosted;
+ setCachedProductName(null);
+ });
+
+ it.each(Object.entries(KINDS))('renders %s', (_name, row) => {
+ const evidence = row.reason_code === DeletionReasons.HARASSMENT_OR_BULLYING ? IN_DIRECT_MESSAGE : IN_CHANNEL;
+ expect(notice(row, evidence)).toMatchSnapshot();
+ });
+
+ it('renders conversations with dates under standard handling and the month only under protected handling', () => {
+ expect(notice(decision(), IN_DIRECT_MESSAGE).facts.slice(1)).toEqual([
+ '1 message in a direct message conversation, on Sep 3, 2026, 8:15 AM UTC.',
+ '1 message in a group conversation, on Sep 4, 2026, 8:15 AM UTC.',
+ '1 message in a conversation that no longer exists, on Sep 5, 2026, 8:15 AM UTC.',
+ ]);
+ const protectedNotice = notice(KINDS.protected_harassment!, IN_DIRECT_MESSAGE);
+ expect(protectedNotice.facts.slice(1)).toEqual([
+ '1 message in a direct message conversation in September 2026.',
+ '1 message in a group conversation in September 2026.',
+ '1 message in a conversation that no longer exists, on Sep 5, 2026, 8:15 AM UTC.',
+ ]);
+ });
+
+ it('states how the case reached the team from the decision source, whatever the handling', () => {
+ for (const row of [decision(), KINDS.protected_harassment!, KINDS.restricted_child_safety!]) {
+ expect(notice({...row, source: 'report'}, IN_DIRECT_MESSAGE).how_we_decided[0]).toBe(
+ 'We reviewed this after a report.',
+ );
+ expect(notice({...row, source: 'own_review'}, IN_DIRECT_MESSAGE).how_we_decided[0]).toBe(
+ 'We found this in our own review.',
+ );
+ }
+ });
+
+ it('describes a bot by its own lead, not the rule lead about a person', () => {
+ const bot = notice(KINDS.bot_suspension!);
+ expect(bot.facts[0]).toBe('We found activity from your bot that breaks this rule.');
+ expect(bot.facts.join(' ')).not.toMatch(/\byour account\b|\byou sent\b/);
+ });
+
+ it('times carry the UTC suffix in one format', () => {
+ const rendered = JSON.stringify(Object.values(KINDS).map((row) => notice(row)));
+ expect(rendered).not.toContain('(UTC)');
+ });
+
+ it('gives messages sent within the same minute one time instead of a range', () => {
+ const sameMinute: Array<EvidenceMessageLocation> = [
+ {...IN_CHANNEL[0]!, timestamp: new Date('2026-10-01T09:00:05.000Z')},
+ {...IN_CHANNEL[0]!, timestamp: new Date('2026-10-01T09:00:40.000Z')},
+ ];
+ expect(notice(decision(), sameMinute).facts[1]).toBe(
+ '2 messages in #general of Plant Club, on Oct 1, 2026, 9:00 AM UTC.',
+ );
+ });
+
+ it('gives restricted decisions the rule lead only', () => {
+ const restricted = notice(
+ decision({reason_code: DeletionReasons.VIOLENT_EXTREMISM, ends_at: null, statement: 'x'}),
+ );
+ expect(restricted.facts).toEqual([
+ 'We found content or activity on your account that breaks our rules on terrorism and violent extremism.',
+ ]);
+ expect(restricted.statement).toBeNull();
+ });
+
+ it('never shows private fields', () => {
+ const rendered = JSON.stringify(
+ Object.values(KINDS).map((row) => notice({...row, decided_by: STAFF_ID, report_ids: new Set([REPORT_ID])})),
+ );
+ for (const secret of [STAFF_ID.toString(), REPORT_ID.toString(), '127.0.0.1', 'NCMEC', 'police', 'hash']) {
+ expect(rendered).not.toContain(secret);
+ }
+ });
+
+ it('renders legacy restrictions from the user row', () => {
+ const suspended = buildEnforcementNotice(
+ {
+ type: 'legacy',
+ user: legacyUser({temp_banned_until: new Date('2026-10-20T00:00:00.000Z'), flags: UserFlags.DISABLED}),
+ },
+ 'en-US',
+ NOW,
+ );
+ expect(suspended).toMatchObject({
+ decision_id: null,
+ kind: 'suspension',
+ permanent: false,
+ rule: null,
+ facts: ["We don't have more detail on record for this decision."],
+ statement: null,
+ how_we_decided: [],
+ appeal: {email: '[email protected]', deadline: null, account_has_email: true},
+ });
+ const banned = buildEnforcementNotice(
+ {
+ type: 'legacy',
+ user: legacyUser({temp_banned_until: new Date('2126-10-14T00:00:00.000Z'), flags: UserFlags.DISABLED}),
+ },
+ 'en-US',
+ NOW,
+ );
+ expect(banned).toMatchObject({kind: 'suspension', permanent: true, summary: 'We banned your account.'});
+ const closed = buildEnforcementNotice(
+ {
+ type: 'legacy',
+ user: legacyUser({
+ flags: UserFlags.DELETED,
+ pending_deletion_at: new Date('2026-12-01T00:00:00.000Z'),
+ deletion_reason_code: DeletionReasons.SPAM,
+ deletion_public_reason: 'Bulk invites',
+ deletion_scheduled_at: new Date('2026-10-01T00:00:00.000Z'),
+ }),
+ },
+ 'en-US',
+ NOW,
+ );
+ expect(closed).toMatchObject({
+ kind: 'closure',
+ rule: {title: 'Spam'},
+ facts: [],
+ statement: 'Bulk invites',
+ appeal: {deadline: 'Nov 30, 2026'},
+ });
+ });
+
+ it('offers the appeal variants', () => {
+ expect(notice(decision()).appeal).toEqual({
+ email: '[email protected]',
+ deadline: 'Dec 13, 2026',
+ account_has_email: true,
+ });
+ const noEmail = buildEnforcementNotice(
+ {
+ type: 'decision',
+ decision: decision({notice_sent_at: null}),
+ evidence: [],
+ networksBlockedUntil: null,
+ accountHasEmail: false,
+ },
+ 'en-US',
+ );
+ expect(noEmail.appeal).toEqual({email: '[email protected]', deadline: null, account_has_email: false});
+ });
+
+ it('names no product, address or support line on an unnamed self-hosted instance', () => {
+ config.instance.selfHosted = true;
+ setCachedProductName(null);
+ for (const row of Object.values(KINDS)) {
+ const rendered = notice(row);
+ const text = JSON.stringify(rendered);
+ expect(text).not.toMatch(/fluxer/i);
+ expect(text).not.toContain('@');
+ expect(rendered.appeal).toBeNull();
+ expect(rendered.redress).toEqual([]);
+ expect(rendered.rule?.url ?? null).toBeNull();
+ expect(text).not.toContain('support lines');
+ }
+ });
+
+ it('names no product or address in any email or reporter notice on an unnamed self-hosted instance', () => {
+ config.instance.selfHosted = true;
+ setCachedProductName(null);
+ const productName = getInstanceProductName();
+ const contacts = resolveContactEmails();
+ const rendered = [
+ ...Object.values(KINDS).map((row) => renderNoticeText(row, notice(row), 'holder', 'en-US')),
+ ...(['lifted', 'reversed'] as const).map((outcome) =>
+ getEmailTemplate(
+ 'enforcement_ended',
+ 'en-US',
+ {
+ username: 'holder',
+ outcome,
+ decision_id: '1',
+ restores_access: 'yes',
+ statement: null,
+ content_removed: 'yes',
+ },
+ productName,
+ ),
+ ),
+ getEmailTemplate(
+ 'account_deletion_scheduled_requested',
+ 'en-US',
+ {username: 'holder', deletion_date: 'Dec 13, 2026', safety_email: contacts.safetyEmail},
+ productName,
+ ),
+ getEmailTemplate(
+ 'account_deletion_scheduled_inactivity',
+ 'en-US',
+ {username: 'holder', deletion_date: 'Dec 13, 2026', support_email: contacts.supportEmail},
+ productName,
+ ),
+ ...(['removed', 'restricted', 'action_taken', 'no_violation'] as const).flatMap((outcome) => [
+ getEmailTemplate(
+ 'report_resolved',
+ 'en-US',
+ {
+ username: 'reporter',
+ reportId: '1',
+ publicComment: '',
+ hasComment: 'no',
+ outcome,
+ appeals_email: contacts.appealsEmail,
+ },
+ productName,
+ ),
+ getEmailTemplate(
+ 'dsa_report_resolved',
+ 'en-US',
+ {reportId: '1', publicComment: '', hasComment: 'no', outcome, appeals_email: contacts.appealsEmail},
+ productName,
+ ),
+ ]),
+ ];
+ for (const entry of rendered) {
+ const text = typeof entry === 'string' ? entry : entry?.ok ? `${entry.value.subject}\n${entry.value.body}` : null;
+ expect(text).not.toBeNull();
+ expect(text).not.toMatch(/fluxer/i);
+ expect(text).not.toContain('@');
+ }
+ });
+
+ it('states the territorial scope in every notice, email and system message', () => {
+ const expectScope = (productName: string) => {
+ const line = `This decision applies everywhere ${productName} is available.`;
+ for (const row of Object.values(KINDS)) {
+ const rendered = notice(row);
+ const text = renderNoticeText(row, rendered, 'holder', 'en-US');
+ if (isAccountKind(row.kind)) {
+ expect(rendered.effects[0]).toMatch(/\banywhere\b/);
+ expect(rendered.effects).not.toContain(line);
+ expect(text).toContain(rendered.effects[0]);
+ } else {
+ expect(rendered.effects[1]).toBe(line);
+ expect(text).toContain(`${rendered.effects[0]}\n${line}`);
+ }
+ }
+ const legacy = buildEnforcementNotice(
+ {type: 'legacy', user: legacyUser({temp_banned_until: null, flags: UserFlags.DISABLED})},
+ 'en-US',
+ NOW,
+ );
+ expect(legacy.effects).toEqual([`You can't sign in or use ${productName} anywhere.`]);
+ };
+ expectScope('Fluxer');
+ config.instance.selfHosted = true;
+ setCachedProductName('Plant Chat');
+ expectScope('Plant Chat');
+ setCachedProductName(null);
+ expectScope(getInstanceProductName());
+ expect(notice(KINDS.community_removal!, IN_CHANNEL, 'de').effects[1]).toBe(
+ `Diese Entscheidung gilt überall, wo ${getInstanceProductName()} verfügbar ist.`,
+ );
+ });
+
+ it('never doubles the full stop after a date that ends in a period', () => {
+ const hr = notice(KINDS.closure!, IN_CHANNEL, 'hr');
+ expect(JSON.stringify(hr)).not.toMatch(/[^.]\.\.[^.]/);
+ const email = getEmailTemplate(
+ 'account_deletion_scheduled_inactivity',
+ 'hr',
+ {username: 'holder', deletion_date: '1. pro 2026.', support_email: null},
+ 'Fluxer',
+ );
+ expect(email.ok && email.value.body).toContain('1. pro 2026.\n');
+ });
+
+ it('starts a system message with a capital letter after the greeting is dropped', () => {
+ const rendered = getEmailTemplate(
+ 'report_resolved',
+ 'de',
+ {
+ username: 'reporter',
+ reportId: '1',
+ publicComment: '',
+ hasComment: 'no',
+ outcome: 'no_violation',
+ appeals_email: null,
+ },
+ 'Fluxer',
+ );
+ expect(rendered.ok && systemDmBody(rendered.value.body)).toMatch(/^Wir haben/);
+ });
+
+ it('names the deletion date once in a closure', () => {
+ const closure = notice(KINDS.closure!);
+ const date = closure.deletion_at ? new Date(closure.deletion_at) : null;
+ expect(date).not.toBeNull();
+ const lines = [closure.summary, ...closure.effects].join(' ');
+ expect(lines.match(/\b20\d\d\b/g)).toHaveLength(1);
+ });
+
+ it('shows links as Markdown in the system message and as plain text with the address in the email', () => {
+ const row = KINDS.feature_limit_reports!;
+ const rendered = notice(row);
+ const dm = renderNoticeText(row, rendered, 'holder', 'en-US') ?? '';
+ expect(dm).toContain('[company information page](');
+ expect(dm).toContain('Rule: [Misuse of reporting](');
+ expect(dm).toContain('[list of these bodies](https://digital-strategy.ec.europa.eu/');
+ expect(dm).not.toMatch(/^Hello|The Fluxer team$/m);
+ expect(rendered.effects[0]).toBe(
+ `You can't send reports in the app until then. To report illegal content, use the safety route on our [company information page](${getConfig().endpoints.marketing}/company-information).`,
+ );
+ });
+
+ it('localizes dates and joins profile fields per locale', () => {
+ expect(joinLocalizedList(['a', 'b'], 'ja')).toBe('a、b');
+ expect(joinLocalizedList(['a', 'b'], 'zh-CN')).toBe('a、b');
+ expect(joinLocalizedList(['a', 'b'], 'zh-TW')).toBe('a、b');
+ expect(joinLocalizedList(['a', 'b'], 'ar')).toBe('a، b');
+ expect(joinLocalizedList(['a', 'b'], 'zh-HK')).toBe('a, b');
+ expect(joinLocalizedList(['a', 'b'], 'en-US')).toBe('a, b');
+ expect(notice(KINDS.suspension!, IN_CHANNEL, 'sv-SE').summary).toContain('2026');
+ });
+});
+
+describe('enforcement content catalog', () => {
+ const keys = new Set(Object.keys(CONTENT_I18N_MESSAGES));
+
+ it('has a title and a lead for every rule', () => {
+ for (const rule of Object.keys(ENFORCEMENT_RULES) as Array<EnforcementRuleKey>) {
+ expect(keys.has(`enforcement.rule.${rule}`), rule).toBe(true);
+ expect(keys.has(`enforcement.lead.${rule}`), rule).toBe(true);
+ }
+ });
+
+ it('has a label for every profile field', () => {
+ for (const field of AdminUserClearFieldsRequest.shape.fields.element.options.map((option) => option.value)) {
+ expect(keys.has(`enforcement.profile_field.${field}`), field).toBe(true);
+ }
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementPaymentFraud.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementPaymentFraud.test.ts
new file mode 100644
index 000000000..fe78b570c
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementPaymentFraud.test.ts
@@ -0,0 +1,228 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {AdminRepository} from '@app/api/admin/AdminRepository';
+import {clearTestEmails, createTestAccount, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {createUserID} from '@app/api/BrandedTypes';
+import {
+ close,
+ createStaff,
+ decisionBody,
+ emailsTo,
+ endDecision,
+ getDecision,
+ listDecisions,
+ loadUser,
+ suspend,
+ warn,
+} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {getUserRepository} from '@app/api/middleware/ServiceSingletons';
+import {
+ createTestPayment,
+ mockStripeWebhookSecret,
+ restoreStripeWebhookSecret,
+ sendStripeWebhook,
+ setupSyncStripeWebhookWorker,
+} from '@app/api/stripe/tests/StripeWebhookTestUtils';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {createStripeApiHandlers} from '@app/api/test/msw/handlers/StripeApiHandlers';
+import {server} from '@app/api/test/msw/server';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder} from '@app/api/test/TestRequestBuilder';
+import {PaymentRepository} from '@app/api/user/repositories/PaymentRepository';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {PremiumFlags, UserFlags} from '@fluxer/constants/src/UserConstants';
+import type {EnforcementDecisionResponse} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
+import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, test} from 'vitest';
+
+describe('Enforcement for payment fraud signals', () => {
+ let harness: ApiTestHarness;
+ let staff: TestAccount;
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ mockStripeWebhookSecret('whsec_test_enforcement_payment');
+ setupSyncStripeWebhookWorker();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ staff = await createStaff(harness);
+ });
+
+ afterEach(() => {
+ server.resetHandlers();
+ });
+
+ afterAll(async () => {
+ await harness?.shutdown();
+ restoreStripeWebhookSecret();
+ });
+
+ async function purchase(account: TestAccount, paymentIntentId: string): Promise<Date> {
+ await createTestPayment(harness, createUserID(BigInt(account.userId)), `cs_${paymentIntentId}`, {
+ paymentIntentId,
+ status: 'completed',
+ });
+ const payment = await new PaymentRepository().getPaymentByPaymentIntent(paymentIntentId);
+ return payment!.createdAt;
+ }
+
+ async function chargeback(paymentIntentId: string, status: 'needs_response' | 'won' | 'lost' = 'needs_response') {
+ await sendStripeWebhook(harness, {
+ type: status === 'needs_response' ? 'charge.dispute.created' : 'charge.dispute.closed',
+ data: {object: {id: `dp_${paymentIntentId}`, payment_intent: paymentIntentId, status}},
+ });
+ }
+
+ async function reviewQueue(): Promise<Array<EnforcementDecisionResponse>> {
+ const {decisions} = await createBuilder<{decisions: Array<EnforcementDecisionResponse>}>(harness, staff.token)
+ .get('/admin/enforcement-decisions?review_queue=true')
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return decisions;
+ }
+
+ async function onlyDecision(account: TestAccount): Promise<EnforcementDecisionResponse> {
+ const decisions = await listDecisions(harness, staff, account.userId);
+ expect(decisions).toHaveLength(1);
+ return getDecision(harness, staff, decisions[0]!.decision_id);
+ }
+
+ test('a chargeback records an automated purchase limit and never suspends, closes or bans', async () => {
+ const target = await createTestAccount(harness);
+ const paidAt = await purchase(target, 'pi_enforcement_chargeback');
+ await clearTestEmails(harness);
+ await chargeback('pi_enforcement_chargeback');
+ const user = await loadUser(target);
+ expect(user.premiumFlags & PremiumFlags.PURCHASE_DISABLED).toBe(PremiumFlags.PURCHASE_DISABLED);
+ expect(user.flags & (UserFlags.DISABLED | UserFlags.DELETED)).toBe(0n);
+ expect(user.tempBannedUntil).toBeNull();
+ expect(user.pendingDeletionAt).toBeNull();
+ expect(user.enforcementDecisionId).toBeNull();
+ expect(await new AdminRepository().isEmailBanned(target.email)).toBe(false);
+ const decision = await onlyDecision(target);
+ expect(decision).toMatchObject({
+ kind: 'feature_limit',
+ limit: 'purchases',
+ reason_code: DeletionReasons.PAYMENT_FRAUD,
+ automation: 'automated',
+ source: 'own_review',
+ decided_by: '0',
+ payment_at: paidAt.toISOString(),
+ notice_status: 'sent',
+ });
+ expect(decision.notes[0]?.body).toContain('Stripe chargeback');
+ expect(decision.notice_text).toContain(
+ 'This is a temporary limit applied automatically while a person on our team reviews it.',
+ );
+ expect(decision.notice_text).toContain('A payment on your account on ');
+ expect(decision.notice_text).not.toContain('fraud');
+ expect((await reviewQueue()).map((queued) => queued.decision_id)).toEqual([decision.decision_id]);
+ expect(await emailsTo(harness, target, 'enforcement_notice')).toHaveLength(1);
+ });
+
+ test('an early fraud warning records the same automated limit', async () => {
+ const chargeId = 'ch_enforcement_efw';
+ server.use(...createStripeApiHandlers({charges: {[chargeId]: {payment_intent: 'pi_enforcement_efw'}}}).handlers);
+ const target = await createTestAccount(harness);
+ const paidAt = await purchase(target, 'pi_enforcement_efw');
+ await sendStripeWebhook(harness, {
+ type: 'radar.early_fraud_warning.created',
+ data: {
+ object: {
+ actionable: true,
+ charge: chargeId,
+ created: Math.floor(Date.now() / 1000),
+ fraud_type: 'made_with_stolen_card',
+ id: 'issfr_enforcement',
+ livemode: false,
+ object: 'radar.early_fraud_warning',
+ payment_intent: 'pi_enforcement_efw',
+ },
+ },
+ });
+ const decision = await onlyDecision(target);
+ expect(decision).toMatchObject({automation: 'automated', limit: 'purchases', payment_at: paidAt.toISOString()});
+ expect((await loadUser(target)).pendingDeletionAt).toBeNull();
+ });
+
+ test.each([
+ ['warning', (target: TestAccount) => warn(harness, staff, target.userId, decisionBody())],
+ ['suspension', (target: TestAccount) => suspend(harness, staff, target.userId)],
+ ['closure', (target: TestAccount) => close(harness, staff, target.userId)],
+ ])('a %s by a person takes the account out of the review queue', async (_label, decide) => {
+ const target = await createTestAccount(harness);
+ await purchase(target, `pi_queue_${_label}`);
+ await chargeback(`pi_queue_${_label}`);
+ expect(await reviewQueue()).toHaveLength(1);
+ await decide(target);
+ expect(await reviewQueue()).toEqual([]);
+ const limits = (await listDecisions(harness, staff, target.userId)).filter(
+ (decision) => decision.kind === 'feature_limit',
+ );
+ expect(limits.map((decision) => decision.status)).toEqual(['active']);
+ });
+
+ test('a person ending the limit clears the flag and the review queue', async () => {
+ const target = await createTestAccount(harness);
+ await purchase(target, 'pi_queue_end');
+ await chargeback('pi_queue_end');
+ const decision = await onlyDecision(target);
+ await endDecision(harness, staff, decision.decision_id, 'lifted').expect(HTTP_STATUS.OK).execute();
+ expect(await reviewQueue()).toEqual([]);
+ expect((await loadUser(target)).premiumFlags & PremiumFlags.PURCHASE_DISABLED).toBe(0);
+ });
+
+ test('a won dispute reverses the limit as the system', async () => {
+ const target = await createTestAccount(harness);
+ await purchase(target, 'pi_dispute_won');
+ await chargeback('pi_dispute_won');
+ await clearTestEmails(harness);
+ await chargeback('pi_dispute_won', 'won');
+ const decision = await onlyDecision(target);
+ expect(decision).toMatchObject({status: 'ended', end_outcome: 'reversed', ended_by: '0'});
+ expect((await loadUser(target)).premiumFlags & PremiumFlags.PURCHASE_DISABLED).toBe(0);
+ expect(await reviewQueue()).toEqual([]);
+ const [email] = await emailsTo(harness, target, 'enforcement_ended');
+ expect(email?.metadata).toMatchObject({outcome: 'reversed', decision_id: decision.decision_id});
+ });
+
+ test('a lost dispute leaves the limit in place', async () => {
+ const target = await createTestAccount(harness);
+ await purchase(target, 'pi_dispute_lost');
+ await chargeback('pi_dispute_lost');
+ await chargeback('pi_dispute_lost', 'lost');
+ expect((await onlyDecision(target)).status).toBe('active');
+ });
+
+ test('a won dispute leaves a closure a person decided in place', async () => {
+ const target = await createTestAccount(harness);
+ await purchase(target, 'pi_dispute_staff_closure');
+ const closureId = await close(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({reason_code: DeletionReasons.BILLING_DISPUTE_OR_ABUSE}),
+ );
+ await chargeback('pi_dispute_staff_closure', 'won');
+ const user = await loadUser(target);
+ expect(user.enforcementDecisionId?.toString()).toBe(closureId);
+ expect(user.flags & UserFlags.DELETED).toBe(UserFlags.DELETED);
+ });
+
+ test('a won dispute still cancels a payment closure from before decisions', async () => {
+ const target = await createTestAccount(harness);
+ await purchase(target, 'pi_dispute_legacy');
+ const users = getUserRepository();
+ const user = await loadUser(target);
+ await users.updateDeletionSchedule(user, {
+ flags: user.flags | UserFlags.DELETED,
+ pending_deletion_at: new Date(Date.now() + 30 * 86_400_000),
+ deletion_reason_code: DeletionReasons.BILLING_DISPUTE_OR_ABUSE,
+ });
+ await chargeback('pi_dispute_legacy', 'won');
+ const after = await loadUser(target);
+ expect(after.flags & UserFlags.DELETED).toBe(0n);
+ expect(after.pendingDeletionAt).toBeNull();
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementSignIn.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementSignIn.test.ts
new file mode 100644
index 000000000..e7aee866a
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementSignIn.test.ts
@@ -0,0 +1,531 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {AdminRepository} from '@app/api/admin/AdminRepository';
+import {assertSignInAllowed} from '@app/api/auth/AuthUtility';
+import {
+ clearTestEmails,
+ createTestAccount,
+ createTotpSecret,
+ createUniqueEmail,
+ disableSso,
+ enableSso,
+ listTestEmails,
+ type TestAccount,
+ totpCodeNow,
+} from '@app/api/auth/tests/AuthTestUtils';
+import {
+ createAuthenticationResponse,
+ createRegistrationResponse,
+ createWebAuthnDevice,
+ type WebAuthnAuthenticationOptions,
+ type WebAuthnDevice,
+ type WebAuthnRegistrationOptions,
+} from '@app/api/auth/tests/WebAuthnTestUtils';
+import {createApiContext} from '@app/api/CreateApiContext';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {formatNoticeDate} from '@app/api/enforcement/NoticeDates';
+import {
+ createStaff,
+ decisionBody,
+ emailsTo,
+ getDecision,
+ loadUser,
+ suspend,
+ suspendRequest,
+} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {applySharedListUpdate, resetSharedListsForTests} from '@app/api/infrastructure/activity/SharedLists';
+import {ipBanCache} from '@app/api/middleware/IpBanMiddleware';
+import {getUserRepository} from '@app/api/middleware/ServiceSingletons';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder, createBuilderWithoutAuth} from '@app/api/test/TestRequestBuilder';
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {UserFlags} from '@fluxer/constants/src/UserConstants';
+import {AccountTemporarilySuspendedError} from '@fluxer/errors/src/domains/user/AccountTemporarilySuspendedError';
+import type {EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+import {ms} from 'itty-time';
+import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, test, vi} from 'vitest';
+
+interface SignInBody {
+ code?: string;
+ notice?: EnforcementNotice | null;
+ token?: string;
+ mfa?: boolean;
+ ticket?: string;
+ ip_authorization_required?: boolean;
+}
+
+const BLOCKED_IP = '45.33.10.1';
+const DAY = ms('1 day');
+
+describe('Enforcement sign-in', () => {
+ let harness: ApiTestHarness;
+ let staff: TestAccount;
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ ipBanCache.resetCaches();
+ resetSharedListsForTests();
+ await clearTestEmails(harness);
+ staff = await createStaff(harness);
+ });
+
+ afterEach(() => {
+ vi.restoreAllMocks();
+ resetSharedListsForTests();
+ });
+
+ afterAll(async () => {
+ await harness?.shutdown();
+ });
+
+ function login(account: TestAccount, ip?: string, password = account.password) {
+ const builder = createBuilderWithoutAuth<SignInBody>(harness)
+ .post('/auth/login')
+ .body({email: account.email, password});
+ if (ip) builder.header('x-forwarded-for', ip);
+ return builder.executeRaw();
+ }
+
+ function completeTotp(ticket: string, secret: string, ip?: string) {
+ const builder = createBuilderWithoutAuth<SignInBody>(harness)
+ .post('/auth/login/mfa/totp')
+ .body({ticket, code: totpCodeNow(secret)});
+ if (ip) builder.header('x-forwarded-for', ip);
+ return builder.executeRaw();
+ }
+
+ async function enableTotp(account: TestAccount): Promise<string> {
+ const secret = createTotpSecret();
+ await createBuilder(harness, account.token)
+ .post('/users/@me/mfa/totp/enable')
+ .body({secret, code: totpCodeNow(secret), password: account.password})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return secret;
+ }
+
+ async function middlewareBlock(ip: string): Promise<string> {
+ const {response, text} = await createBuilderWithoutAuth(harness)
+ .get('/users/@me')
+ .header('x-forwarded-for', ip)
+ .executeRaw();
+ expect(response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ return text;
+ }
+
+ async function suspendPermanently(target: TestAccount, ips: Array<string> = []): Promise<string> {
+ const {user} = await suspendRequest(harness, staff, target.userId, {
+ duration_hours: 0,
+ decision: decisionBody(),
+ ...(ips.length > 0 ? {block_networks: {ips}} : {}),
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return user.enforcement_decision_id!;
+ }
+
+ async function setLegacySuspension(account: TestAccount, until: Date): Promise<void> {
+ const users = getUserRepository();
+ const user = await loadUser(account);
+ await users.patchUpsert(user.id, {temp_banned_until: until}, user.toRow());
+ await users.updateFlags(user.id, (flags) => flags | UserFlags.DISABLED);
+ }
+
+ async function ipAuthorizationEmails(account: TestAccount) {
+ return (await listTestEmails(harness, {recipient: account.email})).filter(
+ (email) => email.type === 'ip_authorization',
+ );
+ }
+
+ describe('notices', () => {
+ test('an account without MFA sees its notice after the password', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ const {response, json} = await login(target);
+ expect(response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ expect(json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY);
+ expect(json.notice).toMatchObject({
+ decision_id: decisionId,
+ kind: 'suspension',
+ permanent: false,
+ rule: {title: 'Spam'},
+ appeal: {email: '[email protected]', account_has_email: true},
+ });
+ expect(json.notice?.summary).toMatch(/^We suspended your account until /);
+ });
+
+ test('a wrong password on a suspended account gets no notice', async () => {
+ const target = await createTestAccount(harness);
+ await suspend(harness, staff, target.userId);
+ const {response, json} = await login(target, undefined, 'not-the-password-1');
+ expect(response.status).toBe(HTTP_STATUS.BAD_REQUEST);
+ expect(json.notice).toBeUndefined();
+ });
+
+ test('the notice uses the request locale', async () => {
+ const target = await createTestAccount(harness);
+ await suspend(harness, staff, target.userId);
+ const {json} = await createBuilderWithoutAuth<SignInBody>(harness)
+ .post('/auth/login')
+ .header('accept-language', 'de')
+ .body({email: target.email, password: target.password})
+ .executeRaw();
+ expect(json.notice?.summary).toMatch(/\d{2}\.\d{2}\.\d{4}/);
+ });
+
+ test('an MFA account gets its ticket and sees the notice only after the code', async () => {
+ const target = await createTestAccount(harness);
+ const secret = await enableTotp(target);
+ const decisionId = await suspend(harness, staff, target.userId);
+ const first = await login(target);
+ expect(first.response.status).toBe(HTTP_STATUS.OK);
+ expect(first.json.mfa).toBe(true);
+ expect(first.json.notice).toBeUndefined();
+ const second = await completeTotp(first.json.ticket!, secret);
+ expect(second.response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ expect(second.json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY);
+ expect(second.json.notice?.decision_id).toBe(decisionId);
+ });
+
+ test('a passkey sign-in sees the notice', async () => {
+ const target = await createTestAccount(harness);
+ const device = await registerPasskey(target);
+ const decisionId = await suspend(harness, staff, target.userId);
+ const {response, json} = await passkeySignIn(device);
+ expect(response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ expect(json.notice?.decision_id).toBe(decisionId);
+ });
+
+ test('an SSO sign-in sees the notice', async () => {
+ const admin = await createStaff(harness);
+ await enableSso(harness, admin.token);
+ try {
+ const email = createUniqueEmail('sso-signin');
+ const first = await ssoSignIn(email);
+ expect(first.response.status).toBe(HTTP_STATUS.OK);
+ const decisionId = await suspend(harness, staff, first.json.user_id!);
+ const second = await ssoSignIn(email);
+ expect(second.response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ expect(second.json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY);
+ expect(second.json.notice?.decision_id).toBe(decisionId);
+ } finally {
+ await disableSso(harness, admin.token);
+ }
+ });
+
+ test('a permanent suspension returns PERMANENTLY', async () => {
+ const target = await createTestAccount(harness);
+ await suspendPermanently(target);
+ const {json} = await login(target);
+ expect(json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY);
+ expect(json.notice).toMatchObject({kind: 'suspension', permanent: true, ends_at: null});
+ });
+
+ test('a pre-v2 100-year ban returns PERMANENTLY with the legacy notice', async () => {
+ const target = await createTestAccount(harness);
+ const until = new Date();
+ until.setUTCFullYear(until.getUTCFullYear() + 100);
+ await setLegacySuspension(target, until);
+ const {json} = await login(target);
+ expect(json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY);
+ expect(json.notice).toMatchObject({
+ decision_id: null,
+ kind: 'suspension',
+ permanent: true,
+ facts: ["We don't have more detail on record for this decision."],
+ });
+ });
+
+ test('a pre-v2 temporary suspension returns TEMPORARILY with the legacy notice', async () => {
+ const target = await createTestAccount(harness);
+ await setLegacySuspension(target, new Date(Date.now() + DAY));
+ const {json} = await login(target);
+ expect(json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY);
+ expect(json.notice).toMatchObject({decision_id: null, kind: 'suspension', permanent: false});
+ });
+
+ test('a pre-v2 closure returns PERMANENTLY with its stored public reason', async () => {
+ const target = await createTestAccount(harness);
+ const users = getUserRepository();
+ const user = await loadUser(target);
+ await users.updateDeletionSchedule(user, {
+ flags: user.flags | UserFlags.DELETED,
+ pending_deletion_at: new Date(Date.now() + 30 * DAY),
+ deletion_reason_code: 3,
+ deletion_public_reason: 'Sent spam to many people.',
+ });
+ const {json} = await login(target);
+ expect(json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY);
+ expect(json.notice).toMatchObject({
+ decision_id: null,
+ kind: 'closure',
+ statement: 'Sent spam to many people.',
+ });
+ });
+
+ test.each([DeletionReasons.USER_REQUESTED, DeletionReasons.INACTIVITY])(
+ 'a pre-v2 staff deletion with code %s gets no enforcement notice',
+ async (code) => {
+ const target = await createTestAccount(harness);
+ const user = await loadUser(target);
+ await getUserRepository().updateDeletionSchedule(user, {
+ flags: user.flags | UserFlags.DELETED,
+ pending_deletion_at: new Date(Date.now() + 30 * DAY),
+ deletion_reason_code: code,
+ deletion_public_reason: 'Requested by the holder',
+ });
+ const {json} = await login(target);
+ expect(json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY);
+ expect(json.notice).toBeNull();
+ },
+ );
+
+ test('an expired suspension is cleared at sign-in, recorded as expired and can still be reversed', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ const user = await loadUser(target);
+ await getUserRepository().patchUpsert(user.id, {temp_banned_until: new Date(Date.now() - 1000)}, user.toRow());
+ const {response} = await login(target);
+ expect(response.status).toBe(HTTP_STATUS.OK);
+ const cleared = await loadUser(target);
+ expect(cleared.enforcementDecisionId).toBeNull();
+ expect(cleared.tempBannedUntil).toBeNull();
+ expect(cleared.flags & UserFlags.DISABLED).toBe(0n);
+ const expired = await createBuilder<{status: string; end_outcome: string | null; ended_by: string | null}>(
+ harness,
+ staff.token,
+ )
+ .get(`/admin/enforcement-decisions/${decisionId}`)
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(expired).toMatchObject({status: 'ended', end_outcome: 'expired', ended_by: '0'});
+ await createBuilder(harness, staff.token)
+ .post(`/admin/enforcement-decisions/${decisionId}/end`)
+ .header('X-Audit-Log-Reason', 'Appeal upheld')
+ .body({outcome: 'lifted'})
+ .expect(HTTP_STATUS.CONFLICT)
+ .execute();
+ await createBuilder(harness, staff.token)
+ .post(`/admin/enforcement-decisions/${decisionId}/end`)
+ .header('X-Audit-Log-Reason', 'Appeal upheld')
+ .body({outcome: 'reversed'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const [ended] = await emailsTo(harness, target, 'enforcement_ended');
+ expect(ended?.metadata).toMatchObject({outcome: 'reversed', decision_id: decisionId, restores_access: 'no'});
+ });
+ });
+
+ describe('accounts with no email', () => {
+ test('the first sign-in delivers the notice and starts the appeal deadline', async () => {
+ const target = await createTestAccount(harness);
+ const user = await loadUser(target);
+ await getUserRepository().patchUpsert(user.id, {email: null}, user.toRow());
+ const decisionId = await suspend(harness, staff, target.userId);
+ expect((await getDecision(harness, staff, decisionId)).notice_status).toBe('undelivered');
+
+ const before = Date.now();
+ const first = await signInDirectly(target);
+ const decision = await new EnforcementDecisionRepository().get(BigInt(decisionId));
+ expect(decision?.notice_status).toBe('sent');
+ expect(decision?.notice_channels).toEqual(new Set(['sign_in']));
+ expect(decision?.notice_locale).toBe('en-US');
+ expect(decision?.notice_text).toContain(first.summary);
+ const sentAt = decision!.notice_sent_at!;
+ expect(sentAt.getTime()).toBeGreaterThanOrEqual(before);
+ expect(first.appeal).toEqual({
+ email: '[email protected]',
+ deadline: formatNoticeDate(new Date(sentAt.getTime() + 60 * DAY), 'en-US'),
+ account_has_email: false,
+ });
+
+ const second = await signInDirectly(target);
+ expect(second.appeal).toEqual(first.appeal);
+ const unchanged = await new EnforcementDecisionRepository().get(BigInt(decisionId));
+ expect(unchanged?.notice_sent_at).toEqual(sentAt);
+ });
+
+ async function signInDirectly(account: TestAccount): Promise<EnforcementNotice> {
+ const ctx = createApiContext({
+ requestId: 'sign-in-test',
+ clientIp: '127.0.0.1',
+ userAgent: null,
+ locale: 'en-US',
+ blockedNetworkSignIn: null,
+ });
+ const error = await assertSignInAllowed(ctx, await loadUser(account)).catch((caught: unknown) => caught);
+ expect(error).toBeInstanceOf(AccountTemporarilySuspendedError);
+ return (error as AccountTemporarilySuspendedError).data!['notice'] as EnforcementNotice;
+ }
+ });
+
+ describe.each([
+ {
+ source: 'a linked block',
+ block: async () => {
+ const other = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, other.userId);
+ await new AdminRepository().banIpForDecision(BLOCKED_IP, BigInt(decisionId), new Date(Date.now() + 90 * DAY));
+ await ipBanCache.refresh();
+ },
+ },
+ {
+ source: 'the shared list',
+ block: async () => {
+ applySharedListUpdate('ip_blocked', `${BLOCKED_IP}\n`);
+ },
+ },
+ ])('signing in from $source', ({block}) => {
+ test('every outcome but a restricted account gets the same block, with no ticket and no email', async () => {
+ const plain = await createTestAccount(harness);
+ const withMfa = await createTestAccount(harness);
+ await enableTotp(withMfa);
+ await block();
+ await clearTestEmails(harness);
+ const expected = await middlewareBlock(BLOCKED_IP);
+ const unknown = {...plain, email: createUniqueEmail('nobody')};
+ const attempts = [
+ await login(unknown, BLOCKED_IP),
+ await login(plain, BLOCKED_IP, 'not-the-password-1'),
+ await login(plain, BLOCKED_IP),
+ await login(withMfa, BLOCKED_IP),
+ ];
+ for (const attempt of attempts) {
+ expect(attempt.response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ expect(attempt.text).toBe(expected);
+ }
+ expect(await ipAuthorizationEmails(plain)).toEqual([]);
+ expect((await loadUser(plain)).flags & UserFlags.DISABLED).toBe(0n);
+ });
+
+ test('a restricted account sees its notice', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ await block();
+ const {response, json} = await login(target, BLOCKED_IP);
+ expect(response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ expect(json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY);
+ expect(json.notice?.decision_id).toBe(decisionId);
+ });
+
+ test('a restricted MFA account gets its ticket and then the notice', async () => {
+ const target = await createTestAccount(harness);
+ const secret = await enableTotp(target);
+ const decisionId = await suspend(harness, staff, target.userId);
+ await block();
+ const first = await login(target, BLOCKED_IP);
+ expect(first.response.status).toBe(HTTP_STATUS.OK);
+ expect(first.json.ticket).toBeTruthy();
+ const second = await completeTotp(first.json.ticket!, secret, BLOCKED_IP);
+ expect(second.response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ expect(second.json.notice?.decision_id).toBe(decisionId);
+ });
+
+ test('an unrestricted MFA ticket from another network cannot be completed', async () => {
+ const target = await createTestAccount(harness);
+ const secret = await enableTotp(target);
+ const first = await login(target);
+ await block();
+ const second = await completeTotp(first.json.ticket!, secret, BLOCKED_IP);
+ expect(second.text).toBe(await middlewareBlock(BLOCKED_IP));
+ });
+
+ test('a self-deleted account is not reactivated', async () => {
+ const target = await createTestAccount(harness);
+ await createBuilderWithoutAuth(harness)
+ .post(`/test/users/${target.userId}/set-pending-deletion`)
+ .body({pending_deletion_at: new Date(Date.now() + 14 * DAY).toISOString(), set_self_deleted_flag: true})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ await block();
+ const {text} = await login(target, BLOCKED_IP);
+ expect(text).toBe(await middlewareBlock(BLOCKED_IP));
+ const user = await loadUser(target);
+ expect(user.flags & UserFlags.SELF_DELETED).toBe(UserFlags.SELF_DELETED);
+ expect(user.pendingDeletionAt).not.toBeNull();
+ });
+
+ test('other routes stay blocked', async () => {
+ await block();
+ const {response} = await createBuilderWithoutAuth(harness)
+ .post('/auth/forgot')
+ .header('x-forwarded-for', BLOCKED_IP)
+ .body({email: createUniqueEmail('nobody')})
+ .executeRaw();
+ expect(response.status).toBe(HTTP_STATUS.FORBIDDEN);
+ });
+ });
+
+ test('a holder behind a block from their own decision sees the notice, not the block', async () => {
+ const target = await createTestAccount(harness, {ipAddress: BLOCKED_IP});
+ const decisionId = await suspendPermanently(target, [BLOCKED_IP]);
+ const {json} = await login(target, BLOCKED_IP);
+ expect(json.code).toBe(APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY);
+ expect(json.notice?.decision_id).toBe(decisionId);
+ });
+
+ test('SSO from a blocked network never provisions an account', async () => {
+ const admin = await createStaff(harness);
+ await enableSso(harness, admin.token);
+ try {
+ applySharedListUpdate('ip_blocked', `${BLOCKED_IP}\n`);
+ const email = createUniqueEmail('sso-blocked');
+ const {text} = await ssoSignIn(email, BLOCKED_IP);
+ expect(text).toBe(await middlewareBlock(BLOCKED_IP));
+ expect(await getUserRepository().findByEmail(email)).toBeNull();
+ } finally {
+ await disableSso(harness, admin.token);
+ }
+ });
+
+ async function registerPasskey(account: TestAccount): Promise<WebAuthnDevice> {
+ const device = createWebAuthnDevice();
+ const secret = await enableTotp(account);
+ const options = await createBuilder<WebAuthnRegistrationOptions>(harness, account.token)
+ .post('/users/@me/mfa/webauthn/credentials/registration-options')
+ .body({mfa_method: 'totp', mfa_code: totpCodeNow(secret)})
+ .execute();
+ if (options.rp.id) device.rpId = options.rp.id;
+ await createBuilder(harness, account.token)
+ .post('/users/@me/mfa/webauthn/credentials')
+ .body({
+ response: createRegistrationResponse(device, options, 'Passkey'),
+ challenge: options.challenge,
+ name: 'Passkey',
+ mfa_method: 'totp',
+ mfa_code: totpCodeNow(secret),
+ })
+ .expect(HTTP_STATUS.NO_CONTENT)
+ .execute();
+ return device;
+ }
+
+ async function passkeySignIn(device: WebAuthnDevice) {
+ const options = await createBuilderWithoutAuth<WebAuthnAuthenticationOptions>(harness)
+ .post('/auth/webauthn/authentication-options')
+ .body(null)
+ .execute();
+ if (options.rpId) device.rpId = options.rpId;
+ return createBuilderWithoutAuth<SignInBody>(harness)
+ .post('/auth/webauthn/authenticate')
+ .body({response: createAuthenticationResponse(device, options), challenge: options.challenge})
+ .executeRaw();
+ }
+
+ async function ssoSignIn(email: string, ip?: string) {
+ const start = createBuilderWithoutAuth<{state: string}>(harness).post('/auth/sso/start').body({});
+ if (ip) start.header('x-forwarded-for', ip);
+ const {state} = await start.execute();
+ const complete = createBuilderWithoutAuth<SignInBody & {user_id?: string}>(harness)
+ .post('/auth/sso/complete')
+ .body({code: email, state});
+ if (ip) complete.header('x-forwarded-for', ip);
+ return complete.executeRaw();
+ }
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementSuspension.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementSuspension.test.ts
new file mode 100644
index 000000000..11860a137
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementSuspension.test.ts
@@ -0,0 +1,606 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {clearTestEmails, createTestAccount, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {createUserID} from '@app/api/BrandedTypes';
+import {createTestBotAccount} from '@app/api/bot/tests/BotTestUtils';
+import {resetApiServicesForTesting} from '@app/api/CreateApiContext';
+import {sendChannelMessage, setupTestGuildWithMembers} from '@app/api/channel/tests/ChannelTestUtils';
+import {createNoticeLookupDeps, loadAccountNotice} from '@app/api/enforcement/EnforcementAccountNotice';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {formatNoticeDate} from '@app/api/enforcement/NoticeDates';
+import {clearExpiredSuspension} from '@app/api/enforcement/SuspensionState';
+import {
+ closeRequest,
+ createStaff,
+ decisionBody,
+ emailsTo,
+ endDecision,
+ getDecision,
+ INTERNAL_NOTE,
+ listDecisions,
+ loadUser,
+ suspend,
+ suspendRequest,
+ warn,
+} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {setInjectedWorkerService} from '@app/api/middleware/ServiceRegistry';
+import {getInstanceConfigRepository, getUserRepository} from '@app/api/middleware/ServiceSingletons';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {RecordingWorkerService} from '@app/api/test/RecordingWorkerService';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder, createBuilderWithoutAuth} from '@app/api/test/TestRequestBuilder';
+import {UserDeletionEligibilityService} from '@app/api/user/services/UserDeletionEligibilityService';
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {UserFlags} from '@fluxer/constants/src/UserConstants';
+import {MockKVProvider} from '@pkgs/kv_client/src/testing/MockKVProvider';
+import {ms} from 'itty-time';
+import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, test, vi} from 'vitest';
+
+describe('Enforcement suspensions', () => {
+ let harness: ApiTestHarness;
+ let staff: TestAccount;
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ staff = await createStaff(harness);
+ });
+
+ afterEach(() => {
+ vi.restoreAllMocks();
+ });
+
+ afterAll(async () => {
+ await harness?.shutdown();
+ });
+
+ async function guildMessage(): Promise<{
+ target: TestAccount;
+ channelId: string;
+ channelName: string;
+ messageId: string;
+ }> {
+ const {members, systemChannel} = await setupTestGuildWithMembers(harness, 1);
+ const target = members[0]!;
+ const message = await sendChannelMessage(harness, target.token, systemChannel.id, 'join my raid server now');
+ return {target, channelId: systemChannel.id, channelName: systemChannel.name!, messageId: message.id};
+ }
+
+ test('records the decision before the state and sets the pointer in the same user write', async () => {
+ const target = await createTestAccount(harness);
+ const users = getUserRepository();
+ const repository = new EnforcementDecisionRepository();
+ const original = users.patchUpsert.bind(users);
+ const seen: Array<{pointer: unknown; until: unknown; stored: boolean}> = [];
+ vi.spyOn(users, 'patchUpsert').mockImplementation(async (userId, patch, oldData) => {
+ if (patch.enforcement_decision_id) {
+ seen.push({
+ pointer: patch.enforcement_decision_id,
+ until: patch.temp_banned_until,
+ stored: (await repository.get(patch.enforcement_decision_id)) !== null,
+ });
+ }
+ return original(userId, patch, oldData);
+ });
+ const decisionId = await suspend(harness, staff, target.userId);
+ expect(seen).toEqual([{pointer: BigInt(decisionId), until: expect.any(Date), stored: true}]);
+ const user = await loadUser(target);
+ expect(user.enforcementDecisionId).toBe(BigInt(decisionId));
+ expect((user.flags & UserFlags.DISABLED) !== 0n).toBe(true);
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision).toMatchObject({kind: 'suspension', status: 'active', notice_status: 'sent', replaced: false});
+ expect(decision.notes.map((note) => note.body)).toEqual([INTERNAL_NOTE]);
+ });
+
+ test('the notice email shows every section with a pre-formatted deadline', async () => {
+ const {target, channelId, channelName, messageId} = await guildMessage();
+ await clearTestEmails(harness);
+ const decisionId = await suspend(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({evidence: [{channel_id: channelId, message_id: messageId}]}),
+ );
+ const decision = await getDecision(harness, staff, decisionId);
+ const deadline = formatNoticeDate(new Date(new Date(decision.notice_sent_at!).getTime() + ms('60 days')), 'en-US');
+ const [email] = await emailsTo(harness, target, 'enforcement_notice');
+ expect(email?.metadata).toMatchObject({
+ kind_label: 'suspension',
+ neutral: 'no',
+ rule_title: 'Spam',
+ appeals_email: '[email protected]',
+ appeal_deadline: deadline,
+ decision_id: decisionId,
+ });
+ const text = decision.notice_text!;
+ expect(text).toContain(`Hello ${target.username},`);
+ expect(text).toContain('We suspended your account until ');
+ expect(text).toContain("You can't sign in or use Fluxer anywhere until then.");
+ expect(text).toMatch(/Rule: Spam \(.+\/guidelines#6-spam-and-service-abuse\)/);
+ expect(text).toContain('We found that your account sent unwanted messages in bulk.');
+ expect(text).toContain(`1 message in #${channelName} of Test Guild, on `);
+ expect(text).toContain('Note from our team: You sent the same invite link to many people.');
+ expect(text).toContain('How we decided\nWe found this in our own review.');
+ expect(text).toContain('A person on our team reviewed this and made the decision.');
+ expect(text).toContain(`email [email protected] by ${deadline}.`);
+ expect(text).toContain('certified out-of-court dispute settlement body');
+ expect(text).toContain(`Decision ID: ${decisionId}`);
+ expect(text).not.toContain(INTERNAL_NOTE);
+ expect(text).not.toContain('join my raid server now');
+ expect(decision.notice_channels).toEqual(['email']);
+ });
+
+ test('a permanent suspension is emailed as a ban', async () => {
+ const target = await createTestAccount(harness);
+ await clearTestEmails(harness);
+ const {user} = await suspendRequest(harness, staff, target.userId, {duration_hours: 0, decision: decisionBody()})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const decision = await getDecision(harness, staff, user.enforcement_decision_id!);
+ expect(decision.ends_at).toBeNull();
+ expect(decision.notice.permanent).toBe(true);
+ expect(decision.notice_text).toContain('We banned your account.');
+ expect(decision.notice_text).toContain('You may not create or use other accounts.');
+ const [email] = await emailsTo(harness, target, 'enforcement_notice');
+ expect(email?.metadata.kind_label).toBe('ban');
+ });
+
+ test('a replacing suspension leaves the earlier row active, reads it as replaced and sends no ended email', async () => {
+ const target = await createTestAccount(harness);
+ const first = await suspend(harness, staff, target.userId);
+ await clearTestEmails(harness);
+ const second = await suspend(harness, staff, target.userId);
+ const decisions = await listDecisions(harness, staff, target.userId);
+ expect(decisions.map((decision) => [decision.decision_id, decision.status, decision.replaced])).toEqual([
+ [second, 'active', false],
+ [first, 'active', true],
+ ]);
+ expect(await emailsTo(harness, target, 'enforcement_ended')).toEqual([]);
+ await createBuilder(harness, staff.token)
+ .post(`/admin/enforcement-decisions/${first}/end`)
+ .body({outcome: 'lifted'})
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.ENFORCEMENT_DECISION_REPLACED)
+ .execute();
+ });
+
+ test('a lost race leaves exactly one current decision', async () => {
+ const target = await createTestAccount(harness);
+ const ids = await Promise.all([suspend(harness, staff, target.userId), suspend(harness, staff, target.userId)]);
+ const user = await loadUser(target);
+ expect(ids.map(BigInt)).toContain(user.enforcementDecisionId);
+ const decisions = await listDecisions(harness, staff, target.userId);
+ expect(decisions.filter((decision) => !decision.replaced)).toHaveLength(1);
+ });
+
+ test('a closed account cannot be suspended', async () => {
+ const target = await createTestAccount(harness);
+ await getUserRepository().updateFlags(createUserID(BigInt(target.userId)), (flags) => flags | UserFlags.DELETED);
+ await suspendRequest(harness, staff, target.userId, {duration_hours: 24, decision: decisionBody()})
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.ENFORCEMENT_ACCOUNT_CLOSED)
+ .execute();
+ expect(await listDecisions(harness, staff, target.userId)).toEqual([]);
+ });
+
+ test('remove_evidence queues the shred of the snapshotted messages', async () => {
+ const worker = new RecordingWorkerService();
+ setInjectedWorkerService(worker);
+ resetApiServicesForTesting();
+ const {target, channelId, messageId} = await guildMessage();
+ const decisionId = await suspend(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({evidence: [{channel_id: channelId, message_id: messageId}]}),
+ {remove_evidence: true},
+ );
+ const [job] = worker.byTask('messageShred');
+ expect(job?.payload).toMatchObject({
+ target_user_id: target.userId,
+ entries: [{channel_id: channelId, message_id: messageId}],
+ });
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision.removed_message_count).toBe(1);
+ expect(decision.evidence.map((message) => message.content)).toEqual(['join my raid server now']);
+ expect(decision.notice_text).toContain('We also removed 1 message.');
+ });
+
+ test.each(['lifted', 'reversed'] as const)(
+ 'ending as %s lifts the suspension and emails the holder',
+ async (outcome) => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ await clearTestEmails(harness);
+ const ended = await createBuilder<{status: string; end_outcome: string}>(harness, staff.token)
+ .post(`/admin/enforcement-decisions/${decisionId}/end`)
+ .header('X-Audit-Log-Reason', 'Appeal upheld')
+ .body({outcome, statement: 'We checked the messages again.'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(ended).toMatchObject({status: 'ended', end_outcome: outcome});
+ const user = await loadUser(target);
+ expect(user.tempBannedUntil).toBeNull();
+ expect(user.enforcementDecisionId).toBeNull();
+ expect((user.flags & UserFlags.DISABLED) === 0n).toBe(true);
+ const [email] = await emailsTo(harness, target, 'enforcement_ended');
+ expect(email?.metadata).toMatchObject({
+ outcome,
+ decision_id: decisionId,
+ restores_access: 'yes',
+ statement: 'We checked the messages again.',
+ });
+ await createBuilder(harness, staff.token)
+ .post(`/admin/enforcement-decisions/${decisionId}/end`)
+ .body({outcome})
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.ENFORCEMENT_DECISION_ENDED)
+ .execute();
+ },
+ );
+
+ test('the legacy unban route refuses a suspension a decision owns', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ const response = await createBuilder<{decision_id: string}>(harness, staff.token)
+ .delete(`/admin/users/${target.userId}/ban`)
+ .expect(HTTP_STATUS.CONFLICT, APIErrorCodes.ENFORCEMENT_DECISION_OWNS_STATE)
+ .execute();
+ expect(response.decision_id).toBe(decisionId);
+ });
+
+ test('a failed state change leaves no decision and sends nothing', async () => {
+ const target = await createTestAccount(harness);
+ await clearTestEmails(harness);
+ vi.spyOn(getUserRepository(), 'patchUpsert').mockRejectedValueOnce(new Error('write failed'));
+ await suspendRequest(harness, staff, target.userId, {duration_hours: 24, decision: decisionBody()})
+ .expect(HTTP_STATUS.INTERNAL_SERVER_ERROR)
+ .execute();
+ vi.restoreAllMocks();
+ expect(await listDecisions(harness, staff, target.userId)).toEqual([]);
+ expect(await emailsTo(harness, target, 'enforcement_notice')).toEqual([]);
+ expect((await loadUser(target)).enforcementDecisionId).toBeNull();
+ });
+
+ test('a state change that fails after the pointer is written keeps the decision so it can be ended', async () => {
+ const target = await createTestAccount(harness);
+ vi.spyOn(getUserRepository(), 'updateFlags').mockRejectedValueOnce(new Error('write failed'));
+ await suspendRequest(harness, staff, target.userId, {duration_hours: 24, decision: decisionBody()})
+ .expect(HTTP_STATUS.INTERNAL_SERVER_ERROR)
+ .execute();
+ vi.restoreAllMocks();
+ const [decision] = await listDecisions(harness, staff, target.userId);
+ expect((await loadUser(target)).enforcementDecisionId?.toString()).toBe(decision?.decision_id);
+ await createBuilder(harness, staff.token)
+ .post(`/admin/enforcement-decisions/${decision!.decision_id}/end`)
+ .header('X-Audit-Log-Reason', 'Retrying')
+ .body({outcome: 'lifted'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect((await loadUser(target)).enforcementDecisionId).toBeNull();
+ });
+
+ test('a restricted suspension cancels the deletion the holder scheduled, so the account is kept', async () => {
+ const {target, channelId, messageId} = await guildMessage();
+ const users = getUserRepository();
+ const user = await loadUser(target);
+ const scheduledFor = new Date(Date.now() + ms('1 day'));
+ await users.updateDeletionSchedule(user, {
+ flags: user.flags | UserFlags.SELF_DELETED,
+ pending_deletion_at: scheduledFor,
+ deletion_reason_code: DeletionReasons.USER_REQUESTED,
+ });
+ const {user: suspended} = await suspendRequest(harness, staff, target.userId, {
+ duration_hours: 0,
+ decision: decisionBody({
+ reason_code: DeletionReasons.CHILD_SEXUAL_CONTENT,
+ statement: undefined,
+ evidence: [{channel_id: channelId, message_id: messageId}],
+ confirmations: ['evidence_preserved', 'reports_filed_or_not_required'],
+ }),
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const kept = await loadUser(target);
+ expect(kept.pendingDeletionAt).toBeNull();
+ expect(kept.flags & UserFlags.SELF_DELETED).toBe(0n);
+ expect(kept.flags & UserFlags.DISABLED).toBe(UserFlags.DISABLED);
+ const decision = await getDecision(harness, staff, suspended.enforcement_decision_id!);
+ expect(decision.notes[0]?.body).toContain(
+ `Cancelled the deletion the account holder had scheduled for ${scheduledFor.toISOString()}`,
+ );
+ expect(await users.startDeletion(kept.id, scheduledFor)).toBeNull();
+ expect((await loadUser(target)).deletionStartedAt).toBeNull();
+ });
+
+ test('a bot suspension reaches an owner without email by system DM', async () => {
+ const bot = await createTestBotAccount(harness);
+ const users = getUserRepository();
+ const owner = (await users.findUnique(createUserID(BigInt(bot.ownerUserId))))!;
+ await users.patchUpsert(owner.id, {email: null}, owner.toRow());
+ const decisionId = await suspend(harness, staff, bot.botUserId);
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision).toMatchObject({notice_status: 'sent', notice_channels: ['system_dm']});
+ expect(decision.recipient_user_id).toBe(bot.ownerUserId);
+ });
+
+ test('a pointer to a missing decision renders the legacy notice', async () => {
+ const target = await createTestAccount(harness);
+ const users = getUserRepository();
+ const user = await loadUser(target);
+ await users.patchUpsert(
+ user.id,
+ {temp_banned_until: new Date(Date.now() + ms('1 day')), enforcement_decision_id: 123456789n},
+ user.toRow(),
+ );
+ const notice = await loadAccountNotice(createNoticeLookupDeps(), await loadUser(target), 'en-US');
+ expect(notice).toMatchObject({
+ decision_id: null,
+ kind: 'suspension',
+ permanent: false,
+ facts: ["We don't have more detail on record for this decision."],
+ how_we_decided: [],
+ });
+ });
+
+ test('records undelivered when the account has no email address', async () => {
+ const target = await createTestAccount(harness);
+ const user = await loadUser(target);
+ await getUserRepository().patchUpsert(user.id, {email: null}, user.toRow());
+ const decisionId = await suspend(harness, staff, target.userId);
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision).toMatchObject({notice_status: 'undelivered', notice_channels: [], notice_sent_at: null});
+ expect(decision.notice.appeal).toMatchObject({account_has_email: false, deadline: null});
+ });
+
+ test('records undelivered when email is off on the instance', async () => {
+ const target = await createTestAccount(harness);
+ const config = getInstanceConfigRepository();
+ const effective = await config.getEffectiveEmailConfig();
+ vi.spyOn(config, 'getEffectiveEmailConfig').mockResolvedValue({...effective, enabled: false});
+ await clearTestEmails(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ expect((await getDecision(harness, staff, decisionId)).notice_status).toBe('undelivered');
+ expect(await emailsTo(harness, target, 'enforcement_notice')).toEqual([]);
+ });
+
+ test('a warning changes nothing and is sent by email and system DM', async () => {
+ const target = await createTestAccount(harness);
+ await clearTestEmails(harness);
+ const decisionId = await warn(harness, staff, target.userId);
+ const user = await loadUser(target);
+ expect(user.flags & UserFlags.DISABLED).toBe(0n);
+ expect(user.enforcementDecisionId).toBeNull();
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision).toMatchObject({kind: 'warning', notice_status: 'sent'});
+ expect(decision.notice_channels).toEqual(['email', 'system_dm']);
+ expect(decision.notice_text).toContain("We're warning you about activity on your account.");
+ const [email] = await emailsTo(harness, target, 'enforcement_notice');
+ expect(email?.metadata.kind_label).toBe('warning');
+ await createBuilder(harness, staff.token)
+ .post(`/admin/enforcement-decisions/${decisionId}/end`)
+ .body({outcome: 'lifted'})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ await createBuilder(harness, staff.token)
+ .post(`/admin/enforcement-decisions/${decisionId}/end`)
+ .body({outcome: 'reversed'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const [ended] = await emailsTo(harness, target, 'enforcement_ended');
+ expect(ended?.metadata).toMatchObject({outcome: 'reversed', restores_access: 'no'});
+ });
+
+ test('linked reports are resolved as actioned and the reporter is told', async () => {
+ const reporter = await createTestAccount(harness);
+ const target = await createTestAccount(harness);
+ const {report_id: reportId} = await createBuilder<{report_id: string}>(harness, reporter.token)
+ .post('/reports/user')
+ .body({user_id: target.userId, category: 'harassment'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ await clearTestEmails(harness);
+ const decisionId = await suspend(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({source: 'report', report_ids: [reportId]}),
+ );
+ const report = await createBuilder<{status: number}>(harness, staff.token)
+ .get(`/admin/reports/${reportId}`)
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect(report.status).toBe(1);
+ expect((await emailsTo(harness, reporter, 'report_resolved')).length).toBe(1);
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision.report_ids).toEqual([reportId]);
+ expect(decision.notice_text).toContain('We reviewed this after a report.');
+ });
+
+ test('suspended accounts are not eligible for inactivity deletion', async () => {
+ const target = await createTestAccount(harness);
+ await suspend(harness, staff, target.userId);
+ const users = getUserRepository();
+ const user = await loadUser(target);
+ const inactive = await users.patchUpsert(
+ user.id,
+ {last_active_at: new Date(Date.now() - ms('1000 days'))},
+ user.toRow(),
+ );
+ const eligibility = new UserDeletionEligibilityService(new MockKVProvider());
+ expect(await eligibility.isEligibleForInactivityDeletion(inactive)).toBe(false);
+ const legacy = await users.patchUpsert(user.id, {enforcement_decision_id: null}, inactive.toRow());
+ expect(await eligibility.isEligibleForInactivityDeletion(legacy)).toBe(false);
+ const expired = await users.patchUpsert(
+ user.id,
+ {temp_banned_until: new Date(Date.now() - ms('1 day')), enforcement_decision_id: user.enforcementDecisionId},
+ legacy.toRow(),
+ );
+ expect(await eligibility.isEligibleForInactivityDeletion(expired)).toBe(true);
+ });
+
+ test('an expired suspension the holder never signed in after does not block a holder request closure', async () => {
+ const target = await createTestAccount(harness);
+ await suspend(harness, staff, target.userId);
+ const user = await loadUser(target);
+ await getUserRepository().patchUpsert(user.id, {temp_banned_until: new Date(Date.now() - 1000)}, user.toRow());
+ await closeRequest(harness, staff, target.userId, {days_until_deletion: 14, basis: {type: 'holder_request'}})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ expect((await loadUser(target)).pendingDeletionAt).not.toBeNull();
+ });
+
+ describe('expired suspensions in the inactivity worker', () => {
+ async function runWorker(): Promise<{suspensions_cleared: number; errors: number}> {
+ return createBuilderWithoutAuth<{suspensions_cleared: number; errors: number}>(harness)
+ .post('/test/worker/process-inactivity-deletions')
+ .body({})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ }
+
+ async function expire(target: TestAccount): Promise<Date> {
+ const endedAt = new Date(Date.now() - ms('1 hour'));
+ const user = await loadUser(target);
+ await getUserRepository().patchUpsert(user.id, {temp_banned_until: endedAt}, user.toRow());
+ return endedAt;
+ }
+
+ test('clears an expired suspension once and records it as expired with no notice', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ const endedAt = await expire(target);
+ await clearTestEmails(harness);
+ expect((await runWorker()).suspensions_cleared).toBe(1);
+ const cleared = await loadUser(target);
+ expect(cleared.flags & UserFlags.DISABLED).toBe(0n);
+ expect(cleared.tempBannedUntil).toBeNull();
+ expect(cleared.enforcementDecisionId).toBeNull();
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision).toMatchObject({
+ status: 'ended',
+ end_outcome: 'expired',
+ ended_at: endedAt.toISOString(),
+ ended_by: '0',
+ end_statement: null,
+ expired: false,
+ });
+ expect(await emailsTo(harness, target, 'enforcement_ended')).toEqual([]);
+ expect((await runWorker()).suspensions_cleared).toBe(0);
+ expect(await getDecision(harness, staff, decisionId)).toMatchObject({end_outcome: 'expired'});
+ await endDecision(harness, staff, decisionId, 'lifted').expect(HTTP_STATUS.CONFLICT).execute();
+ await endDecision(harness, staff, decisionId, 'reversed').expect(HTTP_STATUS.OK).execute();
+ expect(await getDecision(harness, staff, decisionId)).toMatchObject({status: 'ended', end_outcome: 'reversed'});
+ const ended = await emailsTo(harness, target, 'enforcement_ended');
+ expect(ended.map((email) => email.metadata)).toMatchObject([{outcome: 'reversed', restores_access: 'no'}]);
+ });
+
+ test('leaves active and permanent suspensions alone', async () => {
+ const temporary = await createTestAccount(harness);
+ const temporaryId = await suspend(harness, staff, temporary.userId);
+ const permanent = await createTestAccount(harness);
+ const {user} = await suspendRequest(harness, staff, permanent.userId, {
+ duration_hours: 0,
+ decision: decisionBody(),
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const before = await Promise.all([loadUser(temporary), loadUser(permanent)]);
+ expect((await runWorker()).suspensions_cleared).toBe(0);
+ for (const [index, account] of [temporary, permanent].entries()) {
+ const after = await loadUser(account);
+ expect(after.flags & UserFlags.DISABLED).toBe(UserFlags.DISABLED);
+ expect(after.tempBannedUntil).toEqual(before[index]!.tempBannedUntil);
+ expect(after.enforcementDecisionId).toEqual(before[index]!.enforcementDecisionId);
+ }
+ for (const decisionId of [temporaryId, user.enforcement_decision_id!]) {
+ expect(await getDecision(harness, staff, decisionId)).toMatchObject({status: 'active', end_outcome: null});
+ }
+ });
+
+ test('ends only the current decision and never one that was replaced', async () => {
+ const target = await createTestAccount(harness);
+ const replacedId = await suspend(harness, staff, target.userId);
+ const currentId = await suspend(harness, staff, target.userId);
+ await expire(target);
+ expect((await runWorker()).suspensions_cleared).toBe(1);
+ expect(await getDecision(harness, staff, currentId)).toMatchObject({status: 'ended', end_outcome: 'expired'});
+ expect(await getDecision(harness, staff, replacedId)).toMatchObject({
+ status: 'active',
+ end_outcome: null,
+ replaced: true,
+ });
+ });
+
+ test('never ends a decision that was already reversed', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ await expire(target);
+ await endDecision(harness, staff, decisionId, 'reversed').expect(HTTP_STATUS.OK).execute();
+ expect((await runWorker()).suspensions_cleared).toBe(0);
+ expect(await getDecision(harness, staff, decisionId)).toMatchObject({status: 'ended', end_outcome: 'reversed'});
+ expect(await emailsTo(harness, target, 'enforcement_ended')).toHaveLength(1);
+ });
+
+ test('clears the account but keeps the outcome when the named decision already ended', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ const endedAt = await expire(target);
+ await new EnforcementDecisionRepository().end(BigInt(decisionId), {
+ outcome: 'reversed',
+ endedAt,
+ endedBy: BigInt(staff.userId),
+ statement: null,
+ });
+ expect((await runWorker()).suspensions_cleared).toBe(1);
+ const cleared = await loadUser(target);
+ expect(cleared.flags & UserFlags.DISABLED).toBe(0n);
+ expect(cleared.enforcementDecisionId).toBeNull();
+ expect(await getDecision(harness, staff, decisionId)).toMatchObject({status: 'ended', end_outcome: 'reversed'});
+ });
+
+ test('keeps a suspension applied after the scan read the account', async () => {
+ const target = await createTestAccount(harness);
+ const expiredId = await suspend(harness, staff, target.userId);
+ await expire(target);
+ const scanned = await loadUser(target);
+ const currentId = await suspend(harness, staff, target.userId);
+ const expiry = await clearExpiredSuspension(
+ {users: getUserRepository(), repository: new EnforcementDecisionRepository()},
+ scanned,
+ );
+ expect(expiry).toBeNull();
+ const after = await loadUser(target);
+ expect(after.flags & UserFlags.DISABLED).toBe(UserFlags.DISABLED);
+ expect(after.tempBannedUntil!.getTime()).toBeGreaterThan(Date.now());
+ expect(after.enforcementDecisionId).toBe(BigInt(currentId));
+ expect(await getDecision(harness, staff, currentId)).toMatchObject({status: 'active', end_outcome: null});
+ expect(await getDecision(harness, staff, expiredId)).toMatchObject({status: 'active', replaced: true});
+ });
+
+ test('keeps a reversal made between reading and ending the decision', async () => {
+ const target = await createTestAccount(harness);
+ const decisionId = await suspend(harness, staff, target.userId);
+ await expire(target);
+ const repository = new EnforcementDecisionRepository();
+ const expiry = await clearExpiredSuspension(
+ {
+ users: getUserRepository(),
+ repository: {
+ get: async (id) => {
+ const row = await repository.get(id);
+ await endDecision(harness, staff, decisionId, 'reversed').expect(HTTP_STATUS.OK).execute();
+ return row;
+ },
+ endIfActive: (id, end) => repository.endIfActive(id, end),
+ },
+ },
+ await loadUser(target),
+ );
+ expect(expiry).not.toBeNull();
+ expect(await getDecision(harness, staff, decisionId)).toMatchObject({status: 'ended', end_outcome: 'reversed'});
+ expect(await emailsTo(harness, target, 'enforcement_ended')).toHaveLength(1);
+ });
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementTestUtils.ts b/fluxer_api/src/api/enforcement/tests/EnforcementTestUtils.ts
new file mode 100644
index 000000000..d95f43a63
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementTestUtils.ts
@@ -0,0 +1,177 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {createTestAccount, listTestEmails, setUserACLs, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {createUserID} from '@app/api/BrandedTypes';
+import {getUserRepository} from '@app/api/middleware/ServiceSingletons';
+import type {User} from '@app/api/models/User';
+import type {ApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder} from '@app/api/test/TestRequestBuilder';
+import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import type {
+ EnforcementDecisionInput,
+ EnforcementDecisionResponse,
+} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
+
+export const INTERNAL_NOTE = 'Checked the reported messages';
+
+export type DecisionBody = Omit<Partial<EnforcementDecisionInput>, 'report_ids' | 'evidence'> & {
+ report_ids?: Array<string>;
+ evidence?: Array<{channel_id: string; message_id: string}>;
+};
+
+export function decisionBody(overrides: DecisionBody = {}): DecisionBody {
+ return {
+ reason_code: DeletionReasons.SPAM,
+ source: 'own_review',
+ automation: 'none',
+ statement: 'You sent the same invite link to many people.',
+ ...overrides,
+ };
+}
+
+export async function createStaff(harness: ApiTestHarness, acls: Array<string> = [AdminACLs.WILDCARD]) {
+ return setUserACLs(harness, await createTestAccount(harness), [AdminACLs.AUTHENTICATE, ...acls]);
+}
+
+export function suspendRequest(
+ harness: ApiTestHarness,
+ staff: TestAccount,
+ userId: string,
+ body: Record<string, unknown>,
+ internalNote: string | null = INTERNAL_NOTE,
+) {
+ const builder = createBuilder<{
+ user: {enforcement_decision_id: string | null; temp_banned_until: string | null};
+ skipped_ips: Array<{ip: string; reason: string}>;
+ }>(harness, staff.token)
+ .put(`/admin/users/${userId}/ban`)
+ .body(body);
+ return internalNote === null ? builder : builder.header('X-Audit-Log-Reason', internalNote);
+}
+
+export async function suspend(
+ harness: ApiTestHarness,
+ staff: TestAccount,
+ userId: string,
+ decision: DecisionBody = decisionBody(),
+ extra: Record<string, unknown> = {},
+): Promise<string> {
+ const {user} = await suspendRequest(harness, staff, userId, {duration_hours: 24, decision, ...extra})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return user.enforcement_decision_id!;
+}
+
+export async function warn(
+ harness: ApiTestHarness,
+ staff: TestAccount,
+ userId: string,
+ decision: DecisionBody = decisionBody(),
+): Promise<string> {
+ const {decision_id} = await createBuilder<{decision_id: string}>(harness, staff.token)
+ .post(`/admin/users/${userId}/warnings`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body({decision})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return decision_id;
+}
+
+export async function getDecision(
+ harness: ApiTestHarness,
+ staff: TestAccount,
+ decisionId: string,
+): Promise<EnforcementDecisionResponse> {
+ return createBuilder<EnforcementDecisionResponse>(harness, staff.token)
+ .get(`/admin/enforcement-decisions/${decisionId}`)
+ .expect(HTTP_STATUS.OK)
+ .execute();
+}
+
+export async function listDecisions(harness: ApiTestHarness, staff: TestAccount, userId: string) {
+ const {decisions} = await createBuilder<{decisions: Array<EnforcementDecisionResponse>}>(harness, staff.token)
+ .get(`/admin/enforcement-decisions?subject_type=user&subject_id=${userId}`)
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return decisions;
+}
+
+export async function loadUser(account: TestAccount): Promise<User> {
+ return (await getUserRepository().findUnique(createUserID(BigInt(account.userId))))!;
+}
+
+export async function emailsTo(harness: ApiTestHarness, account: TestAccount, type: string) {
+ return (await listTestEmails(harness, {recipient: account.email})).filter((email) => email.type === type);
+}
+
+export function closeRequest(
+ harness: ApiTestHarness,
+ staff: TestAccount,
+ userId: string,
+ body: Record<string, unknown>,
+ internalNote: string | null = INTERNAL_NOTE,
+) {
+ const builder = createBuilder<{
+ user: {enforcement_decision_id: string | null; pending_deletion_at: string | null};
+ }>(harness, staff.token)
+ .put(`/admin/users/${userId}/deletion`)
+ .body(body);
+ return internalNote === null ? builder : builder.header('X-Audit-Log-Reason', internalNote);
+}
+
+export async function close(
+ harness: ApiTestHarness,
+ staff: TestAccount,
+ userId: string,
+ decision: DecisionBody = decisionBody(),
+ days = 74,
+): Promise<string> {
+ const {user} = await closeRequest(harness, staff, userId, {
+ days_until_deletion: days,
+ basis: {type: 'enforcement', decision},
+ })
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return user.enforcement_decision_id!;
+}
+
+export function limitRequest(
+ harness: ApiTestHarness,
+ staff: TestAccount,
+ userId: string,
+ body: Record<string, unknown>,
+) {
+ return createBuilder<{user: {flags: string; premium_flags: number}}>(harness, staff.token)
+ .put(`/admin/users/${userId}/feature-limits`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body(body);
+}
+
+export async function limitFeatures(
+ harness: ApiTestHarness,
+ staff: TestAccount,
+ userId: string,
+ limit: string,
+ decision: DecisionBody = decisionBody(),
+ extra: Record<string, unknown> = {},
+): Promise<string> {
+ await limitRequest(harness, staff, userId, {limit, decision, ...extra})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ const [latest] = await listDecisions(harness, staff, userId);
+ return latest!.decision_id;
+}
+
+export function endDecision(
+ harness: ApiTestHarness,
+ staff: TestAccount,
+ decisionId: string,
+ outcome: 'lifted' | 'reversed' = 'lifted',
+) {
+ return createBuilder<EnforcementDecisionResponse>(harness, staff.token)
+ .post(`/admin/enforcement-decisions/${decisionId}/end`)
+ .header('X-Audit-Log-Reason', 'Appeal reviewed')
+ .body({outcome});
+}
diff --git a/fluxer_api/src/api/enforcement/tests/EnforcementValidation.test.ts b/fluxer_api/src/api/enforcement/tests/EnforcementValidation.test.ts
new file mode 100644
index 000000000..d2e18395a
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/EnforcementValidation.test.ts
@@ -0,0 +1,287 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {createTestAccount, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {
+ createDmChannel,
+ createFriendship,
+ sendChannelMessage,
+ setupTestGuildWithMembers,
+} from '@app/api/channel/tests/ChannelTestUtils';
+import {
+ createStaff,
+ type DecisionBody,
+ decisionBody,
+ getDecision,
+ INTERNAL_NOTE,
+ listDecisions,
+ loadUser,
+ suspend,
+ suspendRequest,
+ warn,
+} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {getUserRepository} from '@app/api/middleware/ServiceSingletons';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder} from '@app/api/test/TestRequestBuilder';
+import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';
+import {afterAll, beforeAll, beforeEach, describe, expect, test} from 'vitest';
+
+interface ValidationErrorBody {
+ errors: Array<{path: string; code: string}>;
+}
+
+describe('Enforcement decision validation', () => {
+ let harness: ApiTestHarness;
+ let staff: TestAccount;
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ staff = await createStaff(harness);
+ });
+
+ afterAll(async () => {
+ await harness?.shutdown();
+ });
+
+ async function refusedSuspension(
+ target: TestAccount,
+ decision: DecisionBody,
+ extra: Record<string, unknown> = {},
+ ): Promise<{path: string; code: string}> {
+ const body = await createBuilder<ValidationErrorBody>(harness, staff.token)
+ .put(`/admin/users/${target.userId}/ban`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body({duration_hours: 24, decision, ...extra})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ expect(await listDecisions(harness, staff, target.userId)).toEqual([]);
+ return body.errors[0]!;
+ }
+
+ async function refusedWarning(target: TestAccount, decision: DecisionBody): Promise<string> {
+ const body = await createBuilder<ValidationErrorBody>(harness, staff.token)
+ .post(`/admin/users/${target.userId}/warnings`)
+ .header('X-Audit-Log-Reason', INTERNAL_NOTE)
+ .body({decision})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ return body.errors[0]!.code;
+ }
+
+ async function guildMessages() {
+ const {owner, members, systemChannel} = await setupTestGuildWithMembers(harness, 1);
+ const target = members[0]!;
+ const own = await sendChannelMessage(harness, target.token, systemChannel.id, 'buy cheap accounts here');
+ const other = await sendChannelMessage(harness, owner.token, systemChannel.id, 'please stop');
+ return {owner, target, channelId: systemChannel.id, own: own.id, other: other.id};
+ }
+
+ async function reportMessage(reporter: TestAccount, channelId: string, messageId: string): Promise<string> {
+ const {report_id} = await createBuilder<{report_id: string}>(harness, reporter.token)
+ .post('/reports/message')
+ .body({channel_id: channelId, message_id: messageId, category: 'harassment'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ return report_id;
+ }
+
+ test('ACLs are checked before any lookup', async () => {
+ const target = await createTestAccount(harness);
+ const limited = await createStaff(harness, [AdminACLs.USER_TEMP_BAN]);
+ for (const decision of [
+ decisionBody({evidence: [{channel_id: '1', message_id: '2'}]}),
+ decisionBody({source: 'report', report_ids: ['3']}),
+ ]) {
+ await suspendRequest(harness, limited, target.userId, {duration_hours: 24, decision})
+ .expect(HTTP_STATUS.FORBIDDEN, APIErrorCodes.MISSING_ACL)
+ .execute();
+ }
+ await suspendRequest(harness, limited, target.userId, {
+ duration_hours: 24,
+ decision: decisionBody(),
+ remove_evidence: true,
+ })
+ .expect(HTTP_STATUS.FORBIDDEN, APIErrorCodes.MISSING_ACL)
+ .execute();
+ });
+
+ test('the internal note is required', async () => {
+ const target = await createTestAccount(harness);
+ const body = await suspendRequest(
+ harness,
+ staff,
+ target.userId,
+ {duration_hours: 24, decision: decisionBody()},
+ null,
+ )
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ expect((body as unknown as ValidationErrorBody).errors[0]).toMatchObject({
+ path: 'X-Audit-Log-Reason',
+ code: ValidationErrorCodes.ENFORCEMENT_INTERNAL_NOTE_REQUIRED,
+ });
+ });
+
+ test('source and automation have no defaults, and the reasons outside enforcement are refused', async () => {
+ const target = await createTestAccount(harness);
+ for (const decision of [
+ {reason_code: DeletionReasons.SPAM, automation: 'none', statement: 'x'},
+ {reason_code: DeletionReasons.SPAM, source: 'own_review', statement: 'x'},
+ decisionBody({automation: 'automated' as never}),
+ decisionBody({reason_code: DeletionReasons.OTHER as never}),
+ decisionBody({reason_code: DeletionReasons.USER_REQUESTED as never}),
+ ]) {
+ await suspendRequest(harness, staff, target.userId, {duration_hours: 24, decision})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ }
+ });
+
+ test('each reason allows only its kinds and subjects', async () => {
+ const target = await createTestAccount(harness);
+ expect(
+ await refusedSuspension(target, decisionBody({reason_code: DeletionReasons.UNDERAGE_ACCOUNT})),
+ ).toMatchObject({code: ValidationErrorCodes.ENFORCEMENT_KIND_NOT_ALLOWED});
+ expect(
+ await refusedSuspension(target, decisionBody({reason_code: DeletionReasons.COPYRIGHT, rights_holder: 'Label'})),
+ ).toMatchObject({code: ValidationErrorCodes.ENFORCEMENT_KIND_NOT_ALLOWED});
+ expect(await refusedWarning(target, decisionBody({reason_code: DeletionReasons.CHILD_SAFETY_VIOLATION}))).toBe(
+ ValidationErrorCodes.ENFORCEMENT_KIND_NOT_ALLOWED,
+ );
+ const bot = await createTestAccount(harness);
+ const user = await loadUser(bot);
+ await getUserRepository().patchUpsert(user.id, {bot: true}, user.toRow());
+ expect(await refusedWarning(bot, decisionBody())).toBe(ValidationErrorCodes.ENFORCEMENT_KIND_NOT_ALLOWED);
+ });
+
+ test('a report source needs reports about this subject', async () => {
+ const target = await createTestAccount(harness);
+ const other = await createTestAccount(harness);
+ const reporter = await createTestAccount(harness);
+ expect(await refusedSuspension(target, decisionBody({source: 'report'}))).toMatchObject({
+ code: ValidationErrorCodes.ENFORCEMENT_REPORT_REQUIRED,
+ });
+ const {report_id: aboutOther} = await createBuilder<{report_id: string}>(harness, reporter.token)
+ .post('/reports/user')
+ .body({user_id: other.userId, category: 'harassment'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ for (const reportId of [aboutOther, '999999']) {
+ expect(await refusedSuspension(target, decisionBody({source: 'report', report_ids: [reportId]}))).toMatchObject({
+ path: 'decision.report_ids.0',
+ code: ValidationErrorCodes.ENFORCEMENT_REPORT_MISMATCH,
+ });
+ }
+ });
+
+ test('evidence must exist and be the subject’s own', async () => {
+ const {target, channelId, other} = await guildMessages();
+ expect(
+ await refusedSuspension(target, decisionBody({evidence: [{channel_id: channelId, message_id: '123'}]})),
+ ).toMatchObject({path: 'decision.evidence.0', code: ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_FOUND});
+ expect(
+ await refusedSuspension(target, decisionBody({evidence: [{channel_id: channelId, message_id: other}]})),
+ ).toMatchObject({code: ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_SUBJECT});
+ });
+
+ test('report snapshots keep only the subject’s messages', async () => {
+ const {owner, target, channelId, own} = await guildMessages();
+ const reportId = await reportMessage(owner, channelId, own);
+ const decisionId = await suspend(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({source: 'report', report_ids: [reportId], statement: undefined}),
+ );
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision.evidence.map((message) => message.content)).toEqual(['buy cheap accounts here']);
+ });
+
+ test('a direct message is evidence only when a linked report covers the conversation', async () => {
+ const target = await createTestAccount(harness);
+ const recipient = await createTestAccount(harness);
+ await createFriendship(harness, target, recipient);
+ const dm = await createDmChannel(harness, target.token, recipient.userId);
+ const message = await sendChannelMessage(harness, target.token, dm.id, 'send me your password');
+ const evidence = [{channel_id: dm.id, message_id: message.id}];
+ expect(await refusedSuspension(target, decisionBody({evidence}))).toMatchObject({
+ code: ValidationErrorCodes.ENFORCEMENT_EVIDENCE_DM_UNREPORTED,
+ });
+ const reportId = await reportMessage(recipient, dm.id, message.id);
+ const decisionId = await suspend(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({source: 'report', report_ids: [reportId], evidence}),
+ );
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision.notice.how_we_decided[0]).toBe('We reviewed this after a report.');
+ });
+
+ test('a decision needs evidence or a note to the user', async () => {
+ const target = await createTestAccount(harness);
+ expect(await refusedSuspension(target, decisionBody({statement: undefined}))).toMatchObject({
+ code: ValidationErrorCodes.ENFORCEMENT_FACTS_REQUIRED,
+ });
+ expect(await refusedSuspension(target, decisionBody(), {remove_evidence: true})).toMatchObject({
+ code: ValidationErrorCodes.ENFORCEMENT_EVIDENCE_REQUIRED,
+ });
+ });
+
+ test('restricted reasons refuse a note, need evidence, a permanent suspension and both confirmations', async () => {
+ const {target, channelId, own} = await guildMessages();
+ const restricted = {
+ reason_code: DeletionReasons.VIOLENT_EXTREMISM,
+ statement: undefined,
+ evidence: [{channel_id: channelId, message_id: own}],
+ confirmations: ['evidence_preserved', 'reports_filed_or_not_required'] as Array<
+ 'evidence_preserved' | 'reports_filed_or_not_required'
+ >,
+ };
+ expect(
+ await refusedSuspension(target, decisionBody({...restricted, statement: 'Stop'}), {duration_hours: 0}),
+ ).toMatchObject({code: ValidationErrorCodes.ENFORCEMENT_STATEMENT_NOT_ALLOWED});
+ expect(
+ await refusedSuspension(target, decisionBody({...restricted, evidence: []}), {duration_hours: 0}),
+ ).toMatchObject({
+ code: ValidationErrorCodes.ENFORCEMENT_EVIDENCE_REQUIRED,
+ });
+ expect(await refusedSuspension(target, decisionBody(restricted))).toMatchObject({
+ code: ValidationErrorCodes.ENFORCEMENT_PERMANENT_REQUIRED,
+ });
+ expect(
+ await refusedSuspension(target, decisionBody({...restricted, confirmations: ['evidence_preserved']}), {
+ duration_hours: 0,
+ }),
+ ).toMatchObject({code: ValidationErrorCodes.ENFORCEMENT_CONFIRMATIONS_REQUIRED});
+ const decisionId = await suspend(harness, staff, target.userId, decisionBody(restricted), {duration_hours: 0});
+ const decision = await getDecision(harness, staff, decisionId);
+ expect(decision.notes[0]!.body).toContain('evidence_preserved, reports_filed_or_not_required');
+ });
+
+ test('copyright needs the rights holder and other reasons refuse it', async () => {
+ const target = await createTestAccount(harness);
+ expect(await refusedWarning(target, decisionBody({reason_code: DeletionReasons.COPYRIGHT}))).toBe(
+ ValidationErrorCodes.ENFORCEMENT_RIGHTS_HOLDER_REQUIRED,
+ );
+ expect(await refusedWarning(target, decisionBody({rights_holder: 'Example Records'}))).toBe(
+ ValidationErrorCodes.ENFORCEMENT_RIGHTS_HOLDER_NOT_ALLOWED,
+ );
+ const decisionId = await warn(
+ harness,
+ staff,
+ target.userId,
+ decisionBody({reason_code: DeletionReasons.COPYRIGHT, rights_holder: 'Example Records'}),
+ );
+ expect((await getDecision(harness, staff, decisionId)).notice.facts).toContain(
+ 'Rights holder or right concerned: Example Records.',
+ );
+ });
+});
diff --git a/fluxer_api/src/api/enforcement/tests/__snapshots__/EnforcementNotice.test.ts.snap b/fluxer_api/src/api/enforcement/tests/__snapshots__/EnforcementNotice.test.ts.snap
new file mode 100644
index 000000000..6d3c4267e
--- /dev/null
+++ b/fluxer_api/src/api/enforcement/tests/__snapshots__/EnforcementNotice.test.ts.snap
@@ -0,0 +1,612 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`buildEnforcementNotice > renders bot_suspension 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "The bot can't connect or act anywhere until then. Your own account is not restricted.",
+ ],
+ "ends_at": "2026-10-21T10:00:00.000Z",
+ "facts": [
+ "We found activity from your bot that breaks this rule.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "suspension",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": null,
+ "summary": "We suspended your bot helperbot until Oct 21, 2026, 10:00 AM UTC.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders closure 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": "2026-12-27T10:00:00.000Z",
+ "effects": [
+ "You can't sign in or use Fluxer anywhere. We'll delete the account and its data on Dec 27, 2026, except data we have to keep by law.",
+ "You may not create or use other accounts.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found that your account sent unwanted messages in bulk.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "closure",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": null,
+ "summary": "We closed your account.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders community_removal 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "The community and its channels and messages are no longer available to anyone. Your own account is not restricted.",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found content in this community that breaks this rule.",
+ "2 messages posted in #general, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "community_removal",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": null,
+ "summary": "We removed your community Plant Club.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders content_removal 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "Your account is not otherwise restricted.",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found that your account sent unwanted messages in bulk.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "content_removal",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": null,
+ "summary": "We removed 2 messages you sent.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders content_removal_all 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "Your account is not otherwise restricted.",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found that your account sent unwanted messages in bulk.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "content_removal",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": null,
+ "summary": "We removed all messages you sent.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders copyright 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "Your account is not restricted. If this happens again, we may limit or suspend it.",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found content from your account that uses someone else's work without permission.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ "Rights holder or right concerned: Example Records.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "warning",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Copyright",
+ "url": "http://localhost:8088/marketing/terms#3-4-copyright",
+ },
+ "statement": null,
+ "summary": "We're warning you about activity on your account.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders feature_limit_direct_messages 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "Your one-to-one messages and friend requests are not delivered, and your profile is hidden. In communities and group conversations, people see your messages collapsed and marked as possible spam.",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found that your account sent unwanted messages in bulk.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "feature_limit",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": null,
+ "summary": "We limited a feature on your account.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders feature_limit_purchases 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "You can't make purchases on Fluxer until a person on our team reviews this.",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found a payment issue on your account that breaks our payment terms.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ "A payment on your account on Oct 10, 2026.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "This is a temporary limit applied automatically while a person on our team reviews it.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "feature_limit",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Payments",
+ "url": "http://localhost:8088/marketing/terms#4-4-failed-payments-and-disputes",
+ },
+ "statement": null,
+ "summary": "We limited a feature on your account.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders feature_limit_reports 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "You can't send reports in the app until then. To report illegal content, use the safety route on our [company information page](http://localhost:8088/marketing/company-information).",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": "2026-10-21T10:00:00.000Z",
+ "facts": [
+ "We found that your account repeatedly sent reports that were false or made in bad faith.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "feature_limit",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Misuse of reporting",
+ "url": "http://localhost:8088/marketing/guidelines#8-reporting",
+ },
+ "statement": null,
+ "summary": "We limited a feature on your account until Oct 21, 2026, 10:00 AM UTC.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders permanent_suspension 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "You can't sign in or use Fluxer anywhere.",
+ "You may not create or use other accounts.",
+ "We also removed 3 messages.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found that your account sent unwanted messages in bulk.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "suspension",
+ "permanent": true,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": null,
+ "summary": "We banned your account.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders profile_reset 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "Your account is not otherwise restricted.",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found that your account sent unwanted messages in bulk.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ "Your profile: bio, display name.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "profile_reset",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": null,
+ "summary": "We reset parts of your profile: bio, display name.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders protected_harassment 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "You can't sign in or use Fluxer anywhere until then. Your account, messages and communities are kept.",
+ ],
+ "ends_at": "2026-10-21T10:00:00.000Z",
+ "facts": [
+ "We found messages from your account that harassed or bullied someone.",
+ "1 message in a direct message conversation in September 2026.",
+ "1 message in a group conversation in September 2026.",
+ "1 message in a conversation that no longer exists, on Sep 5, 2026, 8:15 AM UTC.",
+ ],
+ "how_we_decided": [
+ "We reviewed this after a report.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "suspension",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Harassment",
+ "url": "http://localhost:8088/marketing/guidelines#1-harassment-threats-and-privacy",
+ },
+ "statement": null,
+ "summary": "We suspended your account until Oct 21, 2026, 10:00 AM UTC.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders restricted_child_safety 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "You can't sign in or use Fluxer anywhere.",
+ "You may not create or use other accounts.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found content or activity on your account that breaks our rules on protecting children.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "suspension",
+ "permanent": true,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Child safety",
+ "url": "http://localhost:8088/marketing/guidelines#4-sexual-content-and-protection-of-minors",
+ },
+ "statement": null,
+ "summary": "We banned your account.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders self_harm 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "Your account is not restricted. If this happens again, we may limit or suspend it.",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found content from your account that encourages or gives instructions for self-harm.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ "If you're going through a hard time, you don't have to deal with it alone. [Section 3 of our community guidelines](http://localhost:8088/marketing/guidelines#3-violence-extremism-and-self-harm) lists support lines.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "Automated tools flagged this. A person on our team reviewed it and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "warning",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Promoting self-harm",
+ "url": "http://localhost:8088/marketing/guidelines#3-violence-extremism-and-self-harm",
+ },
+ "statement": null,
+ "summary": "We're warning you about activity on your account.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders suspension 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "You can't sign in or use Fluxer anywhere until then. Your account, messages and communities are kept.",
+ ],
+ "ends_at": "2026-10-21T10:00:00.000Z",
+ "facts": [
+ "We found that your account sent unwanted messages in bulk.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "suspension",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": "You posted the same link in ten communities.",
+ "summary": "We suspended your account until Oct 21, 2026, 10:00 AM UTC.",
+}
+`;
+
+exports[`buildEnforcementNotice > renders warning 1`] = `
+{
+ "appeal": {
+ "account_has_email": true,
+ "deadline": "Dec 13, 2026",
+ "email": "[email protected]",
+ },
+ "decision_id": "1234567890123",
+ "deletion_at": null,
+ "effects": [
+ "Your account is not restricted. If this happens again, we may limit or suspend it.",
+ "This decision applies everywhere Fluxer is available.",
+ ],
+ "ends_at": null,
+ "facts": [
+ "We found that your account sent unwanted messages in bulk.",
+ "2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.",
+ ],
+ "how_we_decided": [
+ "We found this in our own review.",
+ "A person on our team reviewed this and made the decision.",
+ ],
+ "issued_at": "2026-10-14T10:00:00.000Z",
+ "kind": "warning",
+ "permanent": false,
+ "redress": [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ "You can also complain to the Digital Services Coordinator in your EU country, or go to court.",
+ ],
+ "rule": {
+ "title": "Spam",
+ "url": "http://localhost:8088/marketing/guidelines#6-spam-and-service-abuse",
+ },
+ "statement": null,
+ "summary": "We're warning you about activity on your account.",
+}
+`;
diff --git a/fluxer_api/src/api/guild/tests/GuildDeletionAttachmentPurge.test.ts b/fluxer_api/src/api/guild/tests/GuildDeletionAttachmentPurge.test.ts
index 3ff51f12e..827c90d7b 100644
--- a/fluxer_api/src/api/guild/tests/GuildDeletionAttachmentPurge.test.ts
+++ b/fluxer_api/src/api/guild/tests/GuildDeletionAttachmentPurge.test.ts
@@ -120,7 +120,7 @@ describe('Guild deletion attachment purge', () => {
]);
await createBuilder(harness, admin.token)
.delete(`/admin/guilds/${world.b.guild.id}`)
- .body(null)
+ .body({basis: {type: 'holder_request'}})
.expect(HTTP_STATUS.OK)
.execute();
await world.worker.drain();
diff --git a/fluxer_api/src/api/guild/tests/GuildDeletionJob.test.ts b/fluxer_api/src/api/guild/tests/GuildDeletionJob.test.ts
index 8320da026..56c9a4bc9 100644
--- a/fluxer_api/src/api/guild/tests/GuildDeletionJob.test.ts
+++ b/fluxer_api/src/api/guild/tests/GuildDeletionJob.test.ts
@@ -84,7 +84,7 @@ describe('Guild deletion job', () => {
const guild = await createGuild(harness, admin.token, 'Admin Deletion Guild');
await createBuilder(harness, admin.token)
.delete(`/admin/guilds/${guild.id}`)
- .body(null)
+ .body({basis: {type: 'holder_request'}})
.expect(HTTP_STATUS.OK)
.execute();
expect(worker.byTask('guildProcessDeletion').map((job) => job.payload)).toEqual([
diff --git a/fluxer_api/src/api/infrastructure/activity/tests/ModerationEvents.test.ts b/fluxer_api/src/api/infrastructure/activity/tests/ModerationEvents.test.ts
index f85f38681..d5697742d 100644
--- a/fluxer_api/src/api/infrastructure/activity/tests/ModerationEvents.test.ts
+++ b/fluxer_api/src/api/infrastructure/activity/tests/ModerationEvents.test.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {createTestAccount, setUserACLs, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {decisionBody} from '@app/api/enforcement/tests/EnforcementTestUtils';
import {addMemberRole, createGuild, createRole, setupTestGuildWithMembers} from '@app/api/guild/tests/GuildTestUtils';
import {resetActivityEventsForTests, startActivityEvents} from '@app/api/infrastructure/activity/ActivityEvents';
import type {ActivityPublisher} from '@app/api/infrastructure/activity/ActivitySpool';
@@ -152,27 +153,36 @@ describe('moderation activity events', () => {
const {reported, reportId} = await fileReport();
await createBuilder(harness, admin.token)
.put(`/admin/users/${reported.userId}/ban`)
- .body({duration_hours: 24, notify_user: false})
+ .header('X-Audit-Log-Reason', 'Test suspension')
+ .body({
+ duration_hours: 24,
+ decision: decisionBody(),
+ })
.expect(HTTP_STATUS.OK)
.execute();
- await resolve(reportId, {resolution});
+ const {reportId: originalId} = await fileReport();
+ await resolve(
+ reportId,
+ resolution === 'no_violation'
+ ? {resolution}
+ : resolution === 'duplicate'
+ ? {resolution, duplicate_of: originalId}
+ : {resolution, outcome: 'restricted'},
+ );
expect(publisher.of('report_resolved').map((event) => event.data)).toEqual([
expect.objectContaining({report_id: reportId, outcome: resolution, resolved_by: 'staff'}),
]);
},
);
- test('without a chosen outcome the reported account state decides between actioned and unspecified', async () => {
- const first = await fileReport();
- await resolve(first.reportId, {});
- const second = await fileReport();
+ test('a resolution is required', async () => {
+ const {reportId} = await fileReport();
await createBuilder(harness, admin.token)
- .put(`/admin/users/${second.reported.userId}/ban`)
- .body({duration_hours: 24, notify_user: false})
- .expect(HTTP_STATUS.OK)
+ .patch(`/admin/reports/${reportId}`)
+ .body({status: 'resolved'})
+ .expect(HTTP_STATUS.BAD_REQUEST)
.execute();
- await resolve(second.reportId, {});
- expect(publisher.of('report_resolved').map((event) => event.data.outcome)).toEqual(['unspecified', 'actioned']);
+ expect(publisher.of('report_resolved')).toEqual([]);
});
test('an unknown resolution is rejected', async () => {
diff --git a/fluxer_api/src/api/instance/LegalUrls.ts b/fluxer_api/src/api/instance/LegalUrls.ts
index a58b6c2e7..57aa18cc5 100644
--- a/fluxer_api/src/api/instance/LegalUrls.ts
+++ b/fluxer_api/src/api/instance/LegalUrls.ts
@@ -7,7 +7,7 @@ export interface ConfiguredLegalUrls {
guidelines_url: string | null;
}
-export interface LegalUrls {
+interface LegalUrls {
termsUrl: string | null;
guidelinesUrl: string | null;
}
@@ -18,15 +18,11 @@ export function setCachedConfiguredLegalUrls(legal: ConfiguredLegalUrls): void {
cachedConfiguredLegalUrls = {terms_url: legal.terms_url, guidelines_url: legal.guidelines_url};
}
-export function resolveLegalUrls(legal: ConfiguredLegalUrls): LegalUrls {
+export function getLegalUrls(): LegalUrls {
const hostedUrl = (path: string): string | null =>
Config.instance.selfHosted ? null : `${Config.endpoints.marketing}${path}`;
return {
- termsUrl: legal.terms_url ?? hostedUrl('/terms'),
- guidelinesUrl: legal.guidelines_url ?? hostedUrl('/guidelines'),
+ termsUrl: cachedConfiguredLegalUrls.terms_url ?? hostedUrl('/terms'),
+ guidelinesUrl: cachedConfiguredLegalUrls.guidelines_url ?? hostedUrl('/guidelines'),
};
}
-
-export function getLegalUrls(): LegalUrls {
- return resolveLegalUrls(cachedConfiguredLegalUrls);
-}
diff --git a/fluxer_api/src/api/instance/ProductName.test.ts b/fluxer_api/src/api/instance/ProductName.test.ts
new file mode 100644
index 000000000..ca522ea52
--- /dev/null
+++ b/fluxer_api/src/api/instance/ProductName.test.ts
@@ -0,0 +1,85 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {getConfig} from '@app/api/Config';
+import {setCassandraQueryExecutorForTesting} from '@app/api/database/CassandraQueryExecution';
+import {InstanceConfigRepository} from '@app/api/instance/InstanceConfigRepository';
+import {getInstanceProductName, setCachedProductName} from '@app/api/instance/ProductName';
+import {InMemoryCassandraQueryExecutor} from '@app/api/test/InMemoryCassandraQueryExecutor';
+import {MockKVProvider} from '@pkgs/kv_client/src/testing/MockKVProvider';
+import {afterEach, beforeEach, describe, expect, it} from 'vitest';
+
+const WEB_APP_HOST = 'chat.example.org';
+
+describe('getInstanceProductName', () => {
+ const config = getConfig();
+ const original = {
+ selfHosted: config.instance.selfHosted,
+ productName: config.instance.branding.productName,
+ webApp: config.endpoints.webApp,
+ };
+
+ beforeEach(() => {
+ config.endpoints.webApp = `https://${WEB_APP_HOST}:8443/app`;
+ config.instance.branding.productName = '';
+ });
+
+ afterEach(() => {
+ config.instance.selfHosted = original.selfHosted;
+ config.instance.branding.productName = original.productName;
+ config.endpoints.webApp = original.webApp;
+ setCachedProductName(null);
+ });
+
+ describe('hosted', () => {
+ beforeEach(() => {
+ config.instance.selfHosted = false;
+ });
+
+ it.each([
+ [null, 'Fluxer'],
+ ['Fluxer', 'Fluxer'],
+ ['Example Chat', 'Example Chat'],
+ ])('resolves %j to %j', (cached, expected) => {
+ setCachedProductName(cached);
+ expect(getInstanceProductName()).toBe(expected);
+ });
+ });
+
+ describe('self-hosted', () => {
+ beforeEach(() => {
+ config.instance.selfHosted = true;
+ });
+
+ it.each([null, '', ' ', 'Fluxer', ' fluxer ', 'FLUXER'])('resolves %j to the web app host', (cached) => {
+ setCachedProductName(cached);
+ expect(getInstanceProductName()).toBe(WEB_APP_HOST);
+ });
+
+ it('resolves a configured default of Fluxer to the web app host', () => {
+ config.instance.branding.productName = 'Fluxer';
+ expect(getInstanceProductName()).toBe(WEB_APP_HOST);
+ });
+
+ it.each(['Fluxer Community', 'Example Chat'])('leaves %j alone', (cached) => {
+ setCachedProductName(cached);
+ expect(getInstanceProductName()).toBe(cached);
+ });
+
+ it('resolves a persisted Fluxer name to the web app host', async () => {
+ setCassandraQueryExecutorForTesting(new InMemoryCassandraQueryExecutor());
+ const kvProvider = new MockKVProvider();
+ const writer = new InstanceConfigRepository(kvProvider);
+ const reader = new InstanceConfigRepository(kvProvider);
+ try {
+ await writer.setConfig('app_public_config', JSON.stringify({branding: {product_name: 'Fluxer'}}));
+ setCachedProductName('Example Chat');
+ await reader.initialize();
+ expect((await reader.getAppPublicConfig()).branding.product_name).toBe('Fluxer');
+ expect(getInstanceProductName()).toBe(WEB_APP_HOST);
+ } finally {
+ writer.shutdown();
+ reader.shutdown();
+ }
+ });
+ });
+});
diff --git a/fluxer_api/src/api/instance/ProductName.ts b/fluxer_api/src/api/instance/ProductName.ts
index 784fc3bc5..e3329ed40 100644
--- a/fluxer_api/src/api/instance/ProductName.ts
+++ b/fluxer_api/src/api/instance/ProductName.ts
@@ -2,16 +2,27 @@
import {Config} from '@app/api/Config';
+const UPSTREAM_PRODUCT_NAME = 'Fluxer';
+
let cachedProductName: string | null = null;
export function getDefaultProductName(): string {
- return Config.instance.branding.productName || 'Fluxer';
+ return Config.instance.branding.productName || UPSTREAM_PRODUCT_NAME;
}
export function getInstanceProductName(): string {
- return cachedProductName ?? getDefaultProductName();
+ const productName = cachedProductName ?? getDefaultProductName();
+ if (Config.instance.selfHosted && isUnbrandedProductName(productName)) {
+ return new URL(Config.endpoints.webApp).hostname;
+ }
+ return productName;
}
export function setCachedProductName(productName: string | null): void {
cachedProductName = productName;
}
+
+function isUnbrandedProductName(productName: string): boolean {
+ const normalized = productName.trim().toLowerCase();
+ return normalized === '' || normalized === UPSTREAM_PRODUCT_NAME.toLowerCase();
+}
diff --git a/fluxer_api/src/api/middleware/IpBanMiddleware.ts b/fluxer_api/src/api/middleware/IpBanMiddleware.ts
index e9b7e724c..538c35311 100644
--- a/fluxer_api/src/api/middleware/IpBanMiddleware.ts
+++ b/fluxer_api/src/api/middleware/IpBanMiddleware.ts
@@ -3,30 +3,38 @@
import {AdminRepository, type BannedIpEntry, type BannedIpKind} from '@app/api/admin/AdminRepository';
import {isIpBanExempt} from '@app/api/ban/IpBanExemptions';
import {IP_BAN_REFRESH_CHANNEL} from '@app/api/constants/IpBan';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {createNetworkBlockError, type NetworkBlock} from '@app/api/enforcement/NetworkBlockError';
import {sharedListHas} from '@app/api/infrastructure/activity/SharedLists';
-import {resolveContactEmails} from '@app/api/instance/ContactEmails';
-import {getInstanceProductName} from '@app/api/instance/ProductName';
import {Logger} from '@app/api/Logger';
import type {HonoEnv} from '@app/api/types/HonoEnv';
import {readOptionalEnv} from '@app/api/utils/IntegerOptions';
import {parseIpBanEntry, tryParseSingleIp} from '@app/api/utils/IpRangeUtils';
import {RefreshedCache} from '@app/api/utils/RefreshedCache';
import {getRequestClientIp} from '@app/api/utils/RequestClientIp';
-import {IpBannedError} from '@fluxer/errors/src/domains/moderation/IpBannedError';
+import {stripApiPrefix} from '@app/api/utils/RequestPathUtils';
+import {parseAcceptLanguage} from '@fluxer/i18n/src/locale/resolution/AcceptLanguageNegotiation';
import {getSameIpDecisionKey, type IpAddressFamily} from '@fluxer/ip_utils/src/IpAddress';
import {createMiddleware} from 'hono/factory';
type FamilyMap<T> = Record<IpAddressFamily, Map<string, T>>;
+interface IpBanDecision {
+ decisionId: bigint;
+ reasonCode: number | null;
+}
+
interface IpBanMetadata {
kind: BannedIpKind;
expiresAt: Date | null;
+ decision: IpBanDecision | null;
}
interface IpBanCount {
permanent: number;
temporary: number;
temporaryExpiresAt: Date | null;
+ decision: IpBanDecision | null;
}
interface SingleCacheEntry {
@@ -45,6 +53,7 @@ interface IpBanMatch {
matchedEntry: string;
kind: BannedIpKind;
expiresAt: Date | null;
+ decision: IpBanDecision | null;
}
interface IpBanCacheState {
@@ -56,13 +65,17 @@ interface IpBanCacheState {
const PERMANENT_BAN_METADATA: IpBanMetadata = {
kind: 'permanent',
expiresAt: null,
+ decision: null,
};
+const INSTANCE_DISCOVERY_PATH = '/.well-known/fluxer';
+
class IpBanCache extends RefreshedCache {
private singleIpBans: FamilyMap<SingleCacheEntry>;
private rangeIpBans: FamilyMap<RangeCacheEntry>;
private sameIpDecisionBans: Map<string, IpBanCount>;
private adminRepository = new AdminRepository();
+ private decisionRepository = new EnforcementDecisionRepository();
constructor() {
super({
name: 'IP ban cache',
@@ -85,9 +98,12 @@ class IpBanCache extends RefreshedCache {
protected async load(): Promise<void> {
const entries = await this.adminRepository.loadAllBannedIpEntries();
+ const decisionIds = [...new Set(entries.flatMap((entry) => (entry.decisionId === null ? [] : [entry.decisionId])))];
+ const decisions = decisionIds.length > 0 ? await this.decisionRepository.getMany(decisionIds) : [];
+ const reasonCodes = new Map(decisions.map((decision) => [decision.decision_id, decision.reason_code]));
const state = this.createEmptyState();
for (const entry of entries) {
- this.addEntryToState(entry.ip, this.metadataFromEntry(entry), state);
+ this.addEntryToState(entry.ip, this.metadataFromEntry(entry, reasonCodes), state);
}
this.singleIpBans = state.singleIpBans;
this.rangeIpBans = state.rangeIpBans;
@@ -143,7 +159,7 @@ class IpBanCache extends RefreshedCache {
banTemp(ip: string, ttlSeconds: number): void {
if (isIpBanExempt(ip)) return;
const expiresAt = Number.isFinite(ttlSeconds) && ttlSeconds > 0 ? new Date(Date.now() + ttlSeconds * 1000) : null;
- this.addEntry(ip, {kind: 'temporary_24h', expiresAt});
+ this.addEntry(ip, {kind: 'temporary_24h', expiresAt, decision: null});
}
unban(ip: string): void {
@@ -172,10 +188,14 @@ class IpBanCache extends RefreshedCache {
};
}
- private metadataFromEntry(entry: BannedIpEntry): IpBanMetadata {
+ private metadataFromEntry(entry: BannedIpEntry, reasonCodes: ReadonlyMap<bigint, number>): IpBanMetadata {
return {
kind: entry.kind,
expiresAt: entry.expiresAt,
+ decision:
+ entry.decisionId === null
+ ? null
+ : {decisionId: entry.decisionId, reasonCode: reasonCodes.get(entry.decisionId) ?? null},
};
}
@@ -184,10 +204,12 @@ class IpBanCache extends RefreshedCache {
permanent: metadata.kind === 'permanent' ? 1 : 0,
temporary: metadata.kind === 'temporary_24h' ? 1 : 0,
temporaryExpiresAt: metadata.kind === 'temporary_24h' ? metadata.expiresAt : null,
+ decision: metadata.decision,
};
}
private incrementCount(count: IpBanCount, metadata: IpBanMetadata): void {
+ count.decision ??= metadata.decision;
if (metadata.kind === 'permanent') {
count.permanent += 1;
return;
@@ -217,14 +239,11 @@ class IpBanCache extends RefreshedCache {
return count.temporaryExpiresAt.getTime() > Date.now();
}
- private resolveCount(count: IpBanCount): {
- kind: BannedIpKind;
- expiresAt: Date | null;
- } {
+ private resolveCount(count: IpBanCount): Pick<IpBanMatch, 'kind' | 'expiresAt' | 'decision'> {
if (count.permanent > 0) {
- return {kind: 'permanent', expiresAt: null};
+ return {kind: 'permanent', expiresAt: null, decision: count.decision};
}
- return {kind: 'temporary_24h', expiresAt: count.temporaryExpiresAt};
+ return {kind: 'temporary_24h', expiresAt: count.temporaryExpiresAt, decision: count.decision};
}
private addEntry(value: string, metadata: IpBanMetadata): void {
@@ -301,25 +320,46 @@ class IpBanCache extends RefreshedCache {
}
export const ipBanCache = new IpBanCache();
-export const IpBanMiddleware = createMiddleware<HonoEnv>(async (ctx, next) => {
- const clientIp = getRequestClientIp(ctx);
- const match = clientIp ? ipBanCache.getMatch(clientIp) : null;
+
+export const SIGN_IN_ROUTES: ReadonlySet<string> = new Set([
+ '/auth/login',
+ '/auth/login/mfa/totp',
+ '/auth/login/mfa/webauthn/authentication-options',
+ '/auth/login/mfa/webauthn',
+ '/auth/webauthn/authentication-options',
+ '/auth/webauthn/authenticate',
+ '/auth/sso/start',
+ '/auth/sso/complete',
+]);
+
+function findNetworkBlock(clientIp: string | null): NetworkBlock | null {
+ if (!clientIp) return null;
+ const match = ipBanCache.getMatch(clientIp);
if (match) {
- throw new IpBannedError({
+ return {
ipAddress: match.ipAddress,
kind: match.kind,
expiresAt: match.expiresAt,
- appealEmail: resolveContactEmails().supportEmail,
- productName: getInstanceProductName(),
- });
+ reasonCode: match.decision?.reasonCode ?? null,
+ };
}
- if (clientIp && !isIpBanExempt(clientIp) && sharedListHas('ip_blocked', clientIp)) {
- throw new IpBannedError({
- ipAddress: clientIp,
- kind: 'permanent',
- appealEmail: resolveContactEmails().supportEmail,
- productName: getInstanceProductName(),
- });
+ if (!isIpBanExempt(clientIp) && sharedListHas('ip_blocked', clientIp)) {
+ return {ipAddress: clientIp, kind: 'permanent', expiresAt: null, reasonCode: null};
+ }
+ return null;
+}
+
+export const IpBanMiddleware = createMiddleware<HonoEnv>(async (ctx, next) => {
+ if (ctx.req.path === INSTANCE_DISCOVERY_PATH) {
+ await next();
+ return;
+ }
+ const block = findNetworkBlock(getRequestClientIp(ctx));
+ if (block) {
+ if (ctx.req.method !== 'POST' || !SIGN_IN_ROUTES.has(stripApiPrefix(ctx.req.path))) {
+ throw createNetworkBlockError(block, parseAcceptLanguage(ctx.req.header('accept-language')));
+ }
+ ctx.set('blockedNetworkSignIn', block);
}
await next();
});
diff --git a/fluxer_api/src/api/middleware/ServiceMiddleware.ts b/fluxer_api/src/api/middleware/ServiceMiddleware.ts
index 3f3657511..7fbfa2c3b 100644
--- a/fluxer_api/src/api/middleware/ServiceMiddleware.ts
+++ b/fluxer_api/src/api/middleware/ServiceMiddleware.ts
@@ -141,6 +141,7 @@ import {VoiceService} from '@app/api/voice/VoiceService';
import {ChannelFollowService} from '@app/api/webhook/ChannelFollowService';
import {WebhookRequestService} from '@app/api/webhook/WebhookRequestService';
import {WebhookService} from '@app/api/webhook/WebhookService';
+import {parseAcceptLanguage} from '@fluxer/i18n/src/locale/resolution/AcceptLanguageNegotiation';
import {createMiddleware} from 'hono/factory';
export {initializeServiceSingletons} from '@app/api/middleware/ServiceSingletons';
@@ -546,7 +547,6 @@ class RequestServices implements RequestScopedServices {
},
{
inviteService: this.inviteService,
- kvDeletionQueue: getKVAccountDeletionQueue(),
},
);
}
@@ -923,6 +923,8 @@ export const ServiceMiddleware = createMiddleware<HonoEnv>(async (ctx, next) =>
requestId: ctx.get('requestId') ?? crypto.randomUUID(),
clientIp: getRequestClientIp(ctx),
userAgent: ctx.req.header('user-agent') ?? null,
+ locale: parseAcceptLanguage(ctx.req.header('accept-language')),
+ blockedNetworkSignIn: ctx.get('blockedNetworkSignIn') ?? null,
});
ctx.set('apiContext', apiContext);
ctx.set('sudoModeValid', false);
diff --git a/fluxer_api/src/api/middleware/ServiceSingletons.ts b/fluxer_api/src/api/middleware/ServiceSingletons.ts
index 29ac1dba5..aee56d187 100644
--- a/fluxer_api/src/api/middleware/ServiceSingletons.ts
+++ b/fluxer_api/src/api/middleware/ServiceSingletons.ts
@@ -13,6 +13,7 @@ import type {APIConfig} from '@app/api/config/APIConfig';
import {ConnectionRepository} from '@app/api/connection/ConnectionRepository';
import {DonationRepository} from '@app/api/donation/DonationRepository';
import {createEmailProvider} from '@app/api/email/EmailProviderFactory';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
import {FavoriteMemeRepository} from '@app/api/favorite_meme/FavoriteMemeRepository';
import {GatewayRequestService} from '@app/api/gateway/GatewayRequestService';
import {createNatsGifProvider} from '@app/api/gif/NatsGifProvider';
@@ -44,7 +45,6 @@ import {createUsersServiceClient} from '@app/api/infrastructure/UsersServiceClie
import {VirusScanService} from '@app/api/infrastructure/VirusScanService';
import {type ContactEmails, resolveContactEmails} from '@app/api/instance/ContactEmails';
import {InstanceConfigRepository} from '@app/api/instance/InstanceConfigRepository';
-import {type LegalUrls, resolveLegalUrls} from '@app/api/instance/LegalUrls';
import {NatsConfigPublisher} from '@app/api/instance/NatsConfigPublisher';
import {getInstanceProductName} from '@app/api/instance/ProductName';
import {ensureSetupToken} from '@app/api/instance/SetupToken';
@@ -113,6 +113,7 @@ export const getReadStateRepository = singleton(() => new ReadStateRepository())
export const getFavoriteMemeRepository = singleton(() => new FavoriteMemeRepository());
export const getConnectionRepository = singleton(() => new ConnectionRepository());
export const getReportRepository = singleton(() => new ReportRepository());
+export const getEnforcementDecisionRepository = singleton(() => new EnforcementDecisionRepository());
export const getVoiceP2pConnectionReportRepository = singleton(() => new VoiceP2pConnectionReportRepository());
export const getAdminRepository = singleton(() => new AdminRepository());
export const getAdminArchiveRepository = singleton(() => new AdminArchiveRepository());
@@ -169,7 +170,6 @@ export const getEmailDnsValidationService = singleton(() => new EmailDnsValidati
function createEmailServiceForConfig(
emailConfigSource: APIConfig['email'],
- legalUrls: LegalUrls,
contactEmails: ContactEmails,
productName: string,
bouncedEmailChecker: UserBouncedEmailChecker,
@@ -180,8 +180,6 @@ function createEmailServiceForConfig(
fromName: emailConfigSource.fromName.trim() || productName,
replyTo: emailConfigSource.replyToEmail || null,
appBaseUrl: emailConfigSource.appBaseUrl,
- termsUrl: legalUrls.termsUrl,
- guidelinesUrl: legalUrls.guidelinesUrl,
appealsEmail: contactEmails.appealsEmail,
safetyEmail: contactEmails.safetyEmail,
supportEmail: contactEmails.supportEmail,
@@ -195,13 +193,9 @@ export function createRuntimeEmailService(bouncedEmailChecker: UserBouncedEmailC
get(_target, property) {
return async (...args: Array<unknown>): Promise<boolean> => {
const instanceConfigRepository = getInstanceConfigRepository();
- const [emailConfig, appPublic] = await Promise.all([
- instanceConfigRepository.getEffectiveEmailConfig(),
- instanceConfigRepository.getAppPublicConfig(),
- ]);
+ const emailConfig = await instanceConfigRepository.getEffectiveEmailConfig();
const delegate = createEmailServiceForConfig(
emailConfig,
- resolveLegalUrls(appPublic.legal),
resolveContactEmails(),
getInstanceProductName(),
bouncedEmailChecker,
diff --git a/fluxer_api/src/api/models/User.ts b/fluxer_api/src/api/models/User.ts
index 331ff82f6..10eae73f7 100644
--- a/fluxer_api/src/api/models/User.ts
+++ b/fluxer_api/src/api/models/User.ts
@@ -65,6 +65,7 @@ export class User {
readonly deletionAuditLogReason: string | null;
readonly deletionScheduledBy: UserID | null;
readonly deletionScheduledAt: Date | null;
+ readonly enforcementDecisionId: bigint | null;
readonly contentHiddenSince: Date | null;
readonly acls: Set<string>;
private readonly _traits: Set<string>;
@@ -130,6 +131,7 @@ export class User {
this.deletionAuditLogReason = row.deletion_audit_log_reason ?? null;
this.deletionScheduledBy = row.deletion_scheduled_by ?? null;
this.deletionScheduledAt = row.deletion_scheduled_at ?? null;
+ this.enforcementDecisionId = row.enforcement_decision_id ?? null;
this.contentHiddenSince = row.content_hidden_since ?? null;
this.acls = row.acls ?? new Set();
this._traits = row.traits ?? new Set();
@@ -212,6 +214,7 @@ export class User {
deletion_audit_log_reason: this.deletionAuditLogReason,
deletion_scheduled_by: this.deletionScheduledBy,
deletion_scheduled_at: this.deletionScheduledAt,
+ enforcement_decision_id: this.enforcementDecisionId,
content_hidden_since: this.contentHiddenSince,
acls: this.acls.size > 0 ? this.acls : null,
traits: this._traits.size > 0 ? this._traits : null,
diff --git a/fluxer_api/src/api/openapi/openapi.json b/fluxer_api/src/api/openapi/openapi.json
index 98804ae81..b0a72bd8a 100644
--- a/fluxer_api/src/api/openapi/openapi.json
+++ b/fluxer_api/src/api/openapi/openapi.json
@@ -40099,6 +40099,11 @@
"EMAIL_UNAVAILABLE_ON_INSTANCE",
"EMAIL_VERIFICATION_REQUIRED",
"DIRECT_MESSAGE_EMAIL_VERIFICATION_REQUIRED",
+ "ENFORCEMENT_ACCOUNT_CLOSED",
+ "ENFORCEMENT_DECISION_ENDED",
+ "ENFORCEMENT_DECISION_OWNS_STATE",
+ "ENFORCEMENT_DECISION_REPLACED",
+ "ENFORCEMENT_DELETION_STARTED",
"FOLLOW_TARGET_CONTENT_WARNING_REQUIRED",
"FOLLOW_TARGET_NOT_AGE_RESTRICTED",
"FRIEND_REQUEST_EMAIL_VERIFICATION_REQUIRED",
@@ -40176,6 +40181,7 @@
"GLOBAL_IP_BANNED",
"GLOBAL_IP_TEMPORARILY_BANNED",
"IP_BAN_DECLINED",
+ "IP_BAN_LINKED_TO_DECISION",
"MAX_APPLICATIONS",
"MAX_BOOKMARKS",
"MAX_ACTIVE_THREADS",
@@ -40290,6 +40296,7 @@
"UNCLAIMED_ACCOUNT_CANNOT_SUBMIT_REPORTS",
"UNKNOWN_CHANNEL",
"UNKNOWN_EMOJI",
+ "UNKNOWN_ENFORCEMENT_DECISION",
"UNKNOWN_FAVORITE_MEME",
"UNKNOWN_FORUM_TAG",
"UNKNOWN_GIFT_CODE",
@@ -40395,6 +40402,11 @@
"This instance doesn't use email.",
"Email verification is required for this action.",
"Email verification is required for this action.",
+ "This account is closed, so it can't be suspended.",
+ "This decision has already ended.",
+ "An enforcement decision owns this restriction. End the decision instead.",
+ "A later decision replaced this one, so it can no longer be ended.",
+ "The deletion of this account has already started, so the decision can no longer be ended.",
"Updates from a channel with a content warning can only go to a channel with a content warning or an age restriction.",
"Updates from an age-restricted channel can only go to an age-restricted channel.",
"Email verification is required for this action.",
@@ -40469,9 +40481,10 @@
"IP authorization is required.",
"IP authorization resend is on cooldown.",
"IP authorization resend limit exceeded.",
- "Your IP address {ipAddress} has been permanently blocked from the {product_name} API by platform administrators. {appealEmail, select, null {If you believe this is a mistake, contact the administrators of this instance to appeal.} other {If you believe this is a mistake, contact {appealEmail} to appeal.}} Include this IP address in your appeal.",
- "Your IP address {ipAddress} has been temporarily blocked from the {product_name} API. The block lifts on its own when it expires. {appealEmail, select, null {If you think this is a mistake, contact the administrators of this instance and include this IP address.} other {If you think this is a mistake, contact {appealEmail} and include this IP address.}}",
+ "{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}",
+ "{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} The block ends on {expiresAt}. If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}",
"This IP address cannot be added to the blocklist.",
+ "This network block belongs to an enforcement decision. End the decision to remove it.",
"You've reached the maximum of {limit, plural, one {# application} other {# applications}}.",
"You've reached the maximum of {count, plural, one {# bookmark} other {# bookmarks}}.",
"This community has reached its active thread limit of {count}.",
@@ -40586,6 +40599,7 @@
"You need to complete your account setup before you can submit reports.",
"Channel wasn't found.",
"Unknown emoji.",
+ "Unknown enforcement decision.",
"Unknown saved media.",
"Tag wasn't found.",
"Unknown gift code.",
diff --git a/fluxer_api/src/api/report/ReportModels.ts b/fluxer_api/src/api/report/ReportModels.ts
index 5a22c7736..ee0029501 100644
--- a/fluxer_api/src/api/report/ReportModels.ts
+++ b/fluxer_api/src/api/report/ReportModels.ts
@@ -3,6 +3,7 @@
import type {ApplicationID, ChannelID, GuildID, MessageID, ReportID, UserID, WebhookID} from '@app/api/BrandedTypes';
import type {MessageAttachment, MessageEmbed, MessageStickerItem} from '@app/api/database/types/MessageTypes';
import type {ReportFlowStepRecord} from '@app/api/report/flows/ReportFlowRegistry';
+import type {ReportItemOutcome} from '@fluxer/schema/src/domains/admin/AdminSchemas';
import type {ReportProfileSnapshot} from '@fluxer/schema/src/domains/report/ReportProfileSnapshotSchemas';
export type {IARMessageContextRow, IARSubmissionRow} from '@app/api/database/types/ReportTypes';
@@ -109,4 +110,5 @@ export interface IARSubmission {
reportedProfileSnapshot: ReportProfileSnapshot | null;
legalHoldUntil: Date | null;
legalHoldReason: string | null;
+ reporterOutcome: ReportItemOutcome | null;
}
diff --git a/fluxer_api/src/api/report/ReportRepository.ts b/fluxer_api/src/api/report/ReportRepository.ts
index bf422a9c2..7ebbe17b9 100644
--- a/fluxer_api/src/api/report/ReportRepository.ts
+++ b/fluxer_api/src/api/report/ReportRepository.ts
@@ -38,6 +38,7 @@ import {
} from '@app/api/Tables';
import {ReportAlreadyResolvedError} from '@fluxer/errors/src/domains/moderation/ReportAlreadyResolvedError';
import {UnknownReportError} from '@fluxer/errors/src/domains/moderation/UnknownReportError';
+import {type ReportItemOutcome, UpdateReportRequest} from '@fluxer/schema/src/domains/admin/AdminSchemas';
import {parseReportProfileSnapshot} from '@fluxer/schema/src/domains/report/ReportProfileSnapshotSchemas';
const GET_REPORT_QUERY = IARSubmissions.select({
@@ -69,6 +70,7 @@ export class ReportRepository {
reported_profile_snapshot: data.reported_profile_snapshot ?? null,
legal_hold_until: data.legal_hold_until ?? null,
legal_hold_reason: data.legal_hold_reason ?? null,
+ reporter_outcome: data.reporter_outcome ?? null,
};
await upsertOne(IARSubmissions.insert(row));
return this.mapRowToSubmission(row);
@@ -123,6 +125,7 @@ export class ReportRepository {
resolvedByAdminId: UserID,
publicComment: string | null,
auditLogReason: string | null,
+ reporterOutcome: ReportItemOutcome | null,
): Promise<IARSubmission> {
const report = await this.getReport(reportId);
if (!report) {
@@ -142,6 +145,7 @@ export class ReportRepository {
public_comment: Db.set(publicComment),
audit_log_reason: Db.set(auditLogReason),
status: Db.set(newStatus),
+ reporter_outcome: Db.set(reporterOutcome),
},
{status: ReportStatus.PENDING},
),
@@ -156,6 +160,7 @@ export class ReportRepository {
publicComment,
auditLogReason,
status: newStatus,
+ reporterOutcome,
};
}
@@ -285,6 +290,7 @@ export class ReportRepository {
reportedProfileSnapshot: parseReportProfileSnapshot(row.reported_profile_snapshot),
legalHoldUntil: row.legal_hold_until ?? null,
legalHoldReason: row.legal_hold_reason ?? null,
+ reporterOutcome: UpdateReportRequest.shape.outcome.safeParse(row.reporter_outcome ?? undefined).data ?? null,
};
}
diff --git a/fluxer_api/src/api/report/ReportService.ts b/fluxer_api/src/api/report/ReportService.ts
index 22bc3f3e8..c6cf119ab 100644
--- a/fluxer_api/src/api/report/ReportService.ts
+++ b/fluxer_api/src/api/report/ReportService.ts
@@ -32,6 +32,8 @@ import type {
MessageReportSubmissionByReporterRow,
UserReportSubmissionByReporterRow,
} from '@app/api/database/types/ReportTypes';
+import {isDecisionExpired} from '@app/api/enforcement/DecisionStatus';
+import {listActiveFeatureLimits} from '@app/api/enforcement/FeatureLimitState';
import type {ThreadViewer} from '@app/api/experiment/ChannelThreadsGate';
import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
import {emitActivity} from '@app/api/infrastructure/activity/ActivityEvents';
@@ -44,6 +46,7 @@ import type {IStorageService} from '@app/api/infrastructure/IStorageService';
import {usesUniqueUsernames} from '@app/api/instance/AccountIdentityModeCache';
import type {InviteRepository} from '@app/api/invite/InviteRepository';
import {Logger} from '@app/api/Logger';
+import {getEnforcementDecisionRepository} from '@app/api/middleware/ServiceSingletons';
import type {Attachment} from '@app/api/models/Attachment';
import type {Channel} from '@app/api/models/Channel';
import type {Guild} from '@app/api/models/Guild';
@@ -61,10 +64,10 @@ import {
} from '@app/api/report/ReportModels';
import type {ReportRepository} from '@app/api/report/ReportRepository';
import type {IReportSearchService} from '@app/api/search/IReportSearchService';
-import {isUnderEnforcement} from '@app/api/user/ProfileVisibility';
import type {UserRepository} from '@app/api/user/repositories/UserRepository';
import {findPersonByLoginHandle, type ParsedLoginHandle, parseLoginHandle} from '@app/api/user/UniqueUsernames';
import {isAccountClosed} from '@app/api/user/UserHelpers';
+import {dispatchUserUpdate} from '@app/api/user/UserMappers';
import type {WebhookRepository} from '@app/api/webhook/WebhookRepository';
import {buildHashedAssetKey} from '@app/api/worker/utils/AssetArchiveHelpers';
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
@@ -92,6 +95,7 @@ import {InvalidDsaVerificationCodeError} from '@fluxer/errors/src/domains/modera
import {ReportBannedError} from '@fluxer/errors/src/domains/moderation/ReportBannedError';
import {UnknownReportError} from '@fluxer/errors/src/domains/moderation/UnknownReportError';
import {UnknownUserError} from '@fluxer/errors/src/domains/user/UnknownUserError';
+import type {ReportItemOutcome} from '@fluxer/schema/src/domains/admin/AdminSchemas';
import type {ReportFlowSurface} from '@fluxer/schema/src/domains/report/ReportFlowSchemas';
import {
type ReportProfileAssetSnapshot,
@@ -1305,28 +1309,22 @@ export class ReportService {
adminUserId: UserID,
publicComment: string | null,
auditLogReason: string | null,
- resolution: {outcome?: ReportOutcome; resolvedBy?: ResolvedBy} = {},
+ resolution: {outcome: ReportOutcome; resolvedBy: ResolvedBy; reporterOutcome: ReportItemOutcome | null},
): Promise<IARSubmission> {
- const report = await this.reportRepository.resolveReport(reportId, adminUserId, publicComment, auditLogReason);
+ const report = await this.reportRepository.resolveReport(
+ reportId,
+ adminUserId,
+ publicComment,
+ auditLogReason,
+ resolution.reporterOutcome,
+ );
await this.reportSearchService?.updateReport(report).catch((error) => {
Logger.error({error, reportId: report.reportId}, 'Failed to update report in search index');
});
- const outcome = resolution.outcome ?? (await this.observedOutcome(report));
- await emitReportResolved(report, outcome, resolution.resolvedBy ?? 'staff');
+ await emitReportResolved(report, resolution.outcome, resolution.resolvedBy);
return report;
}
- private async observedOutcome(report: IARSubmission): Promise<ReportOutcome> {
- if (!report.reportedUserId) return 'unspecified';
- try {
- const reported = await this.userRepository.findUnique(report.reportedUserId);
- return reported && isUnderEnforcement(reported) ? 'actioned' : 'unspecified';
- } catch (error) {
- Logger.warn({error, reportId: report.reportId}, 'Could not read the reported account for a resolved report');
- return 'unspecified';
- }
- }
-
private async gatherMessageContext(
channelId: ChannelID,
targetMessageId: MessageID,
@@ -1625,9 +1623,17 @@ export class ReportService {
return;
}
const user = await this.userRepository.findUnique(userId);
- if (user && (user.flags & UserFlags.REPORT_BANNED) !== 0n) {
+ if (!user || (user.flags & UserFlags.REPORT_BANNED) === 0n) {
+ return;
+ }
+ const limits = await listActiveFeatureLimits(getEnforcementDecisionRepository(), userId, 'reports');
+ if (limits.length === 0 || limits.some((decision) => !isDecisionExpired(decision))) {
throw new ReportBannedError();
}
+ const updated = await this.userRepository.updateFlags(userId, (flags) => flags & ~UserFlags.REPORT_BANNED);
+ if (updated) {
+ await dispatchUserUpdate(this.gatewayService, updated);
+ }
}
private getReporterRateLimitKey(reporter: ReporterMetadata): string {
diff --git a/fluxer_api/src/api/report/tests/ContentReporting.test.ts b/fluxer_api/src/api/report/tests/ContentReporting.test.ts
index 7ea6b7723..cfb4c7999 100644
--- a/fluxer_api/src/api/report/tests/ContentReporting.test.ts
+++ b/fluxer_api/src/api/report/tests/ContentReporting.test.ts
@@ -35,6 +35,7 @@ import {Users} from '@app/api/Tables';
import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
import {HTTP_STATUS, TEST_IDS} from '@app/api/test/TestConstants';
import {createBuilder, createBuilderWithoutAuth} from '@app/api/test/TestRequestBuilder';
+import {systemDmBody} from '@app/api/user/services/SystemDmMessage';
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
import {Permissions} from '@fluxer/constants/src/ChannelConstants';
import {DELETED_USER_USERNAME} from '@fluxer/constants/src/UserConstants';
@@ -208,6 +209,8 @@ describe('Content Reporting', () => {
.patch(`/admin/reports/${report.report_id}`)
.body({
status: 'resolved',
+ resolution: 'actioned',
+ outcome: 'restricted',
public_comment: publicComment,
})
.expect(HTTP_STATUS.OK)
@@ -227,7 +230,8 @@ describe('Content Reporting', () => {
reportId: report.report_id,
publicComment,
hasComment: 'yes',
- safety_email: resolveContactEmails().safetyEmail,
+ outcome: 'restricted',
+ appeals_email: resolveContactEmails().appealsEmail,
},
getInstanceProductName(),
);
@@ -235,7 +239,8 @@ describe('Content Reporting', () => {
if (!template.ok) {
throw new Error('Failed to resolve expected report_resolved email template');
}
- expect(systemMessages[0]?.content).toBe(template.value.body);
+ expect(systemMessages[0]?.content).toBe(systemDmBody(template.value.body));
+ expect(systemMessages[0]?.content).not.toContain(reporter.username!);
const systemDmChannel = (await listSystemDmChannels(harness, reporter.token))[0];
expect(systemDmChannel?.id).toBeTruthy();
const readStateRepository = new ReadStateRepository();
diff --git a/fluxer_api/src/api/report/tests/ReportRepositoryPostgresKv.test.ts b/fluxer_api/src/api/report/tests/ReportRepositoryPostgresKv.test.ts
index fba0b0981..03b736779 100644
--- a/fluxer_api/src/api/report/tests/ReportRepositoryPostgresKv.test.ts
+++ b/fluxer_api/src/api/report/tests/ReportRepositoryPostgresKv.test.ts
@@ -226,11 +226,11 @@ describe.skipIf(!dockerAvailable)('ReportRepository on Postgres KV', () => {
await repository.createReport(reportRow(112n));
const reportId = createReportID(112n);
const pending = await repository.getReport(reportId);
- await repository.resolveReport(reportId, createUserID(1n), 'first', 'first reason');
+ await repository.resolveReport(reportId, createUserID(1n), 'first', 'first reason', null);
const staleRepository = new ReportRepository();
vi.spyOn(staleRepository, 'getReport').mockResolvedValueOnce(pending);
await expect(
- staleRepository.resolveReport(reportId, createUserID(2n), 'second', 'second reason'),
+ staleRepository.resolveReport(reportId, createUserID(2n), 'second', 'second reason', null),
).rejects.toBeInstanceOf(ReportAlreadyResolvedError);
const stored = await repository.getReport(reportId);
expect(stored?.publicComment).toBe('first');
@@ -242,7 +242,7 @@ describe.skipIf(!dockerAvailable)('ReportRepository on Postgres KV', () => {
await repository.createReport(reportRow(110n));
const results = await Promise.allSettled(
['first', 'second', 'third', 'fourth', 'fifth'].map((comment) =>
- repository.resolveReport(createReportID(110n), createUserID(1n), comment, null),
+ repository.resolveReport(createReportID(110n), createUserID(1n), comment, null, null),
),
);
const fulfilled = results.filter((result) => result.status === 'fulfilled');
@@ -257,11 +257,11 @@ describe.skipIf(!dockerAvailable)('ReportRepository on Postgres KV', () => {
expect(stored?.status).toBe(1);
expect(stored?.publicComment).toBe(winner.publicComment);
await expect(
- repository.resolveReport(createReportID(110n), createUserID(1n), 'again', null),
+ repository.resolveReport(createReportID(110n), createUserID(1n), 'again', null, null),
).rejects.toBeInstanceOf(ReportAlreadyResolvedError);
- await expect(repository.resolveReport(createReportID(111n), createUserID(1n), null, null)).rejects.toBeInstanceOf(
- UnknownReportError,
- );
+ await expect(
+ repository.resolveReport(createReportID(111n), createUserID(1n), null, null, null),
+ ).rejects.toBeInstanceOf(UnknownReportError);
});
it('sets and clears a legal hold, and never creates a report', async () => {
@@ -309,7 +309,7 @@ describe.skipIf(!dockerAvailable)('ReportRepository on Postgres KV', () => {
expect((await repository.getReport(createReportID(141n)))?.reportId).toBe(141n);
const remaining = await repository.listAllReportsPaginated(10);
expect(remaining.map((report) => report.reportId)).toEqual([141n]);
- await repository.resolveReport(createReportID(141n), createUserID(1n), 'done', null);
+ await repository.resolveReport(createReportID(141n), createUserID(1n), 'done', null, null);
await repository.deleteReport(createReportID(141n));
await repository.deleteReport(createReportID(142n));
expect(await storedRows(IARSubmissions.name)).toEqual([]);
diff --git a/fluxer_api/src/api/stripe/services/StripeDisputeWebhookHandler.ts b/fluxer_api/src/api/stripe/services/StripeDisputeWebhookHandler.ts
index 066968d86..f460948d6 100644
--- a/fluxer_api/src/api/stripe/services/StripeDisputeWebhookHandler.ts
+++ b/fluxer_api/src/api/stripe/services/StripeDisputeWebhookHandler.ts
@@ -3,6 +3,7 @@
import type {UserRow} from '@app/api/database/types/UserTypes';
import type {DonationRepository} from '@app/api/donation/DonationRepository';
import type {Donor} from '@app/api/donation/models/Donor';
+import type {EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
import type {IGatewayService} from '@app/api/infrastructure/IGatewayService';
import type {KVAccountDeletionQueueService} from '@app/api/infrastructure/KVAccountDeletionQueueService';
import type {UserCacheService} from '@app/api/infrastructure/UserCacheService';
@@ -35,6 +36,7 @@ export class StripeDisputeWebhookHandler {
private kvDeletionQueue: KVAccountDeletionQueueService,
private giftReversalHandler: StripeGiftReversalHandler,
private paymentFraudService: StripePaymentFraudService,
+ private enforcement: EnforcementDecisionService,
) {}
async handleChargebackCreated(dispute: Stripe.Dispute): Promise<void> {
@@ -62,7 +64,7 @@ export class StripeDisputeWebhookHandler {
Logger.error({paymentIntentId}, 'No payment found for chargeback');
throw new StripeError('No payment found for chargeback');
}
- await this.paymentFraudService.enforceAccountFraudAction({
+ await this.paymentFraudService.limitPurchasesForFraudSignal({
userId: payment.userId,
source: 'chargeback',
signalId: dispute.id,
@@ -70,6 +72,7 @@ export class StripeDisputeWebhookHandler {
paymentIntentId,
customerId: null,
fraudType: null,
+ paymentAt: payment.createdAt,
});
}
@@ -97,7 +100,16 @@ export class StripeDisputeWebhookHandler {
if (!user) {
throw new StripeError('User not found for chargeback withdrawal');
}
- if (user.flags & UserFlags.DELETED && user.deletionReasonCode === DeletionReasons.BILLING_DISPUTE_OR_ABUSE) {
+ await this.enforcement.reverseAutomatedPurchaseLimits(
+ user.id,
+ payment.createdAt,
+ `Stripe dispute ${dispute.id} was won`,
+ );
+ if (
+ user.flags & UserFlags.DELETED &&
+ user.deletionReasonCode === DeletionReasons.BILLING_DISPUTE_OR_ABUSE &&
+ user.enforcementDecisionId === null
+ ) {
const updatedUser = await this.userRepository.updateDeletionSchedule(user, {
flags: user.flags & ~UserFlags.DELETED,
pending_deletion_at: null,
@@ -327,7 +339,7 @@ export class StripeDisputeWebhookHandler {
'Revoked unredeemed gift code after chargeback',
);
}
- await this.paymentFraudService.enforceAccountFraudAction({
+ await this.paymentFraudService.limitPurchasesForFraudSignal({
userId: giftCode.createdByUserId,
source: 'chargeback',
signalId: extractId(dispute.charge) ?? dispute.id,
@@ -335,6 +347,7 @@ export class StripeDisputeWebhookHandler {
paymentIntentId: giftCode.stripePaymentIntentId,
customerId: null,
fraudType: null,
+ paymentAt: await this.paymentFraudService.resolvePaymentTime(giftCode.stripePaymentIntentId, giftCode.createdAt),
});
}
}
diff --git a/fluxer_api/src/api/stripe/services/StripePaymentFraudService.ts b/fluxer_api/src/api/stripe/services/StripePaymentFraudService.ts
index ab1773b77..e563ecf1a 100644
--- a/fluxer_api/src/api/stripe/services/StripePaymentFraudService.ts
+++ b/fluxer_api/src/api/stripe/services/StripePaymentFraudService.ts
@@ -1,27 +1,21 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
-import {revokeAllAuthSessions} from '@app/api/auth/AuthSessionRevocation';
import type {UserID} from '@app/api/BrandedTypes';
import {SYSTEM_USER_ID} from '@app/api/constants/Core';
import type {DonationRepository} from '@app/api/donation/DonationRepository';
+import {decisionAuditMetadata, type EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
import type {IGatewayService} from '@app/api/infrastructure/IGatewayService';
-import type {KVAccountDeletionQueueService} from '@app/api/infrastructure/KVAccountDeletionQueueService';
-import type {UserCacheService} from '@app/api/infrastructure/UserCacheService';
import {Logger} from '@app/api/Logger';
import {getBillingRepository} from '@app/api/middleware/ServiceRegistry';
import type {User} from '@app/api/models/User';
-import type {OAuth2TokenRepository} from '@app/api/oauth/repositories/OAuth2TokenRepository';
import {mirrorBestEffort} from '@app/api/stripe/StripeMirror';
import {extractId, isMissingOrCancelledSubscriptionError} from '@app/api/stripe/StripeUtils';
import type {UserRepository} from '@app/api/user/repositories/UserRepository';
-import {reschedulePendingDeletion} from '@app/api/user/services/PendingDeletionCoordinator';
import {dispatchUserUpdate} from '@app/api/user/UserMappers';
import {DeletionReasons} from '@fluxer/constants/src/Core';
-import {UserFlags} from '@fluxer/constants/src/UserConstants';
import {StripeError} from '@fluxer/errors/src/domains/payment/StripeError';
import type {ICacheService} from '@pkgs/cache/src/ICacheService';
-import type {IEmailService} from '@pkgs/email/src/IEmailService';
import {ms, seconds} from 'itty-time';
import type Stripe from 'stripe';
@@ -31,17 +25,14 @@ type RadarValueListItemType = RadarValueListCreateParams['item_type'];
interface StripePaymentFraudServiceDeps {
stripe: Stripe | null;
userRepository: UserRepository;
- userCacheService: UserCacheService;
- emailService: IEmailService;
gatewayService: IGatewayService;
donationRepository: DonationRepository;
cacheService: ICacheService;
auditService: AdminAuditService;
- kvDeletionQueue: KVAccountDeletionQueueService;
- oauth2Tokens: Pick<OAuth2TokenRepository, 'deleteAllAccessTokensForUser' | 'deleteAllRefreshTokensForUser'>;
+ enforcement: EnforcementDecisionService;
}
-interface FraudAccountActionParams {
+interface FraudSignalParams {
userId: UserID;
source: 'chargeback' | 'early_fraud_warning';
signalId: string;
@@ -49,6 +40,7 @@ interface FraudAccountActionParams {
paymentIntentId: string | null;
customerId: string | null;
fraudType: string | null;
+ paymentAt: Date;
extraMetadata?: Map<string, string>;
}
@@ -56,6 +48,7 @@ interface ResolvedFraudUserTarget {
customerId: string | null;
kind: 'direct_purchase' | 'donation' | 'gift_purchase' | 'unknown';
paymentIntentId: string | null;
+ paymentAt: Date;
userId: UserID | null;
}
@@ -65,7 +58,6 @@ interface RadarValueListConfig {
name: string;
}
-const FRAUD_DELETION_DELAY_MS = ms('60 days');
const OPERATION_COMPLETION_TTL_SECONDS = seconds('30 days');
const OPERATION_LOCK_TTL_SECONDS = seconds('2 minutes');
const OPERATION_LOCK_MAX_WAIT_MS = ms('20 seconds');
@@ -95,6 +87,10 @@ const RADAR_VALUE_LISTS: Record<'cardFingerprint' | 'customerId' | 'email' | 'ip
},
};
+function chargeTime(charge: Stripe.Charge): Date {
+ return new Date(charge.created * 1000);
+}
+
export class StripePaymentFraudService {
constructor(private readonly deps: StripePaymentFraudServiceDeps) {}
@@ -151,7 +147,7 @@ export class StripePaymentFraudService {
);
return;
}
- await this.enforceAccountFraudAction({
+ await this.limitPurchasesForFraudSignal({
userId: userTarget.userId,
source: 'early_fraud_warning',
signalId: warning.id,
@@ -159,11 +155,18 @@ export class StripePaymentFraudService {
paymentIntentId: userTarget.paymentIntentId,
customerId: userTarget.customerId,
fraudType: warning.fraud_type,
+ paymentAt: userTarget.paymentAt,
extraMetadata: new Map([['target_kind', userTarget.kind]]),
});
}
- async enforceAccountFraudAction({
+ async resolvePaymentTime(paymentIntentId: string | null, fallback: Date): Promise<Date> {
+ if (!paymentIntentId) return fallback;
+ const payment = await this.deps.userRepository.getPaymentByPaymentIntent(paymentIntentId);
+ return payment?.createdAt ?? fallback;
+ }
+
+ async limitPurchasesForFraudSignal({
userId,
source,
signalId,
@@ -171,8 +174,9 @@ export class StripePaymentFraudService {
paymentIntentId,
customerId,
fraudType,
+ paymentAt,
extraMetadata,
- }: FraudAccountActionParams): Promise<void> {
+ }: FraudSignalParams): Promise<void> {
const actionId = paymentIntentId ?? chargeId ?? `${source}:${signalId}`;
await this.runOnce(
'stripe:payment_fraud:account_action',
@@ -192,37 +196,11 @@ export class StripePaymentFraudService {
if (!user) {
throw new StripeError('User not found for payment fraud action');
}
- const pendingDeletionAt = new Date(Date.now() + FRAUD_DELETION_DELAY_MS);
const cancelledUser = await this.cancelStripeSubscriptionImmediately(user);
- const subscriptionCancelled = cancelledUser !== null;
- const currentUser = cancelledUser ?? user;
const auditReason = this.getAuditReason({source, fraudType});
- const updatedUser = await this.deps.userRepository.updateDeletionSchedule(currentUser, {
- flags: (currentUser.flags | UserFlags.DELETED) & ~UserFlags.SELF_DELETED,
- pending_deletion_at: pendingDeletionAt,
- deletion_reason_code: DeletionReasons.BILLING_DISPUTE_OR_ABUSE,
- deletion_public_reason: 'Payment fraud',
- deletion_audit_log_reason: auditReason,
- deletion_scheduled_by: SYSTEM_USER_ID,
- deletion_scheduled_at: new Date(),
- });
- await reschedulePendingDeletion({
- userId,
- currentPendingDeletionAt: currentUser.pendingDeletionAt,
- nextPendingDeletionAt: pendingDeletionAt,
- deletionReasonCode: DeletionReasons.BILLING_DISPUTE_OR_ABUSE,
- deletionQueue: this.deps.kvDeletionQueue,
- });
- await revokeAllAuthSessions({users: this.deps.userRepository, gateway: this.deps.gatewayService}, userId);
- await this.deps.oauth2Tokens.deleteAllAccessTokensForUser(userId);
- await this.deps.oauth2Tokens.deleteAllRefreshTokensForUser(userId);
- await this.deps.userCacheService.setUserPartialResponseFromUser(updatedUser);
- await dispatchUserUpdate(this.deps.gatewayService, updatedUser);
const metadata = new Map<string, string>([
- ['days', '60'],
['source', source],
- ['scheduled_for', pendingDeletionAt.toISOString()],
- ['subscription_cancelled', subscriptionCancelled ? 'true' : 'false'],
+ ['subscription_cancelled', cancelledUser ? 'true' : 'false'],
]);
if (chargeId) {
metadata.set('charge_id', chargeId);
@@ -236,45 +214,26 @@ export class StripePaymentFraudService {
if (fraudType) {
metadata.set('fraud_type', fraudType);
}
- if (extraMetadata) {
- for (const [key, value] of extraMetadata) {
- metadata.set(key, value);
- }
+ for (const [key, value] of extraMetadata ?? []) {
+ metadata.set(key, value);
}
+ const decision = await this.deps.enforcement.recordAutomatedPurchaseLimit({
+ subject: cancelledUser ?? user,
+ reasonCode: DeletionReasons.PAYMENT_FRAUD,
+ paymentAt,
+ internalNote: [auditReason, ...[...metadata].map(([key, value]) => `${key}: ${value}`)].join('\n'),
+ });
await this.deps.auditService.createAuditLog({
adminUserId: SYSTEM_USER_ID,
targetType: 'user',
targetId: BigInt(userId),
- action: 'schedule_deletion',
+ action: 'limit_features',
auditLogReason: auditReason,
- metadata,
+ metadata: new Map([...metadata, ['limit', 'purchases'], ...decisionAuditMetadata(decision)]),
});
- if (updatedUser.email) {
- try {
- await this.deps.emailService.sendScheduledDeletionNotification(
- updatedUser.email,
- updatedUser.username,
- pendingDeletionAt,
- updatedUser.deletionPublicReason ?? null,
- updatedUser.locale,
- );
- } catch (error) {
- Logger.warn({error, userId: userId.toString()}, 'Failed to send payment fraud deletion email');
- }
- }
Logger.info(
- {
- chargeId,
- customerId,
- fraudType,
- paymentIntentId,
- pendingDeletionAt,
- signalId,
- source,
- subscriptionCancelled,
- userId,
- },
- 'Applied payment fraud account enforcement',
+ {chargeId, customerId, fraudType, paymentIntentId, signalId, source, userId},
+ 'Limited purchases after a payment fraud signal pending review',
);
},
);
@@ -296,6 +255,7 @@ export class StripePaymentFraudService {
customerId,
kind: 'gift_purchase',
paymentIntentId,
+ paymentAt: await this.resolvePaymentTime(paymentIntentId, giftCode.createdAt),
userId: giftCode.createdByUserId,
};
}
@@ -305,6 +265,7 @@ export class StripePaymentFraudService {
customerId: customerId ?? payment.stripeCustomerId,
kind: 'direct_purchase',
paymentIntentId,
+ paymentAt: payment.createdAt,
userId: payment.userId,
};
}
@@ -316,6 +277,7 @@ export class StripePaymentFraudService {
customerId,
kind: 'donation',
paymentIntentId,
+ paymentAt: chargeTime(charge),
userId: null,
};
}
@@ -325,6 +287,7 @@ export class StripePaymentFraudService {
customerId,
kind: 'direct_purchase',
paymentIntentId,
+ paymentAt: chargeTime(charge),
userId: user.id,
};
}
@@ -342,6 +305,7 @@ export class StripePaymentFraudService {
customerId,
kind: 'unknown',
paymentIntentId,
+ paymentAt: chargeTime(charge),
userId: null,
};
}
diff --git a/fluxer_api/src/api/stripe/services/StripeWebhookService.ts b/fluxer_api/src/api/stripe/services/StripeWebhookService.ts
index f442412fb..1697b939c 100644
--- a/fluxer_api/src/api/stripe/services/StripeWebhookService.ts
+++ b/fluxer_api/src/api/stripe/services/StripeWebhookService.ts
@@ -4,13 +4,13 @@ import type {AdminRepository} from '@app/api/admin/AdminRepository';
import {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
import type {BillingRepository} from '@app/api/billing/repositories/BillingRepository';
import type {DonationRepository} from '@app/api/donation/DonationRepository';
+import type {EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
import type {IGatewayService} from '@app/api/infrastructure/IGatewayService';
import type {ISnowflakeService} from '@app/api/infrastructure/ISnowflakeService';
import type {KVAccountDeletionQueueService} from '@app/api/infrastructure/KVAccountDeletionQueueService';
import type {PremiumStateReconciliationQueueService} from '@app/api/infrastructure/PremiumStateReconciliationQueueService';
import type {UserCacheService} from '@app/api/infrastructure/UserCacheService';
import {Logger} from '@app/api/Logger';
-import {OAuth2TokenRepository} from '@app/api/oauth/repositories/OAuth2TokenRepository';
import type {StoreEntitlementService} from '@app/api/store_billing/StoreEntitlementService';
import {getAcceptedWebhookSecrets} from '@app/api/stripe/BillingConfigCache';
import type {ProductRegistry} from '@app/api/stripe/ProductRegistry';
@@ -62,6 +62,7 @@ export class StripeWebhookService {
snowflakeService: ISnowflakeService,
private billingRepository: BillingRepository,
private refundService: StripeRefundService,
+ enforcementService: EnforcementDecisionService,
storeEntitlementService: StoreEntitlementService | null = null,
) {
this.checkoutHandler = new StripeCheckoutWebhookHandler(
@@ -86,14 +87,11 @@ export class StripeWebhookService {
this.paymentFraudService = new StripePaymentFraudService({
stripe,
userRepository,
- userCacheService,
- emailService,
gatewayService,
donationRepository,
cacheService,
auditService,
- kvDeletionQueue,
- oauth2Tokens: new OAuth2TokenRepository(),
+ enforcement: enforcementService,
});
this.subscriptionHandler = new StripeSubscriptionWebhookHandler(
userRepository,
@@ -114,6 +112,7 @@ export class StripeWebhookService {
kvDeletionQueue,
giftReversalHandler,
this.paymentFraudService,
+ enforcementService,
);
}
diff --git a/fluxer_api/src/api/stripe/tests/StripeWebhookDispute.test.ts b/fluxer_api/src/api/stripe/tests/StripeWebhookDispute.test.ts
index 6834ed39b..755bb69f4 100644
--- a/fluxer_api/src/api/stripe/tests/StripeWebhookDispute.test.ts
+++ b/fluxer_api/src/api/stripe/tests/StripeWebhookDispute.test.ts
@@ -16,7 +16,7 @@ import {createBuilder, createBuilderWithoutAuth} from '@app/api/test/TestRequest
import {PaymentRepository} from '@app/api/user/repositories/PaymentRepository';
import {UserRepository} from '@app/api/user/repositories/UserRepository';
import {DeletionReasons} from '@fluxer/constants/src/Core';
-import {UserFlags, UserPremiumTypes} from '@fluxer/constants/src/UserConstants';
+import {PremiumFlags, UserFlags, UserPremiumTypes} from '@fluxer/constants/src/UserConstants';
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, test} from 'vitest';
interface UserDataExistsResponse {
@@ -46,7 +46,7 @@ describe('Stripe Webhook Dispute Events', () => {
server.resetHandlers();
});
describe('charge.dispute.created', () => {
- test('schedules account deletion on chargeback for direct purchase', async () => {
+ test('limits purchases on chargeback for direct purchase and never closes the account', async () => {
const purchaser = await createTestAccount(harness);
const paymentIntentId = 'pi_test_chargeback_123';
const paymentRepo = new PaymentRepository();
@@ -77,14 +77,12 @@ describe('Stripe Webhook Dispute Events', () => {
const updatedUser = await createBuilderWithoutAuth<UserDataExistsResponse>(harness)
.get(`/test/users/${purchaser.userId}/data-exists`)
.execute();
- expect(updatedUser.has_deleted_flag).toBe(true);
- expect(updatedUser.deletion_reason_code).toBe(DeletionReasons.BILLING_DISPUTE_OR_ABUSE);
- expect(updatedUser.pending_deletion_at).not.toBeNull();
- const deletionDate = new Date(updatedUser.pending_deletion_at!);
- const now = new Date();
- const daysDifference = (deletionDate.getTime() - now.getTime()) / (24 * 60 * 60 * 1000);
- expect(daysDifference).toBeGreaterThan(58);
- expect(daysDifference).toBeLessThan(62);
+ expect(updatedUser.has_deleted_flag).toBe(false);
+ expect(updatedUser.pending_deletion_at).toBeNull();
+ const user = await new UserRepository().findUniqueAssert(createUserID(BigInt(purchaser.userId)));
+ expect(user.premiumFlags & PremiumFlags.PURCHASE_DISABLED).toBe(PremiumFlags.PURCHASE_DISABLED);
+ expect(user.flags & UserFlags.DISABLED).toBe(0n);
+ expect(user.tempBannedUntil).toBeNull();
});
test('reports fraudulent disputes to Stripe and populates active default blocklists', async () => {
const purchaser = await createTestAccount(harness);
@@ -157,7 +155,7 @@ describe('Stripe Webhook Dispute Events', () => {
]),
);
});
- test('revokes premium and schedules deletion for gift chargeback', async () => {
+ test('revokes premium and limits the purchaser for gift chargeback', async () => {
const purchaser = await createTestAccount(harness);
const redeemer = await createTestAccount(harness);
const paymentIntentId = 'pi_test_gift_chargeback_123';
@@ -225,9 +223,10 @@ describe('Stripe Webhook Dispute Events', () => {
const purchaserAfterDispute = await createBuilderWithoutAuth<UserDataExistsResponse>(harness)
.get(`/test/users/${purchaser.userId}/data-exists`)
.execute();
- expect(purchaserAfterDispute.has_deleted_flag).toBe(true);
- expect(purchaserAfterDispute.deletion_reason_code).toBe(DeletionReasons.BILLING_DISPUTE_OR_ABUSE);
- expect(purchaserAfterDispute.pending_deletion_at).not.toBeNull();
+ expect(purchaserAfterDispute.has_deleted_flag).toBe(false);
+ expect(purchaserAfterDispute.pending_deletion_at).toBeNull();
+ const purchaserUser = await userRepository.findUniqueAssert(createUserID(BigInt(purchaser.userId)));
+ expect(purchaserUser.premiumFlags & PremiumFlags.PURCHASE_DISABLED).toBe(PremiumFlags.PURCHASE_DISABLED);
});
test('preserves remaining premium when other redeemed gifts still cover the user', async () => {
const purchaser = await createTestAccount(harness);
@@ -306,7 +305,7 @@ describe('Stripe Webhook Dispute Events', () => {
});
});
describe('charge.dispute.closed', () => {
- test('unsuspends account when chargeback is won', async () => {
+ test('cancels a payment closure from before decisions when the chargeback is won', async () => {
const purchaser = await createTestAccount(harness);
const paymentIntentId = 'pi_test_dispute_won_123';
const paymentRepo = new PaymentRepository();
@@ -355,7 +354,7 @@ describe('Stripe Webhook Dispute Events', () => {
expect(userAfterWin.pending_deletion_at).toBeNull();
const emails = await listTestEmails(harness, {recipient: purchaser.email});
expect(findLastTestEmail(emails, 'account_deletion_cancelled')).not.toBeNull();
- expect(findLastTestEmail(emails, 'unban_notification')).toBeNull();
+ expect(findLastTestEmail(emails, 'enforcement_ended')).toBeNull();
});
test('does not unsuspend when chargeback is lost', async () => {
const purchaser = await createTestAccount(harness);
diff --git a/fluxer_api/src/api/stripe/tests/StripeWebhookEarlyFraudWarning.test.ts b/fluxer_api/src/api/stripe/tests/StripeWebhookEarlyFraudWarning.test.ts
index ec7d19518..115499c22 100644
--- a/fluxer_api/src/api/stripe/tests/StripeWebhookEarlyFraudWarning.test.ts
+++ b/fluxer_api/src/api/stripe/tests/StripeWebhookEarlyFraudWarning.test.ts
@@ -15,8 +15,7 @@ import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHa
import {createStripeApiHandlers} from '@app/api/test/msw/handlers/StripeApiHandlers';
import {server} from '@app/api/test/msw/server';
import {UserRepository} from '@app/api/user/repositories/UserRepository';
-import {DeletionReasons} from '@fluxer/constants/src/Core';
-import {UserFlags, UserPremiumTypes} from '@fluxer/constants/src/UserConstants';
+import {PremiumFlags, UserFlags, UserPremiumTypes} from '@fluxer/constants/src/UserConstants';
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, test} from 'vitest';
describe('Stripe Webhook Early Fraud Warning', () => {
@@ -60,7 +59,7 @@ describe('Stripe Webhook Early Fraud Warning', () => {
});
return account;
}
- test('refunds, reports, blocks, cancels subscription, and schedules deletion for actionable fraud warnings', async () => {
+ test('refunds, reports, blocks, cancels subscription, and limits purchases pending review for actionable fraud warnings', async () => {
const chargeId = 'ch_test_efw_full';
const customerId = 'cus_test_efw_full';
const paymentIntentId = 'pi_test_efw_full';
@@ -120,15 +119,13 @@ describe('Stripe Webhook Early Fraud Warning', () => {
const userRepository = new UserRepository();
const updatedUser = await userRepository.findUnique(createUserID(BigInt(account.userId)));
expect(updatedUser).not.toBeNull();
- expect(updatedUser!.flags & UserFlags.DELETED).toBe(UserFlags.DELETED);
- expect(updatedUser!.deletionReasonCode).toBe(DeletionReasons.BILLING_DISPUTE_OR_ABUSE);
+ expect(updatedUser!.flags & UserFlags.DELETED).toBe(0n);
+ expect(updatedUser!.flags & UserFlags.DISABLED).toBe(0n);
+ expect(updatedUser!.pendingDeletionAt).toBeNull();
+ expect(updatedUser!.premiumFlags & PremiumFlags.PURCHASE_DISABLED).toBe(PremiumFlags.PURCHASE_DISABLED);
expect(updatedUser!.stripeSubscriptionId).toBeNull();
- expect(updatedUser!.pendingDeletionAt).not.toBeNull();
- expect(await oauthTokens.getAccessToken(`access-${account.userId}`)).toBeNull();
- expect(await oauthTokens.listRefreshTokensForUser(accountUserId)).toHaveLength(0);
- const daysDifference = (updatedUser!.pendingDeletionAt!.getTime() - Date.now()) / (24 * 60 * 60 * 1000);
- expect(daysDifference).toBeGreaterThan(58);
- expect(daysDifference).toBeLessThan(62);
+ expect(await oauthTokens.getAccessToken(`access-${account.userId}`)).not.toBeNull();
+ expect(await oauthTokens.listRefreshTokensForUser(accountUserId)).toHaveLength(1);
expect(stripeHandlers.spies.retrievedCharges).toEqual([chargeId]);
expect(stripeHandlers.spies.updatedCharges).toHaveLength(1);
expect(stripeHandlers.spies.createdRefunds).toHaveLength(1);
@@ -144,19 +141,22 @@ describe('Stripe Webhook Early Fraud Warning', () => {
const auditRepository = new AdminRepository();
const auditLogs = await auditRepository.listAllAuditLogsPaginated(50);
const matchingLogs = auditLogs.filter((log) => {
- return log.action === 'schedule_deletion' && log.targetId === BigInt(account.userId);
+ return log.action === 'limit_features' && log.targetId === BigInt(account.userId);
});
expect(matchingLogs).toHaveLength(1);
expect(matchingLogs[0]!.adminUserId.toString()).toBe('0');
expect(matchingLogs[0]!.auditLogReason).toContain('Stripe early fraud warning');
- expect(matchingLogs[0]!.metadata.get('days')).toBe('60');
+ expect(matchingLogs[0]!.metadata.get('limit')).toBe('purchases');
+ expect(matchingLogs[0]!.metadata.get('kind')).toBe('feature_limit');
expect(matchingLogs[0]!.metadata.get('charge_id')).toBe(chargeId);
- const email = findLastTestEmail(
- await listTestEmails(harness, {recipient: account.email}),
- 'scheduled_deletion_notification',
- );
- expect(email?.metadata.reason).toBe('Payment fraud');
+ expect(await auditRepository.isEmailBanned(account.email)).toBe(false);
+ const emails = await listTestEmails(harness, {recipient: account.email});
+ expect(findLastTestEmail(emails, 'account_deletion_scheduled_requested')).toBeNull();
+ const email = findLastTestEmail(emails, 'enforcement_notice');
+ expect(email?.metadata).toMatchObject({kind_label: 'feature_limit', rule_title: 'Payments'});
+ expect(email?.metadata.effects).toContain('until a person on our team reviews this');
expect(JSON.stringify(email)).not.toContain('made_with_stolen_card');
+ expect(JSON.stringify(email)).not.toContain(chargeId);
});
test('does nothing for non-actionable early fraud warnings', async () => {
const chargeId = 'ch_test_efw_noop';
@@ -202,7 +202,7 @@ describe('Stripe Webhook Early Fraud Warning', () => {
expect(stripeHandlers.spies.cancelledSubscriptions).toHaveLength(0);
expect(stripeHandlers.spies.createdValueLists).toHaveLength(0);
});
- test('does not duplicate account enforcement when a chargeback follows the same fraud warning', async () => {
+ test('does not record a second limit when a chargeback follows the same fraud warning', async () => {
const chargeId = 'ch_test_efw_duplicate';
const customerId = 'cus_test_efw_duplicate';
const paymentIntentId = 'pi_test_efw_duplicate';
@@ -238,8 +238,7 @@ describe('Stripe Webhook Early Fraud Warning', () => {
});
const userRepository = new UserRepository();
const userAfterEarlyWarning = await userRepository.findUnique(createUserID(BigInt(account.userId)));
- expect(userAfterEarlyWarning?.pendingDeletionAt).not.toBeNull();
- const firstPendingDeletionAt = userAfterEarlyWarning!.pendingDeletionAt!.toISOString();
+ expect(userAfterEarlyWarning!.premiumFlags & PremiumFlags.PURCHASE_DISABLED).toBe(PremiumFlags.PURCHASE_DISABLED);
await sendStripeWebhook(harness, {
type: 'charge.dispute.created',
data: {
@@ -252,12 +251,12 @@ describe('Stripe Webhook Early Fraud Warning', () => {
},
});
const userAfterChargeback = await userRepository.findUnique(createUserID(BigInt(account.userId)));
- expect(userAfterChargeback!.pendingDeletionAt!.toISOString()).toBe(firstPendingDeletionAt);
+ expect(userAfterChargeback!.pendingDeletionAt).toBeNull();
expect(stripeHandlers.spies.cancelledSubscriptions).toEqual([subscriptionId]);
const auditRepository = new AdminRepository();
const auditLogs = await auditRepository.listAllAuditLogsPaginated(50);
const matchingLogs = auditLogs.filter((log) => {
- return log.action === 'schedule_deletion' && log.targetId === BigInt(account.userId);
+ return log.action === 'limit_features' && log.targetId === BigInt(account.userId);
});
expect(matchingLogs).toHaveLength(1);
});
diff --git a/fluxer_api/src/api/test/TestHarnessController.ts b/fluxer_api/src/api/test/TestHarnessController.ts
index de4bbd7c7..ff815fcac 100644
--- a/fluxer_api/src/api/test/TestHarnessController.ts
+++ b/fluxer_api/src/api/test/TestHarnessController.ts
@@ -1311,6 +1311,12 @@ export function TestHarnessController(app: HonoApp) {
isEmailEnabled: () => workerDeps.instanceConfigRepository.isEmailEnabled(),
activityTracker: workerDeps.activityTracker,
deletionEligibilityService: workerDeps.deletionEligibilityService,
+ userUpdateDeps: {
+ userCacheService: workerDeps.userCacheService,
+ gatewayService: workerDeps.gatewayService,
+ userRepository: workerDeps.userRepository,
+ guildRepository: workerDeps.guildRepository,
+ },
});
Logger.info(result, '[test/worker/process-inactivity-deletions] Completed successfully');
return ctx.json(
@@ -1319,6 +1325,7 @@ export function TestHarnessController(app: HonoApp) {
processed: result.warningsSent + result.deletionsScheduled,
warnings_sent: result.warningsSent,
deletions_scheduled: result.deletionsScheduled,
+ suspensions_cleared: result.suspensionsCleared,
errors: result.errors,
},
200,
diff --git a/fluxer_api/src/api/types/HonoEnv.ts b/fluxer_api/src/api/types/HonoEnv.ts
index 33fd353b9..64a78a74b 100644
--- a/fluxer_api/src/api/types/HonoEnv.ts
+++ b/fluxer_api/src/api/types/HonoEnv.ts
@@ -18,6 +18,7 @@ import type {ThreadService} from '@app/api/channel/services/thread/ThreadService
import type {ConnectionRequestService} from '@app/api/connection/ConnectionRequestService';
import type {ConnectionService} from '@app/api/connection/ConnectionService';
import type {DonationService} from '@app/api/donation/DonationService';
+import type {NetworkBlock} from '@app/api/enforcement/NetworkBlockError';
import type {FavoriteMemeRequestService} from '@app/api/favorite_meme/FavoriteMemeRequestService';
import type {FavoriteMemeService} from '@app/api/favorite_meme/FavoriteMemeService';
import type {GatewayRequestService} from '@app/api/gateway/GatewayRequestService';
@@ -87,6 +88,7 @@ export interface HonoEnv {
user: User;
requestId?: string;
clientIpResolution?: ClientIpResolution;
+ blockedNetworkSignIn?: NetworkBlock;
adminService: AdminService;
adminArchiveService: AdminArchiveService;
adminApiKeyService: AdminApiKeyService;
diff --git a/fluxer_api/src/api/user/UserHelpers.ts b/fluxer_api/src/api/user/UserHelpers.ts
index a0c806cee..008f69d4c 100644
--- a/fluxer_api/src/api/user/UserHelpers.ts
+++ b/fluxer_api/src/api/user/UserHelpers.ts
@@ -34,6 +34,12 @@ function isAccountDisabled(user: Pick<User, 'flags' | 'tempBannedUntil'>, now =
return user.tempBannedUntil == null || user.tempBannedUntil.getTime() > now;
}
+export function isHeldByDecision(
+ user: Pick<User, 'flags' | 'deletionStartedAt' | 'tempBannedUntil' | 'enforcementDecisionId'>,
+): boolean {
+ return user.enforcementDecisionId !== null && isSignInRefused(user);
+}
+
export function isSignInRefused(user: Pick<User, 'flags' | 'deletionStartedAt' | 'tempBannedUntil'>): boolean {
return isAccountClosed(user) || isTemporarilyBanned(user);
}
diff --git a/fluxer_api/src/api/user/repositories/account/UserAccountRepository.ts b/fluxer_api/src/api/user/repositories/account/UserAccountRepository.ts
index 4210c045a..4f0546c56 100644
--- a/fluxer_api/src/api/user/repositories/account/UserAccountRepository.ts
+++ b/fluxer_api/src/api/user/repositories/account/UserAccountRepository.ts
@@ -31,6 +31,7 @@ export interface UserDeletionScheduleUpdate {
deletion_scheduled_by?: UserID | null;
deletion_scheduled_at?: Date | null;
temp_banned_until?: Date | null;
+ enforcement_decision_id?: bigint | null;
first_refund_at?: Date | null;
}
diff --git a/fluxer_api/src/api/user/services/SystemDmMessage.ts b/fluxer_api/src/api/user/services/SystemDmMessage.ts
index a2f999c3b..e7a1397e6 100644
--- a/fluxer_api/src/api/user/services/SystemDmMessage.ts
+++ b/fluxer_api/src/api/user/services/SystemDmMessage.ts
@@ -5,10 +5,23 @@ import type {ChannelService} from '@app/api/channel/services/ChannelService';
import {SYSTEM_USER_ID} from '@app/api/constants/Core';
import {SYSTEM_THREAD_VIEWER} from '@app/api/experiment/ChannelThreadsGate';
import type {UserCacheService} from '@app/api/infrastructure/UserCacheService';
-import type {RequestCache} from '@app/api/middleware/RequestCacheMiddleware';
+import {Logger} from '@app/api/Logger';
+import {createRequestCache, type RequestCache} from '@app/api/middleware/RequestCacheMiddleware';
import type {User} from '@app/api/models/User';
+import type {UserRepository} from '@app/api/user/repositories/UserRepository';
import type {UserChannelService} from '@app/api/user/services/UserChannelService';
+export interface SystemDmDeps {
+ channelService: ChannelService;
+ userChannelService: UserChannelService;
+ userCacheService: UserCacheService;
+}
+
+export function systemDmBody(emailBody: string): string {
+ const body = emailBody.split('\n\n').slice(1, -1).join('\n\n');
+ return body.charAt(0).toLocaleUpperCase() + body.slice(1);
+}
+
export async function sendSystemDmMessage(params: {
systemUser: User;
recipientId: UserID;
@@ -33,3 +46,29 @@ export async function sendSystemDmMessage(params: {
requestCache,
});
}
+
+export async function trySendSystemDm(
+ deps: SystemDmDeps,
+ users: Pick<UserRepository, 'findUniqueAssert'>,
+ recipientId: UserID,
+ content: string,
+): Promise<boolean> {
+ const requestCache = createRequestCache();
+ try {
+ await sendSystemDmMessage({
+ systemUser: await users.findUniqueAssert(SYSTEM_USER_ID),
+ recipientId,
+ content,
+ userChannelService: deps.userChannelService,
+ channelService: deps.channelService,
+ userCacheService: deps.userCacheService,
+ requestCache,
+ });
+ return true;
+ } catch (error) {
+ Logger.warn({recipientId: recipientId.toString(), error}, 'Failed to send a system DM');
+ return false;
+ } finally {
+ requestCache.clear();
+ }
+}
diff --git a/fluxer_api/src/api/user/services/UserDeletionEligibilityService.ts b/fluxer_api/src/api/user/services/UserDeletionEligibilityService.ts
index cf01e460b..4653d84bb 100644
--- a/fluxer_api/src/api/user/services/UserDeletionEligibilityService.ts
+++ b/fluxer_api/src/api/user/services/UserDeletionEligibilityService.ts
@@ -3,6 +3,7 @@
import type {UserID} from '@app/api/BrandedTypes';
import {Config} from '@app/api/Config';
import type {User} from '@app/api/models/User';
+import {isTemporarilyBanned} from '@app/api/user/UserHelpers';
import {getValidTimestamp, parseStoredTimestamp} from '@app/api/utils/TimestampUtils';
import {UserFlags} from '@fluxer/constants/src/UserConstants';
import type {IKVProvider} from '@pkgs/kv_client/src/IKVProvider';
@@ -27,6 +28,9 @@ export class UserDeletionEligibilityService {
if (user.pendingDeletionAt !== null) {
return false;
}
+ if (isTemporarilyBanned(user)) {
+ return false;
+ }
if (user.lastActiveAt === null) {
return false;
}
diff --git a/fluxer_api/src/api/user/services/UserDeletionService.ts b/fluxer_api/src/api/user/services/UserDeletionService.ts
index c90fcae67..921e145d6 100644
--- a/fluxer_api/src/api/user/services/UserDeletionService.ts
+++ b/fluxer_api/src/api/user/services/UserDeletionService.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {randomInt} from 'node:crypto';
+import type {AdminRepository} from '@app/api/admin/AdminRepository';
import {deleteRecoveryKit} from '@app/api/auth/AuthRecoveryKit';
import {revokeAllAuthSessions} from '@app/api/auth/AuthSessionRevocation';
import {createMessageID, createUserID, type MessageID, type UserID} from '@app/api/BrandedTypes';
@@ -9,6 +10,7 @@ import {mapChannelToResponse} from '@app/api/channel/ChannelMappers';
import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
import {UserMessageDeletionService} from '@app/api/channel/services/message/UserMessageDeletionService';
import type {ConnectionRepository} from '@app/api/connection/ConnectionRepository';
+import {IP_BAN_REFRESH_CHANNEL} from '@app/api/constants/IpBan';
import type {FavoriteMemeRepository} from '@app/api/favorite_meme/FavoriteMemeRepository';
import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
import {emitActivity} from '@app/api/infrastructure/activity/ActivityEvents';
@@ -20,6 +22,7 @@ import type {UserCacheService} from '@app/api/infrastructure/UserCacheService';
import {Logger} from '@app/api/Logger';
import {createRequestCache} from '@app/api/middleware/RequestCacheMiddleware';
import {getBillingRepository} from '@app/api/middleware/ServiceRegistry';
+import {getEnforcementDecisionRepository} from '@app/api/middleware/ServiceSingletons';
import type {ApplicationRepository} from '@app/api/oauth/repositories/ApplicationRepository';
import type {OAuth2TokenRepository} from '@app/api/oauth/repositories/OAuth2TokenRepository';
import type {StoreEntitlementService} from '@app/api/store_billing/StoreEntitlementService';
@@ -35,6 +38,7 @@ import {
UserFlags,
} from '@fluxer/constants/src/UserConstants';
import * as BucketUtils from '@fluxer/snowflake/src/SnowflakeBuckets';
+import type {ICacheService} from '@pkgs/cache/src/ICacheService';
import type {IWorkerService} from '@pkgs/worker/src/contracts/IWorkerService';
import {ms} from 'itty-time';
import type Stripe from 'stripe';
@@ -58,6 +62,17 @@ interface UserDeletionDependencies {
workerService: IWorkerService<WorkerTaskName>;
connectionRepository: ConnectionRepository;
storeEntitlementService: StoreEntitlementService;
+ adminRepository: AdminRepository;
+ cacheService: ICacheService;
+}
+
+async function removeNetworkBlocksOf(userId: UserID, deps: UserDeletionDependencies): Promise<void> {
+ const decisions = await getEnforcementDecisionRepository().listBySubject('user', userId);
+ if (decisions.length === 0) return;
+ const removed = await deps.adminRepository.removeDecisionIpBans(decisions.map((decision) => decision.decision_id));
+ if (removed.length > 0) {
+ await deps.cacheService.publish(IP_BAN_REFRESH_CHANNEL, 'refresh');
+ }
}
export async function processUserDeletion(
@@ -159,6 +174,7 @@ export async function processUserDeletion(
Logger.info({userId, pendingDeletionAt}, 'Account deletion schedule is no longer eligible');
return;
}
+ await removeNetworkBlocksOf(userId, deps);
await storeEntitlementService.stopBillingForDeletedUser(userId);
await connectionRepository.sealAndDeleteForUser(userId);
const deletedUserId = createUserID(await snowflakeService.generate());
diff --git a/fluxer_api/src/api/user/tests/AccountClosureSessions.test.ts b/fluxer_api/src/api/user/tests/AccountClosureSessions.test.ts
index 729f079a6..d9b341568 100644
--- a/fluxer_api/src/api/user/tests/AccountClosureSessions.test.ts
+++ b/fluxer_api/src/api/user/tests/AccountClosureSessions.test.ts
@@ -6,6 +6,7 @@ import {createTestAccount, loginAccount, setUserACLs} from '@app/api/auth/tests/
import {createApplicationID, createUserID, type UserID} from '@app/api/BrandedTypes';
import {fetchMany} from '@app/api/database/CassandraQueryExecution';
import type {AuthSessionRow} from '@app/api/database/types/AuthTypes';
+import {decisionBody} from '@app/api/enforcement/tests/EnforcementTestUtils';
import {getGatewayService} from '@app/api/middleware/ServiceRegistry';
import {getUserActivityBuffer, getUserRepository} from '@app/api/middleware/ServiceSingletons';
import {OAuth2TokenRepository} from '@app/api/oauth/repositories/OAuth2TokenRepository';
@@ -15,7 +16,6 @@ import {InMemoryCassandraQueryExecutor} from '@app/api/test/InMemoryCassandraQue
import {HTTP_STATUS} from '@app/api/test/TestConstants';
import {createBuilder} from '@app/api/test/TestRequestBuilder';
import {AuthSessionRepository} from '@app/api/user/repositories/auth/AuthSessionRepository';
-import {DeletionReasons} from '@fluxer/constants/src/Core';
import {UserFlags} from '@fluxer/constants/src/UserConstants';
import {TestEmailService} from '@pkgs/email/src/TestEmailService';
import {afterEach, beforeEach, describe, expect, test, vi} from 'vitest';
@@ -226,7 +226,14 @@ describe('Account closure and credentials', () => {
}
await createBuilder(harness, admin.token)
.put(`/admin/users/${target.userId}/deletion`)
- .body({reason_code: DeletionReasons.SPAM, days_until_deletion: 60})
+ .header('X-Audit-Log-Reason', 'Spam review')
+ .body({
+ days_until_deletion: 74,
+ basis: {
+ type: 'enforcement',
+ decision: decisionBody(),
+ },
+ })
.expect(HTTP_STATUS.OK)
.execute();
expect(await new AuthSessionRepository().listAuthSessions(userId)).toHaveLength(0);
diff --git a/fluxer_api/src/api/user/tests/HiddenProfileRoutes.test.ts b/fluxer_api/src/api/user/tests/HiddenProfileRoutes.test.ts
index 751f86af2..2c9cd3108 100644
--- a/fluxer_api/src/api/user/tests/HiddenProfileRoutes.test.ts
+++ b/fluxer_api/src/api/user/tests/HiddenProfileRoutes.test.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {createTestAccount, setUserACLs, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {decisionBody} from '@app/api/enforcement/tests/EnforcementTestUtils';
import {getMember, setupTestGuildWithMembers} from '@app/api/guild/tests/GuildTestUtils';
import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
import {NoopGatewayService} from '@app/api/test/NoopGatewayService';
@@ -21,6 +22,7 @@ interface AdminUser {
bio: string | null;
pronouns: string | null;
pending_deletion_at: string | null;
+ enforcement_decision_id: string | null;
}
describe('hidden profiles', () => {
@@ -40,6 +42,7 @@ describe('hidden profiles', () => {
'user:temp_ban',
'user:delete',
'user:update:flags',
+ 'enforcement:view',
]);
const setup = await setupTestGuildWithMembers(harness, 1);
viewer = setup.owner;
@@ -107,9 +110,13 @@ describe('hidden profiles', () => {
test('a staff ban hides the profile until the unban restores it, and clients are told both ways', async () => {
vi.spyOn(NoopGatewayService.prototype, 'dispatchGuild');
const presence = vi.spyOn(NoopGatewayService.prototype, 'dispatchPresence');
- await createBuilder(harness, admin.token)
+ const {user: suspended} = await createBuilder<{user: {enforcement_decision_id: string}}>(harness, admin.token)
.put(`/admin/users/${target.userId}/ban`)
- .body({duration_hours: 24, notify_user: false})
+ .header('X-Audit-Log-Reason', 'Test suspension')
+ .body({
+ duration_hours: 24,
+ decision: decisionBody(),
+ })
.expect(HTTP_STATUS.OK)
.execute();
await expectHidden();
@@ -124,8 +131,8 @@ describe('hidden profiles', () => {
expect(ownUpdates.length).toBeGreaterThan(0);
expect(ownUpdates.every((update) => update.username === targetName)).toBe(true);
await createBuilder(harness, admin.token)
- .delete(`/admin/users/${target.userId}/ban`)
- .body({notify_user: false})
+ .post(`/admin/enforcement-decisions/${suspended.enforcement_decision_id}/end`)
+ .body({outcome: 'lifted'})
.expect(HTTP_STATUS.OK)
.execute();
await expectShown();
@@ -135,37 +142,48 @@ describe('hidden profiles', () => {
]);
});
- test('the spammer flag hides the profile and clearing it restores it', async () => {
- const flags = (body: Record<string, Array<string>>) =>
- createBuilder(harness, admin.token)
- .patch(`/admin/users/${target.userId}/flags`)
- .body(body)
- .expect(HTTP_STATUS.OK)
- .execute();
- await flags({add_flags: [UserFlags.SPAMMER.toString()]});
+ async function endDecision(decisionId: string) {
+ await createBuilder(harness, admin.token)
+ .post(`/admin/enforcement-decisions/${decisionId}/end`)
+ .header('X-Audit-Log-Reason', 'Checked again')
+ .body({outcome: 'reversed'})
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ }
+
+ test('a direct message limit hides the profile and ending it restores it', async () => {
+ await createBuilder(harness, admin.token)
+ .put(`/admin/users/${target.userId}/feature-limits`)
+ .header('X-Audit-Log-Reason', 'Spam review')
+ .body({limit: 'direct_messages', decision: decisionBody()})
+ .expect(HTTP_STATUS.OK)
+ .execute();
await expectHidden();
await expectStaffSeeStoredProfile();
- await flags({remove_flags: [UserFlags.SPAMMER.toString()]});
+ const {decisions} = await createBuilder<{decisions: Array<{decision_id: string}>}>(harness, admin.token)
+ .get(`/admin/enforcement-decisions?subject_type=user&subject_id=${target.userId}`)
+ .expect(HTTP_STATUS.OK)
+ .execute();
+ await endDecision(decisions[0]!.decision_id);
await expectShown();
});
- test('a pending deletion for abuse hides the profile and cancelling it restores it', async () => {
+ test('a closure for abuse hides the profile and ending it restores it', async () => {
const {user} = await createBuilder<{user: AdminUser}>(harness, admin.token)
.put(`/admin/users/${target.userId}/deletion`)
+ .header('X-Audit-Log-Reason', 'Hate review')
.body({
- reason_code: DeletionReasons.HATE_SPEECH_OR_EXTREMIST_CONTENT,
- days_until_deletion: 30,
- notify_user: false,
+ days_until_deletion: 74,
+ basis: {
+ type: 'enforcement',
+ decision: decisionBody({reason_code: DeletionReasons.HATE_SPEECH_OR_EXTREMIST_CONTENT}),
+ },
})
.expect(HTTP_STATUS.OK)
.execute();
await expectHidden();
await expectStaffSeeStoredProfile();
- await createBuilder(harness, admin.token)
- .delete(`/admin/users/${target.userId}/deletion`)
- .body({expected_pending_deletion_at: user.pending_deletion_at})
- .expect(HTTP_STATUS.OK)
- .execute();
+ await endDecision(user.enforcement_decision_id!);
await expectShown();
});
diff --git a/fluxer_api/src/api/webhook/tests/FollowerWebhookManagement.test.ts b/fluxer_api/src/api/webhook/tests/FollowerWebhookManagement.test.ts
index 4e15f2228..7ed6f5c3d 100644
--- a/fluxer_api/src/api/webhook/tests/FollowerWebhookManagement.test.ts
+++ b/fluxer_api/src/api/webhook/tests/FollowerWebhookManagement.test.ts
@@ -466,7 +466,7 @@ describe('Follower webhook delivery', () => {
const dispatchSpy = vi.spyOn(NoopGatewayService.prototype, 'dispatchGuild');
await createBuilder(harness, admin.token)
.delete(`/admin/guilds/${world.a.guild.id}`)
- .body(null)
+ .body({basis: {type: 'holder_request'}})
.expect(HTTP_STATUS.OK)
.execute();
await world.worker.drain();
diff --git a/fluxer_api/src/api/worker/tasks/ProcessInactivityDeletions.ts b/fluxer_api/src/api/worker/tasks/ProcessInactivityDeletions.ts
index 7c6297c05..b075ad94a 100644
--- a/fluxer_api/src/api/worker/tasks/ProcessInactivityDeletions.ts
+++ b/fluxer_api/src/api/worker/tasks/ProcessInactivityDeletions.ts
@@ -4,12 +4,18 @@ import {revokeAllAuthSessions} from '@app/api/auth/AuthSessionRevocation';
import type {UserID} from '@app/api/BrandedTypes';
import {Config} from '@app/api/Config';
import {SYSTEM_USER_ID} from '@app/api/constants/Core';
+import {EnforcementDecisionRepository} from '@app/api/enforcement/EnforcementDecisionRepository';
+import {clearExpiredSuspension} from '@app/api/enforcement/SuspensionState';
import type {IGatewayService} from '@app/api/infrastructure/IGatewayService';
import type {KVAccountDeletionQueueService} from '@app/api/infrastructure/KVAccountDeletionQueueService';
import type {KVActivityTracker} from '@app/api/infrastructure/KVActivityTracker';
import {Logger} from '@app/api/Logger';
import type {User} from '@app/api/models/User';
import type {UserRepository} from '@app/api/user/repositories/UserRepository';
+import {
+ type PartialUserChangePropagationDeps,
+ propagateUserUpdate,
+} from '@app/api/user/services/PartialUserChangePropagation';
import {reschedulePendingDeletion} from '@app/api/user/services/PendingDeletionCoordinator';
import type {UserDeletionEligibilityService} from '@app/api/user/services/UserDeletionEligibilityService';
import {mapWithConcurrency} from '@app/api/utils/ConcurrencyUtils';
@@ -29,6 +35,7 @@ const USER_PROCESSING_CONCURRENCY = 8;
interface InactivityCheckResult {
warningsSent: number;
deletionsScheduled: number;
+ suspensionsCleared: number;
errors: number;
}
@@ -67,6 +74,21 @@ interface ProcessUserDeps {
isEmailEnabled: () => Promise<boolean>;
activityTracker: KVActivityTracker;
deletionEligibilityService: UserDeletionEligibilityService;
+ decisionRepository: Pick<EnforcementDecisionRepository, 'get' | 'endIfActive'>;
+ userUpdateDeps: PartialUserChangePropagationDeps;
+}
+
+async function clearSuspensionIfExpired(
+ user: User,
+ deps: ProcessUserDeps,
+ result: InactivityCheckResult,
+): Promise<User> {
+ const expiry = await clearExpiredSuspension({users: deps.userRepository, repository: deps.decisionRepository}, user);
+ if (!expiry) return user;
+ await propagateUserUpdate(deps.userUpdateDeps, expiry.previous, expiry.cleared);
+ result.suspensionsCleared++;
+ Logger.debug({userId: user.id}, 'Cleared an expired suspension');
+ return expiry.cleared;
}
async function loadPageActivities(
@@ -82,7 +104,7 @@ async function loadPageActivities(
}
async function processUser(
- user: User,
+ listedUser: User,
deps: ProcessUserDeps,
pageActivities: ReadonlyMap<UserID, Date | null> | null,
result: InactivityCheckResult,
@@ -96,6 +118,7 @@ async function processUser(
activityTracker,
deletionEligibilityService,
} = deps;
+ const user = await clearSuspensionIfExpired(listedUser, deps, result);
const userId = user.id;
if (user.pendingDeletionAt) {
Logger.debug({userId}, 'User already pending deletion, skipping');
@@ -169,6 +192,7 @@ interface ProcessInactivityDeletionsDeps {
isEmailEnabled: () => Promise<boolean>;
activityTracker: KVActivityTracker;
deletionEligibilityService: UserDeletionEligibilityService;
+ userUpdateDeps: PartialUserChangePropagationDeps;
}
export async function processInactivityDeletionsCore(
@@ -182,10 +206,12 @@ export async function processInactivityDeletionsCore(
isEmailEnabled,
activityTracker,
deletionEligibilityService,
+ userUpdateDeps,
} = deps;
const result: InactivityCheckResult = {
warningsSent: 0,
deletionsScheduled: 0,
+ suspensionsCleared: 0,
errors: 0,
};
Logger.debug('Starting inactivity deletion check');
@@ -202,6 +228,8 @@ export async function processInactivityDeletionsCore(
isEmailEnabled,
activityTracker,
deletionEligibilityService,
+ decisionRepository: new EnforcementDecisionRepository(),
+ userUpdateDeps,
};
let pageState: string | null = null;
let processedUsers = 0;
@@ -232,6 +260,7 @@ export async function processInactivityDeletionsCore(
processedUsers,
warningsSent: result.warningsSent,
deletionsScheduled: result.deletionsScheduled,
+ suspensionsCleared: result.suspensionsCleared,
errors: result.errors,
},
'Completed inactivity deletion processing',
@@ -250,6 +279,8 @@ const processInactivityDeletions: WorkerTaskHandler = async (_payload, helpers)
instanceConfigRepository,
activityTracker,
deletionEligibilityService,
+ userCacheService,
+ guildRepository,
} = getWorkerDependencies();
await processInactivityDeletionsCore({
kvClient,
@@ -260,6 +291,7 @@ const processInactivityDeletions: WorkerTaskHandler = async (_payload, helpers)
isEmailEnabled: () => instanceConfigRepository.isEmailEnabled(),
activityTracker,
deletionEligibilityService,
+ userUpdateDeps: {userCacheService, gatewayService, userRepository, guildRepository},
});
};
diff --git a/fluxer_api/src/api/worker/tasks/ProcessStripeWebhook.ts b/fluxer_api/src/api/worker/tasks/ProcessStripeWebhook.ts
index c609fbd03..187c1a153 100644
--- a/fluxer_api/src/api/worker/tasks/ProcessStripeWebhook.ts
+++ b/fluxer_api/src/api/worker/tasks/ProcessStripeWebhook.ts
@@ -5,6 +5,7 @@ import {getProductRegistry} from '@app/api/stripe/ProductRegistry';
import {StripeService} from '@app/api/stripe/StripeService';
import {AgeVerificationService} from '@app/api/stripe/services/AgeVerificationService';
import {StripeWebhookService} from '@app/api/stripe/services/StripeWebhookService';
+import {createWorkerEnforcementServices} from '@app/api/worker/tasks/admin_bulk/AdminBulkServices';
import {getWorkerDependencies} from '@app/api/worker/WorkerContext';
import type {WorkerTaskHandler} from '@pkgs/worker/src/contracts/WorkerTask';
import {z} from 'zod';
@@ -60,6 +61,7 @@ const processStripeWebhook: WorkerTaskHandler = async (payload, helpers) => {
deps.snowflakeService,
deps.billingRepository,
stripeService.refunds,
+ createWorkerEnforcementServices(deps).enforcementService,
deps.storeEntitlementService,
);
await webhookService.handleWebhook({body, signature});
diff --git a/fluxer_api/src/api/worker/tasks/admin_bulk/AdminBulkServices.ts b/fluxer_api/src/api/worker/tasks/admin_bulk/AdminBulkServices.ts
index 4cfa5aac4..69aa38038 100644
--- a/fluxer_api/src/api/worker/tasks/admin_bulk/AdminBulkServices.ts
+++ b/fluxer_api/src/api/worker/tasks/admin_bulk/AdminBulkServices.ts
@@ -1,18 +1,24 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import type {ApiContext} from '@app/api/ApiContext';
import {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
import {AdminBanManagementService} from '@app/api/admin/services/AdminBanManagementService';
import {AdminGuildService} from '@app/api/admin/services/AdminGuildService';
+import {AdminReportService} from '@app/api/admin/services/AdminReportService';
import {AdminUserService} from '@app/api/admin/services/AdminUserService';
import {ReporterResolutionNotifier} from '@app/api/admin/services/ReporterResolutionNotifier';
import {createApiContext} from '@app/api/CreateApiContext';
+import {EnforcementDecisionService} from '@app/api/enforcement/EnforcementDecisionService';
+import {EnforcementNoticeDelivery} from '@app/api/enforcement/EnforcementNoticeDelivery';
import {getReportServiceInstance} from '@app/api/middleware/ServiceMiddleware';
import {
getDiscriminatorService,
+ getEnforcementDecisionRepository,
getEntityAssetService,
getGuildDiscoveryRepository,
getInviteRepository,
} from '@app/api/middleware/ServiceSingletons';
+import type {SystemDmDeps} from '@app/api/user/services/SystemDmMessage';
import {UserChannelService} from '@app/api/user/services/UserChannelService';
import type {WorkerDependencies} from '@app/api/worker/WorkerDependencies';
@@ -23,7 +29,32 @@ interface AdminBulkServices {
guildService: AdminGuildService;
}
-export function createAdminBulkServices(deps: WorkerDependencies): AdminBulkServices {
+interface WorkerEnforcementServices {
+ apiContext: ApiContext;
+ auditService: AdminAuditService;
+ banManagementService: AdminBanManagementService;
+ reporterResolutionNotifier: ReporterResolutionNotifier;
+ delivery: EnforcementNoticeDelivery;
+ enforcementService: EnforcementDecisionService;
+}
+
+function systemDmDeps(deps: WorkerDependencies): SystemDmDeps {
+ return {
+ channelService: deps.channelService,
+ userChannelService: new UserChannelService(
+ deps.userRepository,
+ deps.channelService,
+ deps.channelRepository,
+ deps.gatewayService,
+ deps.snowflakeService,
+ deps.userPermissionUtils,
+ deps.limitConfigService,
+ ),
+ userCacheService: deps.userCacheService,
+ };
+}
+
+export function createWorkerEnforcementServices(deps: WorkerDependencies): WorkerEnforcementServices {
const apiContext = createApiContext();
const auditService = new AdminAuditService(deps.adminRepository, deps.snowflakeService);
const banManagementService = new AdminBanManagementService({
@@ -31,6 +62,47 @@ export function createAdminBulkServices(deps: WorkerDependencies): AdminBulkServ
adminRepository: deps.adminRepository,
auditService,
});
+ const systemDm = systemDmDeps(deps);
+ const reporterResolutionNotifier = new ReporterResolutionNotifier({apiContext, systemDm});
+ const reportService = getReportServiceInstance();
+ const delivery = new EnforcementNoticeDelivery({
+ apiContext,
+ applicationRepository: deps.applicationRepository,
+ systemDm,
+ });
+ const enforcementService = new EnforcementDecisionService({
+ apiContext,
+ userUpdateDeps: {
+ userCacheService: deps.userCacheService,
+ userRepository: deps.userRepository,
+ guildRepository: deps.guildRepository,
+ gatewayService: deps.gatewayService,
+ },
+ kvDeletionQueue: deps.deletionQueueService,
+ repository: getEnforcementDecisionRepository(),
+ delivery,
+ auditService,
+ banManagementService,
+ channelRepository: deps.channelRepository,
+ guildRepository: deps.guildRepository,
+ reportService,
+ adminReportService: new AdminReportService({
+ apiContext,
+ reportService,
+ guildRepository: deps.guildRepository,
+ channelRepository: deps.channelRepository,
+ storageService: deps.storageService,
+ auditService,
+ userCacheService: deps.userCacheService,
+ reporterResolutionNotifier,
+ }),
+ });
+ return {apiContext, auditService, banManagementService, reporterResolutionNotifier, delivery, enforcementService};
+}
+
+export function createAdminBulkServices(deps: WorkerDependencies): AdminBulkServices {
+ const {apiContext, auditService, banManagementService, reporterResolutionNotifier, delivery, enforcementService} =
+ createWorkerEnforcementServices(deps);
const userService = new AdminUserService({
apiContext,
guildRepository: deps.guildRepository,
@@ -45,22 +117,9 @@ export function createAdminBulkServices(deps: WorkerDependencies): AdminBulkServ
stripe: deps.stripe,
reportService: getReportServiceInstance(),
storeEntitlementService: deps.storeEntitlementService,
- reporterResolutionNotifier: new ReporterResolutionNotifier({
- apiContext,
- systemDm: {
- channelService: deps.channelService,
- userChannelService: new UserChannelService(
- deps.userRepository,
- deps.channelService,
- deps.channelRepository,
- deps.gatewayService,
- deps.snowflakeService,
- deps.userPermissionUtils,
- deps.limitConfigService,
- ),
- userCacheService: deps.userCacheService,
- },
- }),
+ reporterResolutionNotifier,
+ enforcement: enforcementService,
+ delivery,
});
const guildService = new AdminGuildService({
guildRepository: deps.guildRepository,
@@ -72,6 +131,7 @@ export function createAdminBulkServices(deps: WorkerDependencies): AdminBulkServ
entityAssetService: getEntityAssetService(),
auditService,
discoveryRepository: getGuildDiscoveryRepository(),
+ enforcement: enforcementService,
});
return {auditService, banManagementService, userService, guildService};
}
diff --git a/fluxer_api/src/api/worker/tasks/admin_bulk/BulkDeleteMessagesForUsers.ts b/fluxer_api/src/api/worker/tasks/admin_bulk/BulkDeleteMessagesForUsers.ts
index 5e050a0f2..5832e4e8e 100644
--- a/fluxer_api/src/api/worker/tasks/admin_bulk/BulkDeleteMessagesForUsers.ts
+++ b/fluxer_api/src/api/worker/tasks/admin_bulk/BulkDeleteMessagesForUsers.ts
@@ -1,27 +1,33 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-import {AdminAuditService} from '@app/api/admin/services/AdminAuditService';
+import {AdminMessageDeletionService} from '@app/api/admin/services/AdminMessageDeletionService';
import {createUserID} from '@app/api/BrandedTypes';
import {runAdminBulkJob} from '@app/api/worker/tasks/admin_bulk/AdminBulkJob';
+import {createWorkerEnforcementServices} from '@app/api/worker/tasks/admin_bulk/AdminBulkServices';
import {getWorkerDependencies} from '@app/api/worker/WorkerContext';
+import {BulkModerationBasis} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
import type {WorkerTaskHandler} from '@pkgs/worker/src/contracts/WorkerTask';
+import {z} from 'zod';
-interface Payload {
- user_ids: Array<string>;
- admin_user_id: string;
- audit_log_reason: string | null;
-}
+const BulkDeleteMessagesForUsersPayload = z.object({
+ user_ids: z.array(z.string()),
+ basis: BulkModerationBasis,
+ admin_user_id: z.string(),
+ audit_log_reason: z.string().nullable(),
+});
const handler: WorkerTaskHandler = async (rawPayload, helpers) => {
- const payload: Payload = {
- user_ids: rawPayload.user_ids as Array<string>,
- admin_user_id: rawPayload.admin_user_id as string,
- audit_log_reason: (rawPayload.audit_log_reason as string | null) ?? null,
- };
+ const payload = BulkDeleteMessagesForUsersPayload.parse(rawPayload);
const deps = getWorkerDependencies();
- const auditService = new AdminAuditService(deps.adminRepository, deps.snowflakeService);
- const deletionService = deps.channelService.userMessageDeletion;
+ const {apiContext, auditService, enforcementService} = createWorkerEnforcementServices(deps);
+ const deletionService = new AdminMessageDeletionService({
+ apiContext,
+ channelRepository: deps.channelRepository,
+ auditService,
+ enforcement: enforcementService,
+ });
const adminUserId = createUserID(BigInt(payload.admin_user_id));
+ const actor = {adminUserId, acls: new Set<string>(), internalNote: payload.audit_log_reason};
const total = payload.user_ids.length;
let deletedMessages = 0;
await helpers.setContextLink(`/users?ids=${payload.user_ids.slice(0, 50).join(',')}`);
@@ -31,20 +37,12 @@ const handler: WorkerTaskHandler = async (rawPayload, helpers) => {
ids: payload.user_ids,
progressEvery: 1,
apply: async (rawUserId) => {
- const userId = createUserID(BigInt(rawUserId));
- const deleted = await deletionService.deleteUserMessagesBulk(userId);
- deletedMessages += deleted;
- await auditService.createAuditLog({
- adminUserId,
- targetType: 'message_deletion',
- targetId: BigInt(userId),
- action: 'delete_all_user_messages',
- auditLogReason: payload.audit_log_reason,
- metadata: new Map([
- ['user_id', userId.toString()],
- ['message_count', deleted.toString()],
- ]),
- });
+ const {message_count} = await deletionService.deleteAllUserMessages(
+ createUserID(BigInt(rawUserId)),
+ {dryRun: false, basis: payload.basis},
+ actor,
+ );
+ deletedMessages += message_count;
},
afterItems: async () => [['message_count', deletedMessages.toString()]] as Array<[string, string]>,
summary: {
@@ -52,7 +50,13 @@ const handler: WorkerTaskHandler = async (rawPayload, helpers) => {
adminUserId,
action: 'bulk_delete_user_messages',
auditLogReason: payload.audit_log_reason,
- metadata: [['user_count', total.toString()]],
+ metadata: [
+ ['user_count', total.toString()],
+ ['basis', payload.basis.type],
+ ...(payload.basis.type === 'enforcement'
+ ? ([['reason_code', payload.basis.decision.reason_code.toString()]] as Array<[string, string]>)
+ : []),
+ ],
},
});
};
diff --git a/fluxer_api/src/api/worker/tasks/admin_bulk/BulkScheduleUserDeletion.ts b/fluxer_api/src/api/worker/tasks/admin_bulk/BulkScheduleUserDeletion.ts
index 06cb86186..c8ccf12b4 100644
--- a/fluxer_api/src/api/worker/tasks/admin_bulk/BulkScheduleUserDeletion.ts
+++ b/fluxer_api/src/api/worker/tasks/admin_bulk/BulkScheduleUserDeletion.ts
@@ -5,33 +5,25 @@ import {createUserID} from '@app/api/BrandedTypes';
import {runAdminBulkJob} from '@app/api/worker/tasks/admin_bulk/AdminBulkJob';
import {createAdminBulkServices} from '@app/api/worker/tasks/admin_bulk/AdminBulkServices';
import {getWorkerDependencies} from '@app/api/worker/WorkerContext';
-import type {ScheduleAccountDeletionRequest} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
+import {BulkModerationBasis} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
import type {WorkerTaskHandler} from '@pkgs/worker/src/contracts/WorkerTask';
+import {z} from 'zod';
-interface Payload {
- user_ids: Array<string>;
- reason_code: ScheduleAccountDeletionRequest['reason_code'];
- days_until_deletion: number;
- public_reason: string | null;
- notify_user: boolean;
- admin_user_id: string;
- audit_log_reason: string | null;
-}
+const BulkScheduleUserDeletionPayload = z.object({
+ user_ids: z.array(z.string()),
+ days_until_deletion: z.number().int(),
+ basis: BulkModerationBasis,
+ admin_user_id: z.string(),
+ audit_log_reason: z.string().nullable(),
+});
const handler: WorkerTaskHandler = async (rawPayload, helpers) => {
- const payload: Payload = {
- user_ids: rawPayload.user_ids as Array<string>,
- reason_code: rawPayload.reason_code as ScheduleAccountDeletionRequest['reason_code'],
- days_until_deletion: rawPayload.days_until_deletion as number,
- public_reason: (rawPayload.public_reason as string | null) ?? null,
- notify_user: rawPayload.notify_user !== false,
- admin_user_id: rawPayload.admin_user_id as string,
- audit_log_reason: (rawPayload.audit_log_reason as string | null) ?? null,
- };
+ const payload = BulkScheduleUserDeletionPayload.parse(rawPayload);
const {auditService, userService} = createAdminBulkServices(getWorkerDependencies());
const adminUserId = createUserID(BigInt(payload.admin_user_id));
+ const actor = {adminUserId, acls: new Set<string>(), internalNote: payload.audit_log_reason};
const total = payload.user_ids.length;
- const daysUntilDeletion = resolveDeletionDays(payload.reason_code, payload.days_until_deletion);
+ const daysUntilDeletion = resolveDeletionDays(payload.basis.type, payload.days_until_deletion);
await helpers.setContextLink(`/users?ids=${payload.user_ids.slice(0, 50).join(',')}`);
await helpers.reportProgress(0, total, `Scheduling deletion of ${total} users in ${daysUntilDeletion} days`);
return await runAdminBulkJob({
@@ -40,15 +32,9 @@ const handler: WorkerTaskHandler = async (rawPayload, helpers) => {
progressEvery: 10,
apply: async (userId) => {
await userService.deletionService.applyScheduledDeletion(
- {
- user_id: BigInt(userId),
- reason_code: payload.reason_code,
- public_reason: payload.public_reason ?? undefined,
- days_until_deletion: payload.days_until_deletion,
- notify_user: payload.notify_user,
- },
- adminUserId,
- payload.audit_log_reason,
+ createUserID(BigInt(userId)),
+ {days_until_deletion: payload.days_until_deletion, basis: payload.basis},
+ actor,
);
},
summary: {
@@ -58,9 +44,11 @@ const handler: WorkerTaskHandler = async (rawPayload, helpers) => {
auditLogReason: payload.audit_log_reason,
metadata: [
['user_count', total.toString()],
- ['reason_code', payload.reason_code.toString()],
+ ['basis', payload.basis.type],
+ ...(payload.basis.type === 'enforcement'
+ ? ([['reason_code', payload.basis.decision.reason_code.toString()]] as Array<[string, string]>)
+ : []),
['days', daysUntilDeletion.toString()],
- ['notify_user', payload.notify_user ? 'true' : 'false'],
],
},
});
diff --git a/fluxer_api/src/api/worker/tests/BulkDeleteMessagesForUsersAudit.test.ts b/fluxer_api/src/api/worker/tests/BulkDeleteMessagesForUsersAudit.test.ts
index fc8f74779..214e07552 100644
--- a/fluxer_api/src/api/worker/tests/BulkDeleteMessagesForUsersAudit.test.ts
+++ b/fluxer_api/src/api/worker/tests/BulkDeleteMessagesForUsersAudit.test.ts
@@ -1,22 +1,27 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {AdminAuditLog} from '@app/api/admin/AdminRepository';
-import type {ChannelService} from '@app/api/channel/services/ChannelService';
-import {UserMessageDeletionService} from '@app/api/channel/services/message/UserMessageDeletionService';
import {sendChannelMessage, setupTestGuildWithMembers} from '@app/api/channel/tests/ChannelTestUtils';
-import {getGatewayService, getSnowflakeService, getWorkerService} from '@app/api/middleware/ServiceRegistry';
+import {createTestChannelService} from '@app/api/channel/tests/CrosspostTestUtils';
+import {createStaff, decisionBody, listDecisions} from '@app/api/enforcement/tests/EnforcementTestUtils';
+import {getGatewayService, getSnowflakeService} from '@app/api/middleware/ServiceRegistry';
import {
+ createUserCacheService,
getAdminRepository,
getChannelRepository,
- getPurgeQueue,
- getStorageService,
+ getGuildRepository,
+ getKVAccountDeletionQueue,
+ getKVBulkMessageDeletionQueue,
+ getLimitConfigService,
+ getUserPermissionUtils,
+ getUserRepository,
} from '@app/api/middleware/ServiceSingletons';
+import {createTestStoreEntitlementService} from '@app/api/store_billing/tests/StoreBillingTestUtils';
import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
import {createTestWorkerHelpers} from '@app/api/test/SyncTaskWorkerService';
-import {createBuilder} from '@app/api/test/TestRequestBuilder';
import bulkDeleteMessagesForUsers from '@app/api/worker/tasks/admin_bulk/BulkDeleteMessagesForUsers';
import {clearWorkerDependencies, setWorkerDependenciesForTest} from '@app/api/worker/WorkerContext';
-import type {MessageResponse} from '@fluxer/schema/src/domains/message/MessageResponseSchemas';
+import {DeletionReasons} from '@fluxer/constants/src/Core';
import {afterAll, beforeAll, beforeEach, describe, expect, it} from 'vitest';
interface BulkJobResult {
@@ -42,15 +47,18 @@ describe('Bulk delete messages for users', () => {
setWorkerDependenciesForTest({
adminRepository: getAdminRepository(),
snowflakeService: getSnowflakeService(),
- channelService: {
- userMessageDeletion: new UserMessageDeletionService({
- channelRepository: getChannelRepository(),
- gatewayService: getGatewayService(),
- storageService: getStorageService(),
- purgeQueue: getPurgeQueue(),
- workerService: getWorkerService(),
- }),
- } as ChannelService,
+ userRepository: getUserRepository(),
+ userCacheService: createUserCacheService(),
+ guildRepository: getGuildRepository(),
+ channelRepository: getChannelRepository(),
+ gatewayService: getGatewayService(),
+ channelService: createTestChannelService(),
+ userPermissionUtils: getUserPermissionUtils(),
+ limitConfigService: getLimitConfigService(),
+ deletionQueueService: getKVAccountDeletionQueue(),
+ bulkMessageDeletionQueueService: getKVBulkMessageDeletionQueue(),
+ stripe: null,
+ storeEntitlementService: createTestStoreEntitlementService(),
});
});
@@ -63,67 +71,67 @@ describe('Bulk delete messages for users', () => {
return getAdminRepository().listAllAuditLogsPaginated(100);
}
- async function runTask(userIds: Array<string>, auditLogReason: string | null): Promise<BulkJobResult> {
+ async function runTask(
+ userIds: Array<string>,
+ basis: Record<string, unknown>,
+ auditLogReason: string | null = 'Spam cleanup',
+ ): Promise<BulkJobResult> {
return (await bulkDeleteMessagesForUsers(
- {user_ids: userIds, admin_user_id: ADMIN_USER_ID, audit_log_reason: auditLogReason},
+ {user_ids: userIds, basis, admin_user_id: ADMIN_USER_ID, audit_log_reason: auditLogReason},
createTestWorkerHelpers({jobId: 909n}),
)) as unknown as BulkJobResult;
}
- async function listMessages(token: string, channelId: string): Promise<Array<MessageResponse>> {
- return createBuilder<Array<MessageResponse>>(harness, token).get(`/channels/${channelId}/messages`).execute();
- }
-
- async function countMessagesBy(token: string, channelId: string, userId: string): Promise<number> {
- const messages = await listMessages(token, channelId);
- return messages.filter((message) => message.author.id === userId).length;
- }
-
- it('records the admin reason and the message count on the per-user audit row', async () => {
- const {owner, members, systemChannel} = await setupTestGuildWithMembers(harness, 1);
+ it('records the basis and message count on the per-user audit row', async () => {
+ const {members, systemChannel} = await setupTestGuildWithMembers(harness, 1);
const member = members[0]!;
- await sendChannelMessage(harness, member.token, systemChannel.id, 'first spam');
- await sendChannelMessage(harness, member.token, systemChannel.id, 'second spam');
- const authored = await countMessagesBy(owner.token, systemChannel.id, member.userId);
+ await sendChannelMessage(harness, member.token, systemChannel.id, 'first');
+ await sendChannelMessage(harness, member.token, systemChannel.id, 'second');
- const result = await runTask([member.userId], 'Spam cleanup');
+ const result = await runTask([member.userId], {type: 'housekeeping'});
expect(result.successful_count).toBe(1);
- const logs = await listAuditLogs();
- const perUser = logs.filter((log) => log.action === 'delete_all_user_messages');
+ const perUser = (await listAuditLogs()).filter((log) => log.action === 'delete_all_user_messages');
expect(perUser).toHaveLength(1);
expect(perUser[0]!.adminUserId.toString()).toBe(ADMIN_USER_ID);
expect(perUser[0]!.targetType).toBe('message_deletion');
expect(perUser[0]!.targetId.toString()).toBe(member.userId);
expect(perUser[0]!.auditLogReason).toBe('Spam cleanup');
- expect(Object.fromEntries(perUser[0]!.metadata)).toEqual({
+ expect(Object.fromEntries(perUser[0]!.metadata)).toMatchObject({
user_id: member.userId,
- message_count: authored.toString(),
+ dry_run: 'false',
+ basis: 'housekeeping',
});
- expect(await countMessagesBy(owner.token, systemChannel.id, member.userId)).toBe(0);
+ const summary = (await listAuditLogs()).find((log) => log.action === 'bulk_delete_user_messages');
+ expect(summary?.metadata.get('message_count')).toBe(perUser[0]!.metadata.get('message_count'));
});
- it('summarises the job and reports a user that could not be processed', async () => {
- const {owner, members, systemChannel} = await setupTestGuildWithMembers(harness, 1);
+ it('records one content removal decision for each account under an enforcement basis', async () => {
+ const {members, systemChannel} = await setupTestGuildWithMembers(harness, 1);
const member = members[0]!;
- await sendChannelMessage(harness, member.token, systemChannel.id, 'only spam');
- const authored = await countMessagesBy(owner.token, systemChannel.id, member.userId);
+ const staff = await createStaff(harness);
+ await sendChannelMessage(harness, member.token, systemChannel.id, 'invite spam');
- const result = await runTask(['0', member.userId], 'Spam cleanup');
+ const result = await runTask([member.userId], {type: 'enforcement', decision: decisionBody()});
expect(result.successful_count).toBe(1);
- expect(result.failed_count).toBe(1);
- expect(result.failed[0]!.id).toBe('0');
+ const [decision] = await listDecisions(harness, staff, member.userId);
+ expect(decision).toMatchObject({kind: 'content_removal', removed_all_messages: true, reason_code: 3});
const summary = (await listAuditLogs()).find((log) => log.action === 'bulk_delete_user_messages');
- expect(summary).toBeDefined();
- expect(summary?.targetType).toBe('bulk_job');
- expect(summary?.auditLogReason).toBe('Spam cleanup');
- expect(Object.fromEntries(summary!.metadata)).toMatchObject({
- user_count: '2',
- message_count: authored.toString(),
- processed: '2',
- successful: '1',
- failed: '1',
+ expect(Object.fromEntries(summary!.metadata)).toMatchObject({basis: 'enforcement', reason_code: '3'});
+ });
+
+ it('refuses a restricted reason for every account', async () => {
+ const {members, systemChannel} = await setupTestGuildWithMembers(harness, 1);
+ const member = members[0]!;
+ await sendChannelMessage(harness, member.token, systemChannel.id, 'content');
+
+ const result = await runTask([member.userId], {
+ type: 'enforcement',
+ decision: decisionBody({reason_code: DeletionReasons.VIOLENT_EXTREMISM, statement: 'Not shown'}),
});
+
+ expect(result.successful_count).toBe(0);
+ expect(result.failed_count).toBe(1);
});
});
diff --git a/fluxer_api/src/api/worker/tests/BulkScheduleUserDeletion.test.ts b/fluxer_api/src/api/worker/tests/BulkScheduleUserDeletion.test.ts
index 6230e49b8..e00152f24 100644
--- a/fluxer_api/src/api/worker/tests/BulkScheduleUserDeletion.test.ts
+++ b/fluxer_api/src/api/worker/tests/BulkScheduleUserDeletion.test.ts
@@ -13,6 +13,7 @@ import {
import {createReportID, createUserID} from '@app/api/BrandedTypes';
import {sendChannelMessage, setupTestGuildWithMembers} from '@app/api/channel/tests/ChannelTestUtils';
import {createTestChannelService} from '@app/api/channel/tests/CrosspostTestUtils';
+import {type DecisionBody, decisionBody} from '@app/api/enforcement/tests/EnforcementTestUtils';
import {resolveContactEmails} from '@app/api/instance/ContactEmails';
import {getInstanceProductName} from '@app/api/instance/ProductName';
import {getReportServiceInstance} from '@app/api/middleware/ServiceMiddleware';
@@ -37,6 +38,7 @@ import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHa
import {createTestWorkerHelpers} from '@app/api/test/SyncTaskWorkerService';
import {HTTP_STATUS} from '@app/api/test/TestConstants';
import {createBuilder, createBuilderWithoutAuth} from '@app/api/test/TestRequestBuilder';
+import {systemDmBody} from '@app/api/user/services/SystemDmMessage';
import bulkScheduleUserDeletion from '@app/api/worker/tasks/admin_bulk/BulkScheduleUserDeletion';
import {clearWorkerDependencies, setWorkerDependenciesForTest} from '@app/api/worker/WorkerContext';
import {DeletionReasons} from '@fluxer/constants/src/Core';
@@ -77,22 +79,29 @@ function installWorkerDependencies(): void {
});
}
+function enforcementBasis(reasonCode: DecisionBody['reason_code'] = DeletionReasons.SPAM) {
+ return {
+ type: 'enforcement',
+ decision: decisionBody({
+ reason_code: reasonCode,
+ statement: 'These accounts sent the same invite link to many people.',
+ }),
+ };
+}
+
async function runBulkJob(
userIds: Array<string>,
adminUserId: string,
- reasonCode: number = DeletionReasons.SPAM,
- extraPayload: Record<string, unknown> = {},
+ basis: Record<string, unknown> = enforcementBasis(),
): Promise<BulkJobResult> {
installWorkerDependencies();
const result = (await bulkScheduleUserDeletion(
{
user_ids: userIds,
- reason_code: reasonCode,
- days_until_deletion: 60,
- public_reason: null,
+ days_until_deletion: 90,
+ basis,
admin_user_id: adminUserId,
audit_log_reason: AUDIT_LOG_REASON,
- ...extraPayload,
},
createTestWorkerHelpers({jobId: 4242n}),
)) as WorkerTaskResult;
@@ -174,11 +183,18 @@ async function systemDmMessages(harness: ApiTestHarness, account: TestAccount):
const DELETION_WORDING = /delet|\bban|suspend|terminat|remov|enforce/i;
-function renderGenericNotice(username: string, reportId: string): {subject: string; body: string} {
+function renderRestrictedNotice(username: string, reportId: string): {subject: string; body: string} {
const rendered = getEmailTemplate(
'report_resolved',
null,
- {username, reportId, publicComment: '', hasComment: 'no', safety_email: resolveContactEmails().safetyEmail},
+ {
+ username,
+ reportId,
+ publicComment: '',
+ hasComment: 'no',
+ outcome: 'restricted',
+ appeals_email: resolveContactEmails().appealsEmail,
+ },
getInstanceProductName(),
);
if (!rendered.ok) {
@@ -193,7 +209,7 @@ async function scheduleDeletionThroughEndpoint(harness: ApiTestHarness, target:
await createBuilder(harness, admin.token)
.put(`/admin/users/${target.userId}/deletion`)
.header('X-Audit-Log-Reason', AUDIT_LOG_REASON)
- .body({reason_code: DeletionReasons.SPAM, days_until_deletion: 60})
+ .body({days_until_deletion: 90, basis: enforcementBasis()})
.expect(HTTP_STATUS.OK)
.execute();
}
@@ -229,7 +245,7 @@ describe('bulkScheduleUserDeletion', () => {
expect(targetLog!.auditLogReason).toBe(AUDIT_LOG_REASON);
expect(targetLog!.adminUserId.toString()).toBe(admin.userId);
expect(targetLog!.metadata.get('reason_code')).toBe(DeletionReasons.SPAM.toString());
- expect(targetLog!.metadata.get('days')).toBe('60');
+ expect(targetLog!.metadata.get('days')).toBe('90');
expect(await isSessionAlive(harness, target.token)).toBe(false);
expect(await new AdminRepository().isEmailBanned(target.email)).toBe(true);
expect(await autoResolveSummary(target.userId)).toEqual({
@@ -246,7 +262,7 @@ describe('bulkScheduleUserDeletion', () => {
expect(summaryLogs[0]!.auditLogReason).toBe(AUDIT_LOG_REASON);
expect(summaryLogs[0]!.metadata.get('user_count')).toBe('1');
expect(summaryLogs[0]!.metadata.get('reason_code')).toBe(DeletionReasons.SPAM.toString());
- expect(summaryLogs[0]!.metadata.get('days')).toBe('60');
+ expect(summaryLogs[0]!.metadata.get('days')).toBe('90');
expect(summaryLogs[0]!.metadata.get('successful')).toBe('1');
expect(summaryLogs[0]!.metadata.get('failed')).toBe('0');
});
@@ -259,7 +275,7 @@ describe('bulkScheduleUserDeletion', () => {
await createBuilder(harness, admin.token)
.put(`/admin/users/${target.userId}/deletion`)
.header('X-Audit-Log-Reason', AUDIT_LOG_REASON)
- .body({reason_code: DeletionReasons.SPAM, days_until_deletion: 60})
+ .body({days_until_deletion: 90, basis: enforcementBasis()})
.expect(HTTP_STATUS.OK)
.execute();
expect(await getReportStatus(reportId)).toBe(ReportStatus.RESOLVED);
@@ -281,15 +297,19 @@ describe('bulkScheduleUserDeletion', () => {
await clearTestEmails(harness);
await runBulkJob([target.userId], admin.userId);
const sent = await reportResolvedEmails(harness, reporter);
- expect(sent.map((email) => email.metadata)).toEqual([{report_id: reportId, public_comment: ''}]);
- const notice = renderGenericNotice('reporter', reportId);
+ expect(sent.map((email) => email.metadata)).toEqual([
+ {report_id: reportId, public_comment: '', outcome: 'restricted'},
+ ]);
+ const notice = renderRestrictedNotice('reporter', reportId);
expect(notice.body).toContain(reportId);
expect(`${notice.subject}\n${notice.body}`).not.toMatch(DELETION_WORDING);
const me = await createBuilder<{username: string}>(harness, reporter.token)
.get('/users/@me')
.expect(HTTP_STATUS.OK)
.execute();
- expect(await systemDmMessages(harness, reporter)).toEqual([renderGenericNotice(me.username, reportId).body]);
+ expect(await systemDmMessages(harness, reporter)).toEqual([
+ systemDmBody(renderRestrictedNotice(me.username, reportId).body),
+ ]);
});
test('an auto-resolved report sends the reporter a DM and an email with no deletion wording', async () => {
const reporter = await createTestAccount(harness);
@@ -298,13 +318,15 @@ describe('bulkScheduleUserDeletion', () => {
await clearTestEmails(harness);
await scheduleDeletionThroughEndpoint(harness, target);
const sent = await reportResolvedEmails(harness, reporter);
- expect(sent.map((email) => email.metadata)).toEqual([{report_id: reportId, public_comment: ''}]);
+ expect(sent.map((email) => email.metadata)).toEqual([
+ {report_id: reportId, public_comment: '', outcome: 'restricted'},
+ ]);
const me = await createBuilder<{username: string}>(harness, reporter.token)
.get('/users/@me')
.expect(HTTP_STATUS.OK)
.execute();
const dms = await systemDmMessages(harness, reporter);
- expect(dms).toEqual([renderGenericNotice(me.username, reportId).body]);
+ expect(dms).toEqual([systemDmBody(renderRestrictedNotice(me.username, reportId).body)]);
expect(await listTestEmails(harness, {recipient: reporter.email})).toHaveLength(1);
});
test('an auto-resolved DSA notice sends the notifier the decision email', async () => {
@@ -340,7 +362,7 @@ describe('bulkScheduleUserDeletion', () => {
expect(await getReportStatus(report.report_id)).toBe(ReportStatus.RESOLVED);
const sent = (await listTestEmails(harness)).filter((entry) => entry.to === email);
expect(sent.map((entry) => [entry.type, entry.metadata])).toEqual([
- ['dsa_report_resolved', {report_id: report.report_id, public_comment: ''}],
+ ['dsa_report_resolved', {report_id: report.report_id, public_comment: '', outcome: 'restricted'}],
]);
expect((await autoResolveSummary(target.userId)).notified_count).toBe('1');
});
@@ -446,7 +468,7 @@ describe('bulkScheduleUserDeletion', () => {
const reporter = await createTestAccount(harness);
const target = await createTestAccount(harness);
const reportId = await reportUser(harness, reporter, target.userId);
- const result = await runBulkJob([target.userId], admin.userId, DeletionReasons.USER_REQUESTED);
+ const result = await runBulkJob([target.userId], admin.userId, {type: 'holder_request'});
expect(result.successful_count).toBe(1);
expect(await getReportStatus(reportId)).toBe(ReportStatus.PENDING);
expect(await new AdminRepository().isEmailBanned(target.email)).toBe(false);
@@ -459,7 +481,7 @@ describe('bulkScheduleUserDeletion', () => {
const reporter = await createTestAccount(harness);
const target = await createTestAccount(harness);
const reportId = await reportUser(harness, reporter, target.userId);
- const result = await runBulkJob([target.userId], admin.userId, DeletionReasons.BAN_EVASION);
+ const result = await runBulkJob([target.userId], admin.userId, enforcementBasis(DeletionReasons.BAN_EVASION));
expect(result.successful_count).toBe(1);
expect(await getReportStatus(reportId)).toBe(ReportStatus.RESOLVED);
});
@@ -472,7 +494,7 @@ describe('bulkScheduleUserDeletion', () => {
const selfHarmReportId = await reportMessage(harness, selfHarmReporter, target, systemChannel.id, 'self_harm');
const underageReportId = await reportUser(harness, userReporter, target.userId, 'underage_user');
const spamReportId = await reportUser(harness, await createTestAccount(harness), target.userId);
- const result = await runBulkJob([target.userId], admin.userId, DeletionReasons.SPAM);
+ const result = await runBulkJob([target.userId], admin.userId);
expect(result.successful_count).toBe(1);
expect(await getReportStatus(spamReportId)).toBe(ReportStatus.RESOLVED);
expect(await getReportStatus(childSafetyReportId)).toBe(ReportStatus.PENDING);
@@ -480,17 +502,15 @@ describe('bulkScheduleUserDeletion', () => {
expect(await getReportStatus(underageReportId)).toBe(ReportStatus.PENDING);
});
test.each([
- ['OTHER', DeletionReasons.OTHER],
- ['INACTIVITY', DeletionReasons.INACTIVITY],
- ['CHILD_SEXUAL_CONTENT', DeletionReasons.CHILD_SEXUAL_CONTENT],
- ['CHILD_SAFETY_VIOLATION', DeletionReasons.CHILD_SAFETY_VIOLATION],
- ])('a deletion for %s leaves reports open', async (_label, reasonCode) => {
+ ['housekeeping', {type: 'housekeeping'}],
+ ['PAYMENT_FRAUD', enforcementBasis(DeletionReasons.PAYMENT_FRAUD)],
+ ])('a %s deletion leaves reports open', async (_label, basis) => {
const admin = await createTestAccount(harness);
await setUserACLs(harness, admin, ['admin:authenticate', 'bulk:delete:users']);
const reporter = await createTestAccount(harness);
const target = await createTestAccount(harness);
const reportId = await reportUser(harness, reporter, target.userId);
- const result = await runBulkJob([target.userId], admin.userId, reasonCode);
+ const result = await runBulkJob([target.userId], admin.userId, basis);
expect(result.successful_count).toBe(1);
expect(await getReportStatus(reportId)).toBe(ReportStatus.PENDING);
const resolutionLogs = await listAuditLogs('auto_resolve_reports_on_deletion');
@@ -505,7 +525,11 @@ describe('bulkScheduleUserDeletion', () => {
const underageReportId = await reportUser(harness, underageReporter, target.userId, 'underage_user');
const spamReportId = await reportUser(harness, spamReporter, target.userId);
await clearTestEmails(harness);
- const result = await runBulkJob([target.userId], admin.userId, DeletionReasons.HARASSMENT_OR_BULLYING);
+ const result = await runBulkJob(
+ [target.userId],
+ admin.userId,
+ enforcementBasis(DeletionReasons.HARASSMENT_OR_BULLYING),
+ );
expect(result.successful_count).toBe(1);
expect(await getReportStatus(spamReportId)).toBe(ReportStatus.RESOLVED);
expect(await getReportStatus(underageReportId)).toBe(ReportStatus.PENDING);
@@ -527,31 +551,27 @@ describe('bulkScheduleUserDeletion', () => {
const target = await createTestAccount(harness);
const reportId = await reportUser(harness, reporter, target.userId);
await clearTestEmails(harness);
- const result = await runBulkJob([target.userId], admin.userId, DeletionReasons.OTHER);
+ const result = await runBulkJob([target.userId], admin.userId, enforcementBasis(DeletionReasons.PAYMENT_FRAUD));
expect(result.successful_count).toBe(1);
expect(await getReportStatus(reportId)).toBe(ReportStatus.PENDING);
expect(await reportResolvedEmails(harness, reporter)).toEqual([]);
expect(await systemDmMessages(harness, reporter)).toEqual([]);
expect(await new AdminRepository().isEmailBanned(target.email)).toBe(true);
});
- test('a payload with notify_user false emails nobody and records it in the summary', async () => {
+ test('restricted reasons cannot close accounts in bulk', async () => {
const admin = await createTestAccount(harness);
await setUserACLs(harness, admin, ['admin:authenticate', 'bulk:delete:users']);
- const first = await createTestAccount(harness);
- const second = await createTestAccount(harness);
- await clearTestEmails(harness);
- const result = await runBulkJob([first.userId, second.userId], admin.userId, DeletionReasons.SPAM, {
- notify_user: false,
- });
- expect(result.successful_count).toBe(2);
- expect(await listTestEmails(harness, {recipient: first.email})).toEqual([]);
- expect(await listTestEmails(harness, {recipient: second.email})).toEqual([]);
- const perUserLogs = await listAuditLogs('schedule_deletion');
- expect(perUserLogs.every((log) => log.metadata.get('notify_user') === 'false')).toBe(true);
- const summaryLogs = await listAuditLogs('bulk_schedule_deletion');
- expect(summaryLogs[0]!.metadata.get('notify_user')).toBe('false');
+ const target = await createTestAccount(harness);
+ const result = await runBulkJob(
+ [target.userId],
+ admin.userId,
+ enforcementBasis(DeletionReasons.CHILD_SAFETY_VIOLATION),
+ );
+ expect(result.failed_count).toBe(1);
+ const user = await getUserRepository().findUnique(createUserID(BigInt(target.userId)));
+ expect(user?.pendingDeletionAt).toBeNull();
});
- test('a payload queued without notify_user emails every user', async () => {
+ test('every account gets its own decision and notice', async () => {
const admin = await createTestAccount(harness);
await setUserACLs(harness, admin, ['admin:authenticate', 'bulk:delete:users']);
const first = await createTestAccount(harness);
@@ -559,14 +579,41 @@ describe('bulkScheduleUserDeletion', () => {
await clearTestEmails(harness);
const result = await runBulkJob([first.userId, second.userId], admin.userId);
expect(result.successful_count).toBe(2);
+ const decisionIds = new Set<string>();
for (const target of [first, second]) {
const emails = await listTestEmails(harness, {recipient: target.email});
- expect(emails.map((email) => email.type)).toEqual(['account_scheduled_deletion']);
+ expect(emails.map((email) => email.type)).toEqual(['enforcement_notice']);
+ expect(emails[0]?.metadata.statement).toBe('These accounts sent the same invite link to many people.');
+ const user = await getUserRepository().findUnique(createUserID(BigInt(target.userId)));
+ expect(user?.enforcementDecisionId).not.toBeNull();
+ decisionIds.add(user!.enforcementDecisionId!.toString());
}
+ expect(decisionIds.size).toBe(2);
const summaryLogs = await listAuditLogs('bulk_schedule_deletion');
- expect(summaryLogs[0]!.metadata.get('notify_user')).toBe('true');
+ expect(summaryLogs[0]!.metadata.get('basis')).toBe('enforcement');
+ expect(summaryLogs[0]!.metadata.get('reason_code')).toBe(DeletionReasons.SPAM.toString());
+ });
+ test('a job queued in the old payload shape fails instead of inventing a decision', async () => {
+ installWorkerDependencies();
+ const target = await createTestAccount(harness);
+ await expect(
+ bulkScheduleUserDeletion(
+ {
+ user_ids: [target.userId],
+ reason_code: DeletionReasons.SPAM,
+ days_until_deletion: 60,
+ public_reason: null,
+ notify_user: true,
+ admin_user_id: target.userId,
+ audit_log_reason: AUDIT_LOG_REASON,
+ },
+ createTestWorkerHelpers({jobId: 4243n}),
+ ),
+ ).rejects.toThrow();
+ const user = await getUserRepository().findUnique(createUserID(BigInt(target.userId)));
+ expect(user?.pendingDeletionAt).toBeNull();
});
- test('the bulk job route queues notify_user in the payload', async () => {
+ test('the bulk job route queues the basis and refuses evidence in bulk', async () => {
const admin = await createTestAccount(harness);
await setUserACLs(harness, admin, ['admin:authenticate', 'bulk:delete:users']);
const target = await createTestAccount(harness);
@@ -578,19 +625,32 @@ describe('bulkScheduleUserDeletion', () => {
},
cancelJob: async () => false,
});
+ const basis = enforcementBasis();
await createBuilder(harness, admin.token)
.post('/admin/bulk-jobs')
+ .header('X-Audit-Log-Reason', AUDIT_LOG_REASON)
.body({
task: 'schedule_user_deletion',
user_ids: [target.userId],
- reason_code: DeletionReasons.SPAM,
- notify_user: false,
+ days_until_deletion: 90,
+ basis: {...basis, decision: {...basis.decision, evidence: [{channel_id: '1', message_id: '2'}]}},
})
+ .expect(HTTP_STATUS.BAD_REQUEST)
+ .execute();
+ await createBuilder(harness, admin.token)
+ .post('/admin/bulk-jobs')
+ .body({task: 'schedule_user_deletion', user_ids: [target.userId], days_until_deletion: 90, basis})
+ .expect(HTTP_STATUS.BAD_REQUEST, 'INVALID_FORM_BODY')
+ .execute();
+ await createBuilder(harness, admin.token)
+ .post('/admin/bulk-jobs')
+ .header('X-Audit-Log-Reason', AUDIT_LOG_REASON)
+ .body({task: 'schedule_user_deletion', user_ids: [target.userId], days_until_deletion: 90, basis})
.expect(HTTP_STATUS.OK)
.execute();
expect(queued).toHaveLength(1);
expect(queued[0]!.task).toBe('bulkScheduleUserDeletion');
- expect(queued[0]!.payload.notify_user).toBe(false);
+ expect(queued[0]!.payload.basis).toEqual(basis);
});
test('leaves a deletion another admin already scheduled in place and reports the user as not scheduled', async () => {
const scheduler = await createTestAccount(harness);
@@ -601,7 +661,7 @@ describe('bulkScheduleUserDeletion', () => {
const fresh = await createTestAccount(harness);
await createBuilder(harness, scheduler.token)
.put(`/admin/users/${scheduled.userId}/deletion`)
- .body({reason_code: DeletionReasons.SPAM, days_until_deletion: 90})
+ .body({days_until_deletion: 90, basis: {type: 'holder_request'}})
.expect(HTTP_STATUS.OK)
.execute();
const before = await getUserRepository().findUnique(createUserID(BigInt(scheduled.userId)));
diff --git a/fluxer_api/src/api/worker/tests/BulkUpdateUserFlagsTask.test.ts b/fluxer_api/src/api/worker/tests/BulkUpdateUserFlagsTask.test.ts
index ec698a483..d7c981db7 100644
--- a/fluxer_api/src/api/worker/tests/BulkUpdateUserFlagsTask.test.ts
+++ b/fluxer_api/src/api/worker/tests/BulkUpdateUserFlagsTask.test.ts
@@ -70,7 +70,7 @@ describe('bulkUpdateUserFlags task', () => {
const result = (await bulkUpdateUserFlags(
{
user_ids: [first.userId, MISSING_USER_ID.toString(), second.userId],
- add_flags: [UserFlags.SPAMMER.toString()],
+ add_flags: [UserFlags.PARTNER.toString()],
remove_flags: [UserFlags.HAS_SESSION_STARTED.toString()],
admin_user_id: ADMIN_USER_ID.toString(),
audit_log_reason: 'Lilith spam sweep',
@@ -84,7 +84,7 @@ describe('bulkUpdateUserFlags task', () => {
const userRepository = getUserRepository();
const updatedFirst = await userRepository.findUnique(createUserID(BigInt(first.userId)));
- expect(updatedFirst!.flags & UserFlags.SPAMMER).toBe(UserFlags.SPAMMER);
+ expect(updatedFirst!.flags & UserFlags.PARTNER).toBe(UserFlags.PARTNER);
expect(updatedFirst!.flags & UserFlags.HAS_SESSION_STARTED).toBe(0n);
const auditLogs = await new AdminRepository().listAllAuditLogsPaginated(50);
@@ -94,9 +94,9 @@ describe('bulkUpdateUserFlags task', () => {
expect(log.targetType).toBe('user');
expect(log.adminUserId.toString()).toBe(ADMIN_USER_ID.toString());
expect(log.auditLogReason).toBe('Lilith spam sweep');
- expect(log.metadata.get('add_flags')).toBe(UserFlags.SPAMMER.toString());
+ expect(log.metadata.get('add_flags')).toBe(UserFlags.PARTNER.toString());
expect(log.metadata.get('remove_flags')).toBe(UserFlags.HAS_SESSION_STARTED.toString());
- expect(log.metadata.get('new_flags')).toBe(UserFlags.SPAMMER.toString());
+ expect(log.metadata.get('new_flags')).toBe(UserFlags.PARTNER.toString());
}
expect(auditLogs.some((log) => log.action === 'update_flags' && log.targetId === MISSING_USER_ID)).toBe(false);
});
diff --git a/fluxer_app/package.json b/fluxer_app/package.json
index 9228d4abf..8ba9edafd 100644
--- a/fluxer_app/package.json
+++ b/fluxer_app/package.json
@@ -245,6 +245,7 @@
},
"devDependencies": {
"@babel/parser": "8.0.5",
+ "@fluxer/errors": "workspace:*",
"@lingui/cli": "catalog:",
"@lingui/format-po": "catalog:",
"@lingui/swc-plugin": "catalog:",
diff --git a/fluxer_app/src/features/app/components/layout/AuthLayout.tsx b/fluxer_app/src/features/app/components/layout/AuthLayout.tsx
index 88afe131b..29be9e228 100644
--- a/fluxer_app/src/features/app/components/layout/AuthLayout.tsx
+++ b/fluxer_app/src/features/app/components/layout/AuthLayout.tsx
@@ -8,6 +8,7 @@ import {NativeTitlebar} from '@app/features/app/components/layout/NativeTitlebar
import {AuthShellHintKind, useAuthShellHintCapture} from '@app/features/app/components/skeleton/AuthShellHint';
import {useNativePlatform} from '@app/features/app/hooks/useNativePlatform';
import {useSetLayoutVariant} from '@app/features/app/state/LayoutVariantContext';
+import {AccountRestrictionGate} from '@app/features/auth/flow/AccountRestrictionScreen';
import {AuthBackground} from '@app/features/auth/flow/AuthBackground';
import {AuthCardContainer} from '@app/features/auth/flow/AuthCardContainer';
import {AuthRuntimeTargetBoundary} from '@app/features/auth/flow/AuthRuntimeTargetBoundary';
@@ -307,7 +308,9 @@ export const AuthLayout = observer(function AuthLayout({children}: {children?: R
<AppI18nProvider i18n={i18n}>
<AuthLayoutContent data-flx="app.auth-layout.auth-layout-content">
<AuthRuntimeTargetBoundary data-flx="app.auth-layout.auth-runtime-target-boundary">
- {children}
+ <AccountRestrictionGate data-flx="app.auth-layout.account-restriction-gate">
+ {children}
+ </AccountRestrictionGate>
</AuthRuntimeTargetBoundary>
</AuthLayoutContent>
</AppI18nProvider>
diff --git a/fluxer_app/src/features/auth/AuthMessageDescriptors.ts b/fluxer_app/src/features/auth/AuthMessageDescriptors.ts
index 3afe7a944..97231a0fd 100644
--- a/fluxer_app/src/features/auth/AuthMessageDescriptors.ts
+++ b/fluxer_app/src/features/auth/AuthMessageDescriptors.ts
@@ -18,3 +18,23 @@ export const SIGN_IN_WITH_BROWSER_DESCRIPTOR = msg({
message: 'Sign in with your browser',
comment: 'Action label that hands sign-in off to the system web browser.',
});
+export const NETWORK_BLOCKED_DESCRIPTOR = msg({
+ message: 'Network blocked',
+ comment: 'Title of the screen and dialog shown when the instance blocks the network a request came from.',
+});
+export const NETWORK_BLOCK_LEAD_WITH_REASON_DESCRIPTOR = msg({
+ message: '{productName} blocked access from this network because of activity that broke its rules.',
+ comment:
+ 'First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.',
+});
+export const NETWORK_BLOCK_LEAD_DESCRIPTOR = msg({
+ message: '{productName} blocked access from this network.',
+ comment:
+ 'First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.',
+});
+export const SHARED_NETWORK_DESCRIPTOR = msg({
+ message:
+ 'If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.',
+ comment:
+ 'Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.',
+});
diff --git a/fluxer_app/src/features/auth/commands/AuthenticationCommands.ts b/fluxer_app/src/features/auth/commands/AuthenticationCommands.ts
index f00e267f3..f47883067 100644
--- a/fluxer_app/src/features/auth/commands/AuthenticationCommands.ts
+++ b/fluxer_app/src/features/auth/commands/AuthenticationCommands.ts
@@ -2,6 +2,7 @@
import {Endpoints} from '@app/features/app/constants/Endpoints';
import type {RuntimeConfigSnapshot} from '@app/features/app/state/InstanceSnapshotStore';
+import {parseAccountRestriction} from '@app/features/auth/state/AccountRestriction';
import type {UserData} from '@app/features/auth/state/AccountStorageContract';
import Accounts from '@app/features/auth/state/Accounts';
import Authentication from '@app/features/auth/state/Authentication';
@@ -867,3 +868,16 @@ export function clearMfaTicket(): void {
logger.debug('Clearing MFA ticket');
Authentication.handleMfaTicketClear();
}
+
+export function showAccountRestriction(error: unknown): boolean {
+ const restriction = parseAccountRestriction(error);
+ if (restriction == null) {
+ return false;
+ }
+ Authentication.handleAccountRestriction(restriction);
+ return true;
+}
+
+export function clearAccountRestriction(): void {
+ Authentication.handleAccountRestrictionClear();
+}
diff --git a/fluxer_app/src/features/auth/components/NetworkBlockedHandler.tsx b/fluxer_app/src/features/auth/components/NetworkBlockedHandler.tsx
new file mode 100644
index 000000000..ff11e396c
--- /dev/null
+++ b/fluxer_app/src/features/auth/components/NetworkBlockedHandler.tsx
@@ -0,0 +1,52 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import * as Modal from '@app/features/app/components/dialogs/Modal';
+import {NETWORK_BLOCKED_DESCRIPTOR} from '@app/features/auth/AuthMessageDescriptors';
+import {NetworkBlockDetails} from '@app/features/auth/flow/AccountRestrictionScreen';
+import styles from '@app/features/auth/flow/AccountRestrictionScreen.module.css';
+import {TRY_AGAIN_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
+import {getLocaleDirection} from '@app/features/i18n/utils/LocaleDirection';
+import {Button} from '@app/features/ui/button/Button';
+import * as ModalCommands from '@app/features/ui/commands/ModalCommands';
+import {modal} from '@app/features/ui/commands/ModalCommands';
+import type {NetworkBlock} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+import {useLingui} from '@lingui/react/macro';
+import {observer} from 'mobx-react-lite';
+
+let modalShown = false;
+
+const NetworkBlockedModal = observer(function NetworkBlockedModal({block}: {block: NetworkBlock}) {
+ const {i18n} = useLingui();
+ const dir = getLocaleDirection(i18n.locale);
+ const handleTryAgain = () => {
+ modalShown = false;
+ ModalCommands.pop();
+ };
+ return (
+ <Modal.Root size="small" centered className={styles.selectable} data-flx="auth.network-blocked-handler.modal-root">
+ <div className={styles.directionScope} dir={dir} data-flx="auth.network-blocked-handler.direction-scope">
+ <Modal.Header title={i18n._(NETWORK_BLOCKED_DESCRIPTOR)} data-flx="auth.network-blocked-handler.modal-header" />
+ <Modal.Content dir={dir} data-flx="auth.network-blocked-handler.modal-content">
+ <div className={styles.dialogBody} data-flx="auth.network-blocked-handler.dialog-body">
+ <NetworkBlockDetails block={block} data-flx="auth.network-blocked-handler.network-block-details" />
+ </div>
+ </Modal.Content>
+ <Modal.Footer data-flx="auth.network-blocked-handler.footer">
+ <Button onClick={handleTryAgain} data-flx="auth.network-blocked-handler.button.try-again">
+ {i18n._(TRY_AGAIN_DESCRIPTOR)}
+ </Button>
+ </Modal.Footer>
+ </div>
+ </Modal.Root>
+ );
+});
+
+export function showNetworkBlockedModal(block: NetworkBlock): void {
+ if (modalShown) {
+ return;
+ }
+ modalShown = true;
+ ModalCommands.push(
+ modal(() => <NetworkBlockedModal block={block} data-flx="auth.network-blocked-handler.network-blocked-modal" />),
+ );
+}
diff --git a/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherAuthFlow.tsx b/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherAuthFlow.tsx
index 7476877af..7320a4948 100644
--- a/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherAuthFlow.tsx
+++ b/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherAuthFlow.tsx
@@ -14,6 +14,7 @@ import {AccountSwitcherLoginStep} from '@app/features/auth/components/accounts/a
import {AccountSwitcherRegisterStep} from '@app/features/auth/components/accounts/account_switcher_modal/AccountSwitcherRegisterStep';
import forgotStyles from '@app/features/auth/components/pages/ForgotPasswordPage.module.css';
import {RecoverAccountForm} from '@app/features/auth/components/pages/RecoverAccountPage';
+import {AccountRestrictionScreen} from '@app/features/auth/flow/AccountRestrictionScreen';
import {shouldRenderInstanceStep} from '@app/features/auth/flow/auth_login_core/AuthLoginInstanceStep';
import {ForgotPasswordForm} from '@app/features/auth/flow/ForgotPasswordForm';
import MFAScreen from '@app/features/auth/flow/MfaScreen';
@@ -100,6 +101,7 @@ export const AccountSwitcherAuthFlow = observer(function AccountSwitcherAuthFlow
() => ({setSplashUrl, setCardVariant, setContentMode, setSplashCardAlignment}),
[setSplashUrl],
);
+ const accountRestriction = Authentication.accountRestriction;
const mfaTicket = Authentication.currentMfaTicket;
const mfaMethods = Authentication.availableMfaMethods;
const hasMfaChallenge = mfaChallengePurpose === purpose && mfaTicket != null && mfaMethods != null;
@@ -111,11 +113,13 @@ export const AccountSwitcherAuthFlow = observer(function AccountSwitcherAuthFlow
}
useLayoutEffect(() => {
AuthenticationCommands.clearMfaTicket();
+ AuthenticationCommands.clearAccountRestriction();
setMfaChallengePurpose(purpose);
setSelectedAuthStep(AccountSwitcherAuthStep.LOGIN);
setLoginBackAction(null);
return () => {
AuthenticationCommands.clearMfaTicket();
+ AuthenticationCommands.clearAccountRestriction();
};
}, [purpose]);
const showRegisterStep = useCallback(() => {
@@ -172,7 +176,15 @@ export const AccountSwitcherAuthFlow = observer(function AccountSwitcherAuthFlow
},
[authRuntimeTarget, onLoginComplete, redirectAfterLogin],
);
+ const handleBackToSignIn = useCallback(() => {
+ AuthenticationCommands.clearAccountRestriction();
+ showLoginStep();
+ }, [showLoginStep]);
const handleBack = useCallback(() => {
+ if (accountRestriction != null) {
+ handleBackToSignIn();
+ return;
+ }
switch (authStep) {
case AccountSwitcherAuthStep.MFA:
AuthenticationCommands.clearMfaTicket();
@@ -192,8 +204,18 @@ export const AccountSwitcherAuthFlow = observer(function AccountSwitcherAuthFlow
return;
}
onBackToAccounts();
- }, [authStep, loginBackAction, onBackToAccounts, showLoginStep]);
+ }, [accountRestriction, authStep, handleBackToSignIn, loginBackAction, onBackToAccounts, showLoginStep]);
const renderAuthStep = (): React.ReactNode => {
+ if (accountRestriction != null) {
+ return (
+ <AccountRestrictionScreen
+ restriction={accountRestriction}
+ onBackToSignIn={handleBackToSignIn}
+ onTryAgain={AuthenticationCommands.clearAccountRestriction}
+ data-flx="auth.accounts.account-switcher-modal.account-switcher-auth-flow.account-restriction-screen"
+ />
+ );
+ }
switch (authStep) {
case AccountSwitcherAuthStep.MFA:
if (mfaTicket == null || mfaMethods == null) {
diff --git a/fluxer_app/src/features/auth/components/pages/SsoCallbackPage.tsx b/fluxer_app/src/features/auth/components/pages/SsoCallbackPage.tsx
index a439acd4c..cc290963a 100644
--- a/fluxer_app/src/features/auth/components/pages/SsoCallbackPage.tsx
+++ b/fluxer_app/src/features/auth/components/pages/SsoCallbackPage.tsx
@@ -140,6 +140,11 @@ class SsoCallbackAttempt {
}
private handleFailure(error: unknown): void {
+ if (!this.settled && AuthenticationCommands.showAccountRestriction(error)) {
+ this.settled = true;
+ this.stopTimeout();
+ return;
+ }
const message =
error != null && typeof error === 'object' && 'body' in error
? FormUtils.extractErrorMessage(this.dependencies.i18n, error)
diff --git a/fluxer_app/src/features/auth/flow/AccountRestrictionScreen.module.css b/fluxer_app/src/features/auth/flow/AccountRestrictionScreen.module.css
new file mode 100644
index 000000000..1c1d0132a
--- /dev/null
+++ b/fluxer_app/src/features/auth/flow/AccountRestrictionScreen.module.css
@@ -0,0 +1,99 @@
+/* SPDX-License-Identifier: AGPL-3.0-or-later */
+
+.selectable,
+.selectable * {
+ user-select: text !important;
+ -webkit-user-select: text !important;
+}
+
+.directionScope {
+ display: contents;
+}
+
+.dialogBody {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+}
+
+.container {
+ display: flex;
+ flex-direction: column;
+ gap: 1.25rem;
+ width: 100%;
+ padding: 0.25rem 0;
+}
+
+.surface {
+ box-sizing: border-box;
+ padding: 1.5rem 1.5rem 0;
+ border: 0.0625rem solid rgb(255 255 255 / 0.08);
+ border-radius: 0.5rem;
+ background-color: var(--background-secondary);
+ box-shadow: 0 1.25rem 4rem -1.5rem rgb(0 0 0 / 0.7);
+}
+
+.footer {
+ position: sticky;
+ bottom: 0;
+ z-index: 1;
+ margin-top: 0.25rem;
+ padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
+ background-color: var(--background-secondary);
+}
+
+.surface .footer {
+ bottom: calc(-2.5rem - env(safe-area-inset-bottom, 0px));
+ border-top: 0.0625rem solid var(--background-modifier-accent);
+}
+
+.title {
+ margin: 0;
+ text-align: center;
+ font-size: 1.125rem;
+ font-weight: 600;
+ color: var(--text-primary);
+}
+
+.section {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+}
+
+.heading {
+ margin: 0;
+ font-size: 0.9375rem;
+ font-weight: 600;
+ color: var(--text-primary);
+}
+
+.summary {
+ margin: 0;
+ font-size: 0.9375rem;
+ font-weight: 600;
+ line-height: 1.5;
+ color: var(--text-primary);
+}
+
+.text {
+ margin: 0;
+ font-size: 0.875rem;
+ line-height: 1.5;
+ color: var(--text-secondary);
+ overflow-wrap: anywhere;
+}
+
+.fineText {
+ margin: 0;
+ font-size: 0.8125rem;
+ line-height: 1.5;
+ color: var(--text-tertiary);
+}
+
+.reference {
+ margin: 0;
+ font-size: 0.8125rem;
+ line-height: 1.5;
+ color: var(--text-tertiary);
+}
diff --git a/fluxer_app/src/features/auth/flow/AccountRestrictionScreen.test.tsx b/fluxer_app/src/features/auth/flow/AccountRestrictionScreen.test.tsx
new file mode 100644
index 000000000..2cedc5f63
--- /dev/null
+++ b/fluxer_app/src/features/auth/flow/AccountRestrictionScreen.test.tsx
@@ -0,0 +1,441 @@
+// @vitest-environment happy-dom
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {readFileSync} from 'node:fs';
+import {join} from 'node:path';
+import type {AccountRestriction} from '@app/features/auth/state/AccountRestriction';
+import type {EnforcementNotice, NetworkBlock} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+import type {ReactNode} from 'react';
+import {act} from 'react';
+import {createRoot, type Root} from 'react-dom/client';
+import {afterEach, beforeEach, describe, expect, test, vi} from 'vitest';
+
+const mocks = vi.hoisted(() => ({
+ restriction: null as unknown,
+ pathname: '/reset',
+ clearAccountRestriction: vi.fn(),
+ replaceWith: vi.fn(),
+ pushModal: vi.fn(),
+ popModal: vi.fn(),
+ locale: 'en-US',
+ mobile: false,
+}));
+
+function interpolate(message: string, values: Record<string, unknown> = {}): string {
+ return message.replace(/\{(\w+)\}/g, (_match, name: string) => String(values[name]));
+}
+
+vi.mock('@lingui/core/macro', () => ({msg: (descriptor: unknown) => descriptor}));
+vi.mock('@lingui/react/macro', () => ({
+ Trans: ({children}: {children: ReactNode}) => children,
+ useLingui: () => ({
+ i18n: {
+ get locale() {
+ return mocks.locale;
+ },
+ _: (descriptor: {message: string}, values?: Record<string, unknown>) => interpolate(descriptor.message, values),
+ },
+ }),
+}));
+vi.mock('mobx-react-lite', () => ({observer: (component: unknown) => component}));
+vi.mock('@app/features/auth/flow/AccountRestrictionScreen.module.css', () => ({
+ default: new Proxy({}, {get: (_target, name) => String(name)}),
+}));
+vi.mock('@app/features/app/components/shared/ExternalLink', () => ({
+ ExternalLink: ({href, children}: {href: string; children: ReactNode}) => (
+ <a href={href} data-external-link="true" data-flx="auth.flow.account-restriction-screen-test.external-link">
+ {children}
+ </a>
+ ),
+}));
+vi.mock('@app/features/ui/button/Button', () => ({
+ Button: ({onClick, children}: {onClick: () => void; children: ReactNode}) => (
+ <button type="button" onClick={onClick} data-flx="auth.flow.account-restriction-screen-test.button">
+ {children}
+ </button>
+ ),
+}));
+vi.mock('@app/features/i18n/utils/CommonMessageDescriptors', () => ({
+ BACK_TO_SIGN_IN_DESCRIPTOR: {message: 'Back to sign-in'},
+ TRY_AGAIN_DESCRIPTOR: {message: 'Try again'},
+}));
+vi.mock('@app/features/auth/flow/useAuthPresentation', () => ({useAuthPresentation: () => {}}));
+vi.mock('@app/features/ui/utils/MobileExperience', () => ({isMobileExperienceEnabled: () => mocks.mobile}));
+vi.mock('@app/features/auth/state/AuthLayoutContext', () => ({AuthCardVariant: {STANDARD: 'standard'}}));
+vi.mock('@app/features/auth/state/Authentication', () => ({
+ default: {
+ get accountRestriction() {
+ return mocks.restriction;
+ },
+ },
+}));
+vi.mock('@app/features/auth/commands/AuthenticationCommands', () => ({
+ clearAccountRestriction: mocks.clearAccountRestriction,
+}));
+vi.mock('@app/features/navigation/utils/RouterUtils', () => ({replaceWith: mocks.replaceWith}));
+vi.mock('@app/features/platform/components/router/RouterReact', () => ({
+ useLocation: () => ({pathname: mocks.pathname}),
+}));
+vi.mock('@app/features/app/components/dialogs/Modal', () => ({
+ Root: ({className, children}: {className: string; children: ReactNode}) => (
+ <div role="dialog" className={className} data-flx="auth.flow.account-restriction-screen-test.root">
+ {children}
+ </div>
+ ),
+ Header: ({title}: {title: string}) => <h1 data-flx="auth.flow.account-restriction-screen-test.header">{title}</h1>,
+ Content: ({children, dir}: {children: ReactNode; dir?: string}) => (
+ <div data-modal-content="true" dir={dir} data-flx="auth.flow.account-restriction-screen-test.content">
+ {children}
+ </div>
+ ),
+ ContentLayout: ({children}: {children: ReactNode}) => children,
+ Footer: ({children}: {children: ReactNode}) => children,
+}));
+vi.mock('@app/features/ui/commands/ModalCommands', () => ({
+ push: mocks.pushModal,
+ pop: mocks.popModal,
+ modal: (render: () => ReactNode) => render,
+}));
+
+const {AccountRestrictionGate, AccountRestrictionScreen} = await import(
+ '@app/features/auth/flow/AccountRestrictionScreen'
+);
+const {showNetworkBlockedModal} = await import('@app/features/auth/components/NetworkBlockedHandler');
+
+const notice: EnforcementNotice = {
+ decision_id: '1234567890123456789',
+ kind: 'suspension',
+ permanent: false,
+ issued_at: '2026-10-01T10:00:00.000Z',
+ ends_at: '2026-10-08T10:00:00.000Z',
+ deletion_at: null,
+ summary: 'We suspended your account until Oct 8, 2026, 10:00 AM UTC.',
+ effects: ["You can't sign in or use Fluxer anywhere until then. Your account, messages and communities are kept."],
+ rule: {title: 'Spam and service abuse', url: 'https://fluxer.com/guidelines#6-spam-and-service-abuse'},
+ facts: [
+ 'We found that your account sent unwanted messages in bulk.',
+ '3 messages in #general of Example, between Oct 1, 2026, 9:00 AM UTC and Oct 1, 2026, 9:05 AM UTC.',
+ ],
+ statement: 'Please read the rules.',
+ how_we_decided: ['We reviewed this after a report.', 'A person on our team reviewed this and made the decision.'],
+ appeal: {email: '[email protected]', deadline: 'Nov 30, 2026', account_has_email: true},
+ redress: [
+ "If you're in the EU, you can also refer this decision to a certified out-of-court dispute settlement body. The European Commission keeps a [list of these bodies](https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement).",
+ ],
+};
+
+const block: NetworkBlock = {
+ ip_address: '203.0.113.7',
+ appeal_email: '[email protected]',
+ appeals_supported: true,
+ ban_kind: 'permanent',
+ expires_at: null,
+ reason: null,
+ product_name: 'Fluxer',
+};
+
+let root: Root | null = null;
+let container: HTMLElement | null = null;
+
+function render(node: ReactNode): HTMLElement {
+ const target = container;
+ if (target == null) {
+ throw new Error('The test container is not mounted');
+ }
+ act(() => root?.render(node));
+ return target;
+}
+
+function renderScreen(restriction: AccountRestriction, handlers = {onBackToSignIn: vi.fn(), onTryAgain: vi.fn()}) {
+ const element = render(
+ <AccountRestrictionScreen
+ restriction={restriction}
+ {...handlers}
+ data-flx="auth.flow.account-restriction-screen-test.account-restriction-screen"
+ />,
+ );
+ return {element, ...handlers};
+}
+
+function text(element: HTMLElement): string {
+ return (element.textContent ?? '').replace(/\s+/g, ' ');
+}
+
+function paragraphs(element: HTMLElement): Array<string> {
+ return [...element.querySelectorAll('p')].map((paragraph) => text(paragraph));
+}
+
+function clickButton(element: HTMLElement, label: string): void {
+ const button = [...element.querySelectorAll('button')].find((candidate) => candidate.textContent === label);
+ if (button == null) {
+ throw new Error(`No ${label} button`);
+ }
+ act(() => button.click());
+}
+
+beforeEach(() => {
+ (globalThis as {IS_REACT_ACT_ENVIRONMENT?: boolean}).IS_REACT_ACT_ENVIRONMENT = true;
+ container = document.createElement('div');
+ document.body.appendChild(container);
+ root = createRoot(container);
+ mocks.restriction = null;
+ mocks.pathname = '/reset';
+ mocks.locale = 'en-US';
+ mocks.mobile = false;
+ vi.clearAllMocks();
+});
+
+afterEach(() => {
+ act(() => root?.unmount());
+ container?.remove();
+ root = null;
+ container = null;
+});
+
+describe('account notice', () => {
+ test('shows every section of the notice with a real mailto link', () => {
+ const {element} = renderScreen({type: 'notice', notice});
+ const content = text(element);
+ expect(element.querySelector('h1')?.textContent).toBe('Account suspended');
+ expect([...element.querySelectorAll('h2')].map((heading) => heading.textContent)).toEqual([
+ 'What happened',
+ 'Why',
+ 'How we decided',
+ 'How to appeal',
+ ]);
+ for (const line of [notice.summary, ...notice.effects, ...notice.facts, ...notice.how_we_decided]) {
+ expect(content).toContain(line);
+ }
+ expect(content).toContain('The European Commission keeps a list of these bodies.');
+ expect(content).not.toContain('](');
+ expect(content).toContain('Rule: Spam and service abuse');
+ expect(content).toContain('Note from our team: Please read the rules.');
+ expect(content).toContain(
+ 'If you think we got this wrong, email [email protected] by Nov 30, 2026. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one.',
+ );
+ expect(content).toContain('Decision ID: 1234567890123456789');
+ const links = [...element.querySelectorAll('a[data-external-link]')].map((link) => link.getAttribute('href'));
+ expect(links).toEqual([
+ 'https://fluxer.com/guidelines#6-spam-and-service-abuse',
+ 'mailto:[email protected]',
+ 'https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement',
+ ]);
+ });
+
+ test('the primary button sits in the footer, and mobile gets its own card', () => {
+ const {element} = renderScreen({type: 'notice', notice});
+ const root = element.firstElementChild;
+ expect(root?.lastElementChild?.className).toBe('footer');
+ expect(root?.lastElementChild?.querySelector('button')?.textContent).toBe('Back to sign-in');
+ expect(root?.className.split(' ')).not.toContain('surface');
+ mocks.mobile = true;
+ renderScreen({type: 'notice', notice});
+ expect(container?.firstElementChild?.className.split(' ')).toContain('surface');
+ });
+
+ test('follows the direction of the locale', () => {
+ mocks.locale = 'ar';
+ const {element} = renderScreen({type: 'notice', notice});
+ expect(element.firstElementChild?.getAttribute('dir')).toBe('rtl');
+ });
+
+ test('titles follow the kind and permanence', () => {
+ renderScreen({type: 'notice', notice: {...notice, permanent: true, ends_at: null}});
+ expect(container?.querySelector('h1')?.textContent).toBe('Account banned');
+ renderScreen({type: 'notice', notice: {...notice, kind: 'closure', deletion_at: '2027-01-01T00:00:00.000Z'}});
+ expect(container?.querySelector('h1')?.textContent).toBe('Account closed');
+ });
+
+ test('the root is selectable and the decision ID has no copy control', () => {
+ const {element} = renderScreen({type: 'notice', notice});
+ expect(element.firstElementChild?.className.split(' ')).toContain('selectable');
+ expect([...element.querySelectorAll('button')].map((button) => button.textContent)).toEqual(['Back to sign-in']);
+ expect(text(element)).not.toMatch(/cop(y|ied)/i);
+ const css = readFileSync(join(process.cwd(), 'src/features/auth/flow/AccountRestrictionScreen.module.css'), 'utf8');
+ expect(css).toMatch(
+ /\.selectable,\s*\.selectable \* \{\s*user-select: text !important;\s*-webkit-user-select: text !important;/,
+ );
+ });
+
+ test('an account with no email asks for the decision ID and username', () => {
+ const {element} = renderScreen({
+ type: 'notice',
+ notice: {...notice, appeal: {email: '[email protected]', deadline: 'Nov 30, 2026', account_has_email: false}},
+ });
+ expect(text(element)).toContain(
+ 'If you think we got this wrong, email [email protected] by Nov 30, 2026. Include the decision ID and your username. Appeals are free, and a person reviews each one.',
+ );
+ });
+
+ test('a deadline that ends in a period does not double the full stop', () => {
+ const {element} = renderScreen({
+ type: 'notice',
+ notice: {...notice, appeal: {email: '[email protected]', deadline: '14. pro 2026.', account_has_email: true}},
+ });
+ expect(text(element)).toContain('by 14. pro 2026. Write from');
+ });
+
+ test('a restriction from before decisions has no deadline and no decision ID', () => {
+ const {element} = renderScreen({
+ type: 'notice',
+ notice: {
+ ...notice,
+ decision_id: null,
+ rule: null,
+ statement: null,
+ how_we_decided: [],
+ facts: ["We don't have more detail on record for this decision."],
+ appeal: {email: '[email protected]', deadline: null, account_has_email: true},
+ },
+ });
+ const content = text(element);
+ expect(content).toContain('If you think we got this wrong, email [email protected] and include your username.');
+ expect(content).not.toContain('Decision ID');
+ expect(content).not.toContain('Rule:');
+ expect(content).not.toContain('How we decided');
+ });
+
+ test('self-hosted notices have no appeal section and no email link', () => {
+ const {element} = renderScreen({
+ type: 'notice',
+ notice: {...notice, rule: {title: 'Spam and service abuse', url: null}, appeal: null, redress: []},
+ });
+ const content = text(element);
+ expect(content).not.toContain('How to appeal');
+ expect(content).not.toContain('@');
+ expect(content).toContain('Rule: Spam and service abuse');
+ expect(element.querySelectorAll('a')).toHaveLength(0);
+ });
+
+ test('back to sign-in calls its handler', () => {
+ const {element, onBackToSignIn} = renderScreen({type: 'notice', notice});
+ clickButton(element, 'Back to sign-in');
+ expect(onBackToSignIn).toHaveBeenCalledOnce();
+ });
+});
+
+describe('network blocked', () => {
+ test('without a reason shows the plain lead, the shared-network paragraph and the contact', () => {
+ const {element} = renderScreen({type: 'network_blocked', block});
+ expect(element.querySelector('h1')?.textContent).toBe('Network blocked');
+ expect(paragraphs(element)).toEqual([
+ 'Fluxer blocked access from this network.',
+ 'If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.',
+ 'If you think this block is a mistake, email [email protected] and include your IP address, 203.0.113.7.',
+ ]);
+ expect(text(element)).not.toMatch(/sign in/i);
+ expect(element.querySelector('a')?.getAttribute('href')).toBe('mailto:[email protected]');
+ expect(element.firstElementChild?.className.split(' ')).toContain('selectable');
+ });
+
+ test('with a reason leads with the rule', () => {
+ const {element} = renderScreen({
+ type: 'network_blocked',
+ block: {...block, appeal_email: '[email protected]', reason: {title: 'Spam and service abuse', url: null}},
+ });
+ expect(paragraphs(element).slice(0, 2)).toEqual([
+ 'Fluxer blocked access from this network because of activity that broke its rules.',
+ 'Rule: Spam and service abuse',
+ ]);
+ });
+
+ test('a temporary block says when it ends', () => {
+ const {element} = renderScreen({
+ type: 'network_blocked',
+ block: {...block, ban_kind: 'temporary_24h', expires_at: '2026-10-15T10:00:00.000Z'},
+ });
+ expect(text(element)).toContain('The block ends on Oct 15, 2026, 10:00 AM UTC.');
+ });
+
+ test('self-hosted blocks have no contact line', () => {
+ const {element} = renderScreen({
+ type: 'network_blocked',
+ block: {...block, appeal_email: null, appeals_supported: false},
+ });
+ expect(text(element)).not.toContain('mistake');
+ expect(element.querySelectorAll('a')).toHaveLength(0);
+ });
+
+ test('an unnamed self-hosted instance uses the name the server sent', () => {
+ const {element} = renderScreen({
+ type: 'network_blocked',
+ block: {...block, appeal_email: null, appeals_supported: false, product_name: 'chat.example.org'},
+ });
+ expect(paragraphs(element)[0]).toBe('chat.example.org blocked access from this network.');
+ expect(text(element)).not.toContain('Fluxer');
+ });
+
+ test('try again calls its handler', () => {
+ const {element, onTryAgain} = renderScreen({type: 'network_blocked', block});
+ clickButton(element, 'Try again');
+ expect(onTryAgain).toHaveBeenCalledOnce();
+ });
+});
+
+describe('gate', () => {
+ test('renders its page when nothing is restricted', () => {
+ const element = render(
+ <AccountRestrictionGate data-flx="auth.flow.account-restriction-screen-test.gate">
+ <p data-flx="auth.flow.account-restriction-screen-test.page">page</p>
+ </AccountRestrictionGate>,
+ );
+ expect(text(element)).toBe('page');
+ });
+
+ test('replaces the page and returns to sign-in from another page', () => {
+ mocks.restriction = {type: 'notice', notice};
+ const element = render(
+ <AccountRestrictionGate data-flx="auth.flow.account-restriction-screen-test.gate--2">
+ <p data-flx="auth.flow.account-restriction-screen-test.page--2">page</p>
+ </AccountRestrictionGate>,
+ );
+ expect(text(element)).not.toContain('page');
+ clickButton(element, 'Back to sign-in');
+ expect(mocks.clearAccountRestriction).toHaveBeenCalledOnce();
+ expect(mocks.replaceWith).toHaveBeenCalledWith('/login');
+ });
+
+ test('try again on the sign-in page stays on it', () => {
+ mocks.restriction = {type: 'network_blocked', block};
+ mocks.pathname = '/login';
+ const element = render(
+ <AccountRestrictionGate data-flx="auth.flow.account-restriction-screen-test.gate--3">
+ <p data-flx="auth.flow.account-restriction-screen-test.page--3">page</p>
+ </AccountRestrictionGate>,
+ );
+ clickButton(element, 'Try again');
+ expect(mocks.clearAccountRestriction).toHaveBeenCalledOnce();
+ expect(mocks.replaceWith).not.toHaveBeenCalled();
+ });
+});
+
+describe('signed-in network block modal', () => {
+ test('opens once until someone tries again', () => {
+ showNetworkBlockedModal(block);
+ showNetworkBlockedModal(block);
+ expect(mocks.pushModal).toHaveBeenCalledOnce();
+ const renderModal = mocks.pushModal.mock.calls[0]?.[0] as () => ReactNode;
+ const element = render(renderModal());
+ expect(element.querySelector('[role="dialog"]')?.className).toBe('selectable');
+ expect(element.querySelector('h1')?.textContent).toBe('Network blocked');
+ expect(text(element)).toContain('Fluxer blocked access from this network.');
+ clickButton(element, 'Try again');
+ expect(mocks.popModal).toHaveBeenCalledOnce();
+ showNetworkBlockedModal({...block, appeal_email: null, appeals_supported: false, product_name: 'chat.example.org'});
+ expect(mocks.pushModal).toHaveBeenCalledTimes(2);
+ const renderSelfHosted = mocks.pushModal.mock.calls[1]?.[0] as () => ReactNode;
+ const selfHosted = render(renderSelfHosted());
+ expect(text(selfHosted)).toContain('chat.example.org blocked access from this network.');
+ expect(text(selfHosted)).not.toContain('Fluxer');
+ clickButton(selfHosted, 'Try again');
+ });
+
+ test('follows the direction of the locale', () => {
+ mocks.locale = 'he';
+ showNetworkBlockedModal(block);
+ const renderModal = mocks.pushModal.mock.calls[0]?.[0] as () => ReactNode;
+ const element = render(renderModal());
+ expect(element.querySelector('[data-modal-content]')?.getAttribute('dir')).toBe('rtl');
+ clickButton(element, 'Try again');
+ });
+});
diff --git a/fluxer_app/src/features/auth/flow/AccountRestrictionScreen.tsx b/fluxer_app/src/features/auth/flow/AccountRestrictionScreen.tsx
new file mode 100644
index 000000000..a9ee52f91
--- /dev/null
+++ b/fluxer_app/src/features/auth/flow/AccountRestrictionScreen.tsx
@@ -0,0 +1,382 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {Routes} from '@app/app/Routes';
+import {ExternalLink} from '@app/features/app/components/shared/ExternalLink';
+import {
+ NETWORK_BLOCK_LEAD_DESCRIPTOR,
+ NETWORK_BLOCK_LEAD_WITH_REASON_DESCRIPTOR,
+ NETWORK_BLOCKED_DESCRIPTOR,
+ SHARED_NETWORK_DESCRIPTOR,
+} from '@app/features/auth/AuthMessageDescriptors';
+import * as AuthenticationCommands from '@app/features/auth/commands/AuthenticationCommands';
+import styles from '@app/features/auth/flow/AccountRestrictionScreen.module.css';
+import {useAuthPresentation} from '@app/features/auth/flow/useAuthPresentation';
+import type {AccountRestriction} from '@app/features/auth/state/AccountRestriction';
+import Authentication from '@app/features/auth/state/Authentication';
+import {AuthCardVariant} from '@app/features/auth/state/AuthLayoutContext';
+import {BACK_TO_SIGN_IN_DESCRIPTOR, TRY_AGAIN_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
+import {getLocaleDirection} from '@app/features/i18n/utils/LocaleDirection';
+import * as RouterUtils from '@app/features/navigation/utils/RouterUtils';
+import {useLocation} from '@app/features/platform/components/router/RouterReact';
+import {Button} from '@app/features/ui/button/Button';
+import {isMobileExperienceEnabled} from '@app/features/ui/utils/MobileExperience';
+import {getDateFormatter} from '@fluxer/date_utils/src/DateFormatterCache';
+import type {EnforcementNotice, NetworkBlock} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+import {msg} from '@lingui/core/macro';
+import {Trans, useLingui} from '@lingui/react/macro';
+import {clsx} from 'clsx';
+import {observer} from 'mobx-react-lite';
+import {type ReactNode, useEffect} from 'react';
+
+const ACCOUNT_SUSPENDED_DESCRIPTOR = msg({
+ message: 'Account suspended',
+ comment: 'Title of the sign-in screen for an account suspended until a set date.',
+});
+const ACCOUNT_BANNED_DESCRIPTOR = msg({
+ message: 'Account banned',
+ comment: 'Title of the sign-in screen for an account suspended with no end date.',
+});
+const ACCOUNT_CLOSED_DESCRIPTOR = msg({
+ message: 'Account closed',
+ comment: 'Title of the sign-in screen for an account the team closed and will delete.',
+});
+const WHAT_HAPPENED_DESCRIPTOR = msg({
+ message: 'What happened',
+ comment: 'Heading on the account restriction screen above what the team did and what it means.',
+});
+const WHY_DESCRIPTOR = msg({
+ message: 'Why',
+ comment: 'Heading on the account restriction screen above the rule that was broken and the findings.',
+});
+const HOW_WE_DECIDED_DESCRIPTOR = msg({
+ message: 'How we decided',
+ comment: 'Heading on the account restriction screen above how the case reached the team and who decided it.',
+});
+const HOW_TO_APPEAL_DESCRIPTOR = msg({
+ message: 'How to appeal',
+ comment: 'Heading on the account restriction screen above the appeal instructions.',
+});
+const NOTE_FROM_OUR_TEAM_DESCRIPTOR = msg({
+ message: 'Note from our team: {statement}',
+ comment: 'Line on the account restriction screen with a note the team wrote to the account holder.',
+});
+const DECISION_ID_DESCRIPTOR = msg({
+ message: 'Decision ID: {decisionId}',
+ comment: 'Reference line on the account restriction screen. People quote this ID when they appeal.',
+});
+const RULE_DESCRIPTOR = msg({
+ message: 'Rule: {title}',
+ comment: 'Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.',
+});
+const NETWORK_BLOCK_ENDS_DESCRIPTOR = msg({
+ message: 'The block ends on {date}.',
+ comment: 'Line on the network blocked screen for a block with an end. date is a date and time.',
+});
+const MARKDOWN_LINK = /\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g;
+
+function resolveNoticeTitle(notice: EnforcementNotice) {
+ if (notice.kind === 'closure') return ACCOUNT_CLOSED_DESCRIPTOR;
+ return notice.permanent ? ACCOUNT_BANNED_DESCRIPTOR : ACCOUNT_SUSPENDED_DESCRIPTOR;
+}
+
+function mailtoHref(email: string): string {
+ return `mailto:${email}`;
+}
+
+function RuleLine({rule}: {rule: NonNullable<EnforcementNotice['rule']>}) {
+ const {i18n} = useLingui();
+ const {title, url} = rule;
+ if (url == null) {
+ return (
+ <p className={styles.text} data-flx="auth.flow.account-restriction-screen.rule-line.text">
+ {i18n._(RULE_DESCRIPTOR, {title})}
+ </p>
+ );
+ }
+ return (
+ <p className={styles.text} data-flx="auth.flow.account-restriction-screen.rule-line.text--2">
+ <Trans comment="Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.">
+ Rule:{' '}
+ <ExternalLink href={url} data-flx="auth.flow.account-restriction-screen.rule-line.external-link">
+ {title}
+ </ExternalLink>
+ </Trans>
+ </p>
+ );
+}
+
+function AppealSentence({appeal}: {appeal: NonNullable<EnforcementNotice['appeal']>}) {
+ const {email} = appeal;
+ const deadline = appeal.deadline?.replace(/\.$/, '');
+ const href = mailtoHref(email);
+ if (deadline == null) {
+ return (
+ <Trans comment="Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.">
+ If you think we got this wrong, email{' '}
+ <ExternalLink href={href} data-flx="auth.flow.account-restriction-screen.appeal-sentence.external-link">
+ {email}
+ </ExternalLink>{' '}
+ and include your username.
+ </Trans>
+ );
+ }
+ if (!appeal.account_has_email) {
+ return (
+ <Trans comment="Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.">
+ If you think we got this wrong, email{' '}
+ <ExternalLink href={href} data-flx="auth.flow.account-restriction-screen.appeal-sentence.external-link--2">
+ {email}
+ </ExternalLink>{' '}
+ by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one.
+ </Trans>
+ );
+ }
+ return (
+ <Trans comment="Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.">
+ If you think we got this wrong, email{' '}
+ <ExternalLink href={href} data-flx="auth.flow.account-restriction-screen.appeal-sentence.external-link--3">
+ {email}
+ </ExternalLink>{' '}
+ by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are
+ free, and a person reviews each one.
+ </Trans>
+ );
+}
+
+function Section({heading, children}: {heading: string; children: ReactNode}) {
+ return (
+ <section className={styles.section} data-flx="auth.flow.account-restriction-screen.section">
+ <h2 className={styles.heading} data-flx="auth.flow.account-restriction-screen.section.heading">
+ {heading}
+ </h2>
+ {children}
+ </section>
+ );
+}
+
+function LineText({line}: {line: string}) {
+ const parts: Array<ReactNode> = [];
+ let index = 0;
+ for (const match of line.matchAll(MARKDOWN_LINK)) {
+ parts.push(line.slice(index, match.index));
+ parts.push(
+ <ExternalLink key={match.index} href={match[2]} data-flx="auth.flow.account-restriction-screen.line-text.link">
+ {match[1]}
+ </ExternalLink>,
+ );
+ index = match.index + match[0].length;
+ }
+ parts.push(line.slice(index));
+ return parts;
+}
+
+function Lines({lines, className = styles.text}: {lines: ReadonlyArray<string>; className?: string}) {
+ return lines.map((line) => (
+ <p key={line} className={className} data-flx="auth.flow.account-restriction-screen.lines.text">
+ <LineText line={line} data-flx="auth.flow.account-restriction-screen.lines.line-text" />
+ </p>
+ ));
+}
+
+function ScreenRoot({children, footer}: {children: ReactNode; footer: ReactNode}) {
+ const {i18n} = useLingui();
+ return (
+ <div
+ className={clsx(styles.container, styles.selectable, isMobileExperienceEnabled() && styles.surface)}
+ dir={getLocaleDirection(i18n.locale)}
+ data-flx="auth.flow.account-restriction-screen.root"
+ >
+ {children}
+ <div className={styles.footer} data-flx="auth.flow.account-restriction-screen.footer">
+ {footer}
+ </div>
+ </div>
+ );
+}
+
+function NoticeView({notice, onBackToSignIn}: {notice: EnforcementNotice; onBackToSignIn: () => void}) {
+ const {i18n} = useLingui();
+ const showWhy = notice.rule != null || notice.facts.length > 0 || notice.statement != null;
+ return (
+ <ScreenRoot
+ footer={
+ <Button
+ fitContainer
+ onClick={onBackToSignIn}
+ data-flx="auth.flow.account-restriction-screen.notice.button.back"
+ >
+ {i18n._(BACK_TO_SIGN_IN_DESCRIPTOR)}
+ </Button>
+ }
+ data-flx="auth.flow.account-restriction-screen.notice-view.screen-root"
+ >
+ <h1 className={styles.title} data-flx="auth.flow.account-restriction-screen.notice.title">
+ {i18n._(resolveNoticeTitle(notice))}
+ </h1>
+ <Section
+ heading={i18n._(WHAT_HAPPENED_DESCRIPTOR)}
+ data-flx="auth.flow.account-restriction-screen.notice-view.section"
+ >
+ <Lines
+ lines={[notice.summary]}
+ className={styles.summary}
+ data-flx="auth.flow.account-restriction-screen.notice-view.summary"
+ />
+ <Lines lines={notice.effects} data-flx="auth.flow.account-restriction-screen.notice-view.lines" />
+ </Section>
+ {showWhy ? (
+ <Section
+ heading={i18n._(WHY_DESCRIPTOR)}
+ data-flx="auth.flow.account-restriction-screen.notice-view.section--2"
+ >
+ {notice.rule == null ? null : (
+ <RuleLine rule={notice.rule} data-flx="auth.flow.account-restriction-screen.notice-view.rule-line" />
+ )}
+ <Lines lines={notice.facts} data-flx="auth.flow.account-restriction-screen.notice-view.lines--2" />
+ {notice.statement == null ? null : (
+ <p className={styles.text} data-flx="auth.flow.account-restriction-screen.notice.statement">
+ {i18n._(NOTE_FROM_OUR_TEAM_DESCRIPTOR, {statement: notice.statement})}
+ </p>
+ )}
+ </Section>
+ ) : null}
+ {notice.how_we_decided.length > 0 ? (
+ <Section
+ heading={i18n._(HOW_WE_DECIDED_DESCRIPTOR)}
+ data-flx="auth.flow.account-restriction-screen.notice-view.section--3"
+ >
+ <Lines lines={notice.how_we_decided} data-flx="auth.flow.account-restriction-screen.notice-view.lines--3" />
+ </Section>
+ ) : null}
+ {notice.appeal == null ? null : (
+ <Section
+ heading={i18n._(HOW_TO_APPEAL_DESCRIPTOR)}
+ data-flx="auth.flow.account-restriction-screen.notice-view.section--4"
+ >
+ <p className={styles.text} data-flx="auth.flow.account-restriction-screen.notice.appeal">
+ <AppealSentence
+ appeal={notice.appeal}
+ data-flx="auth.flow.account-restriction-screen.notice-view.appeal-sentence"
+ />
+ </p>
+ <Lines
+ lines={notice.redress}
+ className={styles.fineText}
+ data-flx="auth.flow.account-restriction-screen.notice-view.lines--4"
+ />
+ </Section>
+ )}
+ {notice.decision_id == null ? null : (
+ <p className={styles.reference} data-flx="auth.flow.account-restriction-screen.notice.reference">
+ {i18n._(DECISION_ID_DESCRIPTOR, {decisionId: notice.decision_id})}
+ </p>
+ )}
+ </ScreenRoot>
+ );
+}
+
+export function NetworkBlockDetails({block}: {block: NetworkBlock}) {
+ const {i18n} = useLingui();
+ const {appeal_email: email, ip_address: ip, reason, expires_at: expiresAt, product_name: productName} = block;
+ return (
+ <>
+ <p className={styles.text} data-flx="auth.flow.account-restriction-screen.network-block-details.lead">
+ {i18n._(reason == null ? NETWORK_BLOCK_LEAD_DESCRIPTOR : NETWORK_BLOCK_LEAD_WITH_REASON_DESCRIPTOR, {
+ productName,
+ })}
+ </p>
+ {reason == null ? null : (
+ <RuleLine rule={reason} data-flx="auth.flow.account-restriction-screen.network-block-details.rule-line" />
+ )}
+ {expiresAt == null ? null : (
+ <p className={styles.text} data-flx="auth.flow.account-restriction-screen.network-block-details.ends">
+ {i18n._(NETWORK_BLOCK_ENDS_DESCRIPTOR, {
+ date: `${getDateFormatter(i18n.locale, {dateStyle: 'medium', timeStyle: 'short', timeZone: 'UTC'}).format(new Date(expiresAt))} UTC`,
+ })}
+ </p>
+ )}
+ <p className={styles.text} data-flx="auth.flow.account-restriction-screen.network-block-details.shared">
+ {i18n._(SHARED_NETWORK_DESCRIPTOR)}
+ </p>
+ {email == null ? null : (
+ <p className={styles.text} data-flx="auth.flow.account-restriction-screen.network-block-details.appeal">
+ <Trans comment="Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.">
+ If you think this block is a mistake, email{' '}
+ <ExternalLink
+ href={mailtoHref(email)}
+ data-flx="auth.flow.account-restriction-screen.network-block-details.external-link"
+ >
+ {email}
+ </ExternalLink>{' '}
+ and include your IP address, {ip}.
+ </Trans>
+ </p>
+ )}
+ </>
+ );
+}
+
+interface AccountRestrictionScreenProps {
+ restriction: AccountRestriction;
+ onBackToSignIn: () => void;
+ onTryAgain: () => void;
+}
+
+export function AccountRestrictionScreen({restriction, onBackToSignIn, onTryAgain}: AccountRestrictionScreenProps) {
+ const {i18n} = useLingui();
+ useAuthPresentation({variant: AuthCardVariant.STANDARD});
+ if (restriction.type === 'notice') {
+ return (
+ <NoticeView
+ notice={restriction.notice}
+ onBackToSignIn={onBackToSignIn}
+ data-flx="auth.flow.account-restriction-screen.notice-view"
+ />
+ );
+ }
+ return (
+ <ScreenRoot
+ footer={
+ <Button
+ fitContainer
+ onClick={onTryAgain}
+ data-flx="auth.flow.account-restriction-screen.network-blocked.button"
+ >
+ {i18n._(TRY_AGAIN_DESCRIPTOR)}
+ </Button>
+ }
+ data-flx="auth.flow.account-restriction-screen.network-blocked"
+ >
+ <h1 className={styles.title} data-flx="auth.flow.account-restriction-screen.network-blocked.title">
+ {i18n._(NETWORK_BLOCKED_DESCRIPTOR)}
+ </h1>
+ <NetworkBlockDetails
+ block={restriction.block}
+ data-flx="auth.flow.account-restriction-screen.network-block-details"
+ />
+ </ScreenRoot>
+ );
+}
+
+export const AccountRestrictionGate = observer(function AccountRestrictionGate({children}: {children: ReactNode}) {
+ const location = useLocation();
+ const restriction = Authentication.accountRestriction;
+ useEffect(() => AuthenticationCommands.clearAccountRestriction, []);
+ if (restriction == null) {
+ return children;
+ }
+ const handleBackToSignIn = () => {
+ AuthenticationCommands.clearAccountRestriction();
+ if (!location.pathname.endsWith(Routes.LOGIN)) {
+ RouterUtils.replaceWith(Routes.LOGIN);
+ }
+ };
+ return (
+ <AccountRestrictionScreen
+ restriction={restriction}
+ onBackToSignIn={handleBackToSignIn}
+ onTryAgain={AuthenticationCommands.clearAccountRestriction}
+ data-flx="auth.flow.account-restriction-screen.account-restriction-gate.account-restriction-screen"
+ />
+ );
+});
diff --git a/fluxer_app/src/features/auth/flow/NetworkBlockCopy.test.ts b/fluxer_app/src/features/auth/flow/NetworkBlockCopy.test.ts
new file mode 100644
index 000000000..6e69b8c75
--- /dev/null
+++ b/fluxer_app/src/features/auth/flow/NetworkBlockCopy.test.ts
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {ERROR_I18N_MESSAGES} from '@fluxer/errors/src/i18n/ErrorI18nMessages';
+import {describe, expect, test, vi} from 'vitest';
+
+vi.mock('@lingui/core/macro', () => ({msg: (descriptor: unknown) => descriptor}));
+
+const {NETWORK_BLOCK_LEAD_DESCRIPTOR, NETWORK_BLOCK_LEAD_WITH_REASON_DESCRIPTOR, SHARED_NETWORK_DESCRIPTOR} =
+ await import('@app/features/auth/AuthMessageDescriptors');
+
+function asErrorCatalogText(descriptor: unknown): string {
+ return (descriptor as {message: string}).message.replaceAll('{productName}', '{product_name}');
+}
+
+describe('network block copy matches the error catalog', () => {
+ test.each(['permissions.global_ip_banned', 'permissions.global_ip_temporarily_banned'] as const)('%s', (key) => {
+ const message = ERROR_I18N_MESSAGES[key];
+ expect(message).toContain(
+ `{reason, select, shown {${asErrorCatalogText(NETWORK_BLOCK_LEAD_WITH_REASON_DESCRIPTOR)}} other {${asErrorCatalogText(NETWORK_BLOCK_LEAD_DESCRIPTOR)}}}`,
+ );
+ expect(message).toContain(` ${asErrorCatalogText(SHARED_NETWORK_DESCRIPTOR)}{appealEmail, select,`);
+ });
+});
diff --git a/fluxer_app/src/features/auth/hooks/useAuthForm.ts b/fluxer_app/src/features/auth/hooks/useAuthForm.ts
index 288e179b8..35df67877 100644
--- a/fluxer_app/src/features/auth/hooks/useAuthForm.ts
+++ b/fluxer_app/src/features/auth/hooks/useAuthForm.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {type FormSubmission, type UseFormReturn, useForm} from '@app/features/app/hooks/useForm';
+import {showAccountRestriction} from '@app/features/auth/commands/AuthenticationCommands';
import * as RouterUtils from '@app/features/navigation/utils/RouterUtils';
import {HttpError} from '@app/features/platform/types/EndpointError';
import {failureMessage, failureValidationErrors} from '@app/features/platform/utils/ResponseInspection';
@@ -60,6 +61,9 @@ const applyAuthFormErrors = ({
setError,
setFieldErrors,
}: ApplyAuthFormErrorsRequest): void => {
+ if (showAccountRestriction(error)) {
+ return;
+ }
const fieldViolations = failureValidationErrors(error) ?? [];
if (fieldViolations.length > 0) {
const fieldErrors = collectFieldErrors(fieldViolations);
diff --git a/fluxer_app/src/features/auth/hooks/useLoginFlow.ts b/fluxer_app/src/features/auth/hooks/useLoginFlow.ts
index 7b4718b59..a0c67952a 100644
--- a/fluxer_app/src/features/auth/hooks/useLoginFlow.ts
+++ b/fluxer_app/src/features/auth/hooks/useLoginFlow.ts
@@ -3,6 +3,7 @@
import {type RuntimeConfigSnapshot, runtimeInstanceKey} from '@app/features/app/state/InstanceSnapshotStore';
import RuntimeConfig from '@app/features/app/state/RuntimeConfig';
import {resolveSnapshotInstanceDomain} from '@app/features/auth/AccountDisplayUtils';
+import * as AuthenticationCommands from '@app/features/auth/commands/AuthenticationCommands';
import {
CONNECTING_TO_INSTANCE_DESCRIPTOR,
INSTANCE_CONNECT_FAILED_DESCRIPTOR,
@@ -268,6 +269,9 @@ export function useLoginFormController({
}
} catch (err) {
logger.error('Passkey login failed', err);
+ if (AuthenticationCommands.showAccountRestriction(err)) {
+ return;
+ }
const userCancelled =
err instanceof DOMException && (err.name === 'NotAllowedError' || err.name === 'AbortError');
if (isDesktop() && !userCancelled) {
@@ -457,6 +461,9 @@ export function useMfaController({ticket, methods, inviteCode, onLoginSuccess}:
await onLoginSuccess?.(response);
} catch (error) {
logger.error('WebAuthn MFA failed', error);
+ if (AuthenticationCommands.showAccountRestriction(error)) {
+ return;
+ }
const userCancelled =
error instanceof DOMException && (error.name === 'NotAllowedError' || error.name === 'AbortError');
if (!userCancelled) {
diff --git a/fluxer_app/src/features/auth/passkey_migration/usePasskeyBridgeReturn.ts b/fluxer_app/src/features/auth/passkey_migration/usePasskeyBridgeReturn.ts
index 46640009d..cb85221aa 100644
--- a/fluxer_app/src/features/auth/passkey_migration/usePasskeyBridgeReturn.ts
+++ b/fluxer_app/src/features/auth/passkey_migration/usePasskeyBridgeReturn.ts
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import {showAccountRestriction} from '@app/features/auth/commands/AuthenticationCommands';
import {
prunePasskeyBridgePageLogins,
readPasskeyBridgeReturn,
@@ -63,6 +64,9 @@ export function usePasskeyBridgeReturn(options: PasskeyBridgeReturnOptions): boo
})
.catch((error: unknown) => {
logger.error('Passkey sign-in on the previous address failed', error);
+ if (showAccountRestriction(error)) {
+ return;
+ }
restoreMfa();
optionsRef.current.onFailure();
})
diff --git a/fluxer_app/src/features/auth/state/AccountRestriction.test.ts b/fluxer_app/src/features/auth/state/AccountRestriction.test.ts
new file mode 100644
index 000000000..06f85b29b
--- /dev/null
+++ b/fluxer_app/src/features/auth/state/AccountRestriction.test.ts
@@ -0,0 +1,98 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {parseAccountRestriction} from '@app/features/auth/state/AccountRestriction';
+import {HttpError} from '@app/features/platform/types/EndpointError';
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import type {EnforcementNotice, NetworkBlock} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+import {describe, expect, test} from 'vitest';
+
+const notice: EnforcementNotice = {
+ decision_id: '1234567890123456789',
+ kind: 'suspension',
+ permanent: false,
+ issued_at: '2026-10-01T10:00:00.000Z',
+ ends_at: '2026-10-08T10:00:00.000Z',
+ deletion_at: null,
+ summary: 'We suspended your account until Oct 8, 2026, 10:00 AM UTC.',
+ effects: ["You can't sign in or use Fluxer until then. Your account, messages and communities are kept."],
+ rule: {title: 'Spam', url: 'https://fluxer.com/guidelines#6-spam-and-service-abuse'},
+ facts: ['We found that your account sent unwanted messages in bulk.'],
+ statement: null,
+ how_we_decided: ['We reviewed this after a report.'],
+ appeal: {email: '[email protected]', deadline: 'Nov 30, 2026', account_has_email: true},
+ redress: [],
+};
+
+const block: NetworkBlock = {
+ ip_address: '203.0.113.7',
+ appeal_email: '[email protected]',
+ appeals_supported: true,
+ ban_kind: 'permanent',
+ expires_at: null,
+ reason: null,
+ product_name: 'Fluxer',
+};
+
+function forbidden(body: unknown, status = 403): HttpError {
+ return new HttpError({method: 'POST', path: '/auth/login', status, body});
+}
+
+describe('parseAccountRestriction', () => {
+ test.each([APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY, APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY])(
+ '%s with a notice is a notice',
+ (code) => {
+ expect(parseAccountRestriction(forbidden({code, message: 'Suspended.', notice}))).toEqual({
+ type: 'notice',
+ notice,
+ });
+ },
+ );
+
+ test('a permanent suspension without a notice is not a restriction screen', () => {
+ const error = forbidden({code: APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY, message: 'Suspended.', notice: null});
+ expect(parseAccountRestriction(error)).toBeNull();
+ });
+
+ test('a malformed notice is ignored', () => {
+ const error = forbidden({
+ code: APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY,
+ message: 'Suspended.',
+ notice: {...notice, summary: 7},
+ });
+ expect(parseAccountRestriction(error)).toBeNull();
+ });
+
+ test.each([
+ [APIErrorCodes.GLOBAL_IP_BANNED, block],
+ [
+ APIErrorCodes.GLOBAL_IP_TEMPORARILY_BANNED,
+ {
+ ...block,
+ ban_kind: 'temporary_24h' as const,
+ expires_at: '2026-10-15T10:00:00.000Z',
+ reason: {title: 'Spam', url: null},
+ },
+ ],
+ ])('%s is a network block', (code, data) => {
+ expect(parseAccountRestriction(forbidden({code, message: 'Blocked.', ...data}))).toEqual({
+ type: 'network_blocked',
+ block: data,
+ });
+ });
+
+ test('a self-hosted network block keeps its null contact', () => {
+ const data = {...block, appeal_email: null, appeals_supported: false};
+ expect(
+ parseAccountRestriction(forbidden({code: APIErrorCodes.GLOBAL_IP_BANNED, message: 'Blocked.', ...data})),
+ ).toEqual({type: 'network_blocked', block: data});
+ });
+
+ test('other errors are not restrictions', () => {
+ expect(parseAccountRestriction(forbidden({code: APIErrorCodes.MISSING_ACCESS, message: 'No.'}))).toBeNull();
+ expect(
+ parseAccountRestriction(forbidden({code: APIErrorCodes.GLOBAL_IP_BANNED, message: 'Blocked.', ...block}, 400)),
+ ).toBeNull();
+ expect(parseAccountRestriction(new Error('offline'))).toBeNull();
+ expect(parseAccountRestriction(forbidden('Forbidden'))).toBeNull();
+ });
+});
diff --git a/fluxer_app/src/features/auth/state/AccountRestriction.ts b/fluxer_app/src/features/auth/state/AccountRestriction.ts
new file mode 100644
index 000000000..d554deedb
--- /dev/null
+++ b/fluxer_app/src/features/auth/state/AccountRestriction.ts
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {HttpError} from '@app/features/platform/types/EndpointError';
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {HttpStatus} from '@fluxer/constants/src/HttpConstants';
+import {isObjectLike as isRecord} from '@fluxer/record_utils/src/RecordGuards';
+import {EnforcementNotice, NetworkBlock} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+
+export type AccountRestriction =
+ | {type: 'notice'; notice: EnforcementNotice}
+ | {type: 'network_blocked'; block: NetworkBlock};
+
+const NOTICE_CODES: ReadonlySet<unknown> = new Set([
+ APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY,
+ APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY,
+]);
+
+const NETWORK_BLOCK_CODES: ReadonlySet<unknown> = new Set([
+ APIErrorCodes.GLOBAL_IP_BANNED,
+ APIErrorCodes.GLOBAL_IP_TEMPORARILY_BANNED,
+]);
+
+export function accountRestrictionFromBody(body: unknown): AccountRestriction | null {
+ if (!isRecord(body)) return null;
+ if (NOTICE_CODES.has(body.code)) {
+ const notice = EnforcementNotice.safeParse(body.notice);
+ return notice.success ? {type: 'notice', notice: notice.data} : null;
+ }
+ if (NETWORK_BLOCK_CODES.has(body.code)) {
+ const block = NetworkBlock.safeParse(body);
+ return block.success ? {type: 'network_blocked', block: block.data} : null;
+ }
+ return null;
+}
+
+export function parseAccountRestriction(error: unknown): AccountRestriction | null {
+ if (!(error instanceof HttpError) || error.status !== HttpStatus.FORBIDDEN) return null;
+ return accountRestrictionFromBody(error.body);
+}
diff --git a/fluxer_app/src/features/auth/state/AuthFlow.ts b/fluxer_app/src/features/auth/state/AuthFlow.ts
index 0c5a57528..7a53379d4 100644
--- a/fluxer_app/src/features/auth/state/AuthFlow.ts
+++ b/fluxer_app/src/features/auth/state/AuthFlow.ts
@@ -34,8 +34,7 @@ export interface IpAuthorizationChallenge {
export type LoginResult =
| {type: 'success'; payload: LoginSuccessPayload}
| {type: 'mfa'; challenge: MfaChallenge}
- | {type: 'ip_authorization'; challenge: IpAuthorizationChallenge}
- | {type: 'suspended'; banViewToken: string};
+ | {type: 'ip_authorization'; challenge: IpAuthorizationChallenge};
function mfaChallengeFromResponse(response: AuthenticationCommands.MfaLoginResponse): MfaChallenge {
return {
@@ -77,12 +76,6 @@ export async function loginWithPassword({
},
};
}
- if ('ban_view_token' in response) {
- return {
- type: 'suspended',
- banViewToken: (response as {ban_view_token: string}).ban_view_token,
- };
- }
if (response.mfa) {
return {
type: 'mfa',
diff --git a/fluxer_app/src/features/auth/state/Authentication.ts b/fluxer_app/src/features/auth/state/Authentication.ts
index 65b1103ea..87f494c77 100644
--- a/fluxer_app/src/features/auth/state/Authentication.ts
+++ b/fluxer_app/src/features/auth/state/Authentication.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {RuntimeConfigSnapshot} from '@app/features/app/state/InstanceSnapshotStore';
+import type {AccountRestriction} from '@app/features/auth/state/AccountRestriction';
import ExperimentAssignments from '@app/features/experiment/state/ExperimentAssignments';
import {AccountScopedWork} from '@app/features/platform/state/AccountScopedWork';
import SessionManager from '@app/features/platform/state/AuthSession';
@@ -32,6 +33,7 @@ class Authentication {
currentMfaTicket: string | null = null;
availableMfaMethods: MfaMethods | null = null;
currentMfaRuntimeSnapshot: RuntimeConfigSnapshot | null = null;
+ accountRestriction: AccountRestriction | null = null;
constructor() {
makeAutoObservable(
@@ -67,10 +69,8 @@ class Authentication {
handleSessionStart({token}: {token: string | null | undefined}): void {
persistToken(token ?? null);
- this.loginState = LoginState.DEFAULT;
- this.currentMfaTicket = null;
- this.availableMfaMethods = null;
- this.currentMfaRuntimeSnapshot = null;
+ this.handleMfaTicketClear();
+ this.handleAccountRestrictionClear();
}
handleMfaTicketSet({
@@ -96,12 +96,19 @@ class Authentication {
this.currentMfaRuntimeSnapshot = null;
}
+ handleAccountRestriction(restriction: AccountRestriction): void {
+ this.handleMfaTicketClear();
+ this.accountRestriction = restriction;
+ }
+
+ handleAccountRestrictionClear(): void {
+ this.accountRestriction = null;
+ }
+
handleLogout(options?: {skipRedirect?: boolean}): void {
ExperimentAssignments.reset();
- this.loginState = LoginState.DEFAULT;
- this.currentMfaTicket = null;
- this.availableMfaMethods = null;
- this.currentMfaRuntimeSnapshot = null;
+ this.handleMfaTicketClear();
+ this.handleAccountRestrictionClear();
if (!options?.skipRedirect) {
void import('@app/features/navigation/utils/RouterUtils').then((module) => {
module.replaceWith('/login');
diff --git a/fluxer_app/src/features/i18n/locales/ar/messages.po b/fluxer_app/src/features/i18n/locales/ar/messages.po
index d5a73f35a..ca867a22b 100644
--- a/fluxer_app/src/features/i18n/locales/ar/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ar/messages.po
@@ -1830,6 +1830,16 @@ msgstr "أيقونة تطبيق {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "يتجنب {productName} إرسال إشعارات الدفع إلى أجهزتك المحمولة عندما تكون أمام الكمبيوتر. اختر مدة عدم النشاط على سطح المكتب قبل أن تبدأ إشعارات الدفع بالوصول إليك."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "حجب {productName} الوصول من هذه الشبكة بسبب نشاط خالف قواعده."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "حجب {productName} الوصول من هذه الشبكة."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "تجاوزات الحساب وPremium"
msgid "Account and security details are hidden"
msgstr "تفاصيل الحساب والأمان مخفية"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "تم حظر الحساب"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "تمت المطالبة بالحساب بنجاح"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "تم إغلاق الحساب"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "تم ربط الحساب"
@@ -2928,6 +2948,11 @@ msgstr "حذف الحساب"
msgid "Account state"
msgstr "حالة الحساب"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "تم تعليق الحساب"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "قرر كيف تنطبق حدود Premium على الأشخاص في ه
msgid "Decide whether replies @mention you by default"
msgstr "حدد ما إذا كانت الردود تشير إليك افتراضيًا"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "معرّف القرار: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "مقدار ما سيُحذف من سجل رسائل العضو الحد
msgid "How this works"
msgstr "كيف يعمل هذا"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "كيفية الطعن"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "كيفية استعادة حسابك"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "كيف اتخذنا القرار"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "إذا حفظت اسم المستخدم هذا، فستتغير علام
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "إذا حفظت اسم المستخدم هذا، فستتغير علامتك عشوائيًا عند انتهاء صلاحية {PREMIUM_PRODUCT_NAME} الخاص بك، ما لم يتم تجديده."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "إذا كنت تشارك هذه الشبكة مع آخرين، كما في المدرسة أو العمل أو على شبكة Wi-Fi عامة أو عبر شركة الاتصالات أو شبكة VPN، فقد لا يكون لهذا الحجب أي علاقة بك. أسرع حل هو تغيير الشبكة، مثل استخدام بيانات الجوال بدلًا من Wi-Fi، أو تشغيل شبكة VPN أو إيقافها."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "إذا كنت تعتقد أن هذا الحجب خطأ، فراسل <0>{email}</0> واذكر عنوان IP الخاص بك، {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "إذا كنت تعتقد أننا أخطأنا، فراسل <0>{email}</0> واذكر اسم المستخدم الخاص بك."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "إذا كنت تعتقد أننا أخطأنا، فراسل <0>{email}</0> في موعد أقصاه {deadline}. اذكر معرّف القرار واسم المستخدم الخاص بك. الطعن مجاني، ويراجع كل طعن شخص من فريقنا."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "إذا كنت تعتقد أننا أخطأنا، فراسل <0>{email}</0> في موعد أقصاه {deadline}. راسلنا من عنوان البريد الإلكتروني المرتبط بحسابك إن أمكن، واذكر معرّف القرار. الطعن مجاني، ويراجع كل طعن شخص من فريقنا."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "إذا كنت ترغب في تصدير بياناتك أو حذف رسائلك أولاً، فيرجى زيارة {privacyDashboardPath} قبل المتابعة."
@@ -22302,6 +22367,11 @@ msgstr "هولندا"
msgid "Network"
msgstr "الشبكة"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "تم حجب الشبكة"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "ملاحظة"
msgid "Note (only visible to you)"
msgstr "ملاحظة (مرئية لك فقط)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "ملاحظة من فريقنا: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "مربع اختيار دائري"
msgid "Rows per page"
msgstr "الصفوف لكل صفحة"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "القاعدة: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "القاعدة: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "لقد انتهت مدة الحظر بالفعل في {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "كان من المقرر أن تنتهي مدة الحظر في {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "ينتهي الحجب في {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "تمت إضافة البوت إلى <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "فرجينيا الغربية"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "ما الذي حدث"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "من يكتب"
msgid "Whoa, this is heavy"
msgstr "يا للهول، هذا كثير جدًا"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "السبب"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/auto-i18n-reviewed-unchanged.json b/fluxer_app/src/features/i18n/locales/auto-i18n-reviewed-unchanged.json
index e1bda522c..aff07b47c 100644
--- a/fluxer_app/src/features/i18n/locales/auto-i18n-reviewed-unchanged.json
+++ b/fluxer_app/src/features/i18n/locales/auto-i18n-reviewed-unchanged.json
@@ -661,8 +661,11 @@
"Accept the push relay supplemental privacy notice",
"Accepted",
"Account ID: {accountId}",
+ "Account banned",
+ "Account closed",
"Account created: {createdAt}",
"Account details unavailable",
+ "Account suspended",
"Add a Klipy API key to enable GIF search at runtime.",
"Add a description (optional)",
"Add a username and password to your account first.",
@@ -888,6 +891,7 @@
"Deafen other members in this voice channel, so they cannot hear or speak.",
"Debugging",
"Decide how premium limits apply to people on this instance.",
+ "Decision ID: {decisionId}",
"Default hide after inactivity",
"Default layout",
"Default output device",
@@ -1046,7 +1050,9 @@
"Hides their messages and stops them messaging you",
"Holding Shift, Ctrl or Alt blocks this shortcut. Add alternates in your system settings.",
"How much of the member's recent message history to delete.",
+ "How to appeal",
"How to recover your account",
+ "How we decided",
"Hyprland has no shortcut dialog. Add the lines for your Hyprland version to your Hyprland config and replace KEY with the key you want.",
"Hyprland has no shortcut dialog. Bind the keys in your Hyprland config.",
"I confirm in good faith that the information and allegations in this notice are accurate and complete.",
@@ -1057,6 +1063,10 @@
"If you believe it is illegal, say which law and why.",
"If you forget your password, a recovery kit is the only way back into your account.",
"If you forget your password, this kit is the only way back into your account. Store it somewhere safe, like a password manager or a printed copy.",
+ "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}.",
+ "If you think we got this wrong, email <0>{email}</0> and include your username.",
+ "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one.",
+ "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one.",
"Ignore this channel's slowmode cooldown.",
"Image assets",
"Implicit TLS",
@@ -1160,6 +1170,7 @@
"My text didn't go through",
"Names get a random tag, like alex#4821, so several people can share a name.",
"Neko cat that chases your cursor",
+ "Network blocked",
"New post",
"New post in #{forumName}",
"New price scheduled for <0>{pendingChangeDate}</0>.",
@@ -1185,6 +1196,7 @@
"Not allowed",
"Not assigned",
"Not sent to followers yet.",
+ "Note from our team: {statement}",
"Nothing to preview yet.",
"Nothing to search for",
"Nothing will change. This just confirms your settings.",
@@ -1369,6 +1381,7 @@
"Review the permissions {productName} uses for voice, video, screen sharing, and shortcuts.",
"Review who can message you",
"Right now",
+ "Rule: {title}",
"Run the instance as one community instead of many. This can only be enabled now, during setup.",
"STARTTLS",
"STARTTLS when offered",
@@ -1530,6 +1543,7 @@
"That doesn't look like an instance address. Try a domain such as {exampleInstanceDomain}.",
"That image could not be used. Try a different file.",
"The API wrote the token to its log the first time it started. If you set FLUXER_SETUP_TOKEN, use that value.",
+ "The block ends on {date}.",
"The camera preview is still stopping. Try streaming again in a moment.",
"The connection is encrypted from the start. Usually port 465.",
"The connection is never encrypted. Only for a mail server on a network you trust.",
@@ -1684,6 +1698,7 @@
"We'll restore your previous email, sign out old sessions, disable MFA, and secure your account with a new password.",
"We'll send a verification code to your email before you can view your backup codes.",
"Welcome to {productName}",
+ "What happened",
"What to search for.",
"What you're sharing isn't updating",
"What's the reason for your report?",
@@ -1692,6 +1707,7 @@
"Who can join",
"Who can message you",
"Who can message you?",
+ "Why",
"With Automatic, the bitrate follows your resolution and frame rate. Higher values keep fast motion sharper and use more upload bandwidth.",
"With {PREMIUM_PRODUCT_NAME}, you can use animated avatars ({ANIMATED_AVATAR_FORMATS}) and profile banners, and unlock many other {PREMIUM_PRODUCT_NAME} perks.",
"Without this permission, push-to-talk is required in this channel.",
@@ -1827,6 +1843,8 @@
"{premiumProductName} costs less now. Switch from {currentPrice} to {newPrice} a month starting {effectiveDate}, and nothing is charged today.",
"{premiumProductName} costs less now. Switch from {currentPrice} to {newPrice} a year starting {effectiveDate}, and nothing is charged today.",
"{premiumProductName} page",
+ "{productName} blocked access from this network because of activity that broke its rules.",
+ "{productName} blocked access from this network.",
"{productName} can ask your desktop to run its shortcuts while {productName} is not focused. Your desktop asks you to confirm and lets you pick the keys.",
"{productName} can no longer read your keyboard, so it listens for shortcuts through X11 instead.",
"{productName} can no longer read your keyboard, so your desktop's shortcuts are used instead.",
diff --git a/fluxer_app/src/features/i18n/locales/bg/messages.po b/fluxer_app/src/features/i18n/locales/bg/messages.po
index 871ba1e7f..b1a47f474 100644
--- a/fluxer_app/src/features/i18n/locales/bg/messages.po
+++ b/fluxer_app/src/features/i18n/locales/bg/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Икона на приложението {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} избягва да изпраща push известия до мобилните ти устройства, докато си пред компютъра. Избери колко време трябва да си неактивен на компютъра, преди да получаваш push известия."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} блокира достъпа от тази мрежа заради дейност, която нарушава правилата му."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} блокира достъпа от тази мрежа."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Презаписвания на акаунт и премиум"
msgid "Account and security details are hidden"
msgstr "Подробностите за акаунта и сигурността са скрити"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Акаунтът е блокиран"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Акаунтът е заявен успешно"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Акаунтът е закрит"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Акаунтът е свързан"
@@ -2928,6 +2948,11 @@ msgstr "Изтриване на акаунт"
msgid "Account state"
msgstr "Състояние на акаунта"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Акаунтът е спрян"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Реши как премиум ограниченията да се пр
msgid "Decide whether replies @mention you by default"
msgstr "Избери дали отговорите да те @споменават по подразбиране"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID на решението: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Колко от скорошните съобщения на члена
msgid "How this works"
msgstr "Как работи това"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Как да обжалваш"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Как да възстановите акаунта си"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Как решихме"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Ако запазиш това потребителско име, таг
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Ако запазиш това потребителско име, тагът ти ще бъде преизбран на случаен принцип, когато {PREMIUM_PRODUCT_NAME} ти изтече, освен ако не се поднови."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Ако ползваш тази мрежа заедно с други хора, например в училище, на работа, в обществена Wi-Fi мрежа, чрез мобилния си оператор или VPN, това блокиране може да няма нищо общо с теб. Най-бързото решение е да смениш мрежата, например да минеш от Wi-Fi на мобилни данни, или да включиш или изключиш VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Ако смяташ, че това блокиране е грешка, пиши на <0>{email}</0> и посочи своя IP адрес: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Ако смяташ, че сме сгрешили, пиши на <0>{email}</0> и посочи потребителското си име."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Ако смяташ, че сме сгрешили, пиши на <0>{email}</0> до {deadline}. Посочи ID на решението и потребителското си име. Обжалването е безплатно и всяка жалба се преглежда от човек."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Ако смяташ, че сме сгрешили, пиши на <0>{email}</0> до {deadline}. Ако можеш, пиши от имейл адреса на акаунта си и посочи ID на решението. Обжалването е безплатно и всяка жалба се преглежда от човек."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Ако искаш първо да експортираш данните си или да изтриеш съобщенията си, посети {privacyDashboardPath}, преди да продължиш."
@@ -22302,6 +22367,11 @@ msgstr "Нидерландия"
msgid "Network"
msgstr "Мрежа"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Мрежата е блокирана"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Бележка"
msgid "Note (only visible to you)"
msgstr "Бележка (видима само за теб)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Бележка от нашия екип: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Кръгло поле за отметка"
msgid "Rows per page"
msgstr "Редове на страница"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Правило: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Правило: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Забраната вече е изтекла на {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Забраната трябваше да изтече на {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Блокирането е в сила до {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Ботът е добавен към <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Западна Вирджиния"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Какво се случи"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Кой пише"
msgid "Whoa, this is heavy"
msgstr "Уау, това е множко"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Защо"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/cs/messages.po b/fluxer_app/src/features/i18n/locales/cs/messages.po
index 76423692b..7e871cdec 100644
--- a/fluxer_app/src/features/i18n/locales/cs/messages.po
+++ b/fluxer_app/src/features/i18n/locales/cs/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Ikona aplikace {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} neposílá push oznámení do vašich mobilních zařízení, když jste u počítače. Zvolte, jak dlouho musíte být na počítači neaktivní, než začnete dostávat push oznámení."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} zablokoval přístup z této sítě kvůli aktivitě, která porušila jeho pravidla."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} zablokoval přístup z této sítě."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Přepsání účtu a prémiových funkcí"
msgid "Account and security details are hidden"
msgstr "Podrobnosti o účtu a zabezpečení jsou skryté"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Účet zablokován"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Registrace účtu byla úspěšně dokončena"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Účet zrušen"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Účet připojen"
@@ -2928,6 +2948,11 @@ msgstr "Odstranění účtu"
msgid "Account state"
msgstr "Stav účtu"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Účet pozastaven"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Rozhodněte, jak se prémiové limity vztahují na lidi v této instanci
msgid "Decide whether replies @mention you by default"
msgstr "Určete, zda vás odpovědi ve výchozím nastavení @zmiňují"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID rozhodnutí: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Kolik z nedávné historie zpráv člena chcete smazat."
msgid "How this works"
msgstr "Jak to funguje"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Jak se odvolat"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Jak obnovit svůj účet"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Jak jsme rozhodli"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Pokud toto uživatelské jméno uložíte, váš čtyřmístný identifi
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Pokud toto uživatelské jméno uložíte, váš čtyřmístný identifikátor se po vypršení předplatného {PREMIUM_PRODUCT_NAME} změní na náhodné číslo, pokud se předplatné neobnoví."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Pokud tuto síť sdílíte s dalšími lidmi, například ve škole, v práci, na veřejné Wi-Fi, u mobilního operátora nebo přes VPN, toto blokování s vámi nemusí vůbec souviset. Nejrychleji pomůže přepnout na jinou síť, například z Wi-Fi na mobilní data, nebo zapnout či vypnout VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Pokud si myslíte, že je toto blokování omyl, napište na <0>{email}</0> a uveďte svou IP adresu: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Pokud si myslíte, že jsme udělali chybu, napište na <0>{email}</0> a uveďte své uživatelské jméno."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Pokud si myslíte, že jsme udělali chybu, napište na <0>{email}</0> do {deadline}. Uveďte ID rozhodnutí a své uživatelské jméno. Odvolání je zdarma a každé posoudí člověk."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Pokud si myslíte, že jsme udělali chybu, napište na <0>{email}</0> do {deadline}. Pokud můžete, pište z e-mailové adresy svého účtu a uveďte ID rozhodnutí. Odvolání je zdarma a každé posoudí člověk."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Pokud si přejete exportovat svá data nebo nejprve smazat své zprávy, navštivte prosím {privacyDashboardPath}, než budete pokračovat."
@@ -22302,6 +22367,11 @@ msgstr "Nizozemsko"
msgid "Network"
msgstr "Síť"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Síť zablokována"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Poznámka"
msgid "Note (only visible to you)"
msgstr "Poznámka (viditelná jen pro vás)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Poznámka od našeho týmu: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Kulaté zaškrtávací políčko"
msgid "Rows per page"
msgstr "Řádků na stránku"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Pravidlo: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Pravidlo: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Ban už vypršel {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Ban měl vypršet {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Blokování platí do {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Bot byl přidán do <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Západní Virginie"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Co se stalo"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Kdo píše"
msgid "Whoa, this is heavy"
msgstr "Jejda, to je nálož"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Proč"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/da/messages.po b/fluxer_app/src/features/i18n/locales/da/messages.po
index 0d5683c7a..b4d7208b4 100644
--- a/fluxer_app/src/features/i18n/locales/da/messages.po
+++ b/fluxer_app/src/features/i18n/locales/da/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName}-appikon"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} forhindrer, at der sendes push-notifikationer til dine mobilenheder, når du er ved din computer. Vælg hvor længe du skal være inaktiv på din computer, før du modtager push-notifikationer."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} har blokeret adgang fra dette netværk på grund af aktivitet, der brød reglerne."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} har blokeret adgang fra dette netværk."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Tvungne konto- og premiumindstillinger"
msgid "Account and security details are hidden"
msgstr "Konto- og sikkerhedsoplysninger er skjult"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Konto udelukket"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Kontooprettelsen er fuldført"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Konto lukket"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Konto forbundet"
@@ -2928,6 +2948,11 @@ msgstr "Fjernelse af konto"
msgid "Account state"
msgstr "Kontostatus"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Konto suspenderet"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Bestem, hvordan premium-grænser gælder for personer i denne instans."
msgid "Decide whether replies @mention you by default"
msgstr "Bestem, om svar skal @omtale dig som standard"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Afgørelses-ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Hvor meget af medlemmets seneste beskedhistorik der skal slettes."
msgid "How this works"
msgstr "Sådan fungerer det"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Sådan klager du"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Sådan gendanner du din konto"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Sådan traf vi afgørelsen"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Hvis du gemmer dette brugernavn, vil dit tag blive ændret tilfældigt,
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Hvis du gemmer dette brugernavn, vil dit tag blive ændret tilfældigt, når dit {PREMIUM_PRODUCT_NAME} udløber, medmindre det fornyes."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Hvis du deler dette netværk med andre, f.eks. i skolen, på arbejdet, på offentligt Wi-Fi, via dit mobilselskab eller en VPN, har blokeringen måske intet med dig at gøre. Den hurtigste løsning er at skifte netværk, f.eks. til mobildata i stedet for Wi-Fi, eller at slå din VPN til eller fra."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Hvis du mener, at blokeringen er en fejl, så send en e-mail til <0>{email}</0>, og oplys din IP-adresse, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Hvis du mener, at vi har taget fejl, så send en e-mail til <0>{email}</0>, og oplys dit brugernavn."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Hvis du mener, at vi har taget fejl, så send en e-mail til <0>{email}</0> senest {deadline}. Oplys afgørelses-ID'et og dit brugernavn. Det er gratis at klage, og en person gennemgår hver klage."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Hvis du mener, at vi har taget fejl, så send en e-mail til <0>{email}</0> senest {deadline}. Skriv fra e-mailadressen på din konto, hvis du kan, og oplys afgørelses-ID'et. Det er gratis at klage, og en person gennemgår hver klage."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Hvis du vil eksportere dine data eller slette dine beskeder først, kan du besøge {privacyDashboardPath}, før du fortsætter."
@@ -22302,6 +22367,11 @@ msgstr "Holland"
msgid "Network"
msgstr "Netværk"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Netværk blokeret"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Note"
msgid "Note (only visible to you)"
msgstr "Note (kun synlig for dig)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Besked fra vores team: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Afkrydsningsfelt i rund stil"
msgid "Rows per page"
msgstr "Rækker pr. side"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Regel: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Regel: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Udelukkelsen var allerede udløbet den {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Udelukkelsen var planlagt til at udløbe den {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Blokeringen ophører den {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Botten er blevet føjet til <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "West Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Hvad der skete"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Hvem skriver"
msgid "Whoa, this is heavy"
msgstr "Wow, det var mange"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Hvorfor"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/de/messages.po b/fluxer_app/src/features/i18n/locales/de/messages.po
index 3342600f9..ad8ce6938 100644
--- a/fluxer_app/src/features/i18n/locales/de/messages.po
+++ b/fluxer_app/src/features/i18n/locales/de/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName}-Anwendungssymbol"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} verhindert, dass Push-Benachrichtigungen an deine mobilen Geräte gesendet werden, während du an deinem Computer aktiv bist. Wähle aus, wie lange du am Desktop inaktiv sein musst, bevor du Push-Benachrichtigungen erhältst."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} hat den Zugriff aus diesem Netzwerk wegen Aktivitäten blockiert, die gegen die Regeln verstoßen haben."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} hat den Zugriff aus diesem Netzwerk blockiert."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Account- und Premium-Überschreibungen"
msgid "Account and security details are hidden"
msgstr "Account- und Sicherheitsdetails sind ausgeblendet"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Account dauerhaft gesperrt"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Account erfolgreich beansprucht"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Account geschlossen"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Account verbunden"
@@ -2928,6 +2948,11 @@ msgstr "Account entfernen"
msgid "Account state"
msgstr "Accountstatus"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Account gesperrt"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Lege fest, wie Premium-Limits für Personen auf dieser Instanz gelten."
msgid "Decide whether replies @mention you by default"
msgstr "Lege fest, ob du in Antworten standardmäßig mit @ erwähnt werden willst"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Entscheidungs-ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Wie viele der letzten Nachrichten des Mitglieds gelöscht werden sollen.
msgid "How this works"
msgstr "So funktioniert's"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "So legst du Einspruch ein"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "So stellen Sie Ihr Konto wieder her"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "So haben wir entschieden"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Wenn du diesen Nutzernamen speicherst, wird dein Tag zufällig neu ausge
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Wenn du diesen Nutzernamen speicherst, wird dein Tag zufällig neu ausgewürfelt, wenn dein {PREMIUM_PRODUCT_NAME} abläuft, es sei denn, es wird verlängert."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Wenn du dieses Netzwerk mit anderen teilst, zum Beispiel in der Schule, bei der Arbeit, in einem öffentlichen WLAN, über deinen Mobilfunkanbieter oder ein VPN, hat diese Sperre vielleicht nichts mit dir zu tun. Am schnellsten hilft es, das Netzwerk zu wechseln, zum Beispiel zu mobilen Daten statt WLAN, oder dein VPN ein- oder auszuschalten."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Wenn du glaubst, dass diese Sperre ein Fehler ist, sende eine E-Mail an <0>{email}</0> und gib deine IP-Adresse an: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Wenn du glaubst, dass wir falsch entschieden haben, sende eine E-Mail an <0>{email}</0> und gib deinen Benutzernamen an."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Wenn du glaubst, dass wir falsch entschieden haben, sende bis zum {deadline} eine E-Mail an <0>{email}</0>. Gib die Entscheidungs-ID und deinen Benutzernamen an. Ein Einspruch ist kostenlos und wird immer von einer Person geprüft."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Wenn du glaubst, dass wir falsch entschieden haben, sende bis zum {deadline} eine E-Mail an <0>{email}</0>. Schreib nach Möglichkeit von der E-Mail-Adresse deines Accounts aus und gib die Entscheidungs-ID an. Ein Einspruch ist kostenlos und wird immer von einer Person geprüft."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Wenn du deine Daten exportieren oder zuerst deine Nachrichten löschen möchtest, besuche bitte {privacyDashboardPath}, bevor du fortfährst."
@@ -22302,6 +22367,11 @@ msgstr "Niederlande"
msgid "Network"
msgstr "Netzwerk"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Netzwerk gesperrt"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Notiz"
msgid "Note (only visible to you)"
msgstr "Notiz (nur für dich sichtbar)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Hinweis von unserem Team: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Rundes Kästchen"
msgid "Rows per page"
msgstr "Zeilen pro Seite"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Regel: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Regel: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Der Bann war bereits am {date} abgelaufen"
msgid "The ban was scheduled to expire on {date}"
msgstr "Der Bann sollte am {date} ablaufen"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Die Sperre endet am {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Der Bot wurde zu <0>{destinationName}</0> hinzugefügt."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "West Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Was passiert ist"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Wer tippt gerade"
msgid "Whoa, this is heavy"
msgstr "Uff, ganz schön viel"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Warum"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/el/messages.po b/fluxer_app/src/features/i18n/locales/el/messages.po
index 7770437fb..bf82489b1 100644
--- a/fluxer_app/src/features/i18n/locales/el/messages.po
+++ b/fluxer_app/src/features/i18n/locales/el/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Εικονίδιο εφαρμογής {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "Το {productName} αποφεύγει την αποστολή ειδοποιήσεων push στις κινητές σας συσκευές όταν βρίσκεστε στον υπολογιστή σας. Επιλέξτε πόση ώρα πρέπει να μείνετε ανενεργοί στον υπολογιστή πριν λάβετε ειδοποιήσεις push."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "Το {productName} απέκλεισε την πρόσβαση από αυτό το δίκτυο λόγω δραστηριότητας που παραβίασε τους κανόνες του."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "Το {productName} απέκλεισε την πρόσβαση από αυτό το δίκτυο."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Παρακάμψεις λογαριασμού και premium"
msgid "Account and security details are hidden"
msgstr "Οι λεπτομέρειες λογαριασμού και ασφαλείας είναι κρυφές"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Ο λογαριασμός ανεστάλη οριστικά"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Ο λογαριασμός διεκδικήθηκε με επιτυχία"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Ο λογαριασμός έκλεισε"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Ο λογαριασμός συνδέθηκε"
@@ -2928,6 +2948,11 @@ msgstr "Διαγραφή λογαριασμού"
msgid "Account state"
msgstr "Κατάσταση λογαριασμού"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Ο λογαριασμός ανεστάλη"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Αποφασίστε πώς τα premium όρια θα ισχύουν γ
msgid "Decide whether replies @mention you by default"
msgstr "Αποφασίστε αν οι απαντήσεις θα σας αναφέρουν (@mention) από προεπιλογή"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Αναγνωριστικό απόφασης: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Πόσο από το πρόσφατο ιστορικό μηνυμάτω
msgid "How this works"
msgstr "Πώς λειτουργεί"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Πώς να κάνεις ένσταση"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Πώς να ανακτήσετε τον λογαριασμό σας"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Πώς αποφασίσαμε"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Αν αποθηκεύσετε αυτό το όνομα χρήστη, η
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Αν αποθηκεύσετε αυτό το όνομα χρήστη, η ετικέτα σας θα αλλάξει τυχαία όταν λήξει το {PREMIUM_PRODUCT_NAME}, εκτός αν ανανεωθεί."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Αν μοιράζεσαι αυτό το δίκτυο με άλλους, για παράδειγμα στο σχολείο, στη δουλειά, σε δημόσιο Wi-Fi, μέσω της εταιρείας κινητής τηλεφωνίας σου ή μέσω VPN, ο αποκλεισμός μπορεί να μην έχει καμία σχέση με εσένα. Η πιο γρήγορη λύση είναι να αλλάξεις δίκτυο, για παράδειγμα να χρησιμοποιήσεις δεδομένα κινητής αντί για Wi-Fi, ή να ενεργοποιήσεις ή να απενεργοποιήσεις το VPN σου."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Αν πιστεύεις ότι ο αποκλεισμός είναι λάθος, στείλε email στο <0>{email}</0> και ανάφερε τη διεύθυνση IP σου, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Αν πιστεύεις ότι κάναμε λάθος, στείλε email στο <0>{email}</0> και ανάφερε το όνομα χρήστη σου."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Αν πιστεύεις ότι κάναμε λάθος, στείλε email στο <0>{email}</0> έως τις {deadline}. Ανάφερε το αναγνωριστικό της απόφασης και το όνομα χρήστη σου. Οι ενστάσεις είναι δωρεάν και κάθε μία την εξετάζει ένας άνθρωπος."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Αν πιστεύεις ότι κάναμε λάθος, στείλε email στο <0>{email}</0> έως τις {deadline}. Αν μπορείς, γράψε από τη διεύθυνση email του λογαριασμού σου και ανάφερε το αναγνωριστικό της απόφασης. Οι ενστάσεις είναι δωρεάν και κάθε μία την εξετάζει ένας άνθρωπος."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Αν θέλετε να εξαγάγετε τα δεδομένα σας ή να διαγράψετε πρώτα τα μηνύματά σας, μεταβείτε στο {privacyDashboardPath} πριν συνεχίσετε."
@@ -22302,6 +22367,11 @@ msgstr "Ολλανδία"
msgid "Network"
msgstr "Δίκτυο"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Το δίκτυο αποκλείστηκε"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Σημείωση"
msgid "Note (only visible to you)"
msgstr "Σημείωση (ορατή μόνο σε εσάς)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Σημείωση από την ομάδα μας: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Στρογγυλό πλαίσιο επιλογής"
msgid "Rows per page"
msgstr "Σειρές ανά σελίδα"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Κανόνας: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Κανόνας: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Ο αποκλεισμός είχε ήδη λήξει στις {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Ο αποκλεισμός επρόκειτο να λήξει στις {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Ο αποκλεισμός λήγει στις {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Το bot προστέθηκε στο <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Δυτική Βιρτζίνια"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Τι συνέβη"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Ποιος πληκτρολογεί"
msgid "Whoa, this is heavy"
msgstr "Πω πω, βαρύ πράγμα"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Γιατί"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/en-GB/messages.po b/fluxer_app/src/features/i18n/locales/en-GB/messages.po
index 9b2087fe1..fc6a0d89c 100644
--- a/fluxer_app/src/features/i18n/locales/en-GB/messages.po
+++ b/fluxer_app/src/features/i18n/locales/en-GB/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName} application icon"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} blocked access from this network because of activity that broke its rules."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} blocked access from this network."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Account & premium overrides"
msgid "Account and security details are hidden"
msgstr "Account and security details are hidden"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Account banned"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Account claimed successfully"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Account closed"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Account connected"
@@ -2928,6 +2948,11 @@ msgstr "Account removal"
msgid "Account state"
msgstr "Account state"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Account suspended"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Decide how premium limits apply to people on this instance."
msgid "Decide whether replies @mention you by default"
msgstr "Decide whether replies @mention you by default"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Decision ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "How much of the member's recent message history to delete."
msgid "How this works"
msgstr "How this works"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "How to appeal"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "How to recover your account"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "How we decided"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "If you save this username, your tag will reroll randomly when your {PREM
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile network or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "If you think we got this wrong, email <0>{email}</0> and include your username."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
@@ -22302,6 +22367,11 @@ msgstr "Netherlands"
msgid "Network"
msgstr "Network"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Network blocked"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Note"
msgid "Note (only visible to you)"
msgstr "Note (only visible to you)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Note from our team: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Round style checkbox"
msgid "Rows per page"
msgstr "Rows per page"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Rule: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Rule: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "The ban had already expired on {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "The ban was scheduled to expire on {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "The block ends on {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "The bot has been added to <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "West Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "What happened"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Who is typing"
msgid "Whoa, this is heavy"
msgstr "Whoa, this is heavy"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Why"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/en-US/messages.po b/fluxer_app/src/features/i18n/locales/en-US/messages.po
index 15e209e69..0e39df2f1 100644
--- a/fluxer_app/src/features/i18n/locales/en-US/messages.po
+++ b/fluxer_app/src/features/i18n/locales/en-US/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName} application icon"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} blocked access from this network because of activity that broke its rules."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} blocked access from this network."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Account & premium overrides"
msgid "Account and security details are hidden"
msgstr "Account and security details are hidden"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Account banned"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Account claimed successfully"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Account closed"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Account connected"
@@ -2928,6 +2948,11 @@ msgstr "Account removal"
msgid "Account state"
msgstr "Account state"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Account suspended"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Decide how premium limits apply to people on this instance."
msgid "Decide whether replies @mention you by default"
msgstr "Decide whether replies @mention you by default"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Decision ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "How much of the member's recent message history to delete."
msgid "How this works"
msgstr "How this works"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "How to appeal"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "How to recover your account"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "How we decided"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "If you save this username, your tag will reroll randomly when your {PREM
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "If you think we got this wrong, email <0>{email}</0> and include your username."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
@@ -22302,6 +22367,11 @@ msgstr "Netherlands"
msgid "Network"
msgstr "Network"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Network blocked"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Note"
msgid "Note (only visible to you)"
msgstr "Note (only visible to you)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Note from our team: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Round style checkbox"
msgid "Rows per page"
msgstr "Rows per page"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Rule: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Rule: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "The ban had already expired on {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "The ban was scheduled to expire on {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "The block ends on {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "The bot has been added to <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "West Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "What happened"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Who is typing"
msgid "Whoa, this is heavy"
msgstr "Whoa, this is heavy"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Why"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/es-419/messages.po b/fluxer_app/src/features/i18n/locales/es-419/messages.po
index f8f7bb930..4d25c7194 100644
--- a/fluxer_app/src/features/i18n/locales/es-419/messages.po
+++ b/fluxer_app/src/features/i18n/locales/es-419/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Icono de la aplicación {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} evita enviar notificaciones push a tus dispositivos móviles cuando estás usando tu computadora. Elige cuánto tiempo necesitas estar inactivo en el escritorio antes de que recibas las notificaciones push."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} bloqueó el acceso desde esta red debido a una actividad que infringía sus reglas."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} bloqueó el acceso desde esta red."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Estados forzados de cuenta y premium"
msgid "Account and security details are hidden"
msgstr "Los detalles de la cuenta y seguridad están ocultos"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Cuenta suspendida de forma permanente"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Registro de la cuenta completado"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Cuenta cerrada"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Cuenta conectada"
@@ -2928,6 +2948,11 @@ msgstr "Eliminar cuenta"
msgid "Account state"
msgstr "Estado de la cuenta"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Cuenta suspendida"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Decide cómo se aplican los límites premium a las personas en esta inst
msgid "Decide whether replies @mention you by default"
msgstr "Decide si las respuestas te @mencionan por defecto"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID de la decisión: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Qué parte del historial reciente de mensajes del miembro se eliminará.
msgid "How this works"
msgstr "Cómo funciona"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Cómo apelar"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Cómo recuperar tu cuenta"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Cómo lo decidimos"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Si guardas este nombre de usuario, tu etiqueta se volverá a generar ale
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Si guardas este nombre de usuario, tu etiqueta se volverá a generar aleatoriamente cuando caduque tu {PREMIUM_PRODUCT_NAME}, a menos que se renueve."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Si compartes esta red, por ejemplo en la escuela, en el trabajo, en una red Wi-Fi pública, a través de tu compañía de celular o de una VPN, es posible que este bloqueo no tenga nada que ver contigo. La forma más rápida de solucionarlo es cambiar de red, por ejemplo usar datos móviles en lugar de Wi-Fi, o activar o desactivar tu VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Si crees que este bloqueo es un error, escribe a <0>{email}</0> e indica tu dirección IP, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Si crees que nos equivocamos, escribe a <0>{email}</0> e indica tu nombre de usuario."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Si crees que nos equivocamos, escribe a <0>{email}</0> a más tardar el {deadline}. Indica el ID de la decisión y tu nombre de usuario. Apelar es gratis, y una persona revisa cada apelación."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Si crees que nos equivocamos, escribe a <0>{email}</0> a más tardar el {deadline}. Si puedes, escribe desde la dirección de correo electrónico de tu cuenta e indica el ID de la decisión. Apelar es gratis, y una persona revisa cada apelación."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Si quieres exportar tus datos o eliminar tus mensajes primero, visita {privacyDashboardPath} antes de continuar."
@@ -22302,6 +22367,11 @@ msgstr "Países Bajos"
msgid "Network"
msgstr "Red"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Red bloqueada"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Nota"
msgid "Note (only visible to you)"
msgstr "Nota (solo visible para ti)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Nota de nuestro equipo: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Casilla de verificación de estilo redondo"
msgid "Rows per page"
msgstr "Filas por página"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Regla: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Regla: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "El baneo ya había expirado el {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "El baneo estaba programado para expirar el {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "El bloqueo termina el {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "El bot se agregó a <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Virginia Occidental"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Qué pasó"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Quién está escribiendo"
msgid "Whoa, this is heavy"
msgstr "Uhm, esto es demasiado"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Por qué"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/es-ES/messages.po b/fluxer_app/src/features/i18n/locales/es-ES/messages.po
index fbbf5234b..060a0976f 100644
--- a/fluxer_app/src/features/i18n/locales/es-ES/messages.po
+++ b/fluxer_app/src/features/i18n/locales/es-ES/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Icono de la aplicación {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} evita enviar notificaciones push a tus dispositivos móviles cuando estás usando tu ordenador. Elige durante cuánto tiempo necesitas estar inactivo en el escritorio antes de que empieces a recibir notificaciones push."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} ha bloqueado el acceso desde esta red debido a una actividad que infringía sus normas."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} ha bloqueado el acceso desde esta red."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Estados forzados de cuenta y premium"
msgid "Account and security details are hidden"
msgstr "Se han ocultado los detalles de la cuenta y la seguridad"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Cuenta suspendida de forma permanente"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Registro de la cuenta completado"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Cuenta cerrada"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Cuenta conectada"
@@ -2928,6 +2948,11 @@ msgstr "Eliminar cuenta"
msgid "Account state"
msgstr "Estado de la cuenta"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Cuenta suspendida"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Decide cómo se aplican los límites premium a las personas de esta inst
msgid "Decide whether replies @mention you by default"
msgstr "Decide si las respuestas te @mencionan por defecto"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID de la decisión: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Qué parte del historial reciente de mensajes del miembro se eliminará.
msgid "How this works"
msgstr "Cómo funciona"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Cómo apelar"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Cómo recuperar tu cuenta"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Cómo lo hemos decidido"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Si guardas este nombre de usuario, tu etiqueta se volverá a generar ale
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Si guardas este nombre de usuario, tu etiqueta se volverá a generar aleatoriamente cuando caduque tu {PREMIUM_PRODUCT_NAME}, a menos que se renueve."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Si compartes esta red, por ejemplo en el centro de estudios, en el trabajo, en una red Wi-Fi pública, a través de tu operador móvil o de una VPN, puede que este bloqueo no tenga nada que ver contigo. La forma más rápida de solucionarlo es cambiar de red, por ejemplo usar datos móviles en lugar de Wi-Fi, o activar o desactivar tu VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Si crees que este bloqueo es un error, escribe a <0>{email}</0> e indica tu dirección IP, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Si crees que nos hemos equivocado, escribe a <0>{email}</0> e indica tu nombre de usuario."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Si crees que nos hemos equivocado, escribe a <0>{email}</0> a más tardar el {deadline}. Indica el ID de la decisión y tu nombre de usuario. Apelar es gratis, y una persona revisa cada apelación."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Si crees que nos hemos equivocado, escribe a <0>{email}</0> a más tardar el {deadline}. Si puedes, escribe desde la dirección de correo electrónico de tu cuenta e indica el ID de la decisión. Apelar es gratis, y una persona revisa cada apelación."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Si quieres exportar tus datos o eliminar tus mensajes primero, visita {privacyDashboardPath} antes de continuar."
@@ -22302,6 +22367,11 @@ msgstr "Países Bajos"
msgid "Network"
msgstr "Red"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Red bloqueada"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Nota"
msgid "Note (only visible to you)"
msgstr "Nota (solo visible para ti)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Nota de nuestro equipo: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Casilla de verificación de estilo redondo"
msgid "Rows per page"
msgstr "Filas por página"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Norma: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Norma: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "El baneo ya había expirado el {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "El baneo iba a expirar el {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "El bloqueo termina el {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "El bot se ha añadido a <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Virginia Occidental"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Qué ha pasado"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Quién está escribiendo"
msgid "Whoa, this is heavy"
msgstr "Uf, esto es demasiado"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Por qué"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/fi/messages.po b/fluxer_app/src/features/i18n/locales/fi/messages.po
index 29b66d77d..268421dbb 100644
--- a/fluxer_app/src/features/i18n/locales/fi/messages.po
+++ b/fluxer_app/src/features/i18n/locales/fi/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName}-sovelluksen kuvake"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} ei lähetä push-ilmoituksia mobiililaitteisiisi, kun olet tietokoneellasi. Valitse, kuinka kauan sinun pitää olla toimettomana työpöydällä, ennen kuin saat push-ilmoituksia."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} esti pääsyn tästä verkosta sääntöjä rikkoneen toiminnan vuoksi."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} esti pääsyn tästä verkosta."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Tili ja premium-ohitukset"
msgid "Account and security details are hidden"
msgstr "Tili- ja tietoturvatiedot on piilotettu"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Tili jäädytetty pysyvästi"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Tili lunastettu"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Tili suljettu"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Tili yhdistetty"
@@ -2928,6 +2948,11 @@ msgstr "Tilin poistaminen"
msgid "Account state"
msgstr "Tilin tila"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Tili jäädytetty"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Päätä, miten premium-rajat koskevat tämän instanssin käyttäjiä."
msgid "Decide whether replies @mention you by default"
msgstr "Päätä, mainitaanko sinut vastauksissa oletuksena"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Päätöksen tunnus: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Kuinka paljon jäsenen viimeaikaisista viesteistä poistetaan."
msgid "How this works"
msgstr "Näin se toimii"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Näin valitat päätöksestä"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Näin palautat tilisi"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Miten päätimme"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Jos tallennat tämän käyttäjänimen, tunnuksesi arvotaan uudelleen sa
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Jos tallennat tämän käyttäjänimen, tunnuksesi arvotaan uudelleen satunnaisesti, kun {PREMIUM_PRODUCT_NAME} päättyy, ellei sitä uusita."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Jos käytät tätä verkkoa yhdessä muiden kanssa, esimerkiksi koulussa, töissä, julkisessa Wi-Fi-verkossa, mobiilioperaattorisi kautta tai VPN:n kautta, esto ei ehkä liity sinuun mitenkään. Nopein ratkaisu on vaihtaa verkkoa, esimerkiksi mobiilidataan Wi-Fin sijaan, tai kytkeä VPN päälle tai pois."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Jos uskot, että esto on virhe, lähetä sähköpostia osoitteeseen <0>{email}</0> ja mainitse IP-osoitteesi, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Jos uskot, että teimme virheen, lähetä sähköpostia osoitteeseen <0>{email}</0> ja mainitse käyttäjänimesi."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Jos uskot, että teimme virheen, lähetä sähköpostia osoitteeseen <0>{email}</0> viimeistään {deadline}. Mainitse päätöksen tunnus ja käyttäjänimesi. Valittaminen on maksutonta, ja jokaisen valituksen käsittelee ihminen."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Jos uskot, että teimme virheen, lähetä sähköpostia osoitteeseen <0>{email}</0> viimeistään {deadline}. Kirjoita tilisi sähköpostiosoitteesta, jos voit, ja mainitse päätöksen tunnus. Valittaminen on maksutonta, ja jokaisen valituksen käsittelee ihminen."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Jos haluat viedä tietosi tai poistaa viestisi ensin, käy osoitteessa {privacyDashboardPath} ennen jatkamista."
@@ -22302,6 +22367,11 @@ msgstr "Alankomaat"
msgid "Network"
msgstr "Verkko"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Verkko estetty"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Huomautus"
msgid "Note (only visible to you)"
msgstr "Muistiinpano (näkyy vain sinulle)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Tiimimme huomautus: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Pyöreä valintaruutu"
msgid "Rows per page"
msgstr "Rivejä sivulla"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Sääntö: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Sääntö: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Porttikielto oli jo rauennut {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Porttikiellon oli määrä päättyä {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Esto päättyy {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Botti on lisätty kohteeseen <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Länsi-Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Mitä tapahtui"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Kuka kirjoittaa"
msgid "Whoa, this is heavy"
msgstr "Huh, onpa paljon"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Miksi"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/fr/messages.po b/fluxer_app/src/features/i18n/locales/fr/messages.po
index bd54cb5bc..8c5be7138 100644
--- a/fluxer_app/src/features/i18n/locales/fr/messages.po
+++ b/fluxer_app/src/features/i18n/locales/fr/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Icône de l'application {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} évite d’envoyer des notifications push à vos appareils mobiles lorsque vous êtes devant votre ordinateur. Choisissez la durée pendant laquelle vous devez être inactif sur l’ordinateur avant de recevoir les notifications push."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} a bloqué l'accès depuis ce réseau en raison d'une activité qui enfreignait ses règles."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} a bloqué l'accès depuis ce réseau."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Personnalisation de l’état du compte et de l’abonnement premium"
msgid "Account and security details are hidden"
msgstr "Les détails du compte et de la sécurité sont masqués"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Compte banni"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Inscription finalisée"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Compte fermé"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Compte connecté"
@@ -2928,6 +2948,11 @@ msgstr "Suppression du compte"
msgid "Account state"
msgstr "État du compte"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Compte suspendu"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Décidez comment les limites premium s'appliquent aux personnes de cette
msgid "Decide whether replies @mention you by default"
msgstr "Décidez si les réponses vous @mentionnent par défaut"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID de la décision : {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Quantité d'historique de messages récents du membre à supprimer."
msgid "How this works"
msgstr "Fonctionnement"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Comment contester la décision"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Comment récupérer votre compte"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Comment nous avons décidé"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Si vous enregistrez ce nom d’utilisateur, votre tag sera remplacé par
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Si vous enregistrez ce nom d’utilisateur, votre tag sera remplacé par un nouveau tag aléatoire à l’expiration de votre abonnement {PREMIUM_PRODUCT_NAME}, sauf si l’abonnement est renouvelé."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Si vous partagez ce réseau, par exemple à l'école, au travail, sur un Wi-Fi public, via votre opérateur mobile ou un VPN, ce blocage n'a peut-être rien à voir avec vous. Le plus rapide est de changer de réseau, par exemple en passant aux données mobiles au lieu du Wi-Fi, ou d'activer ou de désactiver votre VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Si vous pensez que ce blocage est une erreur, écrivez à <0>{email}</0> en indiquant votre adresse IP, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Si vous pensez que nous nous sommes trompés, écrivez à <0>{email}</0> en indiquant votre nom d'utilisateur."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Si vous pensez que nous nous sommes trompés, écrivez à <0>{email}</0> au plus tard le {deadline}. Indiquez l'ID de la décision et votre nom d'utilisateur. La contestation est gratuite, et une personne examine chaque demande."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Si vous pensez que nous nous sommes trompés, écrivez à <0>{email}</0> au plus tard le {deadline}. Utilisez si possible l'adresse e-mail de votre compte, et indiquez l'ID de la décision. La contestation est gratuite, et une personne examine chaque demande."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Si vous souhaitez d'abord exporter vos données ou supprimer vos messages, veuillez consulter {privacyDashboardPath} avant de continuer."
@@ -22302,6 +22367,11 @@ msgstr "Pays-Bas"
msgid "Network"
msgstr "Réseau"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Réseau bloqué"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Note"
msgid "Note (only visible to you)"
msgstr "Note (visible uniquement par vous)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Note de notre équipe : {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Case à cocher de style rond"
msgid "Rows per page"
msgstr "Lignes par page"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Règle : {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Règle : <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Le bannissement avait déjà expiré le {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Le bannissement devait expirer le {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Le blocage prend fin le {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Le bot a été ajouté à <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Virginie-Occidentale"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Ce qui s'est passé"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Qui est en train d'écrire"
msgid "Whoa, this is heavy"
msgstr "Ouh là, c'est lourd"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Pourquoi"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/he/messages.po b/fluxer_app/src/features/i18n/locales/he/messages.po
index 5a517258b..a94e0727b 100644
--- a/fluxer_app/src/features/i18n/locales/he/messages.po
+++ b/fluxer_app/src/features/i18n/locales/he/messages.po
@@ -1830,6 +1830,16 @@ msgstr "אייקון האפליקציה של {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} נמנע משליחת התראות דחיפה למכשירים הניידים שלך כשאתה ליד המחשב. בחר כמה זמן עליך להיות לא פעיל במחשב לפני שתתחיל לקבל התראות דחיפה."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} חסם את הגישה מהרשת הזו בגלל פעילות שהפרה את הכללים שלו."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} חסם את הגישה מהרשת הזו."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "עקיפות חשבון ופרימיום"
msgid "Account and security details are hidden"
msgstr "פרטי החשבון והאבטחה מוסתרים"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "החשבון נחסם"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "החשבון נתבע בהצלחה"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "החשבון נסגר"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "החשבון מחובר"
@@ -2928,6 +2948,11 @@ msgstr "מחיקת חשבון"
msgid "Account state"
msgstr "מצב חשבון"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "החשבון הושעה"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "קבע כיצד מגבלות הפרימיום יחולו על אנשים
msgid "Decide whether replies @mention you by default"
msgstr "החלט אם תגובות יאזכרו אותך ב-@ כברירת מחדל"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "מזהה החלטה: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "כמה מההודעות האחרונות של החבר יימחקו."
msgid "How this works"
msgstr "איך זה עובד"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "איך לערער"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "איך לשחזר את החשבון שלך"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "איך החלטנו"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "אם תשמור את שם המשתמש הזה, התג שלך יוגרל
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "אם תשמור את שם המשתמש הזה, התג שלך יוגרל מחדש באופן אקראי כשהמנוי שלך ל-{PREMIUM_PRODUCT_NAME} יפוג, אלא אם כן הוא יתחדש."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "אם אתם חולקים את הרשת הזו עם אחרים, למשל בבית הספר, בעבודה, ב-Wi-Fi ציבורי, דרך ספק הסלולר או דרך VPN, ייתכן שלחסימה הזו אין שום קשר אליכם. הפתרון המהיר ביותר הוא לעבור לרשת אחרת, למשל לגלישה סלולרית במקום Wi-Fi, או להפעיל או לכבות את ה-VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "אם לדעתכם החסימה הזו היא טעות, שלחו אימייל אל <0>{email}</0> וציינו את כתובת ה-IP שלכם, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "אם לדעתכם טעינו, שלחו אימייל אל <0>{email}</0> וציינו את שם המשתמש שלכם."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "אם לדעתכם טעינו, שלחו אימייל אל <0>{email}</0> עד {deadline}. ציינו את מזהה ההחלטה ואת שם המשתמש שלכם. הערעור ללא תשלום, ואדם בודק כל ערעור."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "אם לדעתכם טעינו, שלחו אימייל אל <0>{email}</0> עד {deadline}. אם אפשר, כתבו מכתובת האימייל של החשבון שלכם, וציינו את מזהה ההחלטה. הערעור ללא תשלום, ואדם בודק כל ערעור."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "אם ברצונך לייצא את הנתונים שלך או למחוק את ההודעות שלך קודם, עבור אל {privacyDashboardPath} לפני שתמשיך."
@@ -22302,6 +22367,11 @@ msgstr "הולנד"
msgid "Network"
msgstr "רשת"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "הרשת נחסמה"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "הערה"
msgid "Note (only visible to you)"
msgstr "הערה (גלויה רק לך)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "הערה מהצוות שלנו: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "תיבת סימון עגולה"
msgid "Rows per page"
msgstr "שורות לעמוד"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "כלל: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "כלל: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "החסימה כבר פגה בתאריך {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "החסימה הייתה אמורה לפוג בתאריך {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "החסימה מסתיימת ב-{date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "הבוט נוסף אל <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "מערב וירג'יניה"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "מה קרה"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "מי מקליד"
msgid "Whoa, this is heavy"
msgstr "וואו, זה כבד"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "למה"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/hi/messages.po b/fluxer_app/src/features/i18n/locales/hi/messages.po
index 9c1ab01d4..8c318cce3 100644
--- a/fluxer_app/src/features/i18n/locales/hi/messages.po
+++ b/fluxer_app/src/features/i18n/locales/hi/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName} ऐप्लिकेशन आइकॉन"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "जब आप अपने कंप्यूटर पर होते हैं, तब {productName} आपके मोबाइल डिवाइस पर पुश नोटिफ़िकेशन भेजने से बचता है। चुनें कि पुश नोटिफ़िकेशन मिलने से पहले आपको डेस्कटॉप पर कितनी देर निष्क्रिय रहना चाहिए।"
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} ने अपने नियम तोड़ने वाली गतिविधि की वजह से इस नेटवर्क से एक्सेस ब्लॉक कर दिया है।"
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} ने इस नेटवर्क से एक्सेस ब्लॉक कर दिया है।"
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "अकाउंट और प्रीमियम ओवरराइड
msgid "Account and security details are hidden"
msgstr "अकाउंट और सुरक्षा विवरण छिपे हुए हैं"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "अकाउंट बैन किया गया"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "अकाउंट सफलतापूर्वक क्लेम किया गया"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "अकाउंट बंद किया गया"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "अकाउंट कनेक्ट हो गया"
@@ -2928,6 +2948,11 @@ msgstr "अकाउंट हटाना"
msgid "Account state"
msgstr "अकाउंट स्थिति"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "अकाउंट सस्पेंड किया गया"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "तय करें कि प्रीमियम सीमाएँ
msgid "Decide whether replies @mention you by default"
msgstr "तय करें कि जवाब डिफ़ॉल्ट रूप से आपको @मेंशन करें या नहीं"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "फैसला ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "सदस्य की हालिया मैसेज हिस्
msgid "How this works"
msgstr "यह कैसे काम करता है"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "अपील कैसे करें"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "अपना खाता कैसे रिकवर करें"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "हमने फैसला कैसे लिया"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "अगर आप यह यूज़रनेम सेव करते
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "अगर आप यह यूज़रनेम सेव करते हैं, तो आपके {PREMIUM_PRODUCT_NAME} की अवधि खत्म होने पर आपका टैग रैंडमली रीरोल हो जाएगा, बशर्ते कि यह रिन्यू न हो।"
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "अगर आप यह नेटवर्क दूसरों के साथ शेयर करते हैं, जैसे स्कूल में, ऑफ़िस में, पब्लिक Wi-Fi पर, अपने मोबाइल कैरियर के ज़रिए या VPN से, तो हो सकता है कि इस ब्लॉक का आपसे कोई लेना-देना न हो। सबसे जल्दी हल है नेटवर्क बदलना, जैसे Wi-Fi की जगह मोबाइल डेटा इस्तेमाल करना, या अपना VPN चालू या बंद करना।"
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "अगर आपको लगता है कि यह ब्लॉक गलती से हुआ है, तो <0>{email}</0> पर ईमेल करें और अपना IP एड्रेस, {ip}, लिखें।"
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "अगर आपको लगता है कि हमसे गलती हुई है, तो <0>{email}</0> पर ईमेल करें और अपना यूज़रनेम लिखें।"
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "अगर आपको लगता है कि हमसे गलती हुई है, तो {deadline} तक <0>{email}</0> पर ईमेल करें। फैसला ID और अपना यूज़रनेम लिखें। अपील मुफ़्त है, और हर अपील को एक इंसान रिव्यू करता है।"
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "अगर आपको लगता है कि हमसे गलती हुई है, तो {deadline} तक <0>{email}</0> पर ईमेल करें। हो सके तो अपने अकाउंट वाले ईमेल एड्रेस से लिखें, और फैसला ID लिखें। अपील मुफ़्त है, और हर अपील को एक इंसान रिव्यू करता है।"
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "अगर आप पहले अपना डेटा एक्सपोर्ट करना या अपने मैसेज डिलीट करना चाहते हैं, तो आगे बढ़ने से पहले कृपया {privacyDashboardPath} पर जाएँ।"
@@ -22302,6 +22367,11 @@ msgstr "नीदरलैंड"
msgid "Network"
msgstr "नेटवर्क"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "नेटवर्क ब्लॉक किया गया"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "नोट"
msgid "Note (only visible to you)"
msgstr "नोट (सिर्फ़ आपको दिखेगा)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "हमारी टीम का नोट: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "गोल स्टाइल चेकबॉक्स"
msgid "Rows per page"
msgstr "प्रति पेज पंक्तियाँ"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "नियम: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "नियम: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "बैन {date} को पहले ही खत्म हो चु
msgid "The ban was scheduled to expire on {date}"
msgstr "बैन {date} को समाप्त होने वाला था"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "यह ब्लॉक {date} को खत्म होगा।"
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "बॉट को <0>{destinationName}</0> में जोड़ दिया गया है।"
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "वेस्ट वर्जीनिया"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "क्या हुआ"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "कौन टाइप कर रहा है"
msgid "Whoa, this is heavy"
msgstr "अरे, यह तो बहुत ज़्यादा है"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "वजह"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/hr/messages.po b/fluxer_app/src/features/i18n/locales/hr/messages.po
index 587d7d349..fe37e5e30 100644
--- a/fluxer_app/src/features/i18n/locales/hr/messages.po
+++ b/fluxer_app/src/features/i18n/locales/hr/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Ikona aplikacije {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} izbjegava slanje push obavijesti na vaše mobilne uređaje dok ste za računalom. Odaberite koliko dugo morate biti neaktivni na računalu prije nego što počnete primati push obavijesti."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} je blokirao pristup s ove mreže zbog aktivnosti koja je kršila njegova pravila."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} je blokirao pristup s ove mreže."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Nadjačavanja računa i premium značajki"
msgid "Account and security details are hidden"
msgstr "Pojedinosti računa i sigurnosti su skrivene"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Račun trajno blokiran"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Račun uspješno preuzet"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Račun zatvoren"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Račun povezan"
@@ -2928,6 +2948,11 @@ msgstr "Uklanjanje računa"
msgid "Account state"
msgstr "Stanje računa"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Račun suspendiran"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Odlučite kako se premium ograničenja primjenjuju na ljude na ovoj inst
msgid "Decide whether replies @mention you by default"
msgstr "Odredite hoće li vas odgovori zadano spominjati s @"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID odluke: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Koji dio nedavne povijesti poruka člana izbrisati."
msgid "How this works"
msgstr "Kako ovo funkcionira"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Kako uložiti žalbu"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Kako oporaviti svoj račun"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Kako smo odlučili"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Ako spremite ovo korisničko ime, vaša će se oznaka nasumično ponovno
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Ako spremite ovo korisničko ime, vaša će se oznaka nasumično ponovno generirati kada vam istekne {PREMIUM_PRODUCT_NAME}, osim ako se ne obnovi."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Ako ovu mrežu dijeliš s drugima, na primjer u školi, na poslu, na javnom Wi-Fiju, preko mobilnog operatera ili VPN-a, ova blokada možda nema nikakve veze s tobom. Najbrže rješenje je promijeniti mrežu, na primjer prijeći s Wi-Fija na mobilne podatke, ili uključiti odnosno isključiti VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Ako misliš da je ova blokada pogreška, pošalji e-poruku na <0>{email}</0> i navedi svoju IP adresu: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Ako misliš da smo pogriješili, pošalji e-poruku na <0>{email}</0> i navedi svoje korisničko ime."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Ako misliš da smo pogriješili, pošalji e-poruku na <0>{email}</0> do {deadline}. Navedi ID odluke i svoje korisničko ime. Žalbe su besplatne i svaku pregledava čovjek."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Ako misliš da smo pogriješili, pošalji e-poruku na <0>{email}</0> do {deadline}. Ako možeš, piši s adrese e-pošte povezane s tvojim računom i navedi ID odluke. Žalbe su besplatne i svaku pregledava čovjek."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Ako prvo želite izvesti svoje podatke ili izbrisati poruke, posjetite {privacyDashboardPath} prije nego što nastavite."
@@ -22302,6 +22367,11 @@ msgstr "Nizozemska"
msgid "Network"
msgstr "Mreža"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Mreža blokirana"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Bilješka"
msgid "Note (only visible to you)"
msgstr "Bilješka (vidljiva samo vama)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Napomena našeg tima: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Okrugli potvrdni okvir"
msgid "Rows per page"
msgstr "Redaka po stranici"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Pravilo: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Pravilo: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Zabrana je već istekla {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Zabrana je trebala isteći {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Blokada traje do {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Bot je dodan u <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Zapadna Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Što se dogodilo"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Tko tipka"
msgid "Whoa, this is heavy"
msgstr "Opa, ovo je previše"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Zašto"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/hu/messages.po b/fluxer_app/src/features/i18n/locales/hu/messages.po
index 46cf2f392..ac81f5857 100644
--- a/fluxer_app/src/features/i18n/locales/hu/messages.po
+++ b/fluxer_app/src/features/i18n/locales/hu/messages.po
@@ -1830,6 +1830,16 @@ msgstr "A(z) {productName} alkalmazás ikonja"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "A(z) {productName} nem küld pushértesítéseket a mobileszközeidre, amikor a számítógépednél vagy. Válaszd ki, mennyi ideig kell inaktívnak lenned a számítógépen ahhoz, hogy pushértesítéseket kapj."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "A(z) {productName} letiltotta a hozzáférést erről a hálózatról a szabályait sértő tevékenység miatt."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "A(z) {productName} letiltotta a hozzáférést erről a hálózatról."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Fiók- és prémiumfelülbírálások"
msgid "Account and security details are hidden"
msgstr "A fiók- és biztonsági adatok rejtve vannak"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Fiók véglegesen felfüggesztve"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "A fiókregisztráció sikeresen befejeződött"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Fiók lezárva"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Fiók csatlakoztatva"
@@ -2928,6 +2948,11 @@ msgstr "Fiók törlése"
msgid "Account state"
msgstr "Fiók állapota"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Fiók felfüggesztve"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Döntsd el, hogyan érvényesüljenek a prémiumcsomag korlátai ennek a
msgid "Decide whether replies @mention you by default"
msgstr "Döntsd el, hogy a neked szóló válaszok alapértelmezés szerint tartalmazzanak-e @említést"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Döntésazonosító: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "A tag legutóbbi üzeneteiből törlendő időszak."
msgid "How this works"
msgstr "Hogyan működik"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Így fellebbezhetsz"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Fiókod helyreállításának módja"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Hogyan döntöttünk"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Ha elmented ezt a felhasználónevet, a címkéd véletlenszerűen újra
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Ha elmented ezt a felhasználónevet, a címkéd véletlenszerűen újra fog generálódni, amikor a(z) {PREMIUM_PRODUCT_NAME} lejár, hacsak nem újul meg."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Ha ezt a hálózatot másokkal közösen használod, például az iskolában, a munkahelyeden, nyilvános Wi-Fi-n, a mobilszolgáltatódon vagy egy VPN-en keresztül, előfordulhat, hogy a letiltásnak semmi köze hozzád. A leggyorsabb megoldás, ha hálózatot váltasz, például Wi-Fi helyett mobilinternetre, vagy ki- vagy bekapcsolod a VPN-t."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Ha úgy gondolod, hogy a letiltás tévedés, írj a(z) <0>{email}</0> címre, és add meg az IP-címedet: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Ha úgy gondolod, hogy tévedtünk, írj a(z) <0>{email}</0> címre, és add meg a felhasználónevedet."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Ha úgy gondolod, hogy tévedtünk, írj a(z) <0>{email}</0> címre. Határidő: {deadline}. Add meg a döntésazonosítót és a felhasználónevedet. A fellebbezés ingyenes, és mindegyiket egy ember bírálja el."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Ha úgy gondolod, hogy tévedtünk, írj a(z) <0>{email}</0> címre. Határidő: {deadline}. Ha tudsz, a fiókodhoz tartozó e-mail-címről írj, és add meg a döntésazonosítót. A fellebbezés ingyenes, és mindegyiket egy ember bírálja el."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Ha előbb exportálni szeretnéd az adataidat vagy törölni szeretnéd az üzeneteidet, kérjük, látogass el ide: {privacyDashboardPath}, mielőtt folytatnád."
@@ -22302,6 +22367,11 @@ msgstr "Hollandia"
msgid "Network"
msgstr "Hálózat"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Hálózat letiltva"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Megjegyzés"
msgid "Note (only visible to you)"
msgstr "Jegyzet (csak te láthatod)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Megjegyzés a csapatunktól: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Kerek stílusú jelölőnégyzet"
msgid "Rows per page"
msgstr "Sorok száma oldalanként"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Szabály: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Szabály: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "A kitiltás már lejárt ekkor: {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "A kitiltásnak ekkor kellett volna lejárnia: {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "A letiltás vége: {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "A bot hozzáadva ide: <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Nyugat-Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Mi történt"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Ki gépel"
msgid "Whoa, this is heavy"
msgstr "Hú, ez durva"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Miért"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/id/messages.po b/fluxer_app/src/features/i18n/locales/id/messages.po
index 00dc4fde9..dd2258946 100644
--- a/fluxer_app/src/features/i18n/locales/id/messages.po
+++ b/fluxer_app/src/features/i18n/locales/id/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Ikon aplikasi {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} menghindari pengiriman notifikasi push ke perangkat selulermu saat kamu sedang di depan komputer. Pilih berapa lama kamu harus tidak aktif di desktop sebelum menerima notifikasi push."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} memblokir akses dari jaringan ini karena aktivitas yang melanggar aturannya."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} memblokir akses dari jaringan ini."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Penggantian akun & premium"
msgid "Account and security details are hidden"
msgstr "Detail akun dan keamanan disembunyikan"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Akun diblokir"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Akun berhasil diklaim"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Akun ditutup"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Akun terhubung"
@@ -2928,6 +2948,11 @@ msgstr "Penghapusan akun"
msgid "Account state"
msgstr "Status akun"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Akun ditangguhkan"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Tentukan cara penerapan batasan premium untuk orang-orang di instance in
msgid "Decide whether replies @mention you by default"
msgstr "Tentukan apakah balasan menyertakan @sebutan untukmu secara default"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID keputusan: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Berapa banyak riwayat pesan terbaru anggota yang akan dihapus."
msgid "How this works"
msgstr "Cara kerjanya"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Cara mengajukan banding"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Cara memulihkan akun Anda"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Cara kami memutuskan"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Jika kamu menyimpan nama pengguna ini, tagmu akan diacak ulang saat {PRE
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Jika kamu menyimpan nama pengguna ini, tagmu akan diacak ulang saat {PREMIUM_PRODUCT_NAME} kamu berakhir, kecuali jika diperpanjang."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Jika kamu berbagi jaringan ini dengan orang lain, misalnya di sekolah, di tempat kerja, di Wi-Fi publik, melalui operator selulermu, atau lewat VPN, blokir ini mungkin tidak ada hubungannya denganmu. Cara tercepat untuk mengatasinya adalah berganti jaringan, misalnya memakai data seluler alih-alih Wi-Fi, atau menyalakan atau mematikan VPN-mu."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Jika menurutmu blokir ini keliru, kirim email ke <0>{email}</0> dan sertakan alamat IP-mu, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Jika menurutmu kami keliru, kirim email ke <0>{email}</0> dan sertakan nama penggunamu."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Jika menurutmu kami keliru, kirim email ke <0>{email}</0> paling lambat {deadline}. Sertakan ID keputusan dan nama penggunamu. Banding tidak dipungut biaya, dan setiap banding ditinjau oleh manusia."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Jika menurutmu kami keliru, kirim email ke <0>{email}</0> paling lambat {deadline}. Jika bisa, kirim dari alamat email akunmu, dan sertakan ID keputusan. Banding tidak dipungut biaya, dan setiap banding ditinjau oleh manusia."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Jika kamu ingin mengekspor data atau menghapus pesan terlebih dahulu, silakan kunjungi {privacyDashboardPath} sebelum melanjutkan."
@@ -22302,6 +22367,11 @@ msgstr "Belanda"
msgid "Network"
msgstr "Jaringan"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Jaringan diblokir"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Catatan"
msgid "Note (only visible to you)"
msgstr "Catatan (hanya terlihat olehmu)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Catatan dari tim kami: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Kotak centang gaya bulat"
msgid "Rows per page"
msgstr "Baris per halaman"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Aturan: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Aturan: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Pemblokiran tersebut telah kedaluwarsa pada {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Pemblokiran dijadwalkan berakhir pada {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Blokir berakhir pada {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Bot telah ditambahkan ke <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Virginia Barat"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Apa yang terjadi"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Siapa yang mengetik"
msgid "Whoa, this is heavy"
msgstr "Wah, berat banget nih"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Alasan"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/it/messages.po b/fluxer_app/src/features/i18n/locales/it/messages.po
index b43889ca2..342fc3b6a 100644
--- a/fluxer_app/src/features/i18n/locales/it/messages.po
+++ b/fluxer_app/src/features/i18n/locales/it/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Icona dell'applicazione {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} evita di inviare notifiche push ai tuoi dispositivi mobili quando sei al computer. Scegli per quanto tempo devi essere inattivo sul desktop prima di ricevere le notifiche push."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} ha bloccato l'accesso da questa rete a causa di attività che violavano le sue regole."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} ha bloccato l'accesso da questa rete."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Override per account e Premium"
msgid "Account and security details are hidden"
msgstr "I dettagli dell'account e della sicurezza sono nascosti"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Account bannato"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Registrazione dell’account completata"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Account chiuso"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Account collegato"
@@ -2928,6 +2948,11 @@ msgstr "Eliminazione account"
msgid "Account state"
msgstr "Stato dell'account"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Account sospeso"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Decidi come i limiti premium si applicano alle persone su questa istanza
msgid "Decide whether replies @mention you by default"
msgstr "Decidi se le risposte ti @menzionano per impostazione predefinita"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID decisione: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Quanta cronologia recente dei messaggi del membro eliminare."
msgid "How this works"
msgstr "Come funziona"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Come presentare ricorso"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Come recuperare il tuo account"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Come abbiamo deciso"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Se salvi questo nome utente, il tuo tag verrà rigenerato casualmente al
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Se salvi questo nome utente, il tuo tag verrà rigenerato casualmente alla scadenza di {PREMIUM_PRODUCT_NAME}, a meno che non venga rinnovato."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Se condividi questa rete, ad esempio a scuola, al lavoro, su una rete Wi-Fi pubblica, tramite il tuo operatore mobile o una VPN, questo blocco potrebbe non avere nulla a che fare con te. La soluzione più rapida è cambiare rete, ad esempio passando ai dati mobili invece del Wi-Fi, oppure attivare o disattivare la VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Se pensi che questo blocco sia un errore, scrivi a <0>{email}</0> indicando il tuo indirizzo IP, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Se pensi che abbiamo sbagliato, scrivi a <0>{email}</0> indicando il tuo nome utente."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Se pensi che abbiamo sbagliato, scrivi a <0>{email}</0> entro il {deadline}. Indica l'ID decisione e il tuo nome utente. Il ricorso è gratuito e ogni richiesta viene esaminata da una persona."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Se pensi che abbiamo sbagliato, scrivi a <0>{email}</0> entro il {deadline}. Se puoi, scrivi dall'indirizzo email del tuo account e indica l'ID decisione. Il ricorso è gratuito e ogni richiesta viene esaminata da una persona."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Se vuoi esportare i tuoi dati o eliminare prima i tuoi messaggi, visita {privacyDashboardPath} prima di procedere."
@@ -22302,6 +22367,11 @@ msgstr "Paesi Bassi"
msgid "Network"
msgstr "Rete"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Rete bloccata"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Nota"
msgid "Note (only visible to you)"
msgstr "Nota (visibile solo a te)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Nota del nostro team: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Casella di spunta rotonda"
msgid "Rows per page"
msgstr "Righe per pagina"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Regola: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Regola: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Il ban era già scaduto il {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Il ban sarebbe scaduto il {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Il blocco termina il {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Il bot è stato aggiunto a <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Virginia Occidentale"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Cosa è successo"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Chi sta scrivendo"
msgid "Whoa, this is heavy"
msgstr "Uhm, è troppo"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Perché"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/ja/messages.po b/fluxer_app/src/features/i18n/locales/ja/messages.po
index f06e7b8aa..3f3b2efe2 100644
--- a/fluxer_app/src/features/i18n/locales/ja/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ja/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName}アプリのアイコン"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName}は、パソコンを使用中はモバイルデバイスにプッシュ通知を送信しません。デスクトップでどのくらい非アクティブな状態が続いたらプッシュ通知を受け取るかを選択してください。"
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName}は、ルールに違反する活動があったため、このネットワークからのアクセスをブロックしました。"
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName}は、このネットワークからのアクセスをブロックしました。"
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "アカウントとプレミアムのオーバーライド"
msgid "Account and security details are hidden"
msgstr "アカウントとセキュリティの詳細は非表示です"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "アカウントは永久停止されています"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "アカウントを登録しました"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "アカウントは閉鎖されています"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "アカウントを接続しました"
@@ -2928,6 +2948,11 @@ msgstr "アカウント削除"
msgid "Account state"
msgstr "アカウントの状態"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "アカウントは一時停止されています"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "このインスタンスのユーザーにプレミアム制限をどの
msgid "Decide whether replies @mention you by default"
msgstr "返信でデフォルトであなたに@メンションを付けるかどうかを設定します"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "決定ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "メンバーの最近のメッセージ履歴をどれだけ削除する
msgid "How this works"
msgstr "仕組み"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "異議申し立ての方法"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "アカウントを復元する方法"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "判断の経緯"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "このユーザー名を保存すると、{PREMIUM_PRODUCT_NAME}の有
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "このユーザー名を保存すると、{PREMIUM_PRODUCT_NAME}の有効期限が切れた際にタグがランダムに再抽選されます(更新されない場合)。"
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "学校、職場、公共Wi-Fi、モバイルキャリア、VPNなどでこのネットワークを他の人と共有している場合、このブロックはあなたとは関係ないかもしれません。いちばん早い解決策は、Wi-Fiからモバイルデータに切り替えるなどしてネットワークを変えるか、VPNをオンまたはオフにすることです。"
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "このブロックが誤りだと思われる場合は、IPアドレス({ip})を記載して<0>{email}</0>までメールでご連絡ください。"
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "この判断が誤りだと思われる場合は、ユーザー名を記載して<0>{email}</0>までメールでご連絡ください。"
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "この判断が誤りだと思われる場合は、{deadline}までに<0>{email}</0>へメールでご連絡ください。決定IDとユーザー名を記載してください。異議申し立ては無料で、一件ずつ担当者が審査します。"
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "この判断が誤りだと思われる場合は、{deadline}までに<0>{email}</0>へメールでご連絡ください。可能であればアカウントに登録したメールアドレスから送信し、決定IDを記載してください。異議申し立ては無料で、一件ずつ担当者が審査します。"
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "データをエクスポートしたり、メッセージを削除したりする場合は、続行する前に{privacyDashboardPath}にアクセスしてください。"
@@ -22302,6 +22367,11 @@ msgstr "オランダ"
msgid "Network"
msgstr "ネットワーク"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "ネットワークがブロックされています"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "メモ"
msgid "Note (only visible to you)"
msgstr "メモ(自分のみ表示)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "チームからのコメント: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "丸型チェックボックス"
msgid "Rows per page"
msgstr "ページあたりの行数"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "ルール: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "ルール: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "そのBANは{date}にすでに期限切れになっていました"
msgid "The ban was scheduled to expire on {date}"
msgstr "そのBANは{date}に終了する予定でした"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "ブロックは{date}に解除されます。"
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "ボットが<0>{destinationName}</0>に追加されました。"
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "ウェストバージニア州"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "措置の内容"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "入力中"
msgid "Whoa, this is heavy"
msgstr "ちょっと多すぎます"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "理由"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/ko/messages.po b/fluxer_app/src/features/i18n/locales/ko/messages.po
index f12e219a5..c89395a0a 100644
--- a/fluxer_app/src/features/i18n/locales/ko/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ko/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName} 애플리케이션 아이콘"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName}은 사용자가 컴퓨터를 사용하는 중에는 모바일 기기로 푸시 알림을 보내지 않습니다. 데스크톱에서 얼마나 오래 비활성 상태여야 푸시 알림을 받을지 선택하세요."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "규칙을 위반한 활동 때문에 {productName}에서 이 네트워크의 접속을 차단했어요."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName}에서 이 네트워크의 접속을 차단했어요."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "계정 및 프리미엄 재정의"
msgid "Account and security details are hidden"
msgstr "계정 및 보안 정보가 숨겨져 있습니다"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "계정 영구 정지"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "계정 등록 완료"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "계정 폐쇄"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "계정 연결됨"
@@ -2928,6 +2948,11 @@ msgstr "계정 삭제"
msgid "Account state"
msgstr "계정 상태"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "계정 일시 정지"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "이 인스턴스의 사용자에게 프리미엄 제한을 적용할 방
msgid "Decide whether replies @mention you by default"
msgstr "답글이 기본적으로 나를 @멘션할지 결정합니다"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "결정 ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "멤버의 최근 메시지 기록 중 얼마나 삭제할지 결정합
msgid "How this works"
msgstr "작동 방식"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "이의 제기 방법"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "계정 복구 방법"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "결정 과정"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "이 사용자 이름을 저장하면, 갱신하지 않는 한 {PREMIUM_P
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "이 사용자 이름을 저장하면, 갱신하지 않는 한 {PREMIUM_PRODUCT_NAME}이(가) 만료될 때 태그가 무작위로 다시 지정됩니다."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "학교, 직장, 공용 Wi-Fi, 이동통신사, VPN 등으로 이 네트워크를 다른 사람과 함께 쓰고 있다면 이 차단은 본인과 관계없을 수도 있어요. 가장 빠른 해결 방법은 Wi-Fi 대신 모바일 데이터를 쓰는 등 네트워크를 바꾸거나, VPN을 켜거나 끄는 거예요."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "이 차단이 잘못되었다고 생각하면 IP 주소({ip})를 적어 <0>{email}</0> 주소로 이메일을 보내 주세요."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "결정이 잘못되었다고 생각하면 사용자 이름을 적어 <0>{email}</0> 주소로 이메일을 보내 주세요."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "결정이 잘못되었다고 생각하면 {deadline}까지 <0>{email}</0> 주소로 이메일을 보내 주세요. 결정 ID와 사용자 이름을 적어 주세요. 이의 제기는 무료이며, 모든 이의 제기는 담당자가 직접 검토해요."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "결정이 잘못되었다고 생각하면 {deadline}까지 <0>{email}</0> 주소로 이메일을 보내 주세요. 가능하면 계정에 등록된 이메일 주소로 보내고, 결정 ID를 적어 주세요. 이의 제기는 무료이며, 모든 이의 제기는 담당자가 직접 검토해요."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "데이터를 내보내거나 메시지를 먼저 삭제하려면 계속하기 전에 {privacyDashboardPath}을(를) 방문하세요."
@@ -22302,6 +22367,11 @@ msgstr "네덜란드"
msgid "Network"
msgstr "네트워크"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "네트워크 차단"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "메모"
msgid "Note (only visible to you)"
msgstr "메모 (나에게만 보임)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "팀에서 남긴 메모: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "원형 체크박스"
msgid "Rows per page"
msgstr "페이지당 행 수"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "규칙: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "규칙: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "차단은 이미 {date}에 만료되었습니다"
msgid "The ban was scheduled to expire on {date}"
msgstr "차단은 {date}에 해제될 예정이었습니다"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "차단은 {date}에 해제돼요."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "봇이 <0>{destinationName}</0>에 추가되었습니다."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "웨스트버지니아"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "조치 내용"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "입력 중인 사람"
msgid "Whoa, this is heavy"
msgstr "우와, 너무 많은데요"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "사유"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/lt/messages.po b/fluxer_app/src/features/i18n/locales/lt/messages.po
index 45981bbf3..a4f76ca7b 100644
--- a/fluxer_app/src/features/i18n/locales/lt/messages.po
+++ b/fluxer_app/src/features/i18n/locales/lt/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName} programos piktograma"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "„{productName}“ nesiunčia tiesioginių pranešimų į jūsų mobiliuosius įrenginius, kai esate prie kompiuterio. Nustatykite, po kiek laiko neaktyvumo darbalaukyje turėtų būti pradėti siųsti pranešimai."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} užblokavo prieigą iš šio tinklo dėl veiklos, pažeidusios taisykles."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} užblokavo prieigą iš šio tinklo."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Paskyros ir Premium perrašymai"
msgid "Account and security details are hidden"
msgstr "Paskyros ir saugos informacija paslėpta"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Paskyra visam laikui sustabdyta"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Paskyra sėkmingai užregistruota"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Paskyra uždaryta"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Paskyra prijungta"
@@ -2928,6 +2948,11 @@ msgstr "Paskyros pašalinimas"
msgid "Account state"
msgstr "Paskyros būsena"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Paskyra sustabdyta"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Nuspręskite, kaip premium apribojimai taikomi šios instancijos naudoto
msgid "Decide whether replies @mention you by default"
msgstr "Nustatykite, ar atsakymai pagal numatytuosius nustatymus jus @pamini"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Sprendimo ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17540,11 +17570,21 @@ msgstr "Kokią naujausios nario žinučių istorijos dalį ištrinti."
msgid "How this works"
msgstr "Kaip tai veikia"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Kaip apskųsti sprendimą"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Kaip atkurti paskyrą"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Kaip priėmėme sprendimą"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17739,6 +17779,31 @@ msgstr "Jei išsaugosite šį naudotojo vardą, jūsų žyma bus atsitiktinai pa
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Jei išsaugosite šį naudotojo vardą, jūsų žyma bus atsitiktinai pakeista, kai baigs galioti jūsų {PREMIUM_PRODUCT_NAME}, nebent ji bus atnaujinta."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Jei šiuo tinklu naudojiesi kartu su kitais, pavyzdžiui, mokykloje, darbe, viešajame Wi-Fi tinkle, per mobiliojo ryšio operatorių ar VPN, šis blokavimas gali būti visai nesusijęs su tavimi. Greičiausiai padės pakeisti tinklą, pavyzdžiui, vietoj Wi-Fi naudoti mobiliuosius duomenis, arba įjungti ar išjungti VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Jei manai, kad šis blokavimas yra klaida, parašyk adresu <0>{email}</0> ir nurodyk savo IP adresą: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Jei manai, kad suklydome, parašyk adresu <0>{email}</0> ir nurodyk savo naudotojo vardą."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Jei manai, kad suklydome, parašyk adresu <0>{email}</0> iki {deadline}. Nurodyk sprendimo ID ir savo naudotojo vardą. Skundai nagrinėjami nemokamai, o kiekvieną jų peržiūri žmogus."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Jei manai, kad suklydome, parašyk adresu <0>{email}</0> iki {deadline}. Jei gali, rašyk iš savo paskyros el. pašto adreso ir nurodyk sprendimo ID. Skundai nagrinėjami nemokamai, o kiekvieną jų peržiūri žmogus."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Jei pirmiausia norite eksportuoti savo duomenis arba ištrinti žinutes, prieš tęsdami apsilankykite {privacyDashboardPath}."
@@ -22303,6 +22368,11 @@ msgstr "Nyderlandai"
msgid "Network"
msgstr "Tinklas"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Tinklas užblokuotas"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23370,6 +23440,11 @@ msgstr "Pastaba"
msgid "Note (only visible to you)"
msgstr "Pastaba (matoma tik jums)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Mūsų komandos pastaba: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28538,6 +28613,16 @@ msgstr "Apvalaus stiliaus žymimasis langelis"
msgid "Rows per page"
msgstr "Eilutės puslapyje"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Taisyklė: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Taisyklė: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33530,6 +33615,11 @@ msgstr "Užblokavimas jau buvo pasibaigęs {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Užblokavimas turėjo pasibaigti {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Blokavimas baigsis {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Botas pridėtas prie <0>{destinationName}</0>."
@@ -38946,6 +39036,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Vakarų Virdžinija"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Kas nutiko"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39109,6 +39204,11 @@ msgstr "Kas rašo"
msgid "Whoa, this is heavy"
msgstr "Oho, čia tai kiekis"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Kodėl"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/nl/messages.po b/fluxer_app/src/features/i18n/locales/nl/messages.po
index ca820a773..31c031b9f 100644
--- a/fluxer_app/src/features/i18n/locales/nl/messages.po
+++ b/fluxer_app/src/features/i18n/locales/nl/messages.po
@@ -1830,6 +1830,16 @@ msgstr "App-pictogram van {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} stuurt geen pushmeldingen naar je mobiele apparaten zolang je actief bent op je computer. Kies hoelang je op je computer inactief moet zijn voordat je pushmeldingen ontvangt."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} heeft de toegang vanaf dit netwerk geblokkeerd vanwege activiteit die de regels overtrad."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} heeft de toegang vanaf dit netwerk geblokkeerd."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Geforceerde account- en premiuminstellingen"
msgid "Account and security details are hidden"
msgstr "Account- en beveiligingsgegevens zijn verborgen"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Account verbannen"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Registratie van account voltooid"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Account gesloten"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Account gekoppeld"
@@ -2928,6 +2948,11 @@ msgstr "Account verwijderen"
msgid "Account state"
msgstr "Accountstatus"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Account geschorst"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Bepaal hoe premiumlimieten gelden voor gebruikers op deze instantie."
msgid "Decide whether replies @mention you by default"
msgstr "Bepaal of antwoorden je standaard @vermelden"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Beslissings-ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Hoeveel van de recente berichtgeschiedenis van het lid moet worden verwi
msgid "How this works"
msgstr "Hoe dit werkt"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Zo maak je bezwaar"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Hoe u uw account herstelt"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Zo hebben we besloten"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Als je deze gebruikersnaam opslaat, wordt je tag willekeurig opnieuw toe
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Als je deze gebruikersnaam opslaat, wordt je tag willekeurig opnieuw toegewezen wanneer je {PREMIUM_PRODUCT_NAME} verloopt, tenzij het wordt verlengd."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Als je dit netwerk met anderen deelt, bijvoorbeeld op school, op je werk, via openbare wifi, via je mobiele provider of een VPN, heeft deze blokkade misschien niets met jou te maken. De snelste oplossing is om van netwerk te wisselen, bijvoorbeeld naar mobiele data in plaats van wifi, of om je VPN aan of uit te zetten."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Als je denkt dat deze blokkade een vergissing is, stuur dan een e-mail naar <0>{email}</0> en vermeld je IP-adres, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Als je denkt dat we een fout hebben gemaakt, stuur dan een e-mail naar <0>{email}</0> en vermeld je gebruikersnaam."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Als je denkt dat we een fout hebben gemaakt, stuur dan uiterlijk {deadline} een e-mail naar <0>{email}</0>. Vermeld het beslissings-ID en je gebruikersnaam. Bezwaar maken is gratis en elk bezwaar wordt door een persoon beoordeeld."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Als je denkt dat we een fout hebben gemaakt, stuur dan uiterlijk {deadline} een e-mail naar <0>{email}</0>. Stuur die zo mogelijk vanaf het e-mailadres van je account en vermeld het beslissings-ID. Bezwaar maken is gratis en elk bezwaar wordt door een persoon beoordeeld."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Als je eerst je gegevens wilt exporteren of je berichten wilt verwijderen, ga dan naar {privacyDashboardPath} voordat je verdergaat."
@@ -22302,6 +22367,11 @@ msgstr "Nederland"
msgid "Network"
msgstr "Netwerk"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Netwerk geblokkeerd"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Notitie"
msgid "Note (only visible to you)"
msgstr "Notitie (alleen voor jou zichtbaar)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Opmerking van ons team: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Rond selectievakje"
msgid "Rows per page"
msgstr "Rijen per pagina"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Regel: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Regel: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "De verbanning was al verlopen op {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "De verbanning zou verlopen op {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "De blokkade eindigt op {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "De bot is toegevoegd aan <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "West Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Wat er is gebeurd"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Wie typt er"
msgid "Whoa, this is heavy"
msgstr "Oei, dit is te veel"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Waarom"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/no/messages.po b/fluxer_app/src/features/i18n/locales/no/messages.po
index 4f4f3f2e4..6b4584a1b 100644
--- a/fluxer_app/src/features/i18n/locales/no/messages.po
+++ b/fluxer_app/src/features/i18n/locales/no/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName}-appikon"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} unngår å sende push-varsler til mobilenhetene dine når du bruker datamaskinen. Velg hvor lenge du må være inaktiv på datamaskinen før du mottar push-varsler."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} har blokkert tilgang fra dette nettverket på grunn av aktivitet som brøt reglene."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} har blokkert tilgang fra dette nettverket."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Overstyringer for konto og premium"
msgid "Account and security details are hidden"
msgstr "Kontodetaljer og sikkerhetsdetaljer er skjult"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Konto utestengt"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Registreringen av kontoen er fullført"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Konto stengt"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Konto tilkoblet"
@@ -2928,6 +2948,11 @@ msgstr "Sletting av konto"
msgid "Account state"
msgstr "Kontostatus"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Konto suspendert"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Bestem hvordan premiumgrenser gjelder for brukere på denne instansen."
msgid "Decide whether replies @mention you by default"
msgstr "Bestem om svar skal @omtale deg som standard"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Avgjørelses-ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Hvor mye av medlemmets nylige meldingshistorikk som skal slettes."
msgid "How this works"
msgstr "Slik fungerer det"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Slik klager du"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Slik gjenoppretter du kontoen din"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Slik tok vi avgjørelsen"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Hvis du lagrer dette brukernavnet, vil taggen din endres tilfeldig når
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Hvis du lagrer dette brukernavnet, vil taggen din bli tilfeldig endret når {PREMIUM_PRODUCT_NAME} utløper, med mindre det fornyes."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Hvis du deler dette nettverket med andre, for eksempel på skolen, på jobb, på offentlig Wi-Fi, via mobiloperatøren din eller et VPN, er det ikke sikkert at blokkeringen har noe med deg å gjøre. Den raskeste løsningen er å bytte nettverk, for eksempel til mobildata i stedet for Wi-Fi, eller å slå VPN-et av eller på."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Hvis du mener at blokkeringen er en feil, send en e-post til <0>{email}</0> og oppgi IP-adressen din, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Hvis du mener at vi tok feil, send en e-post til <0>{email}</0> og oppgi brukernavnet ditt."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Hvis du mener at vi tok feil, send en e-post til <0>{email}</0> innen {deadline}. Oppgi avgjørelses-ID-en og brukernavnet ditt. Det er gratis å klage, og en person går gjennom hver klage."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Hvis du mener at vi tok feil, send en e-post til <0>{email}</0> innen {deadline}. Skriv fra e-postadressen på kontoen din hvis du kan, og oppgi avgjørelses-ID-en. Det er gratis å klage, og en person går gjennom hver klage."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Hvis du vil eksportere dataene dine eller slette meldingene dine først, kan du gå til {privacyDashboardPath} før du fortsetter."
@@ -22302,6 +22367,11 @@ msgstr "Nederland"
msgid "Network"
msgstr "Nettverk"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Nettverk blokkert"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Notat"
msgid "Note (only visible to you)"
msgstr "Notat (kun synlig for deg)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Merknad fra teamet vårt: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Rund avkrysningsboks"
msgid "Rows per page"
msgstr "Rader per side"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Regel: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Regel: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Utestengelsen hadde allerede utløpt {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Utestengelsen skulle utløpe {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Blokkeringen opphører den {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Boten er lagt til i <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Vest-Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Hva som skjedde"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Hvem skriver"
msgid "Whoa, this is heavy"
msgstr "Oi, dette var mye"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Hvorfor"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/pl/messages.po b/fluxer_app/src/features/i18n/locales/pl/messages.po
index 1b41ac153..311264c08 100644
--- a/fluxer_app/src/features/i18n/locales/pl/messages.po
+++ b/fluxer_app/src/features/i18n/locales/pl/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Ikona aplikacji {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} zapobiega wysyłaniu powiadomień push na urządzenia mobilne, gdy pracujesz na komputerze. Wybierz, jak długo musisz być nieaktywny na komputerze, zanim zaczniesz otrzymywać powiadomienia push."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} zablokował dostęp z tej sieci z powodu aktywności naruszającej jego zasady."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} zablokował dostęp z tej sieci."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Wymuszanie stanu konta i premium"
msgid "Account and security details are hidden"
msgstr "Dane konta i zabezpieczeń są ukryte"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Konto zablokowane"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Rejestracja konta została pomyślnie ukończona"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Konto zamknięte"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Konto połączone"
@@ -2928,6 +2948,11 @@ msgstr "Usuwanie konta"
msgid "Account state"
msgstr "Stan konta"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Konto zawieszone"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Zdecyduj, jak limity premium mają zastosowanie do osób w tej instancji
msgid "Decide whether replies @mention you by default"
msgstr "Zdecyduj, czy odpowiedzi mają domyślnie zawierać wzmiankę o Tobie"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Identyfikator decyzji: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Z jakiego okresu usunąć ostatnie wiadomości tego członka."
msgid "How this works"
msgstr "Jak to działa"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Jak się odwołać"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Jak odzyskać konto"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Jak podjęliśmy decyzję"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Jeśli zapiszesz tę nazwę użytkownika, Twój tag zostanie ponownie wy
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Jeśli zapiszesz tę nazwę użytkownika, Twój tag zostanie ponownie wylosowany po wygaśnięciu {PREMIUM_PRODUCT_NAME}, chyba że przedłużysz dostęp."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Jeśli korzystasz z tej sieci razem z innymi, na przykład w szkole, w pracy, w publicznej sieci Wi-Fi, przez operatora komórkowego lub VPN, ta blokada może nie mieć z Tobą nic wspólnego. Najszybciej pomoże zmiana sieci, na przykład przejście z Wi-Fi na dane komórkowe, albo włączenie lub wyłączenie VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Jeśli uważasz, że ta blokada to pomyłka, napisz na adres <0>{email}</0> i podaj swój adres IP: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Jeśli uważasz, że popełniliśmy błąd, napisz na adres <0>{email}</0> i podaj swoją nazwę użytkownika."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Jeśli uważasz, że popełniliśmy błąd, napisz na adres <0>{email}</0> do {deadline}. Podaj identyfikator decyzji i swoją nazwę użytkownika. Odwołania są bezpłatne, a każde z nich rozpatruje człowiek."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Jeśli uważasz, że popełniliśmy błąd, napisz na adres <0>{email}</0> do {deadline}. Jeśli możesz, napisz z adresu e-mail przypisanego do Twojego konta i podaj identyfikator decyzji. Odwołania są bezpłatne, a każde z nich rozpatruje człowiek."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Jeśli najpierw chcesz wyeksportować swoje dane lub usunąć wiadomości, odwiedź {privacyDashboardPath}, zanim przejdziesz dalej."
@@ -22302,6 +22367,11 @@ msgstr "Niderlandy"
msgid "Network"
msgstr "Sieć"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Sieć zablokowana"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Notatka"
msgid "Note (only visible to you)"
msgstr "Notatka (widoczna tylko dla Ciebie)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Komentarz naszego zespołu: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Okrągłe pole wyboru"
msgid "Rows per page"
msgstr "Wiersze na stronę"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Zasada: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Zasada: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Ban wygasł już {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Ban miał wygasnąć {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Blokada obowiązuje do {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Bot został dodany do <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Wirginia Zachodnia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Co się stało"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Kto pisze"
msgid "Whoa, this is heavy"
msgstr "Ojej, to jest za dużo"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Dlaczego"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po b/fluxer_app/src/features/i18n/locales/pt-BR/messages.po
index e95e2098c..73796fa8a 100644
--- a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po
+++ b/fluxer_app/src/features/i18n/locales/pt-BR/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Ícone do aplicativo {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "O {productName} evita enviar notificações por push para seus dispositivos móveis quando você está usando o computador. Escolha por quanto tempo você precisa estar inativo no desktop antes de começar a receber notificações por push."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "O {productName} bloqueou o acesso a partir desta rede por causa de atividades que violaram as regras do serviço."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "O {productName} bloqueou o acesso a partir desta rede."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Substituições de conta e premium"
msgid "Account and security details are hidden"
msgstr "Detalhes da conta e segurança estão ocultos"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Conta banida"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Conta reivindicada com sucesso"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Conta encerrada"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Conta conectada"
@@ -2928,6 +2948,11 @@ msgstr "Remoção da conta"
msgid "Account state"
msgstr "Estado da conta"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Conta suspensa"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Decida como os limites premium se aplicam às pessoas nesta instância."
msgid "Decide whether replies @mention you by default"
msgstr "Decida se as respostas @mencionam você por padrão"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID da decisão: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Quanto do histórico de mensagens recentes do membro excluir."
msgid "How this works"
msgstr "Como funciona"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Como recorrer"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Como recuperar sua conta"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Como decidimos"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Se você salvar este nome de usuário, sua tag será sorteada novamente
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Se você salvar este nome de usuário, sua tag será sorteada novamente de forma aleatória quando seu {PREMIUM_PRODUCT_NAME} expirar, a menos que ele seja renovado."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Se você compartilha esta rede, por exemplo na escola, no trabalho, em um Wi-Fi público, pela sua operadora de celular ou por uma VPN, este bloqueio pode não ter nada a ver com você. A solução mais rápida é trocar de rede, por exemplo usar os dados móveis em vez do Wi-Fi, ou ativar ou desativar sua VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Se você acha que este bloqueio é um erro, envie um e-mail para <0>{email}</0> informando seu endereço IP, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Se você acha que erramos, envie um e-mail para <0>{email}</0> informando seu nome de usuário."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Se você acha que erramos, envie um e-mail para <0>{email}</0> até {deadline}. Informe o ID da decisão e seu nome de usuário. O recurso é gratuito, e uma pessoa analisa cada pedido."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Se você acha que erramos, envie um e-mail para <0>{email}</0> até {deadline}. Se puder, escreva do endereço de e-mail da sua conta e informe o ID da decisão. O recurso é gratuito, e uma pessoa analisa cada pedido."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Se quiser exportar seus dados ou excluir suas mensagens primeiro, acesse {privacyDashboardPath} antes de continuar."
@@ -22302,6 +22367,11 @@ msgstr "Países Baixos"
msgid "Network"
msgstr "Rede"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Rede bloqueada"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Nota"
msgid "Note (only visible to you)"
msgstr "Nota (visível só para você)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Nota da nossa equipe: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Caixa de seleção redonda"
msgid "Rows per page"
msgstr "Linhas por página"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Regra: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Regra: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "O banimento já havia expirado em {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "O banimento estava programado para expirar em {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "O bloqueio termina em {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "O bot foi adicionado a <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Virgínia Ocidental"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "O que aconteceu"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Quem está digitando"
msgid "Whoa, this is heavy"
msgstr "Eita, é muita coisa"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Por quê"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/ro/messages.po b/fluxer_app/src/features/i18n/locales/ro/messages.po
index 9b307282c..a9c566af8 100644
--- a/fluxer_app/src/features/i18n/locales/ro/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ro/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Pictograma aplicației {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} evită trimiterea de notificări push către dispozitivele tale mobile când ești la calculator. Alege cât timp trebuie să fii inactiv pe desktop înainte de a primi notificări push."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} a blocat accesul din această rețea din cauza unei activități care i-a încălcat regulile."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} a blocat accesul din această rețea."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Suprascrieri cont și premium"
msgid "Account and security details are hidden"
msgstr "Detaliile despre cont și securitate sunt ascunse"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Cont suspendat permanent"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Cont revendicat cu succes"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Cont închis"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Cont conectat"
@@ -2928,6 +2948,11 @@ msgstr "Ștergere cont"
msgid "Account state"
msgstr "Stare cont"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Cont suspendat"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Decide cum se aplică limitele premium persoanelor din această instanț
msgid "Decide whether replies @mention you by default"
msgstr "Decide dacă răspunsurile te @menționează în mod implicit"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID decizie: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Cât din istoricul mesajelor recente ale membrului să fie șters."
msgid "How this works"
msgstr "Cum funcționează"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Cum poți contesta decizia"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Cum să-ți recuperezi contul"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Cum am decis"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Dacă salvezi acest nume de utilizator, tagul tău va fi reinițializat
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Dacă salvezi acest nume de utilizator, tagul tău va fi reinițializat aleatoriu când {PREMIUM_PRODUCT_NAME} expiră, cu excepția cazului în care se reînnoiește."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Dacă folosești această rețea împreună cu alte persoane, de exemplu la școală, la serviciu, pe o rețea Wi-Fi publică, prin operatorul de telefonie mobilă sau printr-un VPN, este posibil ca acest blocaj să nu aibă nicio legătură cu tine. Cea mai rapidă soluție este să schimbi rețeaua, de exemplu să folosești datele mobile în loc de Wi-Fi sau să pornești ori să oprești VPN-ul."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Dacă crezi că acest blocaj este o greșeală, scrie la <0>{email}</0> și include adresa ta IP, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Dacă crezi că am greșit, scrie la <0>{email}</0> și include numele tău de utilizator."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Dacă crezi că am greșit, scrie la <0>{email}</0> până la {deadline}. Include ID-ul deciziei și numele tău de utilizator. Contestațiile sunt gratuite, iar fiecare este analizată de o persoană."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Dacă crezi că am greșit, scrie la <0>{email}</0> până la {deadline}. Dacă poți, scrie de pe adresa de e-mail asociată contului și include ID-ul deciziei. Contestațiile sunt gratuite, iar fiecare este analizată de o persoană."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Dacă dorești să-ți exportezi mai întâi datele sau să-ți ștergi mesajele, te rugăm să vizitezi {privacyDashboardPath} înainte de a continua."
@@ -22302,6 +22367,11 @@ msgstr "Țările de Jos"
msgid "Network"
msgstr "Rețea"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Rețea blocată"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Notă"
msgid "Note (only visible to you)"
msgstr "Notă (vizibilă doar pentru tine)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Notă de la echipa noastră: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Casetă de selectare rotundă"
msgid "Rows per page"
msgstr "Rânduri pe pagină"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Regulă: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Regulă: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Interdicția expirase deja pe {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Interdicția ar fi expirat pe {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Blocajul se încheie pe {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Botul a fost adăugat la <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Virginia de Vest"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Ce s-a întâmplat"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Cine scrie"
msgid "Whoa, this is heavy"
msgstr "Uau, e prea mult"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "De ce"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/ru/messages.po b/fluxer_app/src/features/i18n/locales/ru/messages.po
index 8eaf2d602..c6cd87a13 100644
--- a/fluxer_app/src/features/i18n/locales/ru/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ru/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Значок приложения {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} не отправляет push-уведомления на мобильные устройства, пока вы за компьютером. Выберите, сколько времени вы должны быть неактивны на компьютере, прежде чем начнёте получать push-уведомления."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} заблокировал доступ из этой сети из-за действий, нарушивших его правила."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} заблокировал доступ из этой сети."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Переопределения аккаунта и премиума"
msgid "Account and security details are hidden"
msgstr "Данные аккаунта и безопасности скрыты"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Аккаунт заблокирован"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Аккаунт успешно подтвержден"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Аккаунт закрыт"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Аккаунт подключен"
@@ -2928,6 +2948,11 @@ msgstr "Удаление аккаунта"
msgid "Account state"
msgstr "Состояние аккаунта"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Аккаунт временно заблокирован"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Решите, как премиум-ограничения будут п
msgid "Decide whether replies @mention you by default"
msgstr "Выберите, будут ли ответы по умолчанию упоминать вас (@)"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID решения: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Какую часть недавней истории сообщений
msgid "How this works"
msgstr "Как это работает"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Как обжаловать решение"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Как восстановить аккаунт"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Как мы приняли решение"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Если вы сохраните это имя пользователя,
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Если вы сохраните это имя пользователя, ваш тег будет случайно изменен, когда истечет срок действия вашей подписки {PREMIUM_PRODUCT_NAME}, если она не будет продлена."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Если ты пользуешься этой сетью вместе с другими людьми, например в школе, на работе, в общественной сети Wi-Fi, через мобильного оператора или VPN, эта блокировка может быть никак не связана с тобой. Быстрее всего сменить сеть, например перейти с Wi-Fi на мобильный интернет, или включить либо выключить VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Если ты считаешь, что эта блокировка ошибочна, напиши на <0>{email}</0> и укажи свой IP-адрес: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Если ты считаешь, что мы ошиблись, напиши на <0>{email}</0> и укажи своё имя пользователя."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Если ты считаешь, что мы ошиблись, напиши на <0>{email}</0> до {deadline}. Укажи ID решения и своё имя пользователя. Апелляции бесплатны, и каждую из них рассматривает человек."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Если ты считаешь, что мы ошиблись, напиши на <0>{email}</0> до {deadline}. По возможности пиши с адреса электронной почты, привязанного к твоему аккаунту, и укажи ID решения. Апелляции бесплатны, и каждую из них рассматривает человек."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Если вы хотите сначала экспортировать свои данные или удалить сообщения, посетите {privacyDashboardPath}, прежде чем продолжить."
@@ -22302,6 +22367,11 @@ msgstr "Нидерланды"
msgid "Network"
msgstr "Сеть"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Сеть заблокирована"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Примечание"
msgid "Note (only visible to you)"
msgstr "Заметка (видна только вам)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Комментарий нашей команды: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Круглый флажок"
msgid "Rows per page"
msgstr "Строк на странице"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Правило: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Правило: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Срок бана уже истёк {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Срок бана должен был истечь {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Блокировка действует до {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Бот добавлен в <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Западная Виргиния"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Что произошло"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Кто печатает"
msgid "Whoa, this is heavy"
msgstr "Ого, это слишком много"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Почему"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po b/fluxer_app/src/features/i18n/locales/sv-SE/messages.po
index ad58776b7..7f687b13e 100644
--- a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po
+++ b/fluxer_app/src/features/i18n/locales/sv-SE/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName}-appikon"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} undviker att skicka pushaviseringar till dina mobila enheter när du använder datorn. Välj hur länge du behöver vara inaktiv på datorn innan du får pushaviseringar."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} har blockerat åtkomst från det här nätverket på grund av aktivitet som bröt mot reglerna."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} har blockerat åtkomst från det här nätverket."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Konto- och premiumåsidosättningar"
msgid "Account and security details are hidden"
msgstr "Kontouppgifter och säkerhetsdetaljer är dolda"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Konto bannlyst"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Kontot har säkrats"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Konto stängt"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Konto anslutet"
@@ -2928,6 +2948,11 @@ msgstr "Ta bort konto"
msgid "Account state"
msgstr "Kontostatus"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Konto avstängt"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Bestäm hur premiumgränserna ska gälla för personer på den här inst
msgid "Decide whether replies @mention you by default"
msgstr "Bestäm om svar ska @-omnämna dig som standard"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Besluts-ID: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Hur mycket av medlemmens senaste meddelandehistorik som ska tas bort."
msgid "How this works"
msgstr "Så här fungerar det"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Så överklagar du"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Hur du återställer ditt konto"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Så fattade vi beslutet"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Om du sparar det här användarnamnet slumpas din tagg om när ditt {PRE
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Om du sparar det här användarnamnet slumpas din tagg om när ditt {PREMIUM_PRODUCT_NAME} går ut, om det inte förnyas."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Om du delar det här nätverket med andra, till exempel i skolan, på jobbet, på ett offentligt Wi-Fi, via din mobiloperatör eller ett VPN, kanske blockeringen inte har något med dig att göra. Det snabbaste sättet att lösa det är att byta nätverk, till exempel till mobildata i stället för Wi-Fi, eller att slå på eller av ditt VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Om du tror att blockeringen är ett misstag kan du mejla <0>{email}</0> och ange din IP-adress, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Om du tror att vi har gjort fel kan du mejla <0>{email}</0> och ange ditt användarnamn."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Om du tror att vi har gjort fel kan du mejla <0>{email}</0> senast {deadline}. Ange besluts-ID:t och ditt användarnamn. Det är gratis att överklaga, och en person granskar varje överklagande."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Om du tror att vi har gjort fel kan du mejla <0>{email}</0> senast {deadline}. Skriv från e-postadressen på ditt konto om du kan, och ange besluts-ID:t. Det är gratis att överklaga, och en person granskar varje överklagande."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Om du vill exportera din data eller radera dina meddelanden först, besök {privacyDashboardPath} innan du fortsätter."
@@ -22302,6 +22367,11 @@ msgstr "Nederländerna"
msgid "Network"
msgstr "Nätverk"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Nätverk blockerat"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Anteckning"
msgid "Note (only visible to you)"
msgstr "Anteckning (bara synlig för dig)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Kommentar från vårt team: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Rund kryssruta"
msgid "Rows per page"
msgstr "Rader per sida"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Regel: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Regel: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Bannlysningen hade redan löpt ut den {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Bannlysningen skulle ha upphört den {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Blockeringen upphör den {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Boten har lagts till i <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "West Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Vad som hände"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Vem skriver"
msgid "Whoa, this is heavy"
msgstr "Oj, det här var tungt"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Varför"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/th/messages.po b/fluxer_app/src/features/i18n/locales/th/messages.po
index dfbd364e5..21cf72b2b 100644
--- a/fluxer_app/src/features/i18n/locales/th/messages.po
+++ b/fluxer_app/src/features/i18n/locales/th/messages.po
@@ -1830,6 +1830,16 @@ msgstr "ไอคอนแอปพลิเคชัน {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} จะไม่ส่งการแจ้งเตือนแบบพุชไปยังอุปกรณ์มือถือของคุณเมื่อคุณอยู่หน้าคอมพิวเตอร์ เลือกระยะเวลาที่ต้องไม่มีการใช้งานบนเดสก์ท็อป ก่อนที่คุณจะเริ่มได้รับการแจ้งเตือนแบบพุช"
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} บล็อกการเข้าถึงจากเครือข่ายนี้ เนื่องจากมีกิจกรรมที่ละเมิดกฎ"
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} บล็อกการเข้าถึงจากเครือข่ายนี้"
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "การตั้งค่าบัญชีและพรีเมี
msgid "Account and security details are hidden"
msgstr "ซ่อนรายละเอียดบัญชีและความปลอดภัย"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "บัญชีถูกแบน"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "ยืนยันบัญชีสำเร็จแล้ว"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "บัญชีถูกปิด"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "เชื่อมต่อบัญชีแล้ว"
@@ -2928,6 +2948,11 @@ msgstr "การลบบัญชี"
msgid "Account state"
msgstr "สถานะบัญชี"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "บัญชีถูกระงับชั่วคราว"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "เลือกว่าข้อจำกัดระดับพรี
msgid "Decide whether replies @mention you by default"
msgstr "เลือกว่าการตอบกลับจะกล่าวถึง (@) คุณโดยค่าเริ่มต้นหรือไม่"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "รหัสคำตัดสิน: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "จะลบประวัติข้อความล่าสุด
msgid "How this works"
msgstr "วิธีการทำงาน"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "วิธีอุทธรณ์"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "วิธีเรียกคืนบัญชีของคุณ"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "วิธีที่เราตัดสิน"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "หากคุณบันทึกชื่อผู้ใช้นี
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "หากคุณบันทึกชื่อผู้ใช้นี้ แท็กของคุณจะถูกสุ่มใหม่เมื่อ {PREMIUM_PRODUCT_NAME} ของคุณหมดอายุ เว้นแต่จะมีการต่ออายุ"
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "หากคุณใช้เครือข่ายนี้ร่วมกับผู้อื่น เช่น ที่โรงเรียน ที่ทำงาน Wi-Fi สาธารณะ ผ่านผู้ให้บริการมือถือ หรือ VPN การบล็อกนี้อาจไม่เกี่ยวข้องกับคุณเลย วิธีแก้ที่เร็วที่สุดคือเปลี่ยนเครือข่าย เช่น ใช้อินเทอร์เน็ตมือถือแทน Wi-Fi หรือเปิดหรือปิด VPN"
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "หากคุณคิดว่าการบล็อกนี้ผิดพลาด โปรดส่งอีเมลไปที่ <0>{email}</0> และระบุที่อยู่ IP ของคุณ ซึ่งคือ {ip}"
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "หากคุณคิดว่าเราตัดสินผิด โปรดส่งอีเมลไปที่ <0>{email}</0> และระบุชื่อผู้ใช้ของคุณ"
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "หากคุณคิดว่าเราตัดสินผิด โปรดส่งอีเมลไปที่ <0>{email}</0> ภายใน {deadline} และระบุรหัสคำตัดสินและชื่อผู้ใช้ของคุณ การอุทธรณ์ไม่มีค่าใช้จ่าย และเจ้าหน้าที่จะตรวจสอบทุกคำอุทธรณ์ด้วยตนเอง"
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "หากคุณคิดว่าเราตัดสินผิด โปรดส่งอีเมลไปที่ <0>{email}</0> ภายใน {deadline} หากเป็นไปได้ โปรดส่งจากอีเมลที่ใช้กับบัญชีของคุณ และระบุรหัสคำตัดสิน การอุทธรณ์ไม่มีค่าใช้จ่าย และเจ้าหน้าที่จะตรวจสอบทุกคำอุทธรณ์ด้วยตนเอง"
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "หากคุณต้องการส่งออกข้อมูลหรือลบข้อความก่อนดำเนินการต่อ โปรดไปที่ {privacyDashboardPath}"
@@ -22302,6 +22367,11 @@ msgstr "เนเธอร์แลนด์"
msgid "Network"
msgstr "เครือข่าย"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "เครือข่ายถูกบล็อก"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "โน้ต"
msgid "Note (only visible to you)"
msgstr "โน้ต (คุณเห็นคนเดียว)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "หมายเหตุจากทีมของเรา: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "ช่องทำเครื่องหมายแบบวงกล
msgid "Rows per page"
msgstr "จำนวนแถวต่อหน้า"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "กฎ: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "กฎ: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "การแบนหมดอายุแล้วเมื่อ {date
msgid "The ban was scheduled to expire on {date}"
msgstr "การแบนมีกำหนดจะหมดอายุในวันที่ {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "การบล็อกจะสิ้นสุดเมื่อ {date}"
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "เพิ่มบอทไปยัง <0>{destinationName}</0> แล้ว"
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "เวสต์เวอร์จิเนีย"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "เกิดอะไรขึ้น"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "ใครกำลังพิมพ์"
msgid "Whoa, this is heavy"
msgstr "โอ้โห หนักเลย"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "เหตุผล"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/tr/messages.po b/fluxer_app/src/features/i18n/locales/tr/messages.po
index c4bf44f28..e4fa92665 100644
--- a/fluxer_app/src/features/i18n/locales/tr/messages.po
+++ b/fluxer_app/src/features/i18n/locales/tr/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName} uygulama simgesi"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName}, bilgisayarınızın başındayken mobil cihazlarınıza anlık bildirim göndermemeye çalışır. Anlık bildirim almadan önce masaüstünde ne kadar süre hareketsiz kalmanız gerektiğini seçin."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName}, kurallarını ihlal eden etkinlik nedeniyle bu ağdan erişimi engelledi."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} bu ağdan erişimi engelledi."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Hesap ve premium geçersiz kılmaları"
msgid "Account and security details are hidden"
msgstr "Hesap ve güvenlik bilgileri gizli"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Hesap kalıcı olarak askıya alındı"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Hesap başarıyla sahiplenildi"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Hesap kapatıldı"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Hesap bağlandı"
@@ -2928,6 +2948,11 @@ msgstr "Hesap silme"
msgid "Account state"
msgstr "Hesap durumu"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Hesap askıya alındı"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Premium sınırlarının bu kurulumdaki kişilere nasıl uygulanacağın
msgid "Decide whether replies @mention you by default"
msgstr "Yanıtların varsayılan olarak sizden @bahsedip bahsetmeyeceğine karar verin"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "Karar kimliği: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Üyenin son mesaj geçmişinden ne kadarının silineceği."
msgid "How this works"
msgstr "Nasıl çalışır"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Nasıl itiraz edebilirsin"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Hesabınızı nasıl kurtarabilirsiniz"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Nasıl karar verdik"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Bu kullanıcı adını kaydederseniz, {PREMIUM_PRODUCT_NAME} aboneliğin
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Bu kullanıcı adını kaydederseniz, {PREMIUM_PRODUCT_NAME} aboneliğiniz sona erdiğinde (yenilenmediği takdirde) etiketiniz rastgele yeniden belirlenecektir."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Bu ağı başkalarıyla paylaşıyorsan, örneğin okulda, işte, halka açık bir Wi-Fi ağında, mobil operatörün aracılığıyla ya da bir VPN üzerinden, bu engellemenin seninle hiçbir ilgisi olmayabilir. En hızlı çözüm ağ değiştirmektir, örneğin Wi-Fi yerine mobil veriye geçmek ya da VPN bağlantını açmak ya da kapatmak."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Bu engellemenin bir hata olduğunu düşünüyorsan <0>{email}</0> adresine e-posta gönder ve IP adresini belirt: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Hata yaptığımızı düşünüyorsan <0>{email}</0> adresine e-posta gönder ve kullanıcı adını belirt."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Hata yaptığımızı düşünüyorsan en geç {deadline} tarihine kadar <0>{email}</0> adresine e-posta gönder. Karar kimliğini ve kullanıcı adını belirt. İtirazlar ücretsizdir ve her birini bir insan inceler."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Hata yaptığımızı düşünüyorsan en geç {deadline} tarihine kadar <0>{email}</0> adresine e-posta gönder. Mümkünse hesabındaki e-posta adresinden yaz ve karar kimliğini belirt. İtirazlar ücretsizdir ve her birini bir insan inceler."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Verilerinizi dışa aktarmak veya mesajlarınızı silmek isterseniz, devam etmeden önce lütfen {privacyDashboardPath} bölümüne gidin."
@@ -22302,6 +22367,11 @@ msgstr "Hollanda"
msgid "Network"
msgstr "Ağ"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Ağ engellendi"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Not"
msgid "Note (only visible to you)"
msgstr "Not (yalnızca size görünür)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Ekibimizden not: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Yuvarlak stil onay kutusu"
msgid "Rows per page"
msgstr "Sayfa başına satır"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Kural: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Kural: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Yasak zaten {date} tarihinde sona ermişti"
msgid "The ban was scheduled to expire on {date}"
msgstr "Yasak {date} tarihinde sona erecekti"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Engelleme {date} tarihinde sona eriyor."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Bot şuraya eklendi: <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Batı Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Ne oldu"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Kimler yazıyor"
msgid "Whoa, this is heavy"
msgstr "Vay canına, bu biraz fazla oldu"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Neden"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/uk/messages.po b/fluxer_app/src/features/i18n/locales/uk/messages.po
index 0e744d1b1..0429df972 100644
--- a/fluxer_app/src/features/i18n/locales/uk/messages.po
+++ b/fluxer_app/src/features/i18n/locales/uk/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Іконка застосунку {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} не надсилає push-сповіщення на ваші мобільні пристрої, коли ви за комп'ютером. Виберіть, скільки часу ви маєте бути неактивними на комп'ютері, перш ніж почнете отримувати push-сповіщення."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} заблокував доступ із цієї мережі через дії, що порушили його правила."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} заблокував доступ із цієї мережі."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Перевизначення облікового запису та пр
msgid "Account and security details are hidden"
msgstr "Дані облікового запису та безпеки приховані"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Акаунт заблоковано"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Обліковий запис успішно зареєстровано"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Акаунт закрито"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Обліковий запис підключено"
@@ -2928,6 +2948,11 @@ msgstr "Видалення облікового запису"
msgid "Account state"
msgstr "Стан облікового запису"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Акаунт тимчасово заблоковано"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Визначте, як преміум-обмеження застосо
msgid "Decide whether replies @mention you by default"
msgstr "Вирішіть, чи згадуватимуть вас відповіді через @ за замовчуванням"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID рішення: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Скільки останніх повідомлень учасника
msgid "How this works"
msgstr "Як це працює"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Як оскаржити рішення"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Як відновити ваш обліковий запис"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Як ми ухвалили рішення"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Якщо ви збережете це ім'я користувача, в
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Якщо ви збережете це ім'я користувача, ваш тег буде випадковим чином змінено після закінчення терміну дії вашої підписки {PREMIUM_PRODUCT_NAME}, якщо її не буде поновлено."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Якщо ти користуєшся цією мережею разом з іншими людьми, наприклад у школі, на роботі, у громадській мережі Wi-Fi, через мобільного оператора чи VPN, це блокування може бути ніяк не пов'язане з тобою. Найшвидше змінити мережу, наприклад перейти з Wi-Fi на мобільний інтернет, або ввімкнути чи вимкнути VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Якщо ти вважаєш, що це блокування помилкове, напиши на <0>{email}</0> і вкажи свою IP-адресу: {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Якщо ти вважаєш, що ми помилилися, напиши на <0>{email}</0> і вкажи своє ім'я користувача."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Якщо ти вважаєш, що ми помилилися, напиши на <0>{email}</0> до {deadline}. Вкажи ID рішення і своє ім'я користувача. Апеляції безкоштовні, і кожну з них розглядає людина."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Якщо ти вважаєш, що ми помилилися, напиши на <0>{email}</0> до {deadline}. За можливості пиши з електронної адреси, прив'язаної до твого акаунта, і вкажи ID рішення. Апеляції безкоштовні, і кожну з них розглядає людина."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Якщо ви бажаєте експортувати свої дані або спочатку видалити повідомлення, відвідайте {privacyDashboardPath}, перш ніж продовжити."
@@ -22302,6 +22367,11 @@ msgstr "Нідерланди"
msgid "Network"
msgstr "Мережа"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Мережу заблоковано"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Примітка"
msgid "Note (only visible to you)"
msgstr "Примітка (видно лише вам)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Коментар нашої команди: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Круглий прапорець"
msgid "Rows per page"
msgstr "Рядків на сторінку"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Правило: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Правило: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Термін дії блокування вже минув {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Термін дії блокування мав закінчитися {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Блокування діє до {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Бота додано до <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Західна Вірджинія"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Що сталося"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Хто набирає"
msgid "Whoa, this is heavy"
msgstr "Ого, це забагато"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Чому"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/vi/messages.po b/fluxer_app/src/features/i18n/locales/vi/messages.po
index cbf409e05..0fb7512a9 100644
--- a/fluxer_app/src/features/i18n/locales/vi/messages.po
+++ b/fluxer_app/src/features/i18n/locales/vi/messages.po
@@ -1830,6 +1830,16 @@ msgstr "Biểu tượng ứng dụng {productName}"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} sẽ không gửi thông báo đẩy đến thiết bị di động của bạn khi bạn đang sử dụng máy tính. Chọn khoảng thời gian bạn cần không hoạt động trên máy tính trước khi nhận được thông báo đẩy."
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "{productName} đã chặn quyền truy cập từ mạng này do có hoạt động vi phạm quy tắc."
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} đã chặn quyền truy cập từ mạng này."
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "Ghi đè tài khoản & premium"
msgid "Account and security details are hidden"
msgstr "Thông tin tài khoản và bảo mật đang bị ẩn"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "Tài khoản bị cấm"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "Đã xác nhận tài khoản thành công"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "Tài khoản đã bị đóng"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "Đã kết nối tài khoản"
@@ -2928,6 +2948,11 @@ msgstr "Xóa tài khoản"
msgid "Account state"
msgstr "Trạng thái tài khoản"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "Tài khoản bị đình chỉ"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "Quyết định xem giới hạn cao cấp sẽ áp dụng cho mọi ng
msgid "Decide whether replies @mention you by default"
msgstr "Quyết định xem các trả lời có @nhắc đến bạn theo mặc định hay không"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "ID quyết định: {decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "Lượng lịch sử tin nhắn gần đây của thành viên sẽ bị
msgid "How this works"
msgstr "Cách hoạt động"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "Cách kháng nghị"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "Cách khôi phục tài khoản của bạn"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "Cách chúng tôi quyết định"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "Nếu bạn lưu tên người dùng này, thẻ của bạn sẽ đư
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "Nếu bạn lưu tên người dùng này, thẻ của bạn sẽ được tạo ngẫu nhiên lại khi gói {PREMIUM_PRODUCT_NAME} của bạn hết hạn, trừ khi gói được gia hạn."
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "Nếu bạn dùng chung mạng này với người khác, ví dụ ở trường học, nơi làm việc, Wi-Fi công cộng, qua nhà mạng di động hoặc VPN, việc chặn này có thể không liên quan gì đến bạn. Cách khắc phục nhanh nhất là chuyển sang mạng khác, ví dụ dùng dữ liệu di động thay cho Wi-Fi, hoặc bật hay tắt VPN."
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "Nếu bạn cho rằng việc chặn này là nhầm lẫn, hãy gửi email đến <0>{email}</0> và ghi kèm địa chỉ IP của bạn, {ip}."
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "Nếu bạn cho rằng chúng tôi đã sai, hãy gửi email đến <0>{email}</0> và ghi kèm tên người dùng của bạn."
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "Nếu bạn cho rằng chúng tôi đã sai, hãy gửi email đến <0>{email}</0> chậm nhất vào {deadline}. Hãy ghi kèm ID quyết định và tên người dùng của bạn. Kháng nghị là miễn phí và mỗi kháng nghị đều được một người trong đội ngũ của chúng tôi xem xét."
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "Nếu bạn cho rằng chúng tôi đã sai, hãy gửi email đến <0>{email}</0> chậm nhất vào {deadline}. Nếu có thể, hãy gửi từ địa chỉ email của tài khoản và ghi kèm ID quyết định. Kháng nghị là miễn phí và mỗi kháng nghị đều được một người trong đội ngũ của chúng tôi xem xét."
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "Nếu bạn muốn xuất dữ liệu hoặc xóa tin nhắn trước, vui lòng truy cập {privacyDashboardPath} trước khi tiếp tục."
@@ -22302,6 +22367,11 @@ msgstr "Hà Lan"
msgid "Network"
msgstr "Mạng"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "Mạng bị chặn"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "Ghi chú"
msgid "Note (only visible to you)"
msgstr "Ghi chú (chỉ mình bạn thấy)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "Ghi chú từ đội ngũ của chúng tôi: {statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "Ô đánh dấu kiểu tròn"
msgid "Rows per page"
msgstr "Số hàng mỗi trang"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "Quy tắc: {title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "Quy tắc: <0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "Lệnh cấm đã hết hạn vào {date}"
msgid "The ban was scheduled to expire on {date}"
msgstr "Lệnh cấm dự kiến sẽ hết hạn vào {date}"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "Việc chặn sẽ kết thúc vào {date}."
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "Bot đã được thêm vào <0>{destinationName}</0>."
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "Tây Virginia"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "Điều gì đã xảy ra"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "Ai đang nhập"
msgid "Whoa, this is heavy"
msgstr "Chà, nặng quá"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "Lý do"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po b/fluxer_app/src/features/i18n/locales/zh-CN/messages.po
index bd3898882..18435c70c 100644
--- a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po
+++ b/fluxer_app/src/features/i18n/locales/zh-CN/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName} 应用图标"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "当你在电脑前时,{productName} 会避免向你的移动设备发送推送通知。请选择在桌面端处于非活动状态多久之后才接收推送通知。"
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "由于存在违反规则的活动,{productName} 已封锁来自此网络的访问。"
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} 已封锁来自此网络的访问。"
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "账号与会员覆盖"
msgid "Account and security details are hidden"
msgstr "账号和安全详情已隐藏"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "账号已被永久封禁"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "账号认领成功"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "账号已关闭"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "账号已连接"
@@ -2928,6 +2948,11 @@ msgstr "注销账号"
msgid "Account state"
msgstr "账号状态"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "账号已被暂时封禁"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "决定高级限制如何应用于此实例上的用户。"
msgid "Decide whether replies @mention you by default"
msgstr "选择回复是否默认 @提及你"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "决定 ID:{decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "要删除该成员近期多少消息记录。"
msgid "How this works"
msgstr "工作原理"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "如何申诉"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "如何恢复你的账户"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "我们如何做出决定"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "如果你保存此用户名,当你的 {PREMIUM_PRODUCT_NAME} 于 <0>{p
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "如果你保存此用户名,当你的 {PREMIUM_PRODUCT_NAME} 到期时,你的标签将随机重新生成,除非续订。"
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "如果你与他人共用此网络,例如在学校、在公司、使用公共 Wi-Fi、通过移动运营商或 VPN 上网,此封锁可能与你无关。最快的解决方法是切换网络,例如改用移动数据而不是 Wi-Fi,或者开启或关闭 VPN。"
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "如果你认为此封锁有误,请发送邮件至 <0>{email}</0>,并附上你的 IP 地址 {ip}。"
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "如果你认为我们判断有误,请发送邮件至 <0>{email}</0>,并附上你的用户名。"
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "如果你认为我们判断有误,请最迟于 {deadline} 发送邮件至 <0>{email}</0>。请附上决定 ID 和你的用户名。申诉免费,每一项申诉都由专人审核。"
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "如果你认为我们判断有误,请最迟于 {deadline} 发送邮件至 <0>{email}</0>。如果可以,请使用你账号绑定的邮箱地址发送,并附上决定 ID。申诉免费,每一项申诉都由专人审核。"
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "如果你想先导出数据或删除消息,请在继续操作前访问{privacyDashboardPath}。"
@@ -22302,6 +22367,11 @@ msgstr "荷兰"
msgid "Network"
msgstr "网络"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "网络已被封锁"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "备注"
msgid "Note (only visible to you)"
msgstr "备注(仅自己可见)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "团队留言:{statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "圆形样式复选框"
msgid "Rows per page"
msgstr "每页行数"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "规则:{title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "规则:<0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "该封禁已于 {date} 到期"
msgid "The ban was scheduled to expire on {date}"
msgstr "该封禁原定于 {date} 到期"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "此封锁将于 {date} 结束。"
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "机器人已添加到 <0>{destinationName}</0>。"
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "西弗吉尼亚州"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "发生了什么"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "谁正在输入"
msgid "Whoa, this is heavy"
msgstr "内容太多啦"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "原因"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po b/fluxer_app/src/features/i18n/locales/zh-TW/messages.po
index 0bab53bf0..145268238 100644
--- a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po
+++ b/fluxer_app/src/features/i18n/locales/zh-TW/messages.po
@@ -1830,6 +1830,16 @@ msgstr "{productName} 應用程式圖示"
msgid "{productName} avoids sending push notifications to your mobile devices when you are at your computer. Choose how long you need to be inactive on desktop before you receive push notifications."
msgstr "{productName} 會在您使用電腦時,避免向您的行動裝置傳送推播通知。請選擇要在桌面端閒置多久之後,才開始接收推播通知。"
+#. First sentence of the network blocked screen when a rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network because of activity that broke its rules."
+msgstr "由於有違反規則的活動,{productName} 已封鎖來自此網路的存取。"
+
+#. First sentence of the network blocked screen when no rule is shown. productName is the app name. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "{productName} blocked access from this network."
+msgstr "{productName} 已封鎖來自此網路的存取。"
+
#. Short badge title in the user profile badges popout. Preserve {productName}; it is inserted by code. English locales use Title Case for official badge titles; other locales should use natural local capitalization.
#: src/features/user/components/popouts/UserProfileBadges.tsx
msgid "{productName} Bug Hunter"
@@ -2889,11 +2899,21 @@ msgstr "帳號與進階方案覆寫"
msgid "Account and security details are hidden"
msgstr "帳號與安全性資訊已隱藏"
+#. Title of the sign-in screen for an account suspended with no end date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account banned"
+msgstr "帳號已遭永久停權"
+
#. Short label in the authentication claim account modal. Keep the tone plain and specific.
#: src/features/auth/components/modals/ClaimAccountModal.tsx
msgid "Account claimed successfully"
msgstr "帳號認領成功"
+#. Title of the sign-in screen for an account the team closed and will delete.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account closed"
+msgstr "帳號已關閉"
+
#: src/features/connection/components/pages/ConnectionCallbackPage.tsx
msgid "Account connected"
msgstr "帳號已連結"
@@ -2928,6 +2948,11 @@ msgstr "移除帳號"
msgid "Account state"
msgstr "帳號狀態"
+#. Title of the sign-in screen for an account suspended until a set date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Account suspended"
+msgstr "帳號已遭暫時停權"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/OptionPresets.ts
msgid "Account too new"
@@ -11541,6 +11566,11 @@ msgstr "決定進階方案限制如何套用至此實例上的使用者。"
msgid "Decide whether replies @mention you by default"
msgstr "決定回覆是否預設 @提及您"
+#. Reference line on the account restriction screen. People quote this ID when they appeal.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Decision ID: {decisionId}"
+msgstr "決定 ID:{decisionId}"
+
#. Keyboard shortcut action label shown in the shortcuts list and keybind editor. Keep short, sentence case.
#: src/features/input/state/input_keybind/shared.ts
msgid "Decline the incoming call"
@@ -17539,11 +17569,21 @@ msgstr "要刪除該成員多少近期訊息紀錄。"
msgid "How this works"
msgstr "運作方式"
+#. Heading on the account restriction screen above the appeal instructions.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How to appeal"
+msgstr "如何申訴"
+
#. Heading above the recovery steps in the printed or downloaded recovery kit.
#: src/features/auth/components/modals/RecoveryKitModal.tsx
msgid "How to recover your account"
msgstr "如何復原你的帳號"
+#. Heading on the account restriction screen above how the case reached the team and who decided it.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "How we decided"
+msgstr "我們如何做出決定"
+
#. Accessible label in the language and locale names. Keep it concise.
#: src/features/user/utils/LocaleUtils.ts
msgid "Hungarian"
@@ -17738,6 +17778,31 @@ msgstr "如果您儲存此使用者名稱,您的標籤將在 {PREMIUM_PRODUCT_
msgid "If you save this username, your tag will reroll randomly when your {PREMIUM_PRODUCT_NAME} expires, unless it renews."
msgstr "如果您儲存此使用者名稱,當您的 {PREMIUM_PRODUCT_NAME} 到期時,您的標籤將會隨機重新產生,除非續訂。"
+#. Paragraph on the network blocked screen for people who share a network with others. Must read the same as the error message for this block.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off."
+msgstr "如果您與他人共用此網路,例如在學校、在公司、使用公共 Wi-Fi、透過電信業者或 VPN 上網,這項封鎖可能與您無關。最快的解決方法是切換網路,例如改用行動數據而非 Wi-Fi,或開啟或關閉 VPN。"
+
+#. Line on the network blocked screen. The link is the contact email address and ip is the blocked IP address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think this block is a mistake, email <0>{email}</0> and include your IP address, {ip}."
+msgstr "如果您認為這項封鎖有誤,請寄信至 <0>{email}</0>,並附上您的 IP 位址 {ip}。"
+
+#. Appeal line for a restriction from before the team recorded decisions, with no appeal deadline. The link is the appeals email address.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> and include your username."
+msgstr "如果您認為我們判斷有誤,請寄信至 <0>{email}</0>,並附上您的使用者名稱。"
+
+#. Appeal line for an account with no email address. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Include the decision ID and your username. Appeals are free, and a person reviews each one."
+msgstr "如果您認為我們判斷有誤,請最遲於 {deadline} 寄信至 <0>{email}</0>。請附上決定 ID 和您的使用者名稱。申訴不收取任何費用,且每件申訴都會由專人審核。"
+
+#. Appeal line on the account restriction screen. The link is the appeals email address and deadline is a date.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "If you think we got this wrong, email <0>{email}</0> by {deadline}. Write from the email address on your account if you can, and include the decision ID. Appeals are free, and a person reviews each one."
+msgstr "如果您認為我們判斷有誤,請最遲於 {deadline} 寄信至 <0>{email}</0>。可以的話,請使用您帳號的電子郵件地址寄信,並附上決定 ID。申訴不收取任何費用,且每件申訴都會由專人審核。"
+
#: src/features/auth/components/modals/AccountDeleteModal.tsx
msgid "If you want to export your data or delete your messages first, please visit {privacyDashboardPath} before proceeding."
msgstr "如果您想先匯出資料或刪除訊息,請在繼續之前前往{privacyDashboardPath}。"
@@ -22302,6 +22367,11 @@ msgstr "荷蘭"
msgid "Network"
msgstr "網路"
+#. Title of the screen and dialog shown when the instance blocks the network a request came from.
+#: src/features/auth/AuthMessageDescriptors.ts
+msgid "Network blocked"
+msgstr "網路已遭封鎖"
+
#. Error message in the devices tab.
#: src/features/user/components/modals/tabs/DevicesTab.tsx
msgid "Network error"
@@ -23369,6 +23439,11 @@ msgstr "備註"
msgid "Note (only visible to you)"
msgstr "備註(僅自己可見)"
+#. Line on the account restriction screen with a note the team wrote to the account holder.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Note from our team: {statement}"
+msgstr "團隊留言:{statement}"
+
#. Notification level option. Suppresses all pushes for the channel or community. Paired with "All messages" and "Only mentions".
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "Nothing"
@@ -28537,6 +28612,16 @@ msgstr "圓形樣式核取方塊"
msgid "Rows per page"
msgstr "每頁列數"
+#. Names the rule behind a restriction when the instance publishes no link for it. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: {title}"
+msgstr "規則:{title}"
+
+#. Names the rule behind a restriction, with the rule title linked to the rule. title is the rule title.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Rule: <0>{title}</0>"
+msgstr "規則:<0>{title}</0>"
+
#. Settings search entry description. One-line summary of what the settings search entry controls.
#: src/features/user/components/settings_utils/search_index/DesktopSettingsIndex.ts
msgid "Run {productName} automatically when your computer starts"
@@ -33529,6 +33614,11 @@ msgstr "該停權已於 {date} 到期"
msgid "The ban was scheduled to expire on {date}"
msgstr "該停權原定於 {date} 到期"
+#. Line on the network blocked screen for a block with an end. date is a date and time.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "The block ends on {date}."
+msgstr "這項封鎖將於 {date} 結束。"
+
#: src/features/auth/components/pages/oauth_authorize_page/OAuthSuccessState.tsx
msgid "The bot has been added to <0>{destinationName}</0>."
msgstr "機器人已新增至<0>{destinationName}</0>。"
@@ -38945,6 +39035,11 @@ msgctxt "us-state"
msgid "West Virginia"
msgstr "西維吉尼亞州"
+#. Heading on the account restriction screen above what the team did and what it means.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "What happened"
+msgstr "發生了什麼事"
+
#. Display-name field placeholder in account registration forms.
#: src/features/i18n/utils/CommonMessageDescriptors.ts
msgid "What should people call you?"
@@ -39108,6 +39203,11 @@ msgstr "誰正在輸入"
msgid "Whoa, this is heavy"
msgstr "哇,有點太多了"
+#. Heading on the account restriction screen above the rule that was broken and the findings.
+#: src/features/auth/flow/AccountRestrictionScreen.tsx
+msgid "Why"
+msgstr "原因"
+
#. Developer tools debug menu label. Internal-only surface for developers; translators may keep this terse.
#: src/features/channel/components/channel_header_components/developer_tools/DeveloperOptionLabels.ts
msgid "Will cancel"
diff --git a/fluxer_app/src/features/platform/transport/RestTransport.ts b/fluxer_app/src/features/platform/transport/RestTransport.ts
index 281c1bef8..c8ff2490a 100644
--- a/fluxer_app/src/features/platform/transport/RestTransport.ts
+++ b/fluxer_app/src/features/platform/transport/RestTransport.ts
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import {accountRestrictionFromBody} from '@app/features/auth/state/AccountRestriction';
import {isDesktopLocalAppDocument, isDesktopLocalAppOrigin} from '@app/features/platform/DesktopLocalAppRuntime';
import {
AccountScopedWork,
@@ -869,6 +870,15 @@ async function reactToOutcome(
if (reply.status === 403 && hasContentBlockedCode(reply.body) && !plan.suppressContentBlockedModal) {
void import('@app/features/auth/components/ContentBlockedHandler').then((m) => m.showContentBlockedModal());
}
+ const restriction =
+ reply.status === 403 && plan.headers[Headers.AUTHORIZATION] !== undefined
+ ? accountRestrictionFromBody(reply.body)
+ : null;
+ if (restriction?.type === 'network_blocked') {
+ void import('@app/features/auth/components/NetworkBlockedHandler').then((m) =>
+ m.showNetworkBlockedModal(restriction.block),
+ );
+ }
if (plan.mode === 'silent') {
propagateSudoToken(state, receivedSudoToken);
return {next: 'deliver', reply};
diff --git a/fluxer_docs/astro.config.ts b/fluxer_docs/astro.config.ts
index f2e70a000..5925d8c15 100644
--- a/fluxer_docs/astro.config.ts
+++ b/fluxer_docs/astro.config.ts
@@ -309,6 +309,7 @@ export default defineConfig({
'admin-api/threads',
'admin-api/applications',
'admin-api/reports',
+ 'admin-api/enforcement',
'admin-api/messages',
'admin-api/blocklists',
'admin-api/discovery',
diff --git a/fluxer_docs/src/content/docs/admin-api/blocklists.mdx b/fluxer_docs/src/content/docs/admin-api/blocklists.mdx
index bcaa76f1c..749b8347e 100644
--- a/fluxer_docs/src/content/docs/admin-api/blocklists.mdx
+++ b/fluxer_docs/src/content/docs/admin-api/blocklists.mdx
@@ -14,7 +14,18 @@ Fluxer builds each permission name from `ban:`, the list name with each hyphen w
## Blocklist types
-`ip` and `email` gate account access and registration. `phrase`, `url`, `url-domain`, `file-sha`, `avatar-hash`, and `profile-substring` gate what an account may post, link, upload, or display. `email` stores nothing but the value. An `ip` row also stores a ban kind, a reason, an expiry, and its creation time. An `ip` row with an expiry stops applying when it expires, and Fluxer then deletes it.
+`ip` and `email` gate account access and registration. `phrase`, `url`, `url-domain`, `file-sha`, `avatar-hash`, and `profile-substring` gate what an account may post, link, upload, or display. `email` stores nothing but the value. An `ip` row also stores a ban kind, a reason, an expiry, its creation time, and the enforcement decision it belongs to, if any. An `ip` row with an expiry stops applying when it expires, and Fluxer then deletes it.
+
+## Network blocks from decisions
+
+A permanent suspension or a closure for a broken rule can block networks the account used in the last 30 days, through `block_networks` on [Suspend user](/admin-api/users/#suspend-user) and [Schedule user deletion](/admin-api/users/#schedule-user-deletion). Each such `ip` row belongs to that [enforcement decision](/admin-api/enforcement/) and expires after 90 days unless the request set another length. These rows are only ever created by a decision:
+
+- Adding or removing the address through this resource returns 409 `IP_BAN_LINKED_TO_DECISION` with the `decision_id`.
+- A plain write, including a temporary block from Fluxer's own abuse defences, never replaces a decision's row.
+- A plain row with an expiry becomes the decision's row and keeps the later of the two expiries. A permanent plain row or another decision's row is left as it is, and the request reports the address in `skipped_ips` as `already_blocked`.
+- Ending the decision removes its rows. So does executing the account's deletion, for the rows of every decision on that account.
+
+Ending a decision removes its rows even if a plain block existed before the decision took the row over. Add the plain block again if it is still wanted.
| Value | Description |
| --- | --- |
@@ -186,7 +197,7 @@ One stored row of one blocklist. Every field is present on every entry, and a fi
<sup>6</sup> Non-null only on `url-domain`
-<sup>7</sup> Non-null only on `ip`. An address added through [Add blocklist entry](#add-blocklist-entry) reads back with the reason `platform_admin_enforcement`. Its `expires_at` is null unless it was added with a positive `duration_hours`. A row past its `expires_at` is not listed
+<sup>7</sup> Non-null only on `ip`. An address added through [Add blocklist entry](#add-blocklist-entry) reads back with the reason `platform_admin_enforcement`. Its `expires_at` is null unless it was added with a positive `duration_hours`. A row a decision created reads back with the reason `enforcement_decision` and always has an `expires_at`. A row past its `expires_at` is not listed
<sup>8</sup> Both null on `email` and `phrase`, which store nothing but the value. `created_by_user_id` is also null on `ip`
@@ -224,11 +235,14 @@ The decision [Check blocklist entry](#check-blocklist-entry) returns for one val
| --- | --- | --- |
| banned<sup>1</sup> | boolean | Whether the value is currently blocked by the named blocklist |
| expires_at<sup>2</sup> | ?ISO8601 timestamp | When the matching ban expires |
+| decision_id<sup>3</sup> | ?snowflake | The [enforcement decision](/admin-api/enforcement/) the matching block belongs to |
<sup>1</sup> Reports the decision the enforcement path would make for this value
<sup>2</sup> Non-null only on `ip` when the matching ban has an expiry. Null when the ban is permanent, when nothing matches, and on every other blocklist
+<sup>3</sup> Non-null only on `ip` when the matching block belongs to a decision. Read from the same cache the enforcement path uses, so a block written in the last few moments on another node can read as null
+
:::note[A block and a row are different things]
A value can be blocked with no row of its own, as a single address covered by a stored CIDR range is. A row can exist while the value reads as not blocked, as an exempt address or an exempt email domain does.
:::
@@ -393,6 +407,7 @@ Every write is an upsert on the canonical value. An omitted optional field is wr
| --- | --- | --- |
| 204 | empty | Values were written |
| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY` because the value is not valid for the list, or a field the blocklist does not accept was supplied |
+| 409 | [error response](/admin-api/#error-response) | `IP_BAN_LINKED_TO_DECISION` with `decision_id`, because the address is blocked by an enforcement decision |
A body field the selected blocklist does not accept is stripped and never produces that 400. A `url` Fluxer cannot canonicalise returns 400 `INVALID_FORM_BODY` naming `url` in the `errors` array. A `url-domain` value that is not a valid domain or [domain pattern](#domain-patterns) returns the same 400 naming `domain`.
@@ -675,6 +690,7 @@ Removes one row from the selected blocklist. Returns 204 with an empty body. Req
| --- | --- | --- |
| 204 | empty | Value was processed |
| 400 | [error response](/admin-api/#error-response) | `scope` is supplied on an unscoped blocklist or omitted on `profile-substring`, and the request returns `INVALID_FORM_BODY` |
+| 409 | [error response](/admin-api/#error-response) | `IP_BAN_LINKED_TO_DECISION` with `decision_id`, because an enforcement decision owns the `ip` row |
On the `url` blocklist, an `entry_value` Fluxer cannot canonicalise returns 400 `INVALID_FORM_BODY` naming `url` in the `errors` array.
diff --git a/fluxer_docs/src/content/docs/admin-api/bulk-jobs.mdx b/fluxer_docs/src/content/docs/admin-api/bulk-jobs.mdx
index eb2b079fc..2a3ac9017 100644
--- a/fluxer_docs/src/content/docs/admin-api/bulk-jobs.mdx
+++ b/fluxer_docs/src/content/docs/admin-api/bulk-jobs.mdx
@@ -50,7 +50,11 @@ ACL `bulk:add:guild_members`. Adds every targeted user to one guild. Runs as `bu
### `schedule_user_deletion`
-ACL `bulk:delete:users`. Schedules account deletion for every targeted user. Runs as `bulkScheduleUserDeletion`.
+ACL `bulk:delete:users`. Closes every targeted account and schedules its deletion. Runs as `bulkScheduleUserDeletion`. A job queued in the shape used before enforcement decisions, with `reason_code` and no `basis`, fails when the worker runs it instead of inventing a decision.
+
+### `delete_user_messages`
+
+ACL `bulk:delete:user_messages`. Deletes every message each targeted account wrote. Runs as `bulkDeleteMessagesForUsers`. A job queued without a `basis` fails when the worker runs it.
Each worker task is recorded as `task_type` on the job and listed under [background job task types](/admin-api/jobs/#background-job-task-types). Every bulk task runs in the `lifecycle` [processing lane](/admin-api/jobs/#processing-lanes).
@@ -109,18 +113,29 @@ The `task` discriminator selects one of these structures. Every ID array has an
| --- | --- | --- |
| task | string | The discriminator selecting this variant, `schedule_user_deletion` |
| user_ids | array[snowflake] | The users to schedule for deletion (max 1000 entries) |
-| reason_code | integer | [Deletion reason](/admin-api/users/#deletion-reasons) recorded against every targeted account |
-| public_reason? | string | The reason shown to each account holder in the deletion notice (0-512 characters after normalisation) |
-| days_until_deletion?<sup>1</sup> | integer | The delay before deletion in whole days (1-365, default 60) |
-| notify_user? | boolean | Whether to email each account holder about the scheduled deletion (default true) |
+| days_until_deletion<sup>1</sup> | integer | The delay before deletion in whole days (1-365) |
+| basis<sup>2</sup> | [basis](/admin-api/enforcement/#basis) object | Why the accounts are closed |
+
+<sup>1</sup> Fluxer raises the value to the minimum of the basis, 74 days for a broken rule and 14 days otherwise. A self-hosted instance has no appeal route and raises every basis to 14 days
+
+<sup>2</sup> The `enforcement` basis takes a bulk decision with `reason_code`, `source` (always `own_review`), `automation` and a required `statement`. Reports, evidence messages and any other field are refused, because per-account facts cannot be given in bulk. The `X-Audit-Log-Reason` header is required with this basis, or the request fails with `ENFORCEMENT_INTERNAL_NOTE_REQUIRED`, and becomes the first note on every decision
+
+#### Delete user messages structure
+
+| Field | Type | Description |
+| --- | --- | --- |
+| task | string | The discriminator selecting this variant, `delete_user_messages` |
+| user_ids | array[snowflake] | The users whose messages are deleted (max 1000 entries) |
+| basis<sup>1</sup> | [basis](/admin-api/enforcement/#basis) object | Why the messages are deleted |
-<sup>1</sup> Fluxer raises the value to the reason-specific minimum, 14 days for `USER_REQUESTED` and 60 days for every other code
+<sup>1</sup> Takes the same bulk decision and `X-Audit-Log-Reason` rule as the schedule user deletion structure. A reason with restricted handling is refused for each account, because it needs evidence messages
### Response
| Status | Body | Condition |
| --- | --- | --- |
| 200 | [bulk job creation](#bulk-job-creation-object) object | The bulk job was queued |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, including for a restriction flag or a missing internal note |
| 403 | [error response](/admin-api/#error-response) | `MISSING_ACL` without the ACL selected by `task` |
| 500<sup>1</sup> | [error response](/admin-api/#error-response) | The job could not be queued |
@@ -136,15 +151,15 @@ Every task updates its progress before work starts and at completion. Every task
Every task writes one summary Admin audit entry when it finishes, with the action `bulk_update_user_flags`, `bulk_update_guild_features`, `bulk_add_guild_members`, `bulk_schedule_deletion`, `bulk_ban_file_shas`, or `bulk_delete_user_messages`. The summary has the audit reason, the entity count, the operation-specific parameters, the job identifier, and the processed, successful, and failed counts. Its `target_type` is `bulk_job` and its `target_id` is the job identifier, except for `add_guild_members`, which targets the guild. A failed job writes no summary entry. A cancelled job writes one, marked `cancelled`, covering the entities it processed before it stopped.
-`update_user_flags` writes one `update_flags` entry for each account and dispatches [User Update](/gateway/events/#user-update) to the account's sessions. A change to a publicly visible flag also dispatches [Guild Member Update](/gateway/events/#guild-member-update) to every guild the account is in.
+`update_user_flags` refuses the same restriction flag changes as [Update user flags](/admin-api/users/#update-user-flags). Adding one fails the request with `FLAG_REQUIRES_ENFORCEMENT_ROUTE`, and a removal an account refuses counts that account as failed. It writes one `update_flags` entry for each account and dispatches [User Update](/gateway/events/#user-update) to the account's sessions. A change to a publicly visible flag also dispatches [Guild Member Update](/gateway/events/#guild-member-update) to every guild the account is in.
`update_guild_features` writes one `update_features` entry for each guild, dispatches [Guild Update](/gateway/events/#guild-update), and reindexes the guild for search. Fluxer reconciles a guild that already has a discovery application record against the new feature set, so gaining `DISCOVERABLE` approves the record and losing it marks the record removed. A guild with no discovery record is left alone.
`add_guild_members` bypasses the ban check that a normal join runs. The task suppresses the join system message, records the join source as an Admin force add, and dispatches [Guild Member Add](/gateway/events/#guild-member-add) to the guild and [Guild Create](/gateway/events/#guild-create) to the added account's sessions. The task still enforces the per-account guild cap and the guild member cap, so an account at either ceiling is counted as failed. An account that is already a member is left unchanged and counted as successful, with no second membership and no Dispatch. Adding a bot account also records a `BOT_ADD` guild audit log entry attributed to the acting Admin.
-`delete_user_messages` deletes every message each account wrote, across every channel. It writes one `delete_all_user_messages` entry for each account, with the audit reason, the account, and the deleted message count, and reports progress after every account.
+`delete_user_messages` runs the same steps as [Delete all user messages](/admin-api/users/#delete-all-user-messages) for each account, with the job's basis. With the `enforcement` basis each account that wrote any message gets its own content removal decision and notice. Each account writes one `delete_all_user_messages` entry with the audit reason, the basis and the message count, and the summary entry records `basis`, plus `reason_code` for the `enforcement` basis. Progress is reported after every account.
-`schedule_user_deletion` marks each account deleted. The task runs the same steps as [Schedule user deletion](/admin-api/users/#schedule-user-deletion) for one account. It stores the reason code, public reason, and audit reason on the account, reschedules its pending deletion, terminates its sessions, cancels and refunds its Stripe subscription when one is on file, dispatches [User Update](/gateway/events/#user-update), writes one `schedule_deletion` entry for each account with the audit reason and the reason code, and emails the account holder when `notify_user` is true and an address is on file. A failed email is logged and does not fail the entity. The summary entry records `notify_user`. When the reason is not `USER_REQUESTED`, the task also bans the account's identifiers. When the reason is one that resolves reports under [Schedule user deletion](/admin-api/users/#schedule-user-deletion), the task also resolves the pending reports against the account, leaves the `child_safety`, `underage_user`, and `self_harm` categories pending, and sends each reporter of a resolved report the generic notice [Update report](/admin-api/reports/#update-report) describes. The skip cases of that notice apply.
+`schedule_user_deletion` runs the same steps as [Schedule user deletion](/admin-api/users/#schedule-user-deletion) for each account, with the job's basis. With the `enforcement` basis each account gets its own decision and notice, its email is blocked when the rule bars new accounts, and the pending reports against it are resolved for the reasons that resolve reports, leaving the `child_safety`, `underage_user`, and `self_harm` categories pending. Each account writes one `schedule_deletion` entry with the audit reason, and the summary entry records `basis`, plus `reason_code` for the `enforcement` basis. A failed email is logged and does not fail the entity. An account that already has a pending deletion, or that a decision owns for a holder request or housekeeping deletion, counts as failed.
### Rate limit
diff --git a/fluxer_docs/src/content/docs/admin-api/enforcement.mdx b/fluxer_docs/src/content/docs/admin-api/enforcement.mdx
new file mode 100644
index 000000000..959ea5c8a
--- /dev/null
+++ b/fluxer_docs/src/content/docs/admin-api/enforcement.mdx
@@ -0,0 +1,385 @@
+---
+# SPDX-License-Identifier: AGPL-3.0-or-later
+title: Enforcement decisions
+description: The record behind every restriction staff apply, the notice it sends, and the routes that read, annotate and end it.
+---
+
+import RouteHeader from '@/components/RouteHeader.astro';
+
+An enforcement decision records why staff restricted an account. The route that applies the restriction records it in the same request, so a restriction never exists without its statement of reasons. [Suspend user](/admin-api/users/#suspend-user), [Warn user](/admin-api/users/#warn-user), [Limit user features](/admin-api/users/#limit-user-features) and [Schedule user deletion](/admin-api/users/#schedule-user-deletion) with a broken rule as its basis record decisions today, and so does Fluxer itself when a payment fraud signal arrives.
+
+The decision holds the explanation. The restriction itself stays where it always was, so a suspension is still `temp_banned_until` and the `DISABLED` flag on the account, a closure is still `pending_deletion_at` and the `DELETED` flag, and a feature limit is still its account flag. The account's `enforcement_decision_id` names the suspension or closure decision behind the current state.
+
+Every decision sends its notice to the person it is about. There is no switch to withhold it.
+
+## Concepts
+
+| Term | Meaning |
+| --- | --- |
+| kind | What the decision did: `warning`, `suspension`, `closure`, `feature_limit`, `content_removal`, `profile_reset`, or `community_removal` |
+| reason code | One of the enforcement [deletion reasons](/admin-api/users/#deletion-reasons). `USER_REQUESTED`, `OTHER` and `INACTIVITY` are refused |
+| rule | The policy section the reason code points to. The notice links it |
+| handling | `standard`, `protected` or `restricted`, fixed by the reason code. It decides how much detail the notice gives |
+| evidence | A snapshot of the subject's own messages, or for a community the messages posted in it, taken when the decision is made |
+| notes | Internal staff notes. The `X-Audit-Log-Reason` header of the request that made the decision is the first note |
+| notice | The statement of reasons the holder receives by email, system DM, or at sign-in |
+
+### Handling
+
+| Handling | Reason codes | Notice detail |
+| --- | --- | --- |
+| standard | every code not listed below | The rule, where and when it happened, and the note to the user |
+| protected | 7, 10, 11, 15, 23 | The same, except that messages in direct and group conversations show the month only |
+| restricted | 9, 13, 24 | The rule only. No locations and no note to the user |
+
+A restricted reason allows only a permanent suspension and content removal, needs at least one evidence message and both confirmations, and refuses a note to the user. Its evidence keeps the message ID, channel ID, time and attachment count only.
+
+### Lifecycle
+
+A decision is `active` until staff end it as `lifted` or `reversed`. A temporary suspension that runs out is ended by Fluxer as `expired`, with the system user (ID 0) as `ended_by` and its end as `ended_at`. That happens when the holder next signs in or in a scheduled task that runs every six hours, whichever comes first, and sends no notice. A suspension that ended as `expired` can still be ended as `reversed`, which sends the ended notice.
+
+Two states are derived when it is read and never stored:
+
+- `expired`: an active suspension or feature limit whose `ends_at` has passed, before Fluxer ends it
+- `replaced`: an active suspension or closure that the account's `enforcement_decision_id` no longer names, because a later decision replaced it
+
+A replacing suspension or closure sends its own notice and no ended email for the one it replaces. A closure replaces a suspension and lifts it in the same write.
+
+### Basis
+
+Routes whose action is not always enforcement take a `basis` instead of a `decision`. Only the `enforcement` basis records a decision and sends its notice.
+
+| Field | Type | Description |
+| --- | --- | --- |
+| type | string | `enforcement`, `holder_request` or `housekeeping` |
+| decision?<sup>1</sup> | [enforcement decision input](#enforcement-decision-input) object | Why the subject is restricted |
+
+<sup>1</sup> Required for the `enforcement` type and refused for the others. A bulk job takes a narrower decision, which [Bulk jobs](/admin-api/bulk-jobs/) describes
+
+- `enforcement`: a rule was broken
+- `holder_request`: the account holder or community owner asked
+- `housekeeping`: nobody's conduct is involved, such as inactivity or cleanup
+
+Each route accepts these bases:
+
+| Route | Bases |
+| --- | --- |
+| [Schedule user deletion](/admin-api/users/#schedule-user-deletion) | `enforcement`, `holder_request`, `housekeeping` |
+| [Clear user profile fields](/admin-api/users/#clear-user-profile-fields) | `enforcement`, `holder_request`, `housekeeping` |
+| [Shred user messages](/admin-api/users/#shred-user-messages) | `enforcement`, `holder_request`, `housekeeping` |
+| [Delete all user messages](/admin-api/users/#delete-all-user-messages) | `enforcement`, `holder_request`, `housekeeping` |
+| [Delete message](/admin-api/messages/#delete-message) | `holder_request`, `housekeeping` |
+| [Delete guild](/admin-api/guilds/#delete-guild) | `enforcement`, `holder_request` |
+
+The audit entry of each route records the basis in a `basis` metadata key.
+
+### Feature limits
+
+Each feature limit decision limits one feature, so ending or expiring one never touches another.
+
+- `direct_messages` sets `SPAMMER` and is allowed for reason codes 3, 6, 8, 18 and 21. It has no end.
+- `reports` sets `REPORT_BANNED` and is allowed for reason code 29. It ends after 90 days by default and after at most 365.
+- `purchases` sets `PURCHASE_DISABLED` and is allowed for reason codes 12 and 14. It has no end.
+
+A reports limit expires on its own. The next report from the account after `ends_at` clears `REPORT_BANNED` and is accepted. A reporter under a reports limit is still told the outcome of reports filed before the limit started.
+
+### Removals
+
+- Content removal: [Shred user messages](/admin-api/users/#shred-user-messages) snapshots the first 50 entries as the evidence, and every entry for restricted reasons, before it queues the shred job. The entries are the evidence, so `evidence` is refused there. [Delete all user messages](/admin-api/users/#delete-all-user-messages) cannot snapshot an unbounded set first, so it refuses restricted reasons. To remove a single message for a rule, shred it.
+- Profile reset: the old values of the cleared fields are saved as the evidence's `profile_values`. The cleared fields are the facts, so neither evidence nor a statement is needed.
+- Community removal: the subject is the community and the owner receives the notice. Evidence must be posted in that community, and linked reports must name it. Restricted reasons are refused, because the removal deletes the content.
+
+Removed content cannot be restored, so these decisions end only as `reversed`.
+
+### Reporter outcomes
+
+A decision that resolves linked reports tells each reporter what happened to the item. `removed` covers a reported message the decision removed, a profile report met by a profile reset, and a community removal. `restricted` covers a suspension, closure or feature limit. `action_taken` covers a warning and tells the reporter that Fluxer acted on what they reported, without naming the action or saying the account was restricted. A content removal or profile reset that leaves the reported item in place leaves the report pending. A manual resolution through [Update report](/admin-api/reports/#update-report) names the outcome itself, and a duplicate takes the outcome stored on the report it repeats.
+
+### Network blocks
+
+A permanent suspension or a closure for a broken rule can also block networks the account used in the last 30 days, through `block_networks` on [Suspend user](/admin-api/users/#suspend-user) and [Schedule user deletion](/admin-api/users/#schedule-user-deletion). [List network block candidates](/admin-api/users/#list-network-block-candidates) shows which addresses qualify. The blocks last 90 days unless the request sets another length, belong to the decision, and are removed when it ends or the account's deletion runs. [Blocklists](/admin-api/blocklists/#network-blocks-from-decisions) explains how these rows relate to plain IP blocks.
+
+Fluxer never blocks an exempt address or a special-purpose range, such as a private, shared carrier, loopback, link-local or documentation range, and lists those in `skipped_ips`. It refuses an address on which another account that is not itself suspended or closed was last active, matching IPv6 addresses by their /64, so a block never shuts out people who share a network with the account.
+
+The notice says the account's networks were blocked and until when, and never names an address. The block screen shows the rule only for rules that read safely to a bystander on the same network: spam, service abuse, disruptive automation, raids, impersonation, adult content outside 18+ spaces, graphic violence, misuse of reporting and copyright. Every other block looks exactly like a plain one.
+
+### Automated decisions and the review queue
+
+A Stripe early fraud warning or chargeback records a `purchases` limit with reason code 12, `automation` `automated`, `payment_at` set to the time of the payment, and the system user (ID 0) as `decided_by`. Fluxer never suspends or closes an account, or blocks its email, because of a payment signal. The decision is placed in the review queue until a person ends it or records a warning, suspension or closure on the same account. A won dispute ends the decision as `reversed`, with the system user as `ended_by`.
+
+## Enforcement decision input
+
+The `decision` object every restricting route takes.
+
+| Field | Type | Description |
+| --- | --- | --- |
+| reason_code | integer | An enforcement [deletion reason](/admin-api/users/#deletion-reasons) |
+| source | string | `report` when staff reviewed this after a report, `own_review` otherwise |
+| automation | string | `flagged` when automated tools flagged it before staff decided, `none` otherwise |
+| report_ids?<sup>1</sup> | array[snowflake] | Reports about the subject that the decision resolves (at most 20) |
+| evidence?<sup>2</sup> | array[object] | `channel_id` and `message_id` of messages the decision relies on (at most 50) |
+| statement?<sup>3</sup> | string | Note to the user, shown in the notice (1-500 characters) |
+| rights_holder?<sup>4</sup> | string | The rights holder or the right concerned (1-200 characters) |
+| confirmations?<sup>5</sup> | array[string] | `evidence_preserved` and `reports_filed_or_not_required` |
+
+<sup>1</sup> Required when `source` is `report`. Each report must name the subject, the reported account or the reported community. Messages in a report's snapshot that the subject wrote, or that were posted in the community, become evidence too, and other messages are dropped. Pending reports are resolved as actioned and their reporters are told the [outcome](#reporter-outcomes)
+
+<sup>2</sup> Every message must exist and be the subject's own, or for a community be posted in it. A message in a direct or group conversation is accepted only when a linked report covers that conversation. Attachments are kept as file name, size and type, never as files
+
+<sup>3</sup> The decision needs at least one evidence message or a statement, except for a profile reset. Restricted reasons refuse it
+
+<sup>4</sup> Required for code 31 (`COPYRIGHT`) and refused for every other code
+
+<sup>5</sup> Both are required for restricted reasons. They are added to the first note
+
+The `X-Audit-Log-Reason` header is required on every route that takes a decision and becomes its first note.
+
+### Validation
+
+Fluxer checks ACLs before it looks anything up, so a caller without the ACL learns nothing about the messages or reports it names. Evidence needs `message:lookup`, reports need `report:view` and `report:resolve`, and `block_networks` needs `ban:ip:add` and `user:view:ip`. Each other failure is a 400 `INVALID_FORM_BODY` whose error has one of these codes.
+
+- `ENFORCEMENT_INTERNAL_NOTE_REQUIRED`: the `X-Audit-Log-Reason` header is missing
+- `ENFORCEMENT_KIND_NOT_ALLOWED`: the reason code does not allow this kind, a bot is given anything other than a suspension or closure, or a restricted reason is used to delete all of an account's messages
+- `ENFORCEMENT_LIMIT_NOT_ALLOWED`: the reason code does not allow this feature limit
+- `ENFORCEMENT_LIMIT_END_INVALID`: a reports limit ends in the past or more than 365 days from now, or another limit is given an end
+- `ENFORCEMENT_REPORT_REQUIRED`: `source` is `report` and no report is linked
+- `ENFORCEMENT_REPORT_MISMATCH`: a linked report does not exist or is about someone else
+- `ENFORCEMENT_EVIDENCE_NOT_ALLOWED`: a shred is given evidence messages, because its entries are the evidence
+- `ENFORCEMENT_EVIDENCE_NOT_FOUND`: an evidence message does not exist
+- `ENFORCEMENT_EVIDENCE_NOT_SUBJECT`: an evidence message is not the subject's own, or not posted in the community
+- `ENFORCEMENT_EVIDENCE_DM_UNREPORTED`: an evidence message is in a conversation no linked report covers
+- `ENFORCEMENT_FACTS_REQUIRED`: there is no evidence message and no statement
+- `ENFORCEMENT_EVIDENCE_REQUIRED`: a restricted reason has no evidence, or `remove_evidence` has nothing to remove
+- `ENFORCEMENT_STATEMENT_NOT_ALLOWED`: a restricted reason has a statement
+- `ENFORCEMENT_PERMANENT_REQUIRED`: a restricted reason is given a temporary suspension
+- `ENFORCEMENT_CONFIRMATIONS_REQUIRED`: a restricted reason is missing a confirmation
+- `ENFORCEMENT_RIGHTS_HOLDER_REQUIRED`: code 31 has no `rights_holder`
+- `ENFORCEMENT_RIGHTS_HOLDER_NOT_ALLOWED`: another code has a `rights_holder`
+- `ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED`: `block_networks` is given with a temporary suspension or a closure that is not for a broken rule
+- `ENFORCEMENT_NETWORK_UNKNOWN`: the account did not use an address in `block_networks` in the last 30 days
+- `ENFORCEMENT_NETWORK_SHARED`: another account that is not suspended or closed was last active on an address in `block_networks`
+
+### Order of effects
+
+1. Fluxer validates the input and snapshots the evidence.
+2. It stores the decision with `notice_status` `pending`, together with its evidence and first note.
+3. It applies the restriction. A suspension writes `enforcement_decision_id` in the same account write as `temp_banned_until`, and a closure in the same write as `pending_deletion_at`. A content removal queues its shred job only now, after the evidence is stored. When this step fails, the decision is deleted and nothing is sent.
+4. It resolves the linked reports.
+5. It sends the notice and stores what it sent.
+
+A failure after step 3 leaves the restriction and its decision in place with `notice_status` `pending`.
+
+### Notice delivery
+
+Suspensions and closures are sent by email only. Every other kind is also sent as a system DM. The decision records `undelivered` when no channel reaches the holder, because the account has no email address or the instance has email turned off and the kind sends no system DM. A suspension or closure that was not sent is delivered when the holder next signs in. The sign-in records `sent` with the channel `sign_in`, the request locale, the text and the time, and the appeal deadline counts from then. A bot's notice goes to its owner, and a community's to its owner.
+
+The email subject names the kind of decision, except for a restricted reason, where it is neutral. The system DM leaves out the greeting and sign-off and shows links as Markdown links.
+
+On a self-hosted instance the notice has no appeal section and no out-of-court redress lines, and it uses the instance's own name.
+
+## Enforcement decision object
+
+### Structure
+
+| Field | Type | Description |
+| --- | --- | --- |
+| decision_id | snowflake | The ID of the decision, which the holder quotes in an appeal |
+| subject_type | string | `user` or `guild` |
+| subject_id | snowflake | The ID of the account, bot or community |
+| subject_name | ?string | The bot username or community name when the decision was made, null for a person's own account |
+| recipient_user_id | ?snowflake | Who receives the notice, or null when nobody can |
+| kind | string | What the decision did |
+| reason_code | integer | [Deletion reason](/admin-api/users/#deletion-reasons) |
+| source | string | `report` or `own_review` |
+| automation | string | `none`, `flagged` or `automated` |
+| statement | ?string | Note to the user |
+| rights_holder | ?string | The rights holder or the right concerned |
+| ends_at | ?ISO8601 timestamp | When a suspension or feature limit ends, null when permanent |
+| deletion_at | ?ISO8601 timestamp | When a closed account is deleted |
+| limit | ?string | `direct_messages`, `reports` or `purchases` for a feature limit |
+| profile_fields | array[string] | The fields a profile reset cleared |
+| removed_message_count | ?integer | Messages the decision removed |
+| removed_all_messages | boolean | Whether every message of the account was removed |
+| payment_at | ?ISO8601 timestamp | The charge a payment decision is about |
+| report_ids<sup>1</sup> | array[snowflake] | Linked reports |
+| decided_by | snowflake | The staff member who decided, or 0 for an automated decision |
+| created_at | ISO8601 timestamp | When the decision was made |
+| status | string | `active` or `ended` |
+| end_outcome | ?string | `lifted`, `reversed` or `expired` |
+| ended_at | ?ISO8601 timestamp | When the decision ended |
+| ended_by | ?snowflake | Who ended it |
+| end_statement | ?string | Note to the user sent with the ended email |
+| notice_status | string | `pending`, `sent` or `undelivered` |
+| notice_channels | array[string] | `email`, `system_dm` and `sign_in` |
+| notice_locale | ?string | The locale the notice was written in |
+| notice_text | ?string | The plain text that was sent |
+| notice_sent_at | ?ISO8601 timestamp | When the holder received the notice. The 60-day appeal window counts from here |
+| expired | boolean | See [Lifecycle](#lifecycle) |
+| replaced | boolean | See [Lifecycle](#lifecycle) |
+
+<sup>1</sup> Empty without `report:view`
+
+[Get enforcement decision](#get-enforcement-decision) adds these fields.
+
+| Field | Type | Description |
+| --- | --- | --- |
+| notes | array[object] | Internal notes in order, each with `note_id`, `author_id`, `body` and `created_at` |
+| evidence<sup>1</sup> | array[object] | Snapshot messages, each with `message_id`, `channel_id`, `timestamp`, `content`, `attachments` and `attachment_count` |
+| profile_values<sup>1</sup> | ?object | Profile values before a reset |
+| network_blocks<sup>2</sup> | array[object] | The decision's [network blocks](#network-blocks) that have not expired, each with `ip` and `expires_at` |
+| notice | object | The notice as the holder sees it now, in English |
+
+<sup>1</sup> Message content, attachment details and profile values are null without `message:lookup`. Evidence and notes are deleted a year after the decision, and the decision itself is kept
+
+<sup>2</sup> Each `ip` is masked to its /24 or /64 without `user:view:ip`
+
+## List enforcement decisions
+
+<RouteHeader method="GET" path="/v1/admin/enforcement-decisions" />
+
+Lists the decisions about one account or community, newest first, without notes or evidence, or the [review queue](#automated-decisions-and-the-review-queue). Requires `enforcement:view`.
+
+### Query parameters
+
+| Field | Type | Description |
+| --- | --- | --- |
+| review_queue?<sup>1</sup> | boolean | List the automated decisions waiting for a person instead of one subject |
+| subject_type? | string | `user` or `guild` |
+| subject_id? | snowflake | The ID of the account or community |
+| limit? | integer | Maximum number of decisions (1-100, default 50) |
+| before? | snowflake | Return decisions older than this decision |
+
+<sup>1</sup> Without `review_queue=true`, `subject_type` and `subject_id` are required
+
+### Response body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| decisions | array[[enforcement decision](#enforcement-decision-object) object] | The decisions, without the fields only the single read returns |
+
+### Response
+
+| Status | Body | Condition |
+| --- | --- | --- |
+| 200 | response body | The decisions were listed |
+
+### Side effects
+
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `list_enforcement_decisions` and the metadata keys `list` and `result_count`. A subject list has the subject as its target and `list` `subject`. The review queue has target type `enforcement_decision`, target ID 0 and `list` `review_queue`.
+
+### Rate limit
+
+200 requests per minute for each authenticated user, on the `admin:lookup` bucket.
+
+## Get enforcement decision
+
+<RouteHeader method="GET" path="/v1/admin/enforcement-decisions/{decision_id}" />
+
+Returns one decision with its notes, its evidence and the notice the holder sees now. Requires `enforcement:view`.
+
+### Path parameters
+
+| Field | Type | Description |
+| --- | --- | --- |
+| decision_id | snowflake | The ID of the decision |
+
+### Response
+
+| Status | Body | Condition |
+| --- | --- | --- |
+| 200 | [enforcement decision](#enforcement-decision-object) object | The decision was found |
+| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_ENFORCEMENT_DECISION`, because no decision has this ID |
+
+### Side effects
+
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `view_enforcement_decision`, target type `enforcement_decision`, and the metadata keys `decision_id` and `kind`.
+
+### Rate limit
+
+200 requests per minute for each authenticated user, on the `admin:lookup` bucket.
+
+## Add a note to an enforcement decision
+
+<RouteHeader method="POST" path="/v1/admin/enforcement-decisions/{decision_id}/notes" auditReason />
+
+Appends an internal note. Requires `enforcement:annotate`. Notes are staff only and never change.
+
+### Path parameters
+
+| Field | Type | Description |
+| --- | --- | --- |
+| decision_id | snowflake | The ID of the decision |
+
+### JSON body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| body | string | The note (1-2000 characters) |
+
+### Response body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| note_id | snowflake | The ID of the note |
+| author_id | snowflake | The staff member who wrote it |
+| body | string | The note |
+| created_at | ISO8601 timestamp | When it was written |
+
+### Response
+
+| Status | Body | Condition |
+| --- | --- | --- |
+| 200 | response body | The note was added |
+| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_ENFORCEMENT_DECISION`, because no decision has this ID |
+
+### Side effects
+
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `annotate_enforcement_decision`, target type `enforcement_decision`, and the metadata keys `decision_id` and `note_id`.
+
+### Rate limit
+
+100 requests per minute for each authenticated user, on the `admin:user:modify` bucket.
+
+## End an enforcement decision
+
+<RouteHeader method="POST" path="/v1/admin/enforcement-decisions/{decision_id}/end" auditReason />
+
+Ends an active decision, or reverses a suspension that ended as `expired`, undoes what can be undone and emails the holder. Requires `enforcement:view` and the ACL of the route that made the decision, `user:temp_ban` for a suspension, `user:delete` for a closure, and `user:update:flags` for a warning or a feature limit, plus `ban:ip:remove` when the decision has network blocks. Returns the ended decision.
+
+### Path parameters
+
+| Field | Type | Description |
+| --- | --- | --- |
+| decision_id | snowflake | The ID of the decision |
+
+### JSON body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| outcome<sup>1</sup> | string | `lifted` or `reversed` |
+| statement? | string | Note to the user, sent in the email (1-500 characters) |
+
+<sup>1</sup> `lifted` ends a restriction that was correct. `reversed` says the decision was wrong. Only suspensions, closures and feature limits can be lifted. Every other kind can only be reversed, because there is nothing to lift. A suspension that ended as `expired` can only be reversed
+
+### Response
+
+| Status | Body | Condition |
+| --- | --- | --- |
+| 200 | [enforcement decision](#enforcement-decision-object) object | The decision ended |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY` with `ENFORCEMENT_OUTCOME_NOT_ALLOWED`, because a warning was given `lifted` |
+| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_ENFORCEMENT_DECISION`, because no decision has this ID |
+| 409 | [error response](/admin-api/#error-response) | `ENFORCEMENT_DECISION_ENDED`, because the decision already ended, or ended as `expired` and was given `lifted` |
+| 409 | [error response](/admin-api/#error-response) | `ENFORCEMENT_DECISION_REPLACED`, because a later suspension or closure replaced this one |
+| 409 | [error response](/admin-api/#error-response) | `ENFORCEMENT_DELETION_STARTED`, because the deletion of a closed account has started |
+
+### Side effects
+
+Ending a suspension clears `temp_banned_until`, `enforcement_decision_id` and the `DISABLED` flag, and lifts the new conversation limit, as [Lift a suspension without a decision](/admin-api/users/#lift-a-suspension-without-a-decision) does for older suspensions. Ending a closure cancels the deletion, clears `DELETED`, `deletion_reason_code` and `enforcement_decision_id`, and unblocks the account's email address when the closure blocked it. Ending either removes the decision's network blocks. Ending a feature limit removes its flag unless another active decision holds the same limit, and takes the decision out of the review queue. Ending a warning changes nothing on the account.
+
+The holder is emailed that the restriction ended or was reversed, with the statement when one is given. The ended notice of every kind except a suspension or closure is also sent as a system DM.
+
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `end_enforcement_decision`, target type `enforcement_decision`, and the metadata keys `decision_id`, `kind`, `outcome` and `subject_id`.
+
+### Rate limit
+
+100 requests per minute for each authenticated user, on the `admin:user:modify` bucket.
diff --git a/fluxer_docs/src/content/docs/admin-api/guilds.mdx b/fluxer_docs/src/content/docs/admin-api/guilds.mdx
index be59aff8f..d2bf8df41 100644
--- a/fluxer_docs/src/content/docs/admin-api/guilds.mdx
+++ b/fluxer_docs/src/content/docs/admin-api/guilds.mdx
@@ -413,6 +413,14 @@ Permanently deletes a guild and every record it owns. Requires `guild:delete`. T
| --- | --- | --- |
| guild_id | snowflake | The ID of the guild |
+### JSON body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| basis<sup>1</sup> | [basis](/admin-api/enforcement/#basis) object | `enforcement` when a rule was broken, `holder_request` when the owner asked. `housekeeping` fails body validation |
+
+<sup>1</sup> The `enforcement` basis records a community removal [decision](/admin-api/enforcement/) before the guild is deleted and sends its notice to the owner by email and system DM. Its evidence must be posted in the guild, and its linked reports must name it. Restricted reasons are refused with `ENFORCEMENT_KIND_NOT_ALLOWED`, because the deletion destroys the content
+
### Response body
| Field | Type | Description |
@@ -424,6 +432,7 @@ Permanently deletes a guild and every record it owns. Requires `guild:delete`. T
| Status | Body | Condition |
| --- | --- | --- |
| 200 | response body | Guild was deleted |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, because the basis or the [decision](/admin-api/enforcement/#validation) is invalid |
| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_GUILD`, because the guild does not exist |
:::danger[Archive content before deleting the guild]
@@ -434,7 +443,7 @@ The guild, its channels, roles, memberships, messages, and attachments are destr
Members receive [Guild Delete](/gateway/events/#guild-delete). The guild disappears from their [settings and folders](/http-api/users/settings/) and from search. Its invites, webhooks, messages, attachments and discovery application are also deleted.
-One Admin audit entry is recorded with the action `delete_guild`, the target type `guild`, and the guild ID in both the target and the metadata.
+One Admin audit entry is recorded with the action `delete_guild`, the target type `guild`, the guild ID in both the target and the metadata, and the `basis` metadata key. The `enforcement` basis adds `decision_id`, `reason_code`, `kind` and `notice_status`.
### Rate limit
diff --git a/fluxer_docs/src/content/docs/admin-api/index.mdx b/fluxer_docs/src/content/docs/admin-api/index.mdx
index bd4cba580..93a06d20d 100644
--- a/fluxer_docs/src/content/docs/admin-api/index.mdx
+++ b/fluxer_docs/src/content/docs/admin-api/index.mdx
@@ -214,6 +214,7 @@ An entry has no request method, request path, status, duration, IP address, or f
| bulk_job | Background job |
| admin_api_key | Admin API key |
| audit_log | Admin audit entry |
+| enforcement_decision | Enforcement decision |
| archive<sup>2</sup> | Archive list |
| admin_acl<sup>2</sup> | Admin ACL registry |
| blocklist<sup>2</sup> | Blocklist catalogue |
@@ -280,6 +281,8 @@ An entry with one of these actions has `access` set to `read`.
| list_discovery_categories | The discovery categories were read |
| list_discovery_category_listings | A page of the discovery listings in one category was read |
| list_discovery_listings | Approved discovery listings were read |
+| list_enforcement_decisions | The enforcement decisions about an account or community, or the review queue, were listed |
+| list_network_block_candidates | The networks an account used in the last 30 days were listed, with how many other accounts share each |
| list_guild_applications | The applications whose bots are members of a guild were read |
| list_guild_audit_logs | The audit log of a guild was read |
| list_guild_emojis | The custom emojis of a guild were listed |
@@ -304,6 +307,7 @@ An entry with one of these actions has `access` set to `read`.
| search_messages | The messages of a channel were searched, or one message was looked up |
| search_reports | Reports were listed or searched |
| search_users | Accounts were listed or searched |
+| view_enforcement_decision | An enforcement decision was read |
#### Write actions
@@ -311,7 +315,7 @@ An entry with any other action has `access` set to `write`.
| Value | Description |
| --- | --- |
-| annotate_ban | A note was appended to the current ban of an account |
+| annotate_enforcement_decision | A note was added to an enforcement decision |
| approve_discovery_application | A discovery application was approved |
| approve_registration | A pending registration was approved |
| auto_resolve_reports_on_deletion | The pending reports against an account were processed as part of its deletion |
@@ -354,9 +358,11 @@ An entry with any other action has `access` set to `write`.
| delete_voice_server | A registered voice server was deleted |
| delete_webauthn_credential | A WebAuthn credential was removed from an account |
| disable_mfa | Multi-factor authentication was disabled on an account |
+| end_enforcement_decision | An enforcement decision was ended as lifted or reversed |
| force_add_to_guild | An account was added to a guild while bypassing the ban check |
| generate_gift_codes | Gift codes were generated |
| kick_member | A member was removed from a guild |
+| limit_features | A feature limit decision was recorded for an account, by staff or by Fluxer after a payment fraud signal |
| purge_asset | A stored media asset was purged |
| purge_guild_emoji_asset | A guild emoji asset was purged |
| purge_guild_sticker_asset | A guild sticker asset was purged |
@@ -385,13 +391,13 @@ An entry with any other action has `access` set to `write`.
| set_traits | Account traits were replaced |
| shutdown_guild | One guild was stopped on the main Gateway |
| system_dm.send | A system DM broadcast was created |
-| temp_ban | A temporary or permanent account ban was applied |
+| temp_ban | An account was suspended for a time or permanently |
| terminate_sessions | Every login session of an account was revoked |
| test_smtp_connection | An SMTP connection test was run |
| transfer_ownership<sup>1</sup> | Guild ownership or OAuth2 application ownership was transferred |
| trigger_guild_archive | A guild archive was created |
| trigger_user_archive | A user archive was created |
-| unban | An account ban was lifted |
+| unban | A suspension without an enforcement decision was lifted |
| unban_avatar_hash | An avatar hash was removed from the avatar blocklist |
| unban_email | An address was removed from the email blocklist |
| unban_file_sha | A file hash was removed from the attachment blocklist |
@@ -416,6 +422,7 @@ An entry with any other action has `access` set to `write`.
| update_voice_server | A registered voice server was updated |
| upload_branding_asset | An instance branding asset was uploaded or cleared |
| verify_email | An email address was marked verified |
+| warn_user | A warning decision was recorded for an account |
<sup>1</sup> The same action name is recorded for two different resources, so `target_type` tells them apart
@@ -553,6 +560,8 @@ The registry is returned in this order by [List ACLs](#list-acls). A value outsi
| bulk:update:user_flags | Queues the bulk account flag task |
| discovery:remove | Removes a guild from [discovery](/admin-api/discovery/) |
| discovery:review | Reads, reviews, and edits discovery applications, categories, and listings |
+| enforcement:annotate | Adds notes to [enforcement decisions](/admin-api/enforcement/) |
+| enforcement:view | Reads [enforcement decisions](/admin-api/enforcement/), and is needed with the kind's own ACL to end one |
| gateway:memory_stats | Reads main [Gateway](/admin-api/gateway/) statistics, memory statistics, and voice state counts |
| gateway:reload_all | Reloads guilds across the main Gateway |
| gift_codes:generate | Generates [gift codes](/admin-api/gift-codes/) |
@@ -598,7 +607,7 @@ The registry is returned in this order by [List ACLs](#list-acls). A value outsi
| user:view:dob<sup>6</sup> | Unredacts user dates of birth |
| user:view:email<sup>6</sup> | Unredacts user email addresses and email verification state |
| user:view:ip<sup>6</sup> | Unredacts the last active IP address and the location derived from it |
-| user:temp_ban | Applies and removes an account ban |
+| user:temp_ban | Suspends accounts and lifts suspensions |
| user:update:bot_status | Updates bot and system account state |
| user:update:dob | Updates dates of birth |
| user:update:email | Updates the email address, marks the address verified, resends verification, and sends a password reset |
diff --git a/fluxer_docs/src/content/docs/admin-api/messages.mdx b/fluxer_docs/src/content/docs/admin-api/messages.mdx
index 9cb6a136d..78eb44e1e 100644
--- a/fluxer_docs/src/content/docs/admin-api/messages.mdx
+++ b/fluxer_docs/src/content/docs/admin-api/messages.mdx
@@ -233,6 +233,8 @@ One [Admin audit entry](/admin-api/#admin-audit-entry-object) is recorded with t
Permanently deletes one message and purges the attachments it owned. Requires `message:delete`.
+This route is for removals that involve nobody's conduct, such as cleanup of webhook or system messages, or a holder's request. To remove a message for breaking a rule, [shred it](/admin-api/users/#shred-user-messages) with the `enforcement` basis, so a decision records the removal and the author is told.
+
### Path parameters
| Field | Type | Description |
@@ -240,6 +242,12 @@ Permanently deletes one message and purges the attachments it owned. Requires `m
| channel_id | snowflake | The ID of the channel |
| message_id | snowflake | The ID of the message |
+### JSON body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| basis | [basis](/admin-api/enforcement/#basis) object | `holder_request` or `housekeeping`. The `enforcement` basis fails body validation |
+
### Response body
| Field | Type | Description |
@@ -266,7 +274,7 @@ The message and its attachments are permanently removed, including from search r
A deleted message in a thread no longer counts towards `message_count` of the [thread object](/http-api/threads/#thread-object). Fluxer emits no [Thread Update](/gateway/threads/#thread-update) for the change.
-One [Admin audit entry](/admin-api/#admin-audit-entry-object) is recorded with the action `delete_message` and the target type `message`, targeting the message ID. Its metadata is `channel_id` and `message_id`. The entry is written whether or not a message was found.
+One [Admin audit entry](/admin-api/#admin-audit-entry-object) is recorded with the action `delete_message` and the target type `message`, targeting the message ID. Its metadata is `channel_id`, `message_id` and `basis`. The entry is written whether or not a message was found.
### Rate limit
diff --git a/fluxer_docs/src/content/docs/admin-api/reports.mdx b/fluxer_docs/src/content/docs/admin-api/reports.mdx
index 22683f8ac..67aff1631 100644
--- a/fluxer_docs/src/content/docs/admin-api/reports.mdx
+++ b/fluxer_docs/src/content/docs/admin-api/reports.mdx
@@ -676,15 +676,23 @@ Resolves one report and returns a [report resolution](#report-resolution-object)
| status | resolved | The status to move the report to |
| public_comment?<sup>1</sup> | string | The comment shown to the reporter (0-512 characters) |
| notify_reporter?<sup>2</sup> | boolean | Whether the notice to the reporter includes `public_comment` (default true) |
-| resolution?<sup>3</sup> | string | How the report was resolved, one of `actioned`, `no_violation`, or `duplicate` |
+| resolution<sup>3</sup> | string | How the report was resolved, one of `actioned`, `no_violation`, or `duplicate` |
+| outcome?<sup>4</sup> | string | What happened to the reported item, `removed`, `restricted`, `action_taken`, or `no_violation` |
+| duplicate_of?<sup>5</sup> | snowflake | The report this one repeats |
<sup>1</sup> Stored as null when it is omitted or empty. Otherwise it is stored, and the resolution notice shows it to the reporter unless `notify_reporter` is false
-<sup>2</sup> The reporter is notified either way. False sends the generic notice without the comment, and the comment is still stored on the report
+<sup>2</sup> The reporter is notified either way. False sends the notice without the comment, and the comment is still stored on the report
-<sup>3</sup> Optional, so older admin clients that send none still work. It is not stored on the report, not returned by any report route, and not shown to the reporter. It is recorded in the audit entry
+<sup>3</sup> Not stored on the report and not returned by any report route. It is recorded in the audit entry
-The admin panel always sends `resolution`. Its resolve form has a required Resolution select with three choices: Action taken (`actioned`), No violation (`no_violation`), and Duplicate (`duplicate`). The browser refuses to submit the form without a choice, and the panel checks again on the server: a submission with no choice, or with any other value, is refused with the error "Choose a resolution" and the report stays pending. After a resolve, the panel confirms the choice in its message, such as "Report resolved: No violation". The report page itself does not show the choice, because no report route returns it. Staff find it in the `resolution` metadata of the `resolve_report` entry in the audit log.
+<sup>4</sup> Required for `actioned`, which refuses `no_violation`. Optional for `no_violation`, which sets `no_violation` and refuses any other value. Refused for `duplicate`. A mistake fails with `REPORT_OUTCOME_INVALID`. `removed` means the reported content, profile field or community was removed. `restricted` means the reported account was restricted and the item was left up. `action_taken` means Fluxer acted under its rules in another way, such as a warning, and the reporter is not told how. `no_violation` means the item breaks no rule and was left as it is. The outcome is stored on the report and the reporter is told it
+
+<sup>5</sup> Required for `duplicate` and refused otherwise, as is a report naming itself, with `REPORT_OUTCOME_INVALID`. The duplicate takes the outcome stored on that report and the reporter is told it. While that report has no outcome, because it is still pending or was resolved before outcomes were stored, the duplicate is resolved without a notice to its reporter. An unknown report returns 404 `UNKNOWN_REPORT`
+
+The admin panel's resolve form has a required Resolution select with three choices: Action taken (`actioned`), No violation (`no_violation`), and Duplicate (`duplicate`). Action taken also shows a required Outcome select: Content removed (`removed`), Account restricted (`restricted`), and Other action taken (`action_taken`). No violation sends the outcome `no_violation`. Duplicate shows a required Duplicate of field for the report ID. The panel refuses a submission without a resolution, without an outcome for Action taken, or without a report ID for Duplicate, and the report stays pending. After a resolve, the panel confirms the choice in its message, such as "Report resolved: No violation". Staff find the choice in the `resolution` and `outcome` metadata of the `resolve_report` entry in the audit log.
+
+A [decision](/admin-api/enforcement/) that links pending reports resolves them as `actioned` itself, with the outcome its kind implies, so no separate update is needed.
:::caution[Resolution is terminal]
Resolving a report notifies the reporter whatever `notify_reporter` says, as the side effects below describe. A resolved report never returns to PENDING, and a second update against it returns 400 `REPORT_ALREADY_RESOLVED` without changing the stored public comment.
@@ -696,15 +704,16 @@ Resolving a report notifies the reporter whatever `notify_reporter` says, as the
| --- | --- | --- |
| 200 | [report resolution](#report-resolution-object) object | Report was resolved |
| 400 | [error response](/admin-api/#error-response) | The report is already resolved and the request returns `REPORT_ALREADY_RESOLVED` |
-| 404 | [error response](/admin-api/#error-response) | Report does not exist and the request returns `UNKNOWN_REPORT` |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, because `resolution` is missing or the outcome or `duplicate_of` does not match it |
+| 404 | [error response](/admin-api/#error-response) | The report or the `duplicate_of` report does not exist and the request returns `UNKNOWN_REPORT` |
### Side effects
-The report moves to RESOLVED and records `resolved_at`, `resolved_by_admin_id`, and the public comment.
+The report moves to RESOLVED and records `resolved_at`, `resolved_by_admin_id`, the public comment and the outcome.
-Fluxer records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with target type `report`, target ID equal to the report ID, and action `resolve_report`. The metadata is `report_id`, `report_type`, `notify_reporter`, `reporter_dm_sent`, `reporter_email_sent`, and `reporter_dsa_email_sent`, plus `resolution` when the request sets one. When Fluxer does not attempt a notice, `reporter_notice_skipped` names the reason: `reporter_account_deleted`, `reporter_report_banned`, `reporter_lookup_failed`, or `no_reporter_email`.
+Fluxer records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with target type `report`, target ID equal to the report ID, and action `resolve_report`. The metadata is `report_id`, `report_type`, `notify_reporter`, `reporter_dm_sent`, `reporter_email_sent`, `reporter_dsa_email_sent`, `resolution`, `duplicate_of` for a duplicate, and `outcome`, which a duplicate of a report with no outcome leaves out. When Fluxer does not attempt a notice, `reporter_notice_skipped` names the reason: `reporter_account_deleted`, `reporter_report_banned`, `reporter_lookup_failed`, `no_reporter_email`, or `duplicate_outcome_unknown`.
-Fluxer notifies the reporter of every resolution. A reporter with an account receives a system direct message, and an email when the account has an address. A Digital Services Act notice has no reporter account, so its verified address receives a decision email with the report ID, the comment when one is shared, and how to appeal. Nothing is sent when the reporter account is deleted or barred from reporting.
+Fluxer tells the reporter the decision about the item they reported: that the content was removed, that the account was restricted without saying how, that action was taken without saying what, or that it broke no rule and was left as it is. A reporter with an account receives a system direct message, and an email when the account has an address. A Digital Services Act notice has no reporter account, so its verified address receives the same decision by email. Each notice gives the report ID, the comment when one is shared, and on hosted instances how to appeal within 60 days and the EU redress routes. It never names a decision, a sanction or the other account's history. Nothing is sent when the reporter account is deleted, or was barred from reporting when the report was filed.
A reporter who does not already have the system channel open receives [Channel Create](/gateway/events/#channel-create), and every session of the reporter receives [Message Create](/gateway/events/#message-create). Fluxer logs a delivery failure, and the request still succeeds.
diff --git a/fluxer_docs/src/content/docs/admin-api/users.mdx b/fluxer_docs/src/content/docs/admin-api/users.mdx
index 26a7a5bb9..dc2f6d345 100644
--- a/fluxer_docs/src/content/docs/admin-api/users.mdx
+++ b/fluxer_docs/src/content/docs/admin-api/users.mdx
@@ -55,10 +55,11 @@ When the caller lacks `user:view:email`, `user:view:dob`, or `user:view:ip`, Flu
| pending_deletion_at | ?ISO8601 timestamp | The time the scheduled deletion runs, or null when none is scheduled |
| pending_bulk_message_deletion_at<sup>6</sup> | ?ISO8601 timestamp | The time the account's own scheduled bulk message deletion runs |
| deletion_reason_code | ?integer | [Deletion reason](#deletion-reasons) |
-| deletion_public_reason | ?string | The reason shown to the account holder, or null when none was supplied |
+| deletion_public_reason | ?string | The reason shown to the holder of a deletion scheduled before enforcement decisions existed. No longer written |
| deletion_audit_log_reason | ?string | The private reason stored with the pending deletion, and null without `audit_log:view` |
| deletion_scheduled_by | ?snowflake | The ID of the account that scheduled the pending deletion, or null when it was not recorded |
| deletion_scheduled_at | ?ISO8601 timestamp | The time the pending deletion was scheduled, or null when it was not recorded |
+| enforcement_decision_id | ?snowflake | The [enforcement decision](/admin-api/enforcement/) behind the current suspension, or null when none owns it |
| acls<sup>7</sup> | array[string] | Effective [Admin ACLs](/admin-api/#acl-registry), with at most 106 entries |
| traits<sup>8</sup> | array[string] | The free-form operator labels set on the account, with at most 100 entries |
| has_totp<sup>9</sup> | boolean | Whether a TOTP authenticator is registered |
@@ -76,7 +77,7 @@ When the caller lacks `user:view:email`, `user:view:dob`, or `user:view:ip`, Flu
<sup>4</sup> Requires `user:view:dob`, and without it the field is null
-<sup>5</sup> Set by [Ban user](#ban-user) for both ban modes. An expiry that has already passed is reported as null, so an elapsed temporary ban reads the same as no ban
+<sup>5</sup> Set by [Suspend user](#suspend-user) for both modes. An expiry that has already passed is reported as null, so an elapsed temporary ban reads the same as no ban
<sup>6</sup> Written when the account holder schedules its own bulk message deletion, and cleared by [Cancel scheduled message deletion](#cancel-scheduled-message-deletion)
@@ -182,7 +183,7 @@ The `flags` field of the [Admin user object](#admin-user-object) is a 64-bit bit
| 3 | SPAM | Spam |
| 4 | CHEATING_OR_EXPLOITATION | Cheating or exploitation |
| 5 | COORDINATED_RAIDING | Coordinated raiding |
-| 6 | AUTOMATION_OR_SELFBOT | Automation or selfbot use |
+| 6 | AUTOMATION_OR_SELFBOT | Disruptive automation |
| 7 | NONCONSENSUAL_SEXUAL_CONTENT | Non-consensual sexual content |
| 8 | SCAM_OR_SOCIAL_ENGINEERING | Scam or social engineering |
| 9 | CHILD_SEXUAL_CONTENT | Child sexual content |
@@ -199,10 +200,19 @@ The `flags` field of the [Admin user object](#admin-user-object) is a 64-bit bit
| 20 | HATE_SPEECH_OR_EXTREMIST_CONTENT | Hate speech or extremist content |
| 21 | MALICIOUS_LINKS_OR_MALWARE | Malicious links or malware |
| 22 | IMPERSONATION_OR_FAKE_IDENTITY | Impersonation or fake identity |
+| 23 | THREATS_OR_VIOLENT_SPEECH | Threats or violent speech |
+| 24 | VIOLENT_EXTREMISM | Terrorism or violent extremism |
+| 25 | SELF_HARM_PROMOTION | Promoting self-harm |
+| 26 | SEXUAL_CONTENT_PLACEMENT | Sexual content outside 18+ spaces |
+| 27 | ILLEGAL_GOODS_OR_ACTIVITY | Illegal goods or activity |
+| 28 | HARMFUL_DECEPTION | Harmful deception |
+| 29 | REPORTING_ABUSE | Misuse of reporting |
+| 30 | UNDERAGE_ACCOUNT | Account holder under the minimum age |
+| 31 | COPYRIGHT | Copyright |
-<sup>1</sup> The one value that lowers the minimum scheduling delay to 14 days and suppresses the identifier blocklisting and report auto-resolution described under [Schedule user deletion](#schedule-user-deletion)
+<sup>1</sup> Written by self-deletion and by [Schedule user deletion](#schedule-user-deletion) with the `holder_request` basis. Signing in cancels such a deletion
-A `reason_code` request value outside this registry fails body validation with 400 `INVALID_FORM_BODY`.
+Values 1 (`USER_REQUESTED`), 2 (`OTHER`) and 19 (`INACTIVITY`) are not enforcement reasons. Every other value is an enforcement reason, and only enforcement reasons are accepted in an [enforcement decision input](/admin-api/enforcement/#enforcement-decision-input). A `reason_code` outside them fails body validation with 400 `INVALID_FORM_BODY`.
## Profile fields
@@ -1005,9 +1015,12 @@ Clearing is the only profile change on this resource. No route sets a biography,
| Field | Type | Description |
| --- | --- | --- |
-| fields<sup>1</sup> | array[string] | [Profile fields](#profile-fields) to clear, with at most 10 entries |
+| fields<sup>1</sup> | array[string] | [Profile fields](#profile-fields) to clear, with 1 to 10 entries |
+| basis<sup>2</sup> | [basis](/admin-api/enforcement/#basis) object | Why the fields are cleared |
-<sup>1</sup> Required. An empty array is accepted, clears nothing, and still records an audit entry. A value outside the registry fails body validation
+<sup>1</sup> Required. A value outside the registry fails body validation
+
+<sup>2</sup> The `enforcement` basis saves the current values of the fields as the evidence's `profile_values`, records a profile reset [decision](/admin-api/enforcement/) and sends its notice by email and system DM. The cleared fields are its facts, so it needs neither evidence nor a statement
### Response body
@@ -1020,6 +1033,7 @@ Clearing is the only profile change on this resource. No route sets a biography,
| Status | Body | Condition |
| --- | --- | --- |
| 200 | response body | The named fields were cleared |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, because the body or the [decision](/admin-api/enforcement/#validation) is invalid |
| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
### Side effects
@@ -1028,7 +1042,7 @@ Clearing `avatar` or `banner` schedules the previous asset for deletion.
[User Update](/gateway/events/#user-update) is emitted to the account's own sessions, and each guild the account is a member of receives [Guild Member Update](/gateway/events/#guild-member-update) when the operation changes `avatar` or `global_name`.
-The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `clear_fields`, target type `user`, and a metadata key `fields` with the submitted names joined by commas.
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `clear_fields`, target type `user`, a metadata key `fields` with the submitted names joined by commas, and `basis`. The `enforcement` basis adds `decision_id`, `reason_code`, `kind` and `notice_status`.
### Rate limit
@@ -1235,6 +1249,8 @@ Adds and removes [account flags](#account-flags) and returns the resulting accou
Additions are applied before removals, so a flag named in both arrays ends up cleared. A bit outside the [account flag](#account-flags) registry is applied unchanged.
+Flags that record a restriction change only through their own routes. Adding `DISABLED`, `DELETED`, `SPAMMER` or `REPORT_BANNED`, removing `DELETED`, and removing `DISABLED` while the account is suspended are refused. Removing `SPAMMER` or `REPORT_BANNED` while an active [feature limit](#limit-user-features) holds it is refused with the decision ID. A self-disabled account, which has `DISABLED` without a suspension, can still have it removed.
+
### Path parameters
| Field | Type | Description |
@@ -1261,7 +1277,9 @@ Additions are applied before removals, so a flag named in both arrays ends up cl
| Status | Body | Condition |
| --- | --- | --- |
| 200 | response body | Flags were updated |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY` with `FLAG_REQUIRES_ENFORCEMENT_ROUTE`, because the change touches a restriction flag |
| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
+| 409 | [error response](/admin-api/#error-response) | `ENFORCEMENT_DECISION_OWNS_STATE` with the `decision_id`, because a feature limit holds the flag |
[Bulk jobs](/admin-api/bulk-jobs/) applies the same change to up to 1,000 accounts as a queued `update_user_flags` task.
@@ -1285,6 +1303,8 @@ Adds and removes [premium flags](#premium-flags) and returns the resulting accou
Premium flags control badge display, the premium override, the purchase block, and perk sanitisation. They do not grant or revoke a subscription.
+Adding `PURCHASE_DISABLED` is refused, because a purchase block is recorded through [Limit user features](#limit-user-features). Removing it while an active feature limit holds it is refused with the decision ID. A purchase block Fluxer set after repeated refunds has no decision and can be removed.
+
### Path parameters
| Field | Type | Description |
@@ -1311,7 +1331,9 @@ Premium flags control badge display, the premium override, the purchase block, a
| Status | Body | Condition |
| --- | --- | --- |
| 200 | response body | Premium flags were updated |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY` with `FLAG_REQUIRES_ENFORCEMENT_ROUTE`, because `PURCHASE_DISABLED` was added |
| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
+| 409 | [error response](/admin-api/#error-response) | `ENFORCEMENT_DECISION_OWNS_STATE` with the `decision_id`, because a feature limit holds the purchase block |
### Side effects
@@ -1392,14 +1414,14 @@ The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-obje
100 requests per minute for each authenticated user, on the `admin:user:modify` bucket.
-## Ban user
+## Suspend user
<RouteHeader method="PUT" path="/v1/admin/users/{user_id}/ban" auditReason />
-Disables an account temporarily or permanently and returns the resulting account. Requires `user:temp_ban`.
+Suspends an account for a number of hours or permanently, records the [enforcement decision](/admin-api/enforcement/) behind it, and returns the resulting account. Requires `user:temp_ban`. The `X-Audit-Log-Reason` header is required and becomes the first note on the decision.
-:::note[A permanent ban is a distant expiry]
-Both modes add the `DISABLED` [account flag](#account-flags) and set `temp_banned_until`, a permanent ban to 100 years out. The field cannot tell the modes apart, and [Unban user](#unban-user) clears either one.
+:::note[A permanent suspension is a distant expiry]
+Both modes add the `DISABLED` [account flag](#account-flags) and set `temp_banned_until`, a permanent suspension to 100 years out. The decision's `ends_at` is null for a permanent suspension, which is how the two are told apart.
:::
### Path parameters
@@ -1412,54 +1434,67 @@ Both modes add the `DISABLED` [account flag](#account-flags) and set `temp_banne
| Field | Type | Description |
| --- | --- | --- |
-| duration_hours<sup>1</sup> | integer | Whole-hour ban length, where `0` bans permanently (0-8760) |
-| reason?<sup>2</sup> | string | Statement of reasons sent to the banned account holder (at most 512 characters) |
-| notify_user?<sup>3</sup> | boolean | Whether to email the account holder about a temporary ban (default true) |
+| duration_hours<sup>1</sup> | integer | Whole-hour suspension length, where `0` suspends permanently (0-8760) |
+| decision | [enforcement decision input](/admin-api/enforcement/#enforcement-decision-input) object | Why the account is suspended |
+| remove_evidence?<sup>2</sup> | boolean | Whether to remove the evidence messages after they are snapshotted |
+| block_networks?<sup>3</sup> | [network block request](#network-block-request) object | Networks the account used to block with the decision |
-<sup>1</sup> Required. The expiry is computed from the moment the ban is applied, so no absolute-expiry field is accepted. The 8760 ceiling is one year
+<sup>1</sup> Required. The expiry is computed from the moment the suspension is applied. The 8760 ceiling is one year
-<sup>2</sup> Included in the temporary ban email and in the audit entry, but not stored on the account, so no read operation returns it
+<sup>2</sup> Requires `message:shred`. Queues a [message shred job](#shred-user-messages) for the evidence messages and sets the decision's `removed_message_count`
-<sup>3</sup> A permanent ban sends no email whatever this field says
+<sup>3</sup> Permanent suspensions only. Requires `ban:ip:add` and `user:view:ip`
+
+### Network block request
+
+| Field | Type | Description |
+| --- | --- | --- |
+| ips<sup>1</sup> | array[string] | IPv4 or IPv6 addresses to block (1-20 items) |
+| days? | integer | How many days the blocks last (1-365, default 90) |
+
+<sup>1</sup> Each address must be one the account used in the last 30 days, as [List network block candidates](#list-network-block-candidates) shows. An address on which another account that is not suspended or closed was last active fails with `ENFORCEMENT_NETWORK_SHARED`. Exempt addresses and special-purpose ranges are skipped, not refused
### Response body
| Field | Type | Description |
| --- | --- | --- |
-| user | [Admin user](#admin-user-object) object | The resulting account |
+| user | [Admin user](#admin-user-object) object | The resulting account, with `enforcement_decision_id` set |
+| skipped_ips | array[object] | Requested addresses that were not blocked, each with `ip` and `reason` |
+
+`reason` is `exempt`, `special_purpose`, or `already_blocked` when a permanent plain block or another decision already covers the address. [Network blocks](/admin-api/enforcement/#network-blocks) describes the rules.
### Response
| Status | Body | Condition |
| --- | --- | --- |
-| 200 | response body | The account was banned |
+| 200 | response body | The account was suspended |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, with one of the [validation codes](/admin-api/enforcement/#validation) |
| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
+| 409 | [error response](/admin-api/#error-response) | `ENFORCEMENT_ACCOUNT_CLOSED`, because the account is closed |
-:::caution[The ban signs the account out everywhere]
-Every authentication session of the account is deleted. [Unban user](#unban-user) restores account access, but it does not restore any deleted session.
+:::caution[The suspension signs the account out everywhere]
+Every authentication session of the account is deleted. Ending the decision restores account access, but it does not restore any deleted session.
:::
### Side effects
-`DISABLED` is added to the account flags and `temp_banned_until` is set to the resolved expiry. Every authentication session is then deleted, so the account is signed out on every device.
-
-An authentication attempt while the ban stands fails with 403 `ACCOUNT_SUSPENDED_TEMPORARILY`. An attempt after the expiry has passed clears the `DISABLED` flag and `temp_banned_until` in the same request, so a temporary ban ends without an Admin operation.
+The decision is stored first. `DISABLED` is then added to the account flags, and `temp_banned_until` and `enforcement_decision_id` are set in the same write. Every authentication session is deleted, the requested networks are blocked, linked reports are resolved, and the notice is emailed. A suspension of an account that is already suspended replaces it, and the earlier decision reads as `replaced`.
-When `notify_user` is true, the account has an email address, and `duration_hours` is greater than zero, the account holder is emailed the duration, the expiry, and the supplied `reason`. A permanent ban sends no email. A failed email is logged and the ban still applies.
+An authentication attempt while the suspension stands fails with 403 `ACCOUNT_SUSPENDED_TEMPORARILY`, or `ACCOUNT_SUSPENDED_PERMANENTLY` for a suspension with no end date, and shows the notice. The notice of an account with no email address counts as received at its first such attempt. After the expiry, Fluxer clears `DISABLED`, `temp_banned_until` and `enforcement_decision_id` and ends the decision as `expired`. This happens at the next authentication attempt or in a scheduled task that runs every six hours, whichever comes first, and sends no email.
-[User Update](/gateway/events/#user-update) is emitted after the sessions are deleted, so no connection of the account remains to receive it. `DISABLED` is not a public account flag, and no other account observes the change.
+[User Update](/gateway/events/#user-update) is emitted after the sessions are deleted, so no connection of the account remains to receive it.
-The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `temp_ban`, target type `user`, and the metadata keys `duration_hours`, `reason`, `banned_until`, `notify_user`, and `notification_sent`.
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `temp_ban`, target type `user`, and the metadata keys `duration_hours`, `banned_until`, `decision_id`, `reason_code`, `kind` and `notice_status`. When networks were blocked it adds `blocked_ips` and `network_blocks_until`.
### Rate limit
100 requests per minute for each authenticated user, on the `admin:user:modify` bucket.
-## Unban user
+## List network block candidates
-<RouteHeader method="DELETE" path="/v1/admin/users/{user_id}/ban" auditReason />
+<RouteHeader method="GET" path="/v1/admin/users/{user_id}/network-block-candidates" />
-Clears the account ban and returns the resulting account. Requires `user:temp_ban`.
+Lists the addresses the account used in the last 30 days, most recent first, which are the addresses `block_networks` accepts on [Suspend user](#suspend-user) and [Schedule user deletion](#schedule-user-deletion). Requires `user:view:ip`.
### Path parameters
@@ -1467,14 +1502,40 @@ Clears the account ban and returns the resulting account. Requires `user:temp_ba
| --- | --- | --- |
| user_id | snowflake | The ID of the target account |
-### JSON body
+### Response body
| Field | Type | Description |
| --- | --- | --- |
-| notify_user? | boolean | Whether to email the account holder that the ban was lifted (default true) |
-| public_reason?<sup>1</sup> | string | Statement shown to the account holder in the email (at most 512 characters) |
+| networks | array[object] | One entry per address, each with `ip`, `last_seen_at`, `skip_reason` and `other_unrestricted_accounts` |
+
+`last_seen_at` comes from the account's last activity and its current and ended sessions. `skip_reason` is `exempt` or `special_purpose` for an address Fluxer never blocks, and null otherwise. `other_unrestricted_accounts` counts the other accounts that are not suspended or closed and were last active on the address, matching IPv6 by its /64. An address with a count above zero cannot be blocked.
+
+### Response
+
+| Status | Body | Condition |
+| --- | --- | --- |
+| 200 | response body | The addresses were listed |
+| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
+
+### Side effects
+
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `list_network_block_candidates`, target type `user`, and the metadata key `result_count`.
+
+### Rate limit
+
+200 requests per minute for each authenticated user, on the `admin:lookup` bucket.
+
+## Lift a suspension without a decision
+
+<RouteHeader method="DELETE" path="/v1/admin/users/{user_id}/ban" auditReason />
+
+Lifts a suspension that no enforcement decision owns, such as one applied before decisions existed, and returns the resulting account. Requires `user:temp_ban`. A suspension with a decision is lifted by [ending the decision](/admin-api/enforcement/#end-an-enforcement-decision).
+
+### Path parameters
-<sup>1</sup> Also recorded in the audit entry. The `X-Audit-Log-Reason` value is never emailed
+| Field | Type | Description |
+| --- | --- | --- |
+| user_id | snowflake | The ID of the target account |
### Response body
@@ -1486,28 +1547,69 @@ Clears the account ban and returns the resulting account. Requires `user:temp_ba
| Status | Body | Condition |
| --- | --- | --- |
-| 200<sup>1</sup> | response body | The ban was cleared |
+| 200<sup>1</sup> | response body | The suspension was lifted |
| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
+| 409 | [error response](/admin-api/#error-response) | `ENFORCEMENT_DECISION_OWNS_STATE` with the `decision_id`, because a decision owns the suspension |
-<sup>1</sup> The operation checks no precondition. On an account that was never banned it writes `temp_banned_until` as null, clears `DISABLED`, and sends no email
+<sup>1</sup> On an account that was never suspended it writes `temp_banned_until` as null, clears `DISABLED`, and sends no email
### Side effects
-`temp_banned_until` is cleared and `DISABLED` is removed from the account flags.
+`temp_banned_until` is cleared and `DISABLED` is removed from the account flags. Deleted sessions are not restored. When the suspension was still in force and the account is not closed, the holder is emailed that the restriction ended. The `X-Audit-Log-Reason` value is never emailed. [User Update](/gateway/events/#user-update) is emitted to the account's own sessions.
+
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `unban`, target type `user`, and the metadata key `ended_notice`.
+
+### Rate limit
+
+100 requests per minute for each authenticated user, on the `admin:user:modify` bucket.
+
+## Warn user
+
+<RouteHeader method="POST" path="/v1/admin/users/{user_id}/warnings" auditReason />
-Deleted sessions are not restored. Fluxer emails the account holder, with `public_reason` when one is supplied, only when `notify_user` is true, the ban was still in force, the account has an email address, and the account is neither closed nor pending deletion. A failed email is logged and the ban is still cleared. [User Update](/gateway/events/#user-update) is emitted to the account's own sessions.
+Records a warning decision and sends its notice by email and system DM. Requires `user:update:flags`. Nothing about the account changes. The `X-Audit-Log-Reason` header is required and becomes the first note on the decision.
-The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `unban`, target type `user`, and the metadata keys `notify_user`, `notification_sent`, and `public_reason`.
+### Path parameters
+
+| Field | Type | Description |
+| --- | --- | --- |
+| user_id | snowflake | The ID of the target account |
+
+### JSON body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| decision<sup>1</sup> | [enforcement decision input](/admin-api/enforcement/#enforcement-decision-input) object | Why the account is warned |
+
+<sup>1</sup> Reasons that allow only a suspension or content removal, such as child safety, refuse a warning with `ENFORCEMENT_KIND_NOT_ALLOWED`
+
+### Response body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| decision_id | snowflake | The ID of the warning decision |
+
+### Response
+
+| Status | Body | Condition |
+| --- | --- | --- |
+| 200 | response body | The warning was recorded |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, with one of the [validation codes](/admin-api/enforcement/#validation) |
+| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
+
+### Side effects
+
+Linked reports are resolved and the notice is sent. The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `warn_user`, target type `user`, and the metadata keys `decision_id`, `reason_code`, `kind` and `notice_status`.
### Rate limit
100 requests per minute for each authenticated user, on the `admin:user:modify` bucket.
-## Add a note to a user ban
+## Limit user features
-<RouteHeader method="POST" path="/v1/admin/users/{user_id}/ban/notes" />
+<RouteHeader method="PUT" path="/v1/admin/users/{user_id}/feature-limits" auditReason />
-Appends a note to the ban that currently stands on the account. Requires `user:temp_ban`. The ban entry and earlier notes are never changed.
+Records an enforcement decision that limits one feature, applies its account flag and returns the resulting account. Requires `user:update:flags`. The `X-Audit-Log-Reason` header is required and becomes the first note on the decision. The [feature limits](/admin-api/enforcement/#feature-limits) table lists the flag and the reason codes of each limit.
### Path parameters
@@ -1519,23 +1621,33 @@ Appends a note to the ban that currently stands on the account. Requires `user:t
| Field | Type | Description |
| --- | --- | --- |
-| ban_audit_log_id<sup>1</sup> | snowflake | The ID of the `temp_ban` audit entry of the current ban |
-| note | string | The note (1-512 characters) |
+| limit | string | `direct_messages`, `reports` or `purchases` |
+| ends_at?<sup>1</sup> | ISO8601 timestamp | When a reports limit ends |
+| decision<sup>2</sup> | [enforcement decision input](/admin-api/enforcement/#enforcement-decision-input) object | Why the feature is limited |
-<sup>1</sup> The entry must target this account, and its `banned_until` metadata must equal the current `temp_banned_until`
+<sup>1</sup> Reports only, at most 365 days away, and 90 days from now when omitted. Any other limit refuses it with `ENFORCEMENT_LIMIT_END_INVALID`
+
+<sup>2</sup> A reason code that does not allow the limit fails with `ENFORCEMENT_LIMIT_NOT_ALLOWED`, and one that allows no feature limit at all with `ENFORCEMENT_KIND_NOT_ALLOWED`
+
+### Response body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| user | [Admin user](#admin-user-object) object | The resulting account |
### Response
| Status | Body | Condition |
| --- | --- | --- |
-| 204 | none | The note was recorded |
-| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, because `ban_audit_log_id` does not name a ban of this account |
+| 200 | response body | The limit was recorded |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, with one of the [validation codes](/admin-api/enforcement/#validation) |
| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
-| 409 | [error response](/admin-api/#error-response) | `CONFLICT`, because the named ban is no longer the current ban |
### Side effects
-The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `annotate_ban`, target type `user`, the note as `audit_log_reason`, and a metadata key `ban_audit_log_id`. The `X-Audit-Log-Reason` header is not read.
+The decision is stored first and the flag is then added. Linked reports are resolved, and the notice is sent by email and system DM.
+
+[User Update](/gateway/events/#user-update) is emitted to the account's own sessions. The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `limit_features`, target type `user`, and the metadata keys `limit`, `decision_id`, `reason_code`, `kind` and `notice_status`, plus `ends_at` for a reports limit.
### Rate limit
@@ -1545,11 +1657,13 @@ The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-obje
<RouteHeader method="PUT" path="/v1/admin/users/{user_id}/deletion" auditReason />
-Creates an account deletion schedule and returns the resulting account. Requires `user:delete`. A pending schedule is replaced only when the request names it in `replace_pending_deletion_at`, and a schedule cannot be changed once erasure starts.
+Closes the account, schedules its deletion and returns the resulting account. Requires `user:delete`. The `basis` says why, and the [basis](/admin-api/enforcement/#basis) decides everything else. A pending schedule is replaced only when the request names it in `replace_pending_deletion_at`, and a schedule cannot be changed once erasure starts.
-Fluxer raises the submitted delay to the minimum for the [deletion reason](#deletion-reasons), so a request for one day under any reason other than `USER_REQUESTED` is stored as 60 days.
+- `enforcement` writes the decision's reason code and `DELETED`, keeps the account for at least 74 days (14 on a self-hosted instance), and sends the enforcement notice.
+- `holder_request` writes `USER_REQUESTED` and `SELF_DELETED`, keeps the account for at least 14 days, and emails that the deletion is scheduled as asked.
+- `housekeeping` writes `INACTIVITY` and `SELF_DELETED`, keeps the account for at least 14 days, and emails that the account is deleted for inactivity.
-The `X-Audit-Log-Reason` value is also stored on the account as the private deletion reason and reused as the blocklist reason for the identifier bans below.
+The 74 days of an enforcement closure outlast the 60-day appeal window, so an appeal sent on its last day can be reviewed before the account is gone. A self-hosted instance has no appeal route, so its enforcement closures keep the account for at least 14 days, as the other bases do. A deletion with `SELF_DELETED` is cancelled when the holder signs in, as a self-deletion is.
### Path parameters
@@ -1561,47 +1675,50 @@ The `X-Audit-Log-Reason` value is also stored on the account as the private dele
| Field | Type | Description |
| --- | --- | --- |
-| reason_code<sup>1</sup> | integer | [Deletion reason](#deletion-reasons) |
-| public_reason?<sup>2</sup> | string | Statement of reasons shown to the account holder (at most 512 characters) |
-| days_until_deletion?<sup>3</sup> | integer | Requested whole-day delay (1-365, default 60) |
-| replace_pending_deletion_at?<sup>4</sup> | ISO8601 timestamp | The `pending_deletion_at` of the schedule this request replaces |
-| notify_user? | boolean | Whether to email the account holder about the scheduled deletion (default true) |
+| days_until_deletion<sup>1</sup> | integer | Requested whole-day delay (1-365) |
+| basis | [basis](/admin-api/enforcement/#basis) object | Why the account is closed. The `enforcement` basis includes a `decision` |
+| replace_pending_deletion_at?<sup>2</sup> | ISO8601 timestamp | The `pending_deletion_at` of the schedule this request replaces |
+| remove_evidence?<sup>3</sup> | boolean | Remove the evidence messages after they are snapshotted |
+| block_networks?<sup>4</sup> | [network block request](#network-block-request) object | Networks the account used to block with the decision |
-<sup>1</sup> Required, and validated against the [deletion reason](#deletion-reasons) registry. `USER_REQUESTED` selects the 14-day minimum, and every other value selects the 60-day minimum
+<sup>1</sup> Raised to the minimum of the basis. There is no absolute-timestamp field
-<sup>2</sup> Stored on the account and included in the deletion email. Omitting it stores null
+<sup>2</sup> Required when the account already has a pending deletion, including one the caller scheduled. It must equal the current `pending_deletion_at`
-<sup>3</sup> The stored deadline is the request instant plus the greater of this value and the minimum for the reason code. There is no absolute-timestamp field
+<sup>3</sup> Enforcement basis only. Any other basis refuses it with `ENFORCEMENT_EVIDENCE_REQUIRED`
-<sup>4</sup> Required when the account already has a pending deletion, including one the caller scheduled. It must equal the current `pending_deletion_at`
+<sup>4</sup> Enforcement basis only. Any other basis refuses it with `ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED`. Requires `ban:ip:add` and `user:view:ip`
### Response body
| Field | Type | Description |
| --- | --- | --- |
| user | [Admin user](#admin-user-object) object | The resulting account |
+| skipped_ips | array[object] | Requested addresses that were not blocked, as on [Suspend user](#suspend-user) |
### Response
| Status | Body | Condition |
| --- | --- | --- |
| 200 | response body | The deletion schedule was stored |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, with one of the [validation codes](/admin-api/enforcement/#validation) |
| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
+| 409 | [error response](/admin-api/#error-response) | `ENFORCEMENT_DECISION_OWNS_STATE` with the `decision_id`, because a decision owns the account |
| 409 | [error response](/admin-api/#error-response) | `CONFLICT`, because a pending deletion was not named, erasure has started, or the deletion state changed |
`user:delete` also allows scheduling deletion of the acting Admin or an account with broader permissions.
### Side effects
-The account can no longer authenticate, and its existing authentication sessions and OAuth2 access and refresh tokens are deleted. The acting Admin and the time are stored as `deletion_scheduled_by` and `deletion_scheduled_at`. Erasure is scheduled for the resulting deadline.
+The account can no longer authenticate, and its existing authentication sessions and OAuth2 access and refresh tokens are deleted. The acting Admin and the time are stored as `deletion_scheduled_by` and `deletion_scheduled_at`. Erasure is scheduled for the resulting deadline. The `X-Audit-Log-Reason` value is not stored on the account.
-Fluxer cancels a Stripe subscription on the account without proration and refunds the charge behind its latest invoice as fraudulent. When the cancellation or refund fails, Fluxer logs the failure and still keeps the deletion schedule.
+With the `enforcement` basis, the decision is recorded first and `enforcement_decision_id` is written in the same account write as the deadline. A suspension on the account is replaced and lifted in that write. When the rule of the reason code bars new accounts, which is every rule except the minimum age, Fluxer blocks the account's email address. For the reasons `SPAM`, `CHEATING_OR_EXPLOITATION`, `COORDINATED_RAIDING`, `AUTOMATION_OR_SELFBOT`, `SCAM_OR_SOCIAL_ENGINEERING`, `HARASSMENT_OR_BULLYING`, `BAN_EVASION`, `TOKEN_OR_CREDENTIAL_SCAM`, `HATE_SPEECH_OR_EXTREMIST_CONTENT`, `MALICIOUS_LINKS_OR_MALWARE`, and `IMPERSONATION_OR_FAKE_IDENTITY`, Fluxer also resolves the pending reports against the account. A pending report in the `child_safety`, `underage_user`, or `self_harm` category is left for a moderator and stays pending. These steps are best-effort and can fail without cancelling the deletion schedule. Restricted reasons cannot close an account.
-The account holder is emailed the deadline and the supplied `public_reason` when `notify_user` is true and the account has an email address. The wording depends on `reason_code`: `USER_REQUESTED` and `INACTIVITY` get a neutral notice, and every other code gets an enforcement notice. A failed email is logged and the schedule is still stored.
+A holder request or housekeeping deletion blocks nothing and resolves no reports.
-For every reason other than `USER_REQUESTED`, Fluxer also blocks the account's email address. For the reasons `SPAM`, `CHEATING_OR_EXPLOITATION`, `COORDINATED_RAIDING`, `AUTOMATION_OR_SELFBOT`, `SCAM_OR_SOCIAL_ENGINEERING`, `HARASSMENT_OR_BULLYING`, `BAN_EVASION`, `TOKEN_OR_CREDENTIAL_SCAM`, `HATE_SPEECH_OR_EXTREMIST_CONTENT`, `MALICIOUS_LINKS_OR_MALWARE`, and `IMPERSONATION_OR_FAKE_IDENTITY`, Fluxer also resolves the pending reports against the account. A pending report in the `child_safety`, `underage_user`, or `self_harm` category is left for a moderator and stays pending. Every other reason leaves all reports pending. These enforcement steps are best-effort and can fail without cancelling the deletion schedule.
+Fluxer cancels a Stripe subscription on the account without proration and refunds the charge behind its latest invoice as fraudulent. When the cancellation or refund fails, Fluxer logs the failure and still keeps the deletion schedule.
-[User Update](/gateway/events/#user-update) is emitted after the sessions have already been deleted. The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `schedule_deletion`, target type `user`, and the metadata keys `days`, `reason_code`, `pending_deletion_at`, `notify_user`, and `notification_sent`. An attempted email adds `notification_template`. A replacement adds `replaced_pending_deletion_at`, `replaced_scheduled_by`, `replaced_scheduled_at`, and `replaced_reason_code` for the schedule it replaced. The identifier bans record their own blocklist entries. For each reason that resolves reports, Fluxer also records a second entry with action `auto_resolve_reports_on_deletion`, target type `user`, and the metadata keys `outcome`, `found_count`, `resolved_count`, `failed_count`, and `notified_count`. `found_count` leaves out the reports in the three categories that stay pending. No such entry is written for any other reason. `outcome` is `completed`, `search_unavailable` when the instance has no report search backend and every report stays pending, or `enumeration_failed` when listing the pending reports failed part way and only those already found were resolved. Each resolved report sends its reporter the generic notice [Update report](/admin-api/reports/#update-report) describes, with no public comment.
+[User Update](/gateway/events/#user-update) is emitted after the sessions have already been deleted. The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `schedule_deletion`, target type `user`, and the metadata keys `basis`, `days`, `reason_code` and `pending_deletion_at`. The enforcement basis adds `decision_id`, `kind` and `notice_status`, plus `blocked_ips` and `network_blocks_until` when networks were blocked, and the other bases add `notification_sent`. A replacement adds `replaced_pending_deletion_at`, `replaced_scheduled_by`, `replaced_scheduled_at`, and `replaced_reason_code` for the schedule it replaced. The email block records its own blocklist entry. For each reason that resolves reports, Fluxer also records a second entry with action `auto_resolve_reports_on_deletion`, target type `user`, and the metadata keys `outcome`, `found_count`, `resolved_count`, `failed_count`, and `notified_count`. `found_count` leaves out the reports in the three categories that stay pending. `outcome` is `completed`, `search_unavailable` when the instance has no report search backend and every report stays pending, or `enumeration_failed` when listing the pending reports failed part way and only those already found were resolved. Each resolved report tells its reporter the `restricted` outcome [Update report](/admin-api/reports/#update-report) describes, with no public comment.
### Rate limit
@@ -1611,10 +1728,10 @@ For every reason other than `USER_REQUESTED`, Fluxer also blocks the account's e
<RouteHeader method="DELETE" path="/v1/admin/users/{user_id}/deletion" auditReason />
-Cancels the scheduled deletion named in the request and returns the resulting account. Requires `user:delete`. Erasure cannot be cancelled once it starts.
+Cancels a scheduled deletion that no enforcement decision owns, such as one the holder asked for, an inactivity deletion, or a closure from before decisions existed, and returns the resulting account. Requires `user:delete`. A closure with a decision is cancelled by [ending the decision](/admin-api/enforcement/#end-an-enforcement-decision). Erasure cannot be cancelled once it starts.
:::caution[Cancellation does not undo enforcement]
-Clearing the deadline permits the account to authenticate again, but it does not restore deleted sessions, reinstate a cancelled subscription, lift the email and IP blocklist entries the schedule wrote, or reopen the reports it resolved.
+Clearing the deadline permits the account to authenticate again, but it does not restore deleted sessions, reinstate a cancelled subscription, lift the email and IP blocklist entries an older closure wrote, or reopen the reports it resolved.
:::
### Path parameters
@@ -1628,7 +1745,6 @@ Clearing the deadline permits the account to authenticate again, but it does not
| Field | Type | Description |
| --- | --- | --- |
| expected_pending_deletion_at<sup>1</sup> | ISO8601 timestamp | The `pending_deletion_at` of the deletion being cancelled |
-| notify_user? | boolean | Whether to email the account holder (default false) |
<sup>1</sup> Required. It must equal the current `pending_deletion_at`, so a cancel written against one schedule never clears a different one
@@ -1645,15 +1761,16 @@ Clearing the deadline permits the account to authenticate again, but it does not
| 200 | response body | The deletion was cancelled |
| 400 | [error response](/admin-api/#error-response) | `NO_PENDING_DELETION`, because no deletion is scheduled |
| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the account does not exist |
+| 409 | [error response](/admin-api/#error-response) | `ENFORCEMENT_DECISION_OWNS_STATE` with the `decision_id`, because a decision owns the deletion |
| 409 | [error response](/admin-api/#error-response) | `CONFLICT`, because a different deletion is pending, erasure has started, or the deletion state changed |
### Side effects
The deletion schedule, its reasons, and the recorded scheduler are cleared, allowing the account to authenticate again unless another restriction applies.
-When `notify_user` is true and the account has an email address, Fluxer emails the account holder. The email never includes the `X-Audit-Log-Reason` value.
+When the account has an email address, Fluxer always emails the holder. A deletion with an enforcement reason code, which only a closure from before decisions can have here, sends the notice that the restriction ended. Every other deletion sends the notice that the deletion was cancelled. The email never includes the `X-Audit-Log-Reason` value.
-[User Update](/gateway/events/#user-update) is emitted to the account's own sessions. The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `cancel_deletion`, target type `user`, the metadata keys `cancelled_pending_deletion_at`, `cancelled_scheduled_by`, `cancelled_scheduled_at`, and `cancelled_reason_code` for the cancelled schedule, and `notify_user`.
+[User Update](/gateway/events/#user-update) is emitted to the account's own sessions. The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `cancel_deletion`, target type `user`, the metadata keys `cancelled_pending_deletion_at`, `cancelled_scheduled_by`, `cancelled_scheduled_at`, and `cancelled_reason_code` for the cancelled schedule, and `notice` naming the email that was sent.
### Rate limit
@@ -2132,7 +2249,7 @@ Counts every message attributed to the account, and queues their deletion when t
The request counts messages before responding, so accounts with more messages take longer. A misspelled `dry_run` parameter leaves the request a dry run.
-The operation does not resolve the target account, so it never answers `UNKNOWN_USER`. An ID with no matching account is accepted and matches no message.
+Only the `enforcement` basis resolves the target account, so only it answers `UNKNOWN_USER`. With another basis, or in a dry run, an ID with no matching account is accepted and matches no message.
### Path parameters
@@ -2140,6 +2257,14 @@ The operation does not resolve the target account, so it never answers `UNKNOWN_
| --- | --- | --- |
| user_id | snowflake | The ID of the message author |
+### JSON body
+
+| Field | Type | Description |
+| --- | --- | --- |
+| basis?<sup>1</sup> | [basis](/admin-api/enforcement/#basis) object | Why the messages are removed |
+
+<sup>1</sup> Required unless the request is a dry run, which ignores it. Without it a deletion fails with `MODERATION_BASIS_REQUIRED`. The `enforcement` basis records a content removal [decision](/admin-api/enforcement/) with `removed_all_messages` and sends its notice. It refuses child safety and violent extremism reasons with `ENFORCEMENT_KIND_NOT_ALLOWED`, because the messages cannot all be snapshotted first. Use [Shred user messages](#shred-user-messages) with the messages instead
+
### Query parameters
| Field | Type | Description |
@@ -2157,16 +2282,21 @@ The operation does not resolve the target account, so it never answers `UNKNOWN_
| channel_count<sup>1</sup> | integer | The number of channels the account has messages in |
| message_count | integer | The number of messages the walk matched |
| job_id?<sup>2</sup> | string | The ID of the queued shred job |
+| decision_id?<sup>3</sup> | snowflake | The content removal decision |
<sup>1</sup> Summed for each page of 200, so a channel spanning pages is counted once per page. Treat it as an upper bound
<sup>2</sup> Present only when `dry_run` resolved to false and `message_count` is above zero
+<sup>3</sup> Present only when a job was queued with the `enforcement` basis
+
### Response
| Status | Body | Condition |
| --- | --- | --- |
| 200 | response body | The count completed, and the deletion job was queued when applicable |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, because the basis is missing or the [decision](/admin-api/enforcement/#validation) is invalid |
+| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the `enforcement` basis names an account that does not exist |
:::danger[A non-dry run permanently deletes messages]
The response only confirms that the job was queued. When `dry_run` resolves to false, the background job deletes every matching message, and no operation restores them.
@@ -2176,9 +2306,9 @@ The queued job is an ordinary shred job, so its progress, totals, skips, and fai
### Side effects
-A dry run reads and counts only. A deletion run also queues one shred job with every matched message identity, and the request returns before any message is processed.
+A dry run reads and counts only. A deletion run also queues one shred job with every matched message identity, and the request returns before any message is processed. With the `enforcement` basis the decision is stored before the job is queued.
-The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with target type `message_deletion`, the target account ID as its target ID, and the metadata keys `user_id`, `channel_count`, `message_count`, and `dry_run`. The action is `delete_all_user_messages_dry_run` for a dry run and `delete_all_user_messages` otherwise. A deletion run also records the `queue_message_shred` entry described under [Shred user messages](#shred-user-messages).
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with target type `message_deletion`, the target account ID as its target ID, and the metadata keys `user_id`, `channel_count`, `message_count`, and `dry_run`. The action is `delete_all_user_messages_dry_run` for a dry run and `delete_all_user_messages` otherwise. A deletion run adds `basis`, `job_id` when a job was queued, and for the `enforcement` basis `decision_id`, `reason_code`, `kind` and `notice_status`.
### Rate limit
@@ -2190,7 +2320,7 @@ The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-obje
Queues irreversible deletion of an explicit list of message identities and returns a job ID read through [Get message shred job](/admin-api/messages/#get-message-shred-job). Requires `message:shred`.
-The operation does not resolve the target account, so it never answers `UNKNOWN_USER`.
+Only the `enforcement` basis resolves the target account, so only it answers `UNKNOWN_USER`.
### Path parameters
@@ -2203,8 +2333,11 @@ The operation does not resolve the target account, so it never answers `UNKNOWN_
| Field | Type | Description |
| --- | --- | --- |
| entries<sup>1</sup> | array[[message shred entry](#message-shred-entry-object) object] | Explicit message identities, with 1 to 1000 values |
+| basis<sup>2</sup> | [basis](/admin-api/enforcement/#basis) object | Why the messages are removed |
-<sup>1</sup> Required and non-empty. The entries are not checked against the target account at submission time
+<sup>1</sup> Required and non-empty. Without the `enforcement` basis, the entries are not checked against the target account at submission time
+
+<sup>2</sup> The `enforcement` basis records a content removal [decision](/admin-api/enforcement/) and sends its notice. The first 50 entries are its evidence, every entry for child safety and violent extremism reasons, and they are checked and snapshotted before the job is queued. Each one must exist and be the target account's own, and a message in a direct or group conversation needs a linked report that covers it. `decision.evidence` is refused with `ENFORCEMENT_EVIDENCE_NOT_ALLOWED`
### Response body
@@ -2213,14 +2346,19 @@ The operation does not resolve the target account, so it never answers `UNKNOWN_
| success | boolean | Whether the request succeeded, always true |
| job_id | string | The ID of the queued shred job |
| requested<sup>1</sup> | integer | The number of submitted entries |
+| decision_id?<sup>2</sup> | snowflake | The content removal decision |
<sup>1</sup> An upper bound on the messages the job shreds
+<sup>2</sup> Present only for the `enforcement` basis
+
### Response
| Status | Body | Condition |
| --- | --- | --- |
| 200 | response body | The shred job was queued |
+| 400 | [error response](/admin-api/#error-response) | `INVALID_FORM_BODY`, because the basis or the [decision](/admin-api/enforcement/#validation) is invalid |
+| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_USER`, because the `enforcement` basis names an account that does not exist |
:::danger[Shredding deletes messages permanently]
A shred deletes every matching message with its reactions, purges the attachments it owned, and removes it from search. Only a preceding [Create user archive](#create-user-archive) retains the original text.
@@ -2232,7 +2370,7 @@ A failed job is not retried automatically.
The request returns before any message is processed. The job checks each referenced message again before it deletes it, and skips a missing message or one no longer authored by the target account.
-The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `queue_message_shred`, target type `message_shred`, the target account ID as its target ID, and the metadata keys `user_id`, `job_id`, and `requested_entries`.
+The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-object) with action `queue_message_shred`, target type `message_shred`, the target account ID as its target ID, and the metadata keys `user_id`, `job_id`, `requested_entries` and `basis`. The `enforcement` basis adds `decision_id`, `reason_code`, `kind` and `notice_status`.
### Rate limit
diff --git a/fluxer_docs/src/content/docs/http-api/authentication.mdx b/fluxer_docs/src/content/docs/http-api/authentication.mdx
index f5a215e25..04d3ce57b 100644
--- a/fluxer_docs/src/content/docs/http-api/authentication.mdx
+++ b/fluxer_docs/src/content/docs/http-api/authentication.mdx
@@ -669,11 +669,15 @@ When the instance has disabled new-IP authorisation or sends no email, Fluxer au
Account policy can return 403 `REGISTRATION_PENDING_APPROVAL`, 403 `REGISTRATION_REJECTED`, 403 `ACCOUNT_SUSPENDED_TEMPORARILY`, or 403 `ACCOUNT_SUSPENDED_PERMANENTLY`. A bot account returns 403 `BOT_USER_AUTH_ENDPOINT_ACCESS_DENIED`.
-:::note[A verified password reactivates the account]
-On an account the user had disabled, a correct password clears the disabled state. It also cancels a self-scheduled deletion if erasure has not started. Both happen before any second factor is requested, without a separate confirmation step. Once erasure starts, login returns `ACCOUNT_SUSPENDED_PERMANENTLY`.
+A suspended or closed account gets its 403 after the last factor. Without a second factor that is the password, so login returns it. With a second factor, login returns the MFA ticket and the second factor returns the 403. Both suspension codes have the account's [enforcement notice](/http-api/errors/#supplementary-members). A suspension with no end date and a closed account return `ACCOUNT_SUSPENDED_PERMANENTLY`, and a suspension with an end date returns `ACCOUNT_SUSPENDED_TEMPORARILY`. An expired temporary suspension is cleared at the same point.
+
+:::note[Signing in reactivates the account]
+On an account the user had disabled, signing in clears the disabled state. It also cancels a self-scheduled deletion if erasure has not started. Both happen when the session is created, after any second factor, without a separate confirmation step. Once erasure starts, login returns `ACCOUNT_SUSPENDED_PERMANENTLY`.
:::
-A correct password also clears an expired temporary suspension before any second factor is requested. A live temporary or permanent administrator suspension stays in place, and the login returns its 403.
+:::note[Signing in from a blocked network]
+A [blocked network](/http-api/errors/#supplementary-members) can still reach this operation, the second factor operations, passkey sign-in and SSO, so the holder of a suspended or closed account sees its notice. Every other outcome returns the same `GLOBAL_IP_BANNED` or `GLOBAL_IP_TEMPORARILY_BANNED` body any other request from that network gets. That covers an unknown account, a wrong password, and an account that is not suspended or closed, with or without a second factor. No session, MFA ticket or IP authorisation message is created, and SSO provisions no new account.
+:::
### Response
diff --git a/fluxer_docs/src/content/docs/http-api/errors.md b/fluxer_docs/src/content/docs/http-api/errors.md
index d88ee9f32..e1ee9b401 100644
--- a/fluxer_docs/src/content/docs/http-api/errors.md
+++ b/fluxer_docs/src/content/docs/http-api/errors.md
@@ -25,10 +25,34 @@ The error code determines which supplementary members a failure has, and most co
`GLOBAL_IP_BANNED` and `GLOBAL_IP_TEMPORARILY_BANNED` have their own members:
- `ip_address` is the normalised client address.
-- `appeal_email` is the address an appeal is sent to. It is `null` on a self-hosted instance, where `message` points at the administrators of the instance and names no address.
-- `appeals_supported` is `true` for both kinds of ban.
+- `appeal_email` is the address to write to about the block. It is the appeals address when `reason` is present and the support address otherwise. It is `null` on a self-hosted instance, where `message` names no address.
+- `appeals_supported` is `true` on the hosted service and `false` on a self-hosted instance.
- `ban_kind` is `permanent` or `temporary_24h`. `temporary_24h` covers every ban that records an expiry, whatever its length.
- `expires_at` is an ISO 8601 timestamp when the ban records an expiry, and `null` otherwise, including on every permanent ban.
+- `reason` is the rule behind the block, as `title` and `url`, or `null`. It is present only when an account decision placed the block and its rule is one Fluxer names on this screen, such as spam or service abuse. Every other block, including a decision whose rule is withheld, returns a response identical to a plain block of the same kind, so `null` says nothing about why the network was blocked. `url` is `null` when the instance has no policy page for the rule.
+- `product_name` is the instance name the server uses in `message`. On a self-hosted instance with no name, or one still named Fluxer, it is the web app host name.
+
+`message` starts with the block and its end date, then tells someone on a shared network, such as a school, a workplace, public Wi-Fi, a mobile carrier or a VPN, that the block may have nothing to do with them and that switching networks is the quickest fix. `GET /.well-known/fluxer` is never blocked, so a client can still discover the instance and show this screen.
+
+A blocked network still reaches the sign-in operations: [log in with a password](/http-api/authentication/#log-in-with-a-password), the second factor operations, passkey sign-in and SSO. There the holder of a suspended or closed account gets its suspension error with the notice, and every other outcome gets this same block.
+
+`ACCOUNT_SUSPENDED_TEMPORARILY` and `ACCOUNT_SUSPENDED_PERMANENTLY` have `notice`, the enforcement notice for the account, in the request locale. It is `null` only for an account its holder deleted. Its members are:
+
+- `decision_id` is the decision reference, or `null` for a restriction from before decisions.
+- `kind` is what the decision did, `suspension` or `closure` on these codes.
+- `permanent` is `true` for a suspension with no end date.
+- `issued_at`, `ends_at` and `deletion_at` are ISO 8601 timestamps or `null`.
+- `summary` is one sentence saying what happened, and `effects` lists what the decision means for the holder.
+- `rule` is the rule broken, as `title` and `url`, or `null`.
+- `facts` is the finding first, then where and when it happened.
+- `statement` is a note from the team, or `null`.
+- `how_we_decided` lists how the case reached the team and who decided it.
+- `appeal` is `email`, `deadline` and `account_has_email`, or `null` on an instance with no appeal route. `deadline` is already formatted for the reader.
+- `redress` lists other ways to challenge the decision.
+
+A line in `effects`, `facts` or `redress` can hold a link written as a Markdown link, `[text](url)`. A client shows the text as a link to the address.
+
+An account with no email address receives its notice here. The first sign-in that shows it records it as received, and the appeal deadline counts from then.
## Validation failure codes
@@ -306,6 +330,26 @@ Channels with threads can't be converted to announcement channels
Only text and announcement channels can be converted into each other
+### `ENFORCEMENT_ACCOUNT_CLOSED`
+
+This account is closed, so it can't be suspended
+
+### `ENFORCEMENT_DECISION_ENDED`
+
+This decision has already ended
+
+### `ENFORCEMENT_DECISION_OWNS_STATE`
+
+An enforcement decision owns this restriction
+
+### `ENFORCEMENT_DECISION_REPLACED`
+
+A later decision replaced this one, so it can no longer be ended
+
+### `ENFORCEMENT_DELETION_STARTED`
+
+The deletion of this account has already started, so the decision can no longer be ended
+
### `NEW_CONVERSATIONS_LIMITED`
You can't start new conversations right now. Please try again later
@@ -472,11 +516,11 @@ Gift code is already redeemed
### `GLOBAL_IP_BANNED`
-Your IP address {ipAddress} has been permanently blocked from the {product_name} API by platform administrators
+{product_name} blocked access from this network
### `GLOBAL_IP_TEMPORARILY_BANNED`
-Your IP address {ipAddress} has been temporarily blocked from the {product_name} API
+{product_name} blocked access from this network
### `GONE`
@@ -678,6 +722,10 @@ IP authorization resend limit exceeded
This IP address cannot be added to the blocklist
+### `IP_BAN_LINKED_TO_DECISION`
+
+This network block belongs to an enforcement decision
+
### `MAX_ACTIVE_THREADS`
This community has reached its active thread limit of {count}
@@ -1158,6 +1206,10 @@ Channel wasn't found
Unknown emoji
+### `UNKNOWN_ENFORCEMENT_DECISION`
+
+Unknown enforcement decision
+
### `UNKNOWN_FAVORITE_MEME`
Unknown favorite meme
@@ -1347,10 +1399,6 @@ Attachment with ID {attachmentId} wasn't found in the message
Attachment "{filename}" must be an image file (png, jpg, jpeg, webp, or gif)
-### `AT_LEAST_ONE_ENTRY_IS_REQUIRED`
-
-At least one entry is required
-
### `AT_LEAST_ONE_RECIPIENT_REQUIRED`
At least one recipient is required
@@ -1563,6 +1611,90 @@ Embed index {embedIndex} is out of bounds (message has {embedCount, plural, one
Embed splash requires INVITE_SPLASH feature
+### `ENFORCEMENT_CONFIRMATIONS_REQUIRED`
+
+Confirm that the evidence is preserved and that any required report is filed
+
+### `ENFORCEMENT_EVIDENCE_DM_UNREPORTED`
+
+Messages in direct messages can only be used as evidence when a linked report covers that conversation
+
+### `ENFORCEMENT_EVIDENCE_NOT_ALLOWED`
+
+The messages being removed are saved as evidence, so leave out separate evidence messages
+
+### `ENFORCEMENT_EVIDENCE_NOT_FOUND`
+
+One of the evidence messages wasn't found
+
+### `ENFORCEMENT_EVIDENCE_NOT_SUBJECT`
+
+Every evidence message must be from the account or community this decision is about
+
+### `ENFORCEMENT_EVIDENCE_REQUIRED`
+
+This decision needs at least one evidence message
+
+### `ENFORCEMENT_FACTS_REQUIRED`
+
+Add an evidence message or a note to the user
+
+### `ENFORCEMENT_INTERNAL_NOTE_REQUIRED`
+
+Add an internal note in the X-Audit-Log-Reason header
+
+### `ENFORCEMENT_KIND_NOT_ALLOWED`
+
+This reason can't be used for this action
+
+### `ENFORCEMENT_LIMIT_END_INVALID`
+
+Only a reports limit has an end date, and it must be within the next 365 days
+
+### `ENFORCEMENT_LIMIT_NOT_ALLOWED`
+
+This reason can't be used for this limit
+
+### `ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED`
+
+Only a permanent suspension or a closure for a broken rule can block networks
+
+### `ENFORCEMENT_NETWORK_SHARED`
+
+Other accounts that aren't restricted were last active on this network, so it can't be blocked
+
+### `ENFORCEMENT_NETWORK_UNKNOWN`
+
+This account hasn't used this network in the last 30 days
+
+### `ENFORCEMENT_OUTCOME_NOT_ALLOWED`
+
+Only a reversal can end this kind of decision, because there is nothing to lift
+
+### `ENFORCEMENT_PERMANENT_REQUIRED`
+
+Suspensions for this reason must be permanent
+
+### `ENFORCEMENT_REPORT_MISMATCH`
+
+Every linked report must exist and be about the account or community this decision is about
+
+### `ENFORCEMENT_REPORT_REQUIRED`
+
+Link at least one report when the source is a report
+
+### `ENFORCEMENT_RIGHTS_HOLDER_NOT_ALLOWED`
+
+A rights holder can only be given for copyright decisions
+
+### `ENFORCEMENT_RIGHTS_HOLDER_REQUIRED`
+
+Copyright decisions need the rights holder or the right concerned
+
+### `ENFORCEMENT_STATEMENT_NOT_ALLOWED`
+
+Decisions for this reason can't include a note to the user
+
### `ENTRANCE_SOUND_DURATION_EXCEEDS_LIMIT`
Entrance sounds can be at most {max_ms, number}ms long
@@ -1627,6 +1759,10 @@ File index {index} exceeds the maximum allowed index of {maxIndex}
File not found
+### `FLAG_REQUIRES_ENFORCEMENT_ROUTE`
+
+This flag is part of a restriction. Change it through the suspension, deletion or feature limit routes
+
### `FORWARD_MESSAGES_CANNOT_CONTAIN_CONTENT`
Forwarded messages can't include content, embeds, attachments, or stickers
@@ -1879,6 +2015,10 @@ Message history cutoff can't be in the future
`message_ids` can't be empty
+### `MODERATION_BASIS_REQUIRED`
+
+Give a basis to delete the messages
+
### `MULTIPLE_FILES_FOR_INDEX_NOT_ALLOWED`
Multiple files for index {index} aren't allowed
@@ -2003,6 +2143,10 @@ Recipient IDs must be valid snowflakes
Referenced attachment "{filename}" wasn't found in message attachments
+### `REPORT_OUTCOME_INVALID`
+
+An actioned resolution needs an outcome other than no violation. A duplicate needs the report it repeats and takes no outcome. A no violation resolution takes no other outcome
+
### `SESSION_TIMEOUT`
Session timed out
diff --git a/fluxer_docs/src/content/docs/operator/configuration.mdx b/fluxer_docs/src/content/docs/operator/configuration.mdx
index 9f301de34..6516ccaaa 100644
--- a/fluxer_docs/src/content/docs/operator/configuration.mdx
+++ b/fluxer_docs/src/content/docs/operator/configuration.mdx
@@ -790,7 +790,7 @@ While email is on, registration checks the address domain. It has to publish an
#### `FLUXER_EMAIL_FROM_NAME`
-`.env.example` empty. The sender name. Default empty. An empty value sends mail under the instance product name, which is the name saved in the admin dashboard or else `FLUXER_APP_PRODUCT_NAME`, and a rename in the dashboard applies to the next email. A set value always wins.
+`.env.example` empty. The sender name. Default empty. An empty value sends mail under the instance product name, which is the name saved in the admin dashboard or else `FLUXER_APP_PRODUCT_NAME`, with the [self-hosted host name rule](#instance-identity-and-branding) applied, and a rename in the dashboard applies to the next email. A set value always wins.
#### `FLUXER_EMAIL_REPLY_TO_EMAIL`
@@ -1154,7 +1154,7 @@ Default `production` when `FLUXER_SELF_HOSTED` is `true`, otherwise `development
#### `FLUXER_SELF_HOSTED`
-Default `false`. The self-host switch. Compose sets `true`. It relaxes the production Postgres SSL requirement, seeds the limit tier, gates registration, donation and discovery controllers, keeps premium billing off until it is set up as [Payments](#payments) describes, turns blocklist feeds off, and keeps hosted-only artwork from `fluxer.app` out of the app, webhook avatars and link embeds.
+Default `false`. The self-host switch. Compose sets `true`. It relaxes the production Postgres SSL requirement, seeds the limit tier, gates registration, donation and discovery controllers, keeps premium billing off until it is set up as [Payments](#payments) describes, turns blocklist feeds off, keeps an account closed for a broken rule for at least 14 days instead of 74 because there is no appeal route, and keeps hosted-only artwork from `fluxer.app` out of the app, webhook avatars and link embeds.
## Feature flags and development switches
@@ -1260,6 +1260,8 @@ A brand asset on another origin than the instance needs no CSP setting. `app-pro
Default `Fluxer`. The product name clients display and the API writes in its emails and report flows.
+On a self-hosted instance, a name that is empty or `Fluxer` is replaced by the host name of the web app endpoint in everything the server writes: emails and their sender name, system messages and the name of the system user, report flows, enforcement notices, IP block errors, the name of the built-in admin application and donation checkout. Clients keep showing the saved name, except on the network blocked screen, which takes the name from the error. Set a name of your own to use it everywhere.
+
#### `FLUXER_APP_ICON_URL`
Default empty. The client icon.
@@ -1790,7 +1792,7 @@ The admin dashboard at `FLUXER_ADMIN_BASE_PATH` stores these in the database. Th
#### Instance Config, Public App Identity
-Product name, client-visible brand assets, the terms, privacy, and community guidelines links, and the setup state in the instance discovery document. No environment variable sets a legal link. On a self-hosted instance, the enforcement emails list only the terms and guidelines links set here, and the clients and report flows show no guidelines link until one is set. Its emails and its IP block errors name no contact address. They tell the reader to contact the administrators of the instance, and no setting adds an address. The emails, the report flows, the IP block errors, the title of an APNs alert that has none, and the built-in admin application use the product name set here, and a rename applies without a restart.
+Product name, client-visible brand assets, the terms, privacy, and community guidelines links, and the setup state in the instance discovery document. No environment variable sets a legal link. On a self-hosted instance, enforcement notices link a rule to the terms or guidelines page set here, without an anchor, and show the rule title alone when no page is set. The clients and report flows show no guidelines link until one is set. Self-hosted emails, enforcement notices and IP block errors name no contact address and no appeal route, and no setting adds one. The emails, the report flows, the IP block errors, the title of an APNs alert that has none, and the built-in admin application use the product name set here, with the [self-hosted host name rule](#instance-identity-and-branding), and a rename applies without a restart.
#### Instance Config, Registration Controls
diff --git a/packages/constants/src/AdminACLs.ts b/packages/constants/src/AdminACLs.ts
index 10b1faab8..f31f3734d 100644
--- a/packages/constants/src/AdminACLs.ts
+++ b/packages/constants/src/AdminACLs.ts
@@ -46,6 +46,8 @@ export const AdminACLs = {
BULK_UPDATE_USER_FLAGS: 'bulk:update:user_flags',
DISCOVERY_REMOVE: 'discovery:remove',
DISCOVERY_REVIEW: 'discovery:review',
+ ENFORCEMENT_ANNOTATE: 'enforcement:annotate',
+ ENFORCEMENT_VIEW: 'enforcement:view',
GATEWAY_MEMORY_STATS: 'gateway:memory_stats',
GATEWAY_RELOAD_ALL: 'gateway:reload_all',
GIFT_CODES_GENERATE: 'gift_codes:generate',
diff --git a/packages/constants/src/ApiErrorCodes.ts b/packages/constants/src/ApiErrorCodes.ts
index 15b2ec65e..60f963d98 100644
--- a/packages/constants/src/ApiErrorCodes.ts
+++ b/packages/constants/src/ApiErrorCodes.ts
@@ -67,6 +67,11 @@ export const APIErrorCodes = {
EMAIL_UNAVAILABLE_ON_INSTANCE: 'EMAIL_UNAVAILABLE_ON_INSTANCE',
EMAIL_VERIFICATION_REQUIRED: 'EMAIL_VERIFICATION_REQUIRED',
DIRECT_MESSAGE_EMAIL_VERIFICATION_REQUIRED: 'DIRECT_MESSAGE_EMAIL_VERIFICATION_REQUIRED',
+ ENFORCEMENT_ACCOUNT_CLOSED: 'ENFORCEMENT_ACCOUNT_CLOSED',
+ ENFORCEMENT_DECISION_ENDED: 'ENFORCEMENT_DECISION_ENDED',
+ ENFORCEMENT_DECISION_OWNS_STATE: 'ENFORCEMENT_DECISION_OWNS_STATE',
+ ENFORCEMENT_DECISION_REPLACED: 'ENFORCEMENT_DECISION_REPLACED',
+ ENFORCEMENT_DELETION_STARTED: 'ENFORCEMENT_DELETION_STARTED',
FOLLOW_TARGET_CONTENT_WARNING_REQUIRED: 'FOLLOW_TARGET_CONTENT_WARNING_REQUIRED',
FOLLOW_TARGET_NOT_AGE_RESTRICTED: 'FOLLOW_TARGET_NOT_AGE_RESTRICTED',
FRIEND_REQUEST_EMAIL_VERIFICATION_REQUIRED: 'FRIEND_REQUEST_EMAIL_VERIFICATION_REQUIRED',
@@ -144,6 +149,7 @@ export const APIErrorCodes = {
GLOBAL_IP_BANNED: 'GLOBAL_IP_BANNED',
GLOBAL_IP_TEMPORARILY_BANNED: 'GLOBAL_IP_TEMPORARILY_BANNED',
IP_BAN_DECLINED: 'IP_BAN_DECLINED',
+ IP_BAN_LINKED_TO_DECISION: 'IP_BAN_LINKED_TO_DECISION',
MAX_APPLICATIONS: 'MAX_APPLICATIONS',
MAX_BOOKMARKS: 'MAX_BOOKMARKS',
MAX_ACTIVE_THREADS: 'MAX_ACTIVE_THREADS',
@@ -258,6 +264,7 @@ export const APIErrorCodes = {
UNCLAIMED_ACCOUNT_CANNOT_SUBMIT_REPORTS: 'UNCLAIMED_ACCOUNT_CANNOT_SUBMIT_REPORTS',
UNKNOWN_CHANNEL: 'UNKNOWN_CHANNEL',
UNKNOWN_EMOJI: 'UNKNOWN_EMOJI',
+ UNKNOWN_ENFORCEMENT_DECISION: 'UNKNOWN_ENFORCEMENT_DECISION',
UNKNOWN_FAVORITE_MEME: 'UNKNOWN_FAVORITE_MEME',
UNKNOWN_FORUM_TAG: 'UNKNOWN_FORUM_TAG',
UNKNOWN_GIFT_CODE: 'UNKNOWN_GIFT_CODE',
diff --git a/packages/constants/src/Core.ts b/packages/constants/src/Core.ts
index f4172fd66..d2c9fdae6 100644
--- a/packages/constants/src/Core.ts
+++ b/packages/constants/src/Core.ts
@@ -27,4 +27,13 @@ export const DeletionReasons = {
HATE_SPEECH_OR_EXTREMIST_CONTENT: 20,
MALICIOUS_LINKS_OR_MALWARE: 21,
IMPERSONATION_OR_FAKE_IDENTITY: 22,
+ THREATS_OR_VIOLENT_SPEECH: 23,
+ VIOLENT_EXTREMISM: 24,
+ SELF_HARM_PROMOTION: 25,
+ SEXUAL_CONTENT_PLACEMENT: 26,
+ ILLEGAL_GOODS_OR_ACTIVITY: 27,
+ HARMFUL_DECEPTION: 28,
+ REPORTING_ABUSE: 29,
+ UNDERAGE_ACCOUNT: 30,
+ COPYRIGHT: 31,
} as const;
diff --git a/packages/constants/src/EnforcementReasons.test.ts b/packages/constants/src/EnforcementReasons.test.ts
new file mode 100644
index 000000000..a9230733c
--- /dev/null
+++ b/packages/constants/src/EnforcementReasons.test.ts
@@ -0,0 +1,170 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {
+ ACCOUNT_DELETION_MIN_DAYS,
+ ENFORCEMENT_APPEAL_WINDOW_DAYS,
+ ENFORCEMENT_CLOSURE_MIN_DAYS,
+ ENFORCEMENT_REASONS,
+ ENFORCEMENT_RULES,
+ type EnforcementKind,
+ type EnforcementLimit,
+ type EnforcementReasonCode,
+ isEnforcementKindAllowed,
+ isEnforcementLimitAllowed,
+} from '@fluxer/constants/src/EnforcementReasons';
+import {describe, expect, it} from 'vitest';
+
+const ALL_KINDS: ReadonlyArray<EnforcementKind> = [
+ 'warning',
+ 'suspension',
+ 'closure',
+ 'feature_limit',
+ 'content_removal',
+ 'profile_reset',
+ 'community_removal',
+];
+
+const ALL_LIMITS: ReadonlyArray<EnforcementLimit> = ['direct_messages', 'reports', 'purchases'];
+
+const RULE_TABLE = [
+ ['spam', 'guidelines', '6-spam-and-service-abuse', true, true],
+ ['service_abuse', 'guidelines', '6-spam-and-service-abuse', true, true],
+ ['raids', 'guidelines', '1-harassment-threats-and-privacy', true, true],
+ ['automation', 'guidelines', '6-spam-and-service-abuse', true, true],
+ ['intimate_images', 'guidelines', '1-harassment-threats-and-privacy', true, false],
+ ['fraud', 'guidelines', '5-illegal-and-dangerous-activity', true, false],
+ ['child_safety', 'guidelines', '4-sexual-content-and-protection-of-minors', true, false],
+ ['privacy', 'guidelines', '1-harassment-threats-and-privacy', true, false],
+ ['harassment', 'guidelines', '1-harassment-threats-and-privacy', true, false],
+ ['payments', 'terms', '4-4-failed-payments-and-disputes', true, false],
+ ['unwanted_sexual_content', 'guidelines', '1-harassment-threats-and-privacy', true, false],
+ ['violent_content', 'guidelines', '3-violence-extremism-and-self-harm', true, true],
+ ['ban_evasion', 'guidelines', '6-spam-and-service-abuse', true, false],
+ ['hate', 'guidelines', '2-hate-and-discrimination', true, false],
+ ['malware', 'guidelines', '5-illegal-and-dangerous-activity', true, false],
+ ['impersonation', 'guidelines', '6-spam-and-service-abuse', true, true],
+ ['threats', 'guidelines', '1-harassment-threats-and-privacy', true, false],
+ ['violent_extremism', 'guidelines', '3-violence-extremism-and-self-harm', true, false],
+ ['self_harm', 'guidelines', '3-violence-extremism-and-self-harm', true, false],
+ ['adult_content', 'guidelines', '4-sexual-content-and-protection-of-minors', true, true],
+ ['illegal_activity', 'guidelines', '5-illegal-and-dangerous-activity', true, false],
+ ['harmful_deception', 'guidelines', '7-harmful-deception-and-manipulated-media', true, false],
+ ['report_abuse', 'guidelines', '8-reporting', true, true],
+ ['age_requirement', 'terms', '1-agreement-and-eligibility', false, false],
+ ['copyright', 'terms', '3-4-copyright', true, true],
+] as const;
+
+const CODE_TABLE = [
+ [3, 'spam', 'standard', 'any'],
+ [4, 'service_abuse', 'standard', 'any'],
+ [5, 'raids', 'standard', 'any'],
+ [6, 'automation', 'standard', 'any'],
+ [7, 'intimate_images', 'protected', 'any'],
+ [8, 'fraud', 'standard', 'any'],
+ [9, 'child_safety', 'restricted', ['suspension', 'content_removal']],
+ [10, 'privacy', 'protected', 'any'],
+ [11, 'harassment', 'protected', 'any'],
+ [12, 'payments', 'standard', ['warning', 'suspension', 'closure', 'feature_limit']],
+ [13, 'child_safety', 'restricted', ['suspension', 'content_removal']],
+ [14, 'payments', 'standard', ['warning', 'suspension', 'closure', 'feature_limit']],
+ [15, 'unwanted_sexual_content', 'protected', 'any'],
+ [16, 'violent_content', 'standard', 'any'],
+ [17, 'ban_evasion', 'standard', ['warning', 'suspension', 'closure']],
+ [18, 'fraud', 'standard', 'any'],
+ [20, 'hate', 'standard', 'any'],
+ [21, 'malware', 'standard', 'any'],
+ [22, 'impersonation', 'standard', 'any'],
+ [23, 'threats', 'protected', 'any'],
+ [24, 'violent_extremism', 'restricted', ['suspension', 'content_removal']],
+ [25, 'self_harm', 'standard', ['warning', 'suspension', 'content_removal', 'profile_reset', 'community_removal']],
+ [26, 'adult_content', 'standard', 'any'],
+ [27, 'illegal_activity', 'standard', 'any'],
+ [28, 'harmful_deception', 'standard', 'any'],
+ [29, 'report_abuse', 'standard', ['warning', 'feature_limit', 'suspension']],
+ [30, 'age_requirement', 'standard', ['closure']],
+ [31, 'copyright', 'standard', ['warning', 'content_removal', 'profile_reset', 'community_removal']],
+] as const;
+
+const LIMIT_TABLE: ReadonlyArray<readonly [EnforcementLimit, ReadonlyArray<number>]> = [
+ ['direct_messages', [3, 6, 8, 18, 21]],
+ ['reports', [29]],
+ ['purchases', [12, 14]],
+];
+
+const enforcementCodes = Object.keys(ENFORCEMENT_REASONS).map(Number) as Array<EnforcementReasonCode>;
+
+describe('ENFORCEMENT_REASONS', () => {
+ it('classifies every deletion reason except the three non-enforcement codes', () => {
+ const expected = Object.values(DeletionReasons).filter(
+ (code) =>
+ code !== DeletionReasons.USER_REQUESTED &&
+ code !== DeletionReasons.OTHER &&
+ code !== DeletionReasons.INACTIVITY,
+ );
+ expect(enforcementCodes.sort((a, b) => a - b)).toEqual(expected.sort((a, b) => a - b));
+ });
+
+ it('matches the code table', () => {
+ expect(
+ Object.entries(ENFORCEMENT_REASONS).map(([code, reason]) => [
+ Number(code),
+ reason.rule,
+ reason.handling,
+ reason.kinds,
+ ]),
+ ).toEqual(CODE_TABLE);
+ });
+
+ it('only names rules that exist', () => {
+ for (const reason of Object.values(ENFORCEMENT_REASONS)) {
+ expect(ENFORCEMENT_RULES).toHaveProperty(reason.rule);
+ }
+ });
+
+ it('limits restricted codes to permanent suspension and content removal', () => {
+ for (const code of enforcementCodes) {
+ if (ENFORCEMENT_REASONS[code].handling !== 'restricted') continue;
+ expect(ALL_KINDS.filter((kind) => isEnforcementKindAllowed(code, kind))).toEqual([
+ 'suspension',
+ 'content_removal',
+ ]);
+ }
+ });
+});
+
+describe('ENFORCEMENT_RULES', () => {
+ it('pins policy anchors, the new account bar and network screen visibility', () => {
+ expect(
+ Object.entries(ENFORCEMENT_RULES).map(([key, rule]) => [
+ key,
+ rule.policy,
+ rule.anchor,
+ rule.barsNewAccounts,
+ rule.showOnNetworkScreen,
+ ]),
+ ).toEqual(RULE_TABLE);
+ });
+});
+
+describe('enforcement limits', () => {
+ it.each(LIMIT_TABLE)('allows %s only for its codes', (limit, codes) => {
+ expect(enforcementCodes.filter((code) => isEnforcementLimitAllowed(code, limit))).toEqual(codes);
+ });
+
+ it('allows a feature limit only where some limit applies', () => {
+ const withFeatureLimit = enforcementCodes.filter((code) => isEnforcementKindAllowed(code, 'feature_limit'));
+ const withAnyLimit = enforcementCodes.filter((code) =>
+ ALL_LIMITS.some((limit) => isEnforcementLimitAllowed(code, limit)),
+ );
+ expect(withFeatureLimit).toEqual(withAnyLimit);
+ });
+});
+
+describe('enforcement windows', () => {
+ it('keeps closures open past the appeal window', () => {
+ expect(ACCOUNT_DELETION_MIN_DAYS).toBe(14);
+ expect(ENFORCEMENT_APPEAL_WINDOW_DAYS).toBe(60);
+ expect(ENFORCEMENT_CLOSURE_MIN_DAYS).toBe(ENFORCEMENT_APPEAL_WINDOW_DAYS + ACCOUNT_DELETION_MIN_DAYS);
+ });
+});
diff --git a/packages/constants/src/EnforcementReasons.ts b/packages/constants/src/EnforcementReasons.ts
new file mode 100644
index 000000000..91d912ff5
--- /dev/null
+++ b/packages/constants/src/EnforcementReasons.ts
@@ -0,0 +1,207 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import type {ValueOf} from '@fluxer/constants/src/ValueOf';
+
+export type EnforcementRuleKey =
+ | 'spam'
+ | 'service_abuse'
+ | 'raids'
+ | 'automation'
+ | 'intimate_images'
+ | 'fraud'
+ | 'child_safety'
+ | 'privacy'
+ | 'harassment'
+ | 'payments'
+ | 'unwanted_sexual_content'
+ | 'violent_content'
+ | 'ban_evasion'
+ | 'hate'
+ | 'malware'
+ | 'impersonation'
+ | 'threats'
+ | 'violent_extremism'
+ | 'self_harm'
+ | 'adult_content'
+ | 'illegal_activity'
+ | 'harmful_deception'
+ | 'report_abuse'
+ | 'age_requirement'
+ | 'copyright';
+
+type EnforcementHandling = 'standard' | 'protected' | 'restricted';
+
+export type EnforcementKind =
+ | 'warning'
+ | 'suspension'
+ | 'closure'
+ | 'feature_limit'
+ | 'content_removal'
+ | 'profile_reset'
+ | 'community_removal';
+
+export type EnforcementLimit = 'direct_messages' | 'reports' | 'purchases';
+
+export type EnforcementReasonCode = Exclude<
+ ValueOf<typeof DeletionReasons>,
+ typeof DeletionReasons.USER_REQUESTED | typeof DeletionReasons.OTHER | typeof DeletionReasons.INACTIVITY
+>;
+
+interface EnforcementRule {
+ policy: 'guidelines' | 'terms';
+ anchor: string;
+ barsNewAccounts: boolean;
+ showOnNetworkScreen: boolean;
+}
+
+interface EnforcementReason {
+ rule: EnforcementRuleKey;
+ handling: EnforcementHandling;
+ kinds: ReadonlyArray<EnforcementKind> | 'any';
+}
+
+export const ACCOUNT_DELETION_MIN_DAYS = 14;
+export const ENFORCEMENT_APPEAL_WINDOW_DAYS = 60;
+export const ENFORCEMENT_CLOSURE_MIN_DAYS = ENFORCEMENT_APPEAL_WINDOW_DAYS + ACCOUNT_DELETION_MIN_DAYS;
+
+const HARASSMENT_ANCHOR = '1-harassment-threats-and-privacy';
+const VIOLENCE_ANCHOR = '3-violence-extremism-and-self-harm';
+const SEXUAL_CONTENT_ANCHOR = '4-sexual-content-and-protection-of-minors';
+const ILLEGAL_ACTIVITY_ANCHOR = '5-illegal-and-dangerous-activity';
+const SERVICE_ABUSE_ANCHOR = '6-spam-and-service-abuse';
+
+function guidelinesRule(anchor: string, showOnNetworkScreen: boolean): EnforcementRule {
+ return {policy: 'guidelines', anchor, barsNewAccounts: true, showOnNetworkScreen};
+}
+
+export const ENFORCEMENT_RULES: Readonly<Record<EnforcementRuleKey, EnforcementRule>> = {
+ spam: guidelinesRule(SERVICE_ABUSE_ANCHOR, true),
+ service_abuse: guidelinesRule(SERVICE_ABUSE_ANCHOR, true),
+ raids: guidelinesRule(HARASSMENT_ANCHOR, true),
+ automation: guidelinesRule(SERVICE_ABUSE_ANCHOR, true),
+ intimate_images: guidelinesRule(HARASSMENT_ANCHOR, false),
+ fraud: guidelinesRule(ILLEGAL_ACTIVITY_ANCHOR, false),
+ child_safety: guidelinesRule(SEXUAL_CONTENT_ANCHOR, false),
+ privacy: guidelinesRule(HARASSMENT_ANCHOR, false),
+ harassment: guidelinesRule(HARASSMENT_ANCHOR, false),
+ payments: {
+ policy: 'terms',
+ anchor: '4-4-failed-payments-and-disputes',
+ barsNewAccounts: true,
+ showOnNetworkScreen: false,
+ },
+ unwanted_sexual_content: guidelinesRule(HARASSMENT_ANCHOR, false),
+ violent_content: guidelinesRule(VIOLENCE_ANCHOR, true),
+ ban_evasion: guidelinesRule(SERVICE_ABUSE_ANCHOR, false),
+ hate: guidelinesRule('2-hate-and-discrimination', false),
+ malware: guidelinesRule(ILLEGAL_ACTIVITY_ANCHOR, false),
+ impersonation: guidelinesRule(SERVICE_ABUSE_ANCHOR, true),
+ threats: guidelinesRule(HARASSMENT_ANCHOR, false),
+ violent_extremism: guidelinesRule(VIOLENCE_ANCHOR, false),
+ self_harm: guidelinesRule(VIOLENCE_ANCHOR, false),
+ adult_content: guidelinesRule(SEXUAL_CONTENT_ANCHOR, true),
+ illegal_activity: guidelinesRule(ILLEGAL_ACTIVITY_ANCHOR, false),
+ harmful_deception: guidelinesRule('7-harmful-deception-and-manipulated-media', false),
+ report_abuse: guidelinesRule('8-reporting', true),
+ age_requirement: {
+ policy: 'terms',
+ anchor: '1-agreement-and-eligibility',
+ barsNewAccounts: false,
+ showOnNetworkScreen: false,
+ },
+ copyright: {policy: 'terms', anchor: '3-4-copyright', barsNewAccounts: true, showOnNetworkScreen: true},
+};
+
+const RESTRICTED_KINDS: ReadonlyArray<EnforcementKind> = ['suspension', 'content_removal'];
+const PAYMENT_KINDS: ReadonlyArray<EnforcementKind> = ['warning', 'suspension', 'closure', 'feature_limit'];
+
+export const ENFORCEMENT_REASONS: Readonly<Record<EnforcementReasonCode, EnforcementReason>> = {
+ [DeletionReasons.SPAM]: {rule: 'spam', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.CHEATING_OR_EXPLOITATION]: {rule: 'service_abuse', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.COORDINATED_RAIDING]: {rule: 'raids', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.AUTOMATION_OR_SELFBOT]: {rule: 'automation', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.NONCONSENSUAL_SEXUAL_CONTENT]: {rule: 'intimate_images', handling: 'protected', kinds: 'any'},
+ [DeletionReasons.SCAM_OR_SOCIAL_ENGINEERING]: {rule: 'fraud', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.CHILD_SEXUAL_CONTENT]: {rule: 'child_safety', handling: 'restricted', kinds: RESTRICTED_KINDS},
+ [DeletionReasons.PRIVACY_VIOLATION_OR_DOXXING]: {rule: 'privacy', handling: 'protected', kinds: 'any'},
+ [DeletionReasons.HARASSMENT_OR_BULLYING]: {rule: 'harassment', handling: 'protected', kinds: 'any'},
+ [DeletionReasons.PAYMENT_FRAUD]: {rule: 'payments', handling: 'standard', kinds: PAYMENT_KINDS},
+ [DeletionReasons.CHILD_SAFETY_VIOLATION]: {rule: 'child_safety', handling: 'restricted', kinds: RESTRICTED_KINDS},
+ [DeletionReasons.BILLING_DISPUTE_OR_ABUSE]: {rule: 'payments', handling: 'standard', kinds: PAYMENT_KINDS},
+ [DeletionReasons.UNSOLICITED_EXPLICIT_CONTENT]: {
+ rule: 'unwanted_sexual_content',
+ handling: 'protected',
+ kinds: 'any',
+ },
+ [DeletionReasons.GRAPHIC_VIOLENCE]: {rule: 'violent_content', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.BAN_EVASION]: {
+ rule: 'ban_evasion',
+ handling: 'standard',
+ kinds: ['warning', 'suspension', 'closure'],
+ },
+ [DeletionReasons.TOKEN_OR_CREDENTIAL_SCAM]: {rule: 'fraud', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.HATE_SPEECH_OR_EXTREMIST_CONTENT]: {rule: 'hate', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.MALICIOUS_LINKS_OR_MALWARE]: {rule: 'malware', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.IMPERSONATION_OR_FAKE_IDENTITY]: {rule: 'impersonation', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.THREATS_OR_VIOLENT_SPEECH]: {rule: 'threats', handling: 'protected', kinds: 'any'},
+ [DeletionReasons.VIOLENT_EXTREMISM]: {rule: 'violent_extremism', handling: 'restricted', kinds: RESTRICTED_KINDS},
+ [DeletionReasons.SELF_HARM_PROMOTION]: {
+ rule: 'self_harm',
+ handling: 'standard',
+ kinds: ['warning', 'suspension', 'content_removal', 'profile_reset', 'community_removal'],
+ },
+ [DeletionReasons.SEXUAL_CONTENT_PLACEMENT]: {rule: 'adult_content', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.ILLEGAL_GOODS_OR_ACTIVITY]: {rule: 'illegal_activity', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.HARMFUL_DECEPTION]: {rule: 'harmful_deception', handling: 'standard', kinds: 'any'},
+ [DeletionReasons.REPORTING_ABUSE]: {
+ rule: 'report_abuse',
+ handling: 'standard',
+ kinds: ['warning', 'feature_limit', 'suspension'],
+ },
+ [DeletionReasons.UNDERAGE_ACCOUNT]: {rule: 'age_requirement', handling: 'standard', kinds: ['closure']},
+ [DeletionReasons.COPYRIGHT]: {
+ rule: 'copyright',
+ handling: 'standard',
+ kinds: ['warning', 'content_removal', 'profile_reset', 'community_removal'],
+ },
+};
+
+const ENFORCEMENT_SPAMMER_LIMIT_RULES: ReadonlySet<EnforcementRuleKey> = new Set([
+ 'spam',
+ 'automation',
+ 'fraud',
+ 'malware',
+]);
+
+const ENFORCEMENT_LIMIT_RULES: Readonly<Record<EnforcementLimit, ReadonlySet<EnforcementRuleKey>>> = {
+ direct_messages: ENFORCEMENT_SPAMMER_LIMIT_RULES,
+ reports: new Set(['report_abuse']),
+ purchases: new Set(['payments']),
+};
+
+const ACCOUNT_KINDS: ReadonlySet<EnforcementKind> = new Set(['suspension', 'closure']);
+
+export function isAccountKind(kind: EnforcementKind): boolean {
+ return ACCOUNT_KINDS.has(kind);
+}
+
+export function isEnforcementReasonCode(code: number | null | undefined): code is EnforcementReasonCode {
+ return code !== null && code !== undefined && Object.hasOwn(ENFORCEMENT_REASONS, code);
+}
+
+export function enforcementReasonOf(code: number | null | undefined): EnforcementReason | null {
+ return isEnforcementReasonCode(code) ? ENFORCEMENT_REASONS[code] : null;
+}
+
+const ENFORCEMENT_LIMITS = Object.keys(ENFORCEMENT_LIMIT_RULES) as ReadonlyArray<EnforcementLimit>;
+
+export function isEnforcementLimitAllowed(code: EnforcementReasonCode, limit: EnforcementLimit): boolean {
+ return ENFORCEMENT_LIMIT_RULES[limit].has(ENFORCEMENT_REASONS[code].rule);
+}
+
+export function isEnforcementKindAllowed(code: EnforcementReasonCode, kind: EnforcementKind): boolean {
+ const {kinds} = ENFORCEMENT_REASONS[code];
+ if (kinds !== 'any' && !kinds.includes(kind)) return false;
+ return kind !== 'feature_limit' || ENFORCEMENT_LIMITS.some((limit) => isEnforcementLimitAllowed(code, limit));
+}
diff --git a/packages/constants/src/ValidationErrorCodes.ts b/packages/constants/src/ValidationErrorCodes.ts
index 6f7c38425..ac62f2d10 100644
--- a/packages/constants/src/ValidationErrorCodes.ts
+++ b/packages/constants/src/ValidationErrorCodes.ts
@@ -10,7 +10,6 @@ export const ValidationErrorCodes = {
ALL_CHANNELS_MUST_BELONG_TO_GUILD: 'ALL_CHANNELS_MUST_BELONG_TO_GUILD',
ANIMATED_AVATARS_REQUIRE_PREMIUM: 'ANIMATED_AVATARS_REQUIRE_PREMIUM',
ANIMATED_GUILD_BANNER_REQUIRES_FEATURE: 'ANIMATED_GUILD_BANNER_REQUIRES_FEATURE',
- AT_LEAST_ONE_ENTRY_IS_REQUIRED: 'AT_LEAST_ONE_ENTRY_IS_REQUIRED',
AT_LEAST_ONE_RECIPIENT_REQUIRED: 'AT_LEAST_ONE_RECIPIENT_REQUIRED',
ATTACHMENT_ID_NOT_FOUND_IN_MESSAGE: 'ATTACHMENT_ID_NOT_FOUND_IN_MESSAGE',
ATTACHMENT_MUST_BE_IMAGE: 'ATTACHMENT_MUST_BE_IMAGE',
@@ -72,6 +71,27 @@ export const ValidationErrorCodes = {
EMAIL_TOKEN_EXPIRED: 'EMAIL_TOKEN_EXPIRED',
EMAIL_DOMAIN_CANNOT_RECEIVE_MAIL: 'EMAIL_DOMAIN_CANNOT_RECEIVE_MAIL',
EMAIL_DOMAIN_NOT_ALLOWED_FOR_SSO: 'EMAIL_DOMAIN_NOT_ALLOWED_FOR_SSO',
+ ENFORCEMENT_CONFIRMATIONS_REQUIRED: 'ENFORCEMENT_CONFIRMATIONS_REQUIRED',
+ ENFORCEMENT_EVIDENCE_DM_UNREPORTED: 'ENFORCEMENT_EVIDENCE_DM_UNREPORTED',
+ ENFORCEMENT_EVIDENCE_NOT_ALLOWED: 'ENFORCEMENT_EVIDENCE_NOT_ALLOWED',
+ ENFORCEMENT_EVIDENCE_NOT_FOUND: 'ENFORCEMENT_EVIDENCE_NOT_FOUND',
+ ENFORCEMENT_EVIDENCE_NOT_SUBJECT: 'ENFORCEMENT_EVIDENCE_NOT_SUBJECT',
+ ENFORCEMENT_EVIDENCE_REQUIRED: 'ENFORCEMENT_EVIDENCE_REQUIRED',
+ ENFORCEMENT_FACTS_REQUIRED: 'ENFORCEMENT_FACTS_REQUIRED',
+ ENFORCEMENT_INTERNAL_NOTE_REQUIRED: 'ENFORCEMENT_INTERNAL_NOTE_REQUIRED',
+ ENFORCEMENT_KIND_NOT_ALLOWED: 'ENFORCEMENT_KIND_NOT_ALLOWED',
+ ENFORCEMENT_LIMIT_END_INVALID: 'ENFORCEMENT_LIMIT_END_INVALID',
+ ENFORCEMENT_LIMIT_NOT_ALLOWED: 'ENFORCEMENT_LIMIT_NOT_ALLOWED',
+ ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED: 'ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED',
+ ENFORCEMENT_NETWORK_SHARED: 'ENFORCEMENT_NETWORK_SHARED',
+ ENFORCEMENT_NETWORK_UNKNOWN: 'ENFORCEMENT_NETWORK_UNKNOWN',
+ ENFORCEMENT_OUTCOME_NOT_ALLOWED: 'ENFORCEMENT_OUTCOME_NOT_ALLOWED',
+ ENFORCEMENT_PERMANENT_REQUIRED: 'ENFORCEMENT_PERMANENT_REQUIRED',
+ ENFORCEMENT_REPORT_MISMATCH: 'ENFORCEMENT_REPORT_MISMATCH',
+ ENFORCEMENT_REPORT_REQUIRED: 'ENFORCEMENT_REPORT_REQUIRED',
+ ENFORCEMENT_RIGHTS_HOLDER_NOT_ALLOWED: 'ENFORCEMENT_RIGHTS_HOLDER_NOT_ALLOWED',
+ ENFORCEMENT_RIGHTS_HOLDER_REQUIRED: 'ENFORCEMENT_RIGHTS_HOLDER_REQUIRED',
+ ENFORCEMENT_STATEMENT_NOT_ALLOWED: 'ENFORCEMENT_STATEMENT_NOT_ALLOWED',
EMBED_INDEX_OUT_OF_BOUNDS: 'EMBED_INDEX_OUT_OF_BOUNDS',
EMBED_SPLASH_REQUIRES_FEATURE: 'EMBED_SPLASH_REQUIRES_FEATURE',
EMBEDS_EXCEED_MAX_CHARACTERS: 'EMBEDS_EXCEED_MAX_CHARACTERS',
@@ -83,6 +103,7 @@ export const ValidationErrorCodes = {
FAVORITE_MEME_NOT_FOUND: 'FAVORITE_MEME_NOT_FOUND',
FILE_INDEX_EXCEEDS_MAXIMUM: 'FILE_INDEX_EXCEEDS_MAXIMUM',
FILE_NOT_FOUND: 'FILE_NOT_FOUND',
+ FLAG_REQUIRES_ENFORCEMENT_ROUTE: 'FLAG_REQUIRES_ENFORCEMENT_ROUTE',
FILENAME_LENGTH_INVALID: 'FILENAME_LENGTH_INVALID',
FORWARD_MESSAGES_CANNOT_CONTAIN_CONTENT: 'FORWARD_MESSAGES_CANNOT_CONTAIN_CONTENT',
FORWARD_REFERENCE_REQUIRES_CHANNEL_AND_MESSAGE: 'FORWARD_REFERENCE_REQUIRES_CHANNEL_AND_MESSAGE',
@@ -149,6 +170,7 @@ export const ValidationErrorCodes = {
MESSAGE_IDS_CANNOT_BE_EMPTY: 'MESSAGE_IDS_CANNOT_BE_EMPTY',
MESSAGES_ARRAY_REQUIRED_AND_NOT_EMPTY: 'MESSAGES_ARRAY_REQUIRED_AND_NOT_EMPTY',
MESSAGES_WITH_SNAPSHOTS_CANNOT_BE_EDITED: 'MESSAGES_WITH_SNAPSHOTS_CANNOT_BE_EDITED',
+ MODERATION_BASIS_REQUIRED: 'MODERATION_BASIS_REQUIRED',
MULTIPLE_FILES_FOR_INDEX_NOT_ALLOWED: 'MULTIPLE_FILES_FOR_INDEX_NOT_ALLOWED',
MUST_AGREE_TO_TOS_AND_PRIVACY_POLICY: 'MUST_AGREE_TO_TOS_AND_PRIVACY_POLICY',
MUST_BE_MINIMUM_AGE: 'MUST_BE_MINIMUM_AGE',
@@ -180,6 +202,7 @@ export const ValidationErrorCodes = {
RECIPIENT_IDS_MUST_BE_STRINGS: 'RECIPIENT_IDS_MUST_BE_STRINGS',
RECIPIENT_IDS_MUST_BE_VALID_SNOWFLAKES: 'RECIPIENT_IDS_MUST_BE_VALID_SNOWFLAKES',
REFERENCED_ATTACHMENT_NOT_FOUND: 'REFERENCED_ATTACHMENT_NOT_FOUND',
+ REPORT_OUTCOME_INVALID: 'REPORT_OUTCOME_INVALID',
SESSION_TIMEOUT: 'SESSION_TIMEOUT',
SETUP_TOKEN_INVALID: 'SETUP_TOKEN_INVALID',
SETUP_TOKEN_REQUIRED: 'SETUP_TOKEN_REQUIRED',
diff --git a/packages/errors/src/domains/moderation/EnforcementAccountClosedError.ts b/packages/errors/src/domains/moderation/EnforcementAccountClosedError.ts
new file mode 100644
index 000000000..9f043423b
--- /dev/null
+++ b/packages/errors/src/domains/moderation/EnforcementAccountClosedError.ts
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {ConflictError} from '@fluxer/errors/src/domains/core/ConflictError';
+
+export class EnforcementAccountClosedError extends ConflictError {
+ constructor() {
+ super({code: APIErrorCodes.ENFORCEMENT_ACCOUNT_CLOSED});
+ }
+}
diff --git a/packages/errors/src/domains/moderation/EnforcementDecisionEndedError.ts b/packages/errors/src/domains/moderation/EnforcementDecisionEndedError.ts
new file mode 100644
index 000000000..f958daafc
--- /dev/null
+++ b/packages/errors/src/domains/moderation/EnforcementDecisionEndedError.ts
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {ConflictError} from '@fluxer/errors/src/domains/core/ConflictError';
+
+export class EnforcementDecisionEndedError extends ConflictError {
+ constructor() {
+ super({code: APIErrorCodes.ENFORCEMENT_DECISION_ENDED});
+ }
+}
diff --git a/packages/errors/src/domains/moderation/EnforcementDecisionOwnsStateError.ts b/packages/errors/src/domains/moderation/EnforcementDecisionOwnsStateError.ts
new file mode 100644
index 000000000..98be3e98a
--- /dev/null
+++ b/packages/errors/src/domains/moderation/EnforcementDecisionOwnsStateError.ts
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {ConflictError} from '@fluxer/errors/src/domains/core/ConflictError';
+
+export class EnforcementDecisionOwnsStateError extends ConflictError {
+ constructor(decisionId: bigint) {
+ super({code: APIErrorCodes.ENFORCEMENT_DECISION_OWNS_STATE, data: {decision_id: decisionId.toString()}});
+ }
+}
diff --git a/packages/errors/src/domains/moderation/EnforcementDecisionReplacedError.ts b/packages/errors/src/domains/moderation/EnforcementDecisionReplacedError.ts
new file mode 100644
index 000000000..baee51dc0
--- /dev/null
+++ b/packages/errors/src/domains/moderation/EnforcementDecisionReplacedError.ts
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {ConflictError} from '@fluxer/errors/src/domains/core/ConflictError';
+
+export class EnforcementDecisionReplacedError extends ConflictError {
+ constructor() {
+ super({code: APIErrorCodes.ENFORCEMENT_DECISION_REPLACED});
+ }
+}
diff --git a/packages/errors/src/domains/moderation/EnforcementDeletionStartedError.ts b/packages/errors/src/domains/moderation/EnforcementDeletionStartedError.ts
new file mode 100644
index 000000000..cce79b158
--- /dev/null
+++ b/packages/errors/src/domains/moderation/EnforcementDeletionStartedError.ts
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {ConflictError} from '@fluxer/errors/src/domains/core/ConflictError';
+
+export class EnforcementDeletionStartedError extends ConflictError {
+ constructor() {
+ super({code: APIErrorCodes.ENFORCEMENT_DELETION_STARTED});
+ }
+}
diff --git a/packages/errors/src/domains/moderation/IpBanLinkedToDecisionError.ts b/packages/errors/src/domains/moderation/IpBanLinkedToDecisionError.ts
new file mode 100644
index 000000000..e4469c14d
--- /dev/null
+++ b/packages/errors/src/domains/moderation/IpBanLinkedToDecisionError.ts
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {ConflictError} from '@fluxer/errors/src/domains/core/ConflictError';
+
+export class IpBanLinkedToDecisionError extends ConflictError {
+ constructor(decisionId: bigint) {
+ super({code: APIErrorCodes.IP_BAN_LINKED_TO_DECISION, data: {decision_id: decisionId.toString()}});
+ }
+}
diff --git a/packages/errors/src/domains/moderation/IpBannedError.ts b/packages/errors/src/domains/moderation/IpBannedError.ts
index f5115f102..3c9f4bb13 100644
--- a/packages/errors/src/domains/moderation/IpBannedError.ts
+++ b/packages/errors/src/domains/moderation/IpBannedError.ts
@@ -2,32 +2,39 @@
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
import {ForbiddenError} from '@fluxer/errors/src/domains/core/ForbiddenError';
-
-type GlobalIpBanKind = 'permanent' | 'temporary_24h';
+import type {NetworkBlock} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
interface IpBannedErrorOptions {
ipAddress: string;
- kind: GlobalIpBanKind;
- expiresAt?: Date | null;
+ kind: NetworkBlock['ban_kind'];
+ expiresAt: Date | null;
+ expiresAtText: string | null;
appealEmail: string | null;
+ appealsSupported: boolean;
+ reason: NetworkBlock['reason'];
productName: string;
}
export class IpBannedError extends ForbiddenError {
constructor(options: IpBannedErrorOptions) {
const isTemporary = options.kind === 'temporary_24h';
+ const data: NetworkBlock = {
+ ip_address: options.ipAddress,
+ appeal_email: options.appealEmail,
+ appeals_supported: options.appealsSupported,
+ ban_kind: options.kind,
+ expires_at: options.expiresAt?.toISOString() ?? null,
+ reason: options.reason,
+ product_name: options.productName,
+ };
super({
code: isTemporary ? APIErrorCodes.GLOBAL_IP_TEMPORARILY_BANNED : APIErrorCodes.GLOBAL_IP_BANNED,
- data: {
- ip_address: options.ipAddress,
- appeal_email: options.appealEmail,
- appeals_supported: true,
- ban_kind: options.kind,
- expires_at: options.expiresAt?.toISOString() ?? null,
- },
+ data,
messageVariables: {
ipAddress: options.ipAddress,
appealEmail: options.appealEmail,
+ expiresAt: options.expiresAtText ?? '',
+ reason: options.reason ? 'shown' : 'none',
product_name: options.productName,
},
});
diff --git a/packages/errors/src/domains/moderation/UnknownEnforcementDecisionError.ts b/packages/errors/src/domains/moderation/UnknownEnforcementDecisionError.ts
new file mode 100644
index 000000000..187d02977
--- /dev/null
+++ b/packages/errors/src/domains/moderation/UnknownEnforcementDecisionError.ts
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {NotFoundError} from '@fluxer/errors/src/domains/core/NotFoundError';
+
+export class UnknownEnforcementDecisionError extends NotFoundError {
+ constructor() {
+ super({code: APIErrorCodes.UNKNOWN_ENFORCEMENT_DECISION});
+ }
+}
diff --git a/packages/errors/src/domains/user/AccountPermanentlySuspendedError.ts b/packages/errors/src/domains/user/AccountPermanentlySuspendedError.ts
index 199039f39..feb238fef 100644
--- a/packages/errors/src/domains/user/AccountPermanentlySuspendedError.ts
+++ b/packages/errors/src/domains/user/AccountPermanentlySuspendedError.ts
@@ -2,9 +2,10 @@
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
import {ForbiddenError} from '@fluxer/errors/src/domains/core/ForbiddenError';
+import type {EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
export class AccountPermanentlySuspendedError extends ForbiddenError {
- constructor() {
- super({code: APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY});
+ constructor(notice: EnforcementNotice | null) {
+ super({code: APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY, data: {notice}});
}
}
diff --git a/packages/errors/src/domains/user/AccountTemporarilySuspendedError.ts b/packages/errors/src/domains/user/AccountTemporarilySuspendedError.ts
index 536b500d7..6b9159b8c 100644
--- a/packages/errors/src/domains/user/AccountTemporarilySuspendedError.ts
+++ b/packages/errors/src/domains/user/AccountTemporarilySuspendedError.ts
@@ -2,9 +2,10 @@
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
import {ForbiddenError} from '@fluxer/errors/src/domains/core/ForbiddenError';
+import type {EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
export class AccountTemporarilySuspendedError extends ForbiddenError {
- constructor() {
- super({code: APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY});
+ constructor(notice: EnforcementNotice) {
+ super({code: APIErrorCodes.ACCOUNT_SUSPENDED_TEMPORARILY, data: {notice}});
}
}
diff --git a/packages/errors/src/i18n/ErrorCodeMappings.ts b/packages/errors/src/i18n/ErrorCodeMappings.ts
index 741fda627..5ffa244d4 100644
--- a/packages/errors/src/i18n/ErrorCodeMappings.ts
+++ b/packages/errors/src/i18n/ErrorCodeMappings.ts
@@ -188,6 +188,7 @@ export const ErrorCodeToI18nKey = {
[APIErrorCodes.GLOBAL_IP_BANNED]: 'permissions.global_ip_banned',
[APIErrorCodes.GLOBAL_IP_TEMPORARILY_BANNED]: 'permissions.global_ip_temporarily_banned',
[APIErrorCodes.IP_BAN_DECLINED]: 'moderation_and_reports.ip_ban_declined',
+ [APIErrorCodes.IP_BAN_LINKED_TO_DECISION]: 'moderation_and_reports.ip_ban_linked_to_decision',
[APIErrorCodes.MAX_APPLICATIONS]: 'misc_limits.max_applications_reached',
[APIErrorCodes.MAX_BOOKMARKS]: 'misc_limits.max_bookmarks_reached',
[APIErrorCodes.MAX_CATEGORY_CHANNELS]: 'misc_limits.max_category_channels_reached',
@@ -535,7 +536,6 @@ export const ErrorCodeToI18nKey = {
[ValidationErrorCodes.VANITY_URL_CODE_LENGTH_INVALID]: 'vanity_urls.vanity_url_code_length_invalid',
[ValidationErrorCodes.VANITY_URL_INVALID_CHARACTERS]: 'vanity_urls.vanity_url_invalid_characters',
[ValidationErrorCodes.WEBHOOK_NAME_LENGTH_INVALID]: 'webhooks.webhook_name_length_invalid',
- [ValidationErrorCodes.AT_LEAST_ONE_ENTRY_IS_REQUIRED]: 'limits.at_least_one_entry_required',
[ValidationErrorCodes.CANNOT_PRELOAD_MORE_THAN_100_CHANNELS]: 'messages.cannot_preload_more_than_100_channels',
[ValidationErrorCodes.INTEGER_OUT_OF_INT64_RANGE]: 'limits.integer_out_of_int64_range',
[ValidationErrorCodes.INVALID_AUDIT_LOG_REASON]: 'admin_and_system.invalid_audit_log_reason',
@@ -560,6 +560,38 @@ export const ErrorCodeToI18nKey = {
[ValidationErrorCodes.TICKET_ALREADY_COMPLETED]: 'tickets.ticket_already_completed',
[ValidationErrorCodes.TIMEOUT_CANNOT_EXCEED_365_DAYS]: 'limits.timeout_cannot_exceed_365_days',
[ValidationErrorCodes.VALUE_MUST_BE_INTEGER_IN_RANGE]: 'limits.value_must_be_integer_in_range',
+ [APIErrorCodes.ENFORCEMENT_ACCOUNT_CLOSED]: 'admin_and_system.enforcement_account_closed',
+ [APIErrorCodes.ENFORCEMENT_DECISION_ENDED]: 'admin_and_system.enforcement_decision_ended',
+ [APIErrorCodes.ENFORCEMENT_DECISION_OWNS_STATE]: 'admin_and_system.enforcement_decision_owns_state',
+ [APIErrorCodes.ENFORCEMENT_DECISION_REPLACED]: 'admin_and_system.enforcement_decision_replaced',
+ [APIErrorCodes.ENFORCEMENT_DELETION_STARTED]: 'admin_and_system.enforcement_deletion_started',
+ [APIErrorCodes.UNKNOWN_ENFORCEMENT_DECISION]: 'moderation_and_reports.unknown_enforcement_decision',
+ [ValidationErrorCodes.ENFORCEMENT_CONFIRMATIONS_REQUIRED]: 'admin_and_system.enforcement_confirmations_required',
+ [ValidationErrorCodes.ENFORCEMENT_EVIDENCE_DM_UNREPORTED]: 'admin_and_system.enforcement_evidence_dm_unreported',
+ [ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_ALLOWED]: 'admin_and_system.enforcement_evidence_not_allowed',
+ [ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_FOUND]: 'admin_and_system.enforcement_evidence_not_found',
+ [ValidationErrorCodes.ENFORCEMENT_EVIDENCE_NOT_SUBJECT]: 'admin_and_system.enforcement_evidence_not_subject',
+ [ValidationErrorCodes.ENFORCEMENT_EVIDENCE_REQUIRED]: 'admin_and_system.enforcement_evidence_required',
+ [ValidationErrorCodes.ENFORCEMENT_FACTS_REQUIRED]: 'admin_and_system.enforcement_facts_required',
+ [ValidationErrorCodes.ENFORCEMENT_INTERNAL_NOTE_REQUIRED]: 'admin_and_system.enforcement_internal_note_required',
+ [ValidationErrorCodes.ENFORCEMENT_KIND_NOT_ALLOWED]: 'admin_and_system.enforcement_kind_not_allowed',
+ [ValidationErrorCodes.ENFORCEMENT_LIMIT_END_INVALID]: 'admin_and_system.enforcement_limit_end_invalid',
+ [ValidationErrorCodes.ENFORCEMENT_LIMIT_NOT_ALLOWED]: 'admin_and_system.enforcement_limit_not_allowed',
+ [ValidationErrorCodes.ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED]:
+ 'admin_and_system.enforcement_network_block_not_allowed',
+ [ValidationErrorCodes.ENFORCEMENT_NETWORK_SHARED]: 'admin_and_system.enforcement_network_shared',
+ [ValidationErrorCodes.ENFORCEMENT_NETWORK_UNKNOWN]: 'admin_and_system.enforcement_network_unknown',
+ [ValidationErrorCodes.FLAG_REQUIRES_ENFORCEMENT_ROUTE]: 'admin_and_system.flag_requires_enforcement_route',
+ [ValidationErrorCodes.ENFORCEMENT_OUTCOME_NOT_ALLOWED]: 'admin_and_system.enforcement_outcome_not_allowed',
+ [ValidationErrorCodes.ENFORCEMENT_PERMANENT_REQUIRED]: 'admin_and_system.enforcement_permanent_required',
+ [ValidationErrorCodes.ENFORCEMENT_REPORT_MISMATCH]: 'admin_and_system.enforcement_report_mismatch',
+ [ValidationErrorCodes.ENFORCEMENT_REPORT_REQUIRED]: 'admin_and_system.enforcement_report_required',
+ [ValidationErrorCodes.ENFORCEMENT_RIGHTS_HOLDER_NOT_ALLOWED]:
+ 'admin_and_system.enforcement_rights_holder_not_allowed',
+ [ValidationErrorCodes.ENFORCEMENT_RIGHTS_HOLDER_REQUIRED]: 'admin_and_system.enforcement_rights_holder_required',
+ [ValidationErrorCodes.ENFORCEMENT_STATEMENT_NOT_ALLOWED]: 'admin_and_system.enforcement_statement_not_allowed',
+ [ValidationErrorCodes.MODERATION_BASIS_REQUIRED]: 'admin_and_system.moderation_basis_required',
+ [ValidationErrorCodes.REPORT_OUTCOME_INVALID]: 'moderation_and_reports.report_outcome_invalid',
[APIErrorCodes.VALIDATION_ERROR]: 'http.validation_error',
[ValidationErrorCodes.ENTRANCE_SOUND_INVALID_FORMAT]: 'entrance_sounds.invalid_format',
[ValidationErrorCodes.ENTRANCE_SOUND_DURATION_EXCEEDS_LIMIT]: 'entrance_sounds.duration_exceeds_limit',
diff --git a/packages/errors/src/i18n/ErrorI18n.test.ts b/packages/errors/src/i18n/ErrorI18n.test.ts
index b9eb14496..5c3c7d1c0 100644
--- a/packages/errors/src/i18n/ErrorI18n.test.ts
+++ b/packages/errors/src/i18n/ErrorI18n.test.ts
@@ -11,23 +11,47 @@ describe('ErrorI18n', () => {
consoleWarnSpy.mockClear();
});
describe('global IP block messages', () => {
- const HOSTED = {ipAddress: '203.0.113.20', appealEmail: '[email protected]', product_name: 'Fluxer'};
- const SELF_HOSTED = {ipAddress: '203.0.113.20', appealEmail: null, product_name: 'Example Chat'};
+ const HOSTED = {
+ ipAddress: '203.0.113.20',
+ appealEmail: '[email protected]',
+ expiresAt: 'Jan 12, 2027, 9:00 AM UTC',
+ reason: 'none',
+ product_name: 'Fluxer',
+ };
+ const SELF_HOSTED = {...HOSTED, appealEmail: null, product_name: 'chat.example.org'};
+ const SHARED_NETWORK =
+ 'If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.';
it('names the instance and no mailbox in any locale when there is no appeal address', () => {
for (const locale of Object.keys(ERROR_I18N_LOCALE_MESSAGES)) {
for (const code of ['GLOBAL_IP_BANNED', 'GLOBAL_IP_TEMPORARILY_BANNED']) {
const neutral = getErrorMessageUnsafe(code, locale, SELF_HOSTED);
- expect(neutral, `${locale} ${code}`).toContain('203.0.113.20');
expect(neutral, `${locale} ${code}`).not.toMatch(/@|\bnull\b|\{/);
- expect(neutral, `${locale} ${code}`).toContain('Example Chat');
+ expect(neutral, `${locale} ${code}`).toContain('chat.example.org');
expect(neutral, `${locale} ${code}`).not.toContain('Fluxer');
const hosted = getErrorMessageUnsafe(code, locale, HOSTED);
expect(hosted, `${locale} ${code}`).toContain('[email protected]');
+ expect(hosted, `${locale} ${code}`).toContain('203.0.113.20');
expect(hosted, `${locale} ${code}`).toContain('Fluxer');
}
}
});
+
+ it('leads with the shared-network advice and never blames the reader', () => {
+ const permanent = getErrorMessageUnsafe('GLOBAL_IP_BANNED', 'en-US', HOSTED);
+ expect(permanent).toBe(
+ `Fluxer blocked access from this network. ${SHARED_NETWORK} If you think this block is a mistake, email [email protected] and include your IP address, 203.0.113.20.`,
+ );
+ expect(getErrorMessageUnsafe('GLOBAL_IP_TEMPORARILY_BANNED', 'en-US', SELF_HOSTED)).toBe(
+ `chat.example.org blocked access from this network. The block ends on Jan 12, 2027, 9:00 AM UTC. ${SHARED_NETWORK}`,
+ );
+ expect(getErrorMessageUnsafe('GLOBAL_IP_BANNED', 'en-US', {...HOSTED, reason: 'shown'})).toMatch(
+ /^Fluxer blocked access from this network because of activity that broke its rules\. /,
+ );
+ for (const message of [permanent, getErrorMessageUnsafe('GLOBAL_IP_TEMPORARILY_BANNED', 'en-US', HOSTED)]) {
+ expect(message).not.toMatch(/platform admin|sign in|\byou did\b/i);
+ }
+ });
});
describe('payment processing error', () => {
const HOSTED = {supportEmail: '[email protected]'};
diff --git a/packages/errors/src/i18n/ErrorI18nMessages.ts b/packages/errors/src/i18n/ErrorI18nMessages.ts
index bd635c6d0..d7f0153e6 100644
--- a/packages/errors/src/i18n/ErrorI18nMessages.ts
+++ b/packages/errors/src/i18n/ErrorI18nMessages.ts
@@ -19,6 +19,47 @@ export const ERROR_I18N_MESSAGES = {
'admin_and_system.instance_policy_transition_not_allowed': 'This instance policy change is not allowed.',
'admin_and_system.admin_api_key_not_found': "Admin API key wasn't found.",
'admin_and_system.deletion_failed': "We couldn't delete the resource. Please try again.",
+ 'admin_and_system.enforcement_account_closed': "This account is closed, so it can't be suspended.",
+ 'admin_and_system.enforcement_confirmations_required':
+ 'Confirm that the evidence is preserved and that any required report is filed.',
+ 'admin_and_system.enforcement_decision_ended': 'This decision has already ended.',
+ 'admin_and_system.enforcement_decision_owns_state':
+ 'An enforcement decision owns this restriction. End the decision instead.',
+ 'admin_and_system.enforcement_decision_replaced': 'A later decision replaced this one, so it can no longer be ended.',
+ 'admin_and_system.enforcement_deletion_started':
+ 'The deletion of this account has already started, so the decision can no longer be ended.',
+ 'admin_and_system.enforcement_evidence_dm_unreported':
+ 'Messages in direct messages can only be used as evidence when a linked report covers that conversation.',
+ 'admin_and_system.enforcement_evidence_not_allowed':
+ 'The messages being removed are saved as evidence, so leave out separate evidence messages.',
+ 'admin_and_system.enforcement_evidence_not_found': "One of the evidence messages wasn't found.",
+ 'admin_and_system.enforcement_evidence_not_subject':
+ 'Every evidence message must be from the account or community this decision is about.',
+ 'admin_and_system.enforcement_evidence_required': 'This decision needs at least one evidence message.',
+ 'admin_and_system.enforcement_facts_required': 'Add an evidence message or a note to the user.',
+ 'admin_and_system.enforcement_internal_note_required': 'Add an internal note in the X-Audit-Log-Reason header.',
+ 'admin_and_system.enforcement_kind_not_allowed': "This reason can't be used for this action.",
+ 'admin_and_system.enforcement_limit_end_invalid':
+ 'Only a reports limit has an end date, and it must be within the next 365 days.',
+ 'admin_and_system.enforcement_limit_not_allowed': "This reason can't be used for this limit.",
+ 'admin_and_system.enforcement_network_block_not_allowed':
+ 'Only a permanent suspension or a closure for a broken rule can block networks.',
+ 'admin_and_system.enforcement_network_shared':
+ "Other accounts that aren't restricted were last active on this network, so it can't be blocked.",
+ 'admin_and_system.enforcement_network_unknown': "This account hasn't used this network in the last 30 days.",
+ 'admin_and_system.enforcement_outcome_not_allowed':
+ 'Only a reversal can end this kind of decision, because there is nothing to lift.',
+ 'admin_and_system.enforcement_permanent_required': 'Suspensions for this reason must be permanent.',
+ 'admin_and_system.enforcement_report_mismatch':
+ 'Every linked report must exist and be about the account or community this decision is about.',
+ 'admin_and_system.enforcement_report_required': 'Link at least one report when the source is a report.',
+ 'admin_and_system.enforcement_rights_holder_not_allowed':
+ 'A rights holder can only be given for copyright decisions.',
+ 'admin_and_system.enforcement_rights_holder_required':
+ 'Copyright decisions need the rights holder or the right concerned.',
+ 'admin_and_system.enforcement_statement_not_allowed': "Decisions for this reason can't include a note to the user.",
+ 'admin_and_system.flag_requires_enforcement_route':
+ 'This flag is part of a restriction. Change it through the suspension, deletion or feature limit routes.',
'admin_and_system.general_error': 'Something went wrong. Please try again later.',
'admin_and_system.invalid_acls_format': 'Invalid ACL format.',
'admin_and_system.invalid_api_origin': 'Invalid API origin.',
@@ -35,6 +76,7 @@ export const ERROR_I18N_MESSAGES = {
'admin_and_system.invalid_timestamp': 'Invalid timestamp.',
'admin_and_system.invalid_timezone_identifier': 'Invalid time zone identifier.',
'admin_and_system.missing_acl': 'Missing ACL.',
+ 'admin_and_system.moderation_basis_required': 'Give a basis to delete the messages.',
'admin_and_system.must_be_iso_timestamp': 'Must be a valid ISO timestamp.',
'admin_and_system.processing_failed': "We couldn't process the request. Please try again.",
'admin_and_system.response_validation_failed': 'Response validation failed: {errors}.',
@@ -339,7 +381,6 @@ export const ERROR_I18N_MESSAGES = {
'invites_and_gifts.unknown_gift_code': 'Unknown gift code.',
'invites_and_packs.max_emojis_reached':
"You've reached the maximum of {count, plural, one {# emoji} other {# emojis}}.",
- 'limits.at_least_one_entry_required': 'At least one entry is required.',
'limits.base64_length_invalid': 'Base64 string length must be between {min} and {maxLength} characters.',
'limits.cannot_specify_before_and_after': "You can't specify both `before` and `after`.",
'limits.content_exceeds_max_length':
@@ -416,6 +457,8 @@ export const ERROR_I18N_MESSAGES = {
'moderation_and_reports.cannot_report_yourself': "You can't report yourself.",
'moderation_and_reports.invalid_dsa_report_target': 'Invalid DSA report target.',
'moderation_and_reports.ip_ban_declined': 'This IP address cannot be added to the blocklist.',
+ 'moderation_and_reports.ip_ban_linked_to_decision':
+ 'This network block belongs to an enforcement decision. End the decision to remove it.',
'moderation_and_reports.invalid_dsa_ticket': 'Invalid DSA ticket.',
'moderation_and_reports.invalid_dsa_verification_code': 'Invalid DSA verification code.',
'moderation_and_reports.invalid_report_flow_answers':
@@ -424,16 +467,19 @@ export const ERROR_I18N_MESSAGES = {
'moderation_and_reports.report_banned': "You've been banned from submitting reports.",
'moderation_and_reports.report_flow_outdated':
'The report form changed while you were filling it in. Start the report again.',
+ 'moderation_and_reports.report_outcome_invalid':
+ 'An actioned resolution needs an outcome other than no violation. A duplicate needs the report it repeats and takes no outcome. A no violation resolution takes no other outcome.',
'moderation_and_reports.report_under_legal_hold': "This report is under a legal hold and can't be deleted.",
'moderation_and_reports.unclaimed_account_cannot_submit_reports':
'You need to complete your account setup before you can submit reports.',
+ 'moderation_and_reports.unknown_enforcement_decision': 'Unknown enforcement decision.',
'moderation_and_reports.unknown_report': 'Unknown report.',
'moderation_and_reports.user_is_not_banned': "This user isn't banned.",
'names_and_normalization.name_empty_after_normalization': "Name can't be empty after normalization.",
'permissions.global_ip_banned':
- 'Your IP address {ipAddress} has been permanently blocked from the {product_name} API by platform administrators. {appealEmail, select, null {If you believe this is a mistake, contact the administrators of this instance to appeal.} other {If you believe this is a mistake, contact {appealEmail} to appeal.}} Include this IP address in your appeal.',
+ '{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}',
'permissions.global_ip_temporarily_banned':
- 'Your IP address {ipAddress} has been temporarily blocked from the {product_name} API. The block lifts on its own when it expires. {appealEmail, select, null {If you think this is a mistake, contact the administrators of this instance and include this IP address.} other {If you think this is a mistake, contact {appealEmail} and include this IP address.}}',
+ '{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} The block ends on {expiresAt}. If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}',
'permissions.missing_access': "You don't have access to this resource or feature.",
'permissions.missing_permissions': "You don't have the permissions required to perform this action.",
'permissions.user_banned_from_guild': 'This user is banned from this community.',
diff --git a/packages/errors/src/i18n/weblate/locales/ar.json b/packages/errors/src/i18n/weblate/locales/ar.json
index 6908b6f69..97aea3e17 100644
--- a/packages/errors/src/i18n/weblate/locales/ar.json
+++ b/packages/errors/src/i18n/weblate/locales/ar.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "لا يمكن أن تكون قوائم التحكم بالوصول فارغة.",
"admin_and_system.admin_api_key_not_found": "لم يتم العثور على مفتاح API الإداري.",
"admin_and_system.deletion_failed": "لم نتمكن من حذف المورد. حاول مجددًا.",
+ "admin_and_system.enforcement_account_closed": "هذا الحساب مغلق، لذا لا يمكن تعليقه.",
+ "admin_and_system.enforcement_confirmations_required": "أكّد أن الأدلة محفوظة وأن أي بلاغ مطلوب قد قُدّم.",
+ "admin_and_system.enforcement_decision_ended": "انتهى هذا القرار بالفعل.",
+ "admin_and_system.enforcement_decision_owns_state": "هذا التقييد تابع لقرار إنفاذ. أنهِ القرار بدلًا من ذلك.",
+ "admin_and_system.enforcement_decision_replaced": "حلّ قرار لاحق محل هذا القرار، لذا لم يعد بالإمكان إنهاؤه.",
+ "admin_and_system.enforcement_deletion_started": "بدأ حذف هذا الحساب بالفعل، لذا لم يعد بالإمكان إنهاء القرار.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "لا يمكن استخدام رسائل المحادثات المباشرة كأدلة إلا إذا كان هناك بلاغ مرتبط يشمل تلك المحادثة.",
+ "admin_and_system.enforcement_evidence_not_allowed": "تُحفظ الرسائل التي تتم إزالتها كأدلة، لذا لا تضف رسائل أدلة منفصلة.",
+ "admin_and_system.enforcement_evidence_not_found": "لم يتم العثور على إحدى رسائل الأدلة.",
+ "admin_and_system.enforcement_evidence_not_subject": "يجب أن تكون كل رسالة دليل من الحساب أو المجتمع الذي يخصه هذا القرار.",
+ "admin_and_system.enforcement_evidence_required": "يحتاج هذا القرار إلى رسالة دليل واحدة على الأقل.",
+ "admin_and_system.enforcement_facts_required": "أضف رسالة دليل أو ملاحظة للمستخدم.",
+ "admin_and_system.enforcement_internal_note_required": "أضف ملاحظة داخلية في الترويسة X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "لا يمكن استخدام هذا السبب لهذا الإجراء.",
+ "admin_and_system.enforcement_limit_end_invalid": "تقييد البلاغات وحده له تاريخ انتهاء، ويجب أن يكون خلال الأيام الـ 365 القادمة.",
+ "admin_and_system.enforcement_limit_not_allowed": "لا يمكن استخدام هذا السبب لهذا التقييد.",
+ "admin_and_system.enforcement_network_block_not_allowed": "لا يمكن حجب الشبكات إلا بتعليق دائم أو بإغلاق بسبب مخالفة قاعدة.",
+ "admin_and_system.enforcement_network_shared": "كانت حسابات أخرى غير مقيّدة نشطة مؤخرًا على هذه الشبكة، لذا لا يمكن حجبها.",
+ "admin_and_system.enforcement_network_unknown": "لم يستخدم هذا الحساب هذه الشبكة خلال آخر 30 يومًا.",
+ "admin_and_system.enforcement_outcome_not_allowed": "لا يمكن إنهاء هذا النوع من القرارات إلا بإلغائه، لأنه لا يوجد ما يمكن رفعه.",
+ "admin_and_system.enforcement_permanent_required": "يجب أن يكون التعليق لهذا السبب دائمًا.",
+ "admin_and_system.enforcement_report_mismatch": "يجب أن يكون كل بلاغ مرتبط موجودًا ويخص الحساب أو المجتمع الذي يخصه هذا القرار.",
+ "admin_and_system.enforcement_report_required": "اربط بلاغًا واحدًا على الأقل عندما يكون المصدر بلاغًا.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "لا يمكن تحديد صاحب الحق إلا في قرارات حقوق الطبع والنشر.",
+ "admin_and_system.enforcement_rights_holder_required": "تحتاج قرارات حقوق الطبع والنشر إلى صاحب الحق أو الحق المعني.",
+ "admin_and_system.enforcement_statement_not_allowed": "لا يمكن أن تتضمن القرارات لهذا السبب ملاحظة للمستخدم.",
+ "admin_and_system.flag_requires_enforcement_route": "هذه العلامة جزء من تقييد. غيّرها من خلال مسارات التعليق أو الحذف أو تقييد الميزات.",
"admin_and_system.general_error": "حدث خطأ ما. حاول مجددًا لاحقًا.",
"admin_and_system.guild_id_required_for_search_index": "يجب توفير معرف المجتمع لفهارس البحث عن رسائل القنوات والأعضاء.",
"admin_and_system.instance_policy_transition_not_allowed": "هذا التغيير في سياسة المثيل غير مسموح به.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "الطابع الزمني غير صالح.",
"admin_and_system.invalid_timezone_identifier": "معرف المنطقة الزمنية غير صالح.",
"admin_and_system.missing_acl": "قائمة التحكم بالوصول مفقودة.",
+ "admin_and_system.moderation_basis_required": "حدّد أساسًا لحذف الرسائل.",
"admin_and_system.must_be_iso_timestamp": "يجب أن يكون طابعًا زمنيًا ISO صالحًا.",
"admin_and_system.processing_failed": "لم نتمكن من معالجة الطلب. حاول مجددًا.",
"admin_and_system.resource_locked": "هذا المورد قيد التعديل. حاول مجددًا بعد قليل.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "جارٍ استرداد رمز الهدية. حاول مجددًا بعد قليل.",
"invites_and_gifts.unknown_gift_code": "رمز هدية غير معروف.",
"invites_and_packs.max_emojis_reached": "لقد وصلت إلى الحد الأقصى وهو {count, plural, zero {# إيموجي} one {إيموجي واحد} two {إيموجيان} few {# إيموجيات} many {# إيموجي} other {# إيموجي}}.",
- "limits.at_least_one_entry_required": "مطلوب إدخال واحد على الأقل.",
"limits.base64_length_invalid": "يجب أن يتراوح طول سلسلة Base64 بين {min} و{maxLength} حرفًا.",
"limits.cannot_specify_before_and_after": "لا يمكنك تحديد `before` و`after` معًا.",
"limits.content_exceeds_max_length": "يجب ألا يتجاوز طول النص {maxLength, plural, zero {# حرف} one {حرفًا واحدًا} two {حرفين} few {# أحرف} many {# حرفًا} other {# حرف}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "رمز تحقق DSA غير صالح.",
"moderation_and_reports.invalid_report_flow_answers": "هذه الإجابات لا تتطابق مع نموذج الإبلاغ. ابدأ البلاغ من جديد.",
"moderation_and_reports.ip_ban_declined": "لا يمكن إضافة عنوان IP هذا إلى قائمة الحظر.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "حجب الشبكة هذا تابع لقرار إنفاذ. أنهِ القرار لإزالته.",
"moderation_and_reports.report_already_resolved": "تم حل البلاغ بالفعل.",
"moderation_and_reports.report_banned": "تم حظرك من إرسال البلاغات.",
"moderation_and_reports.report_flow_outdated": "تغيّر نموذج الإبلاغ أثناء تعبئتك له. ابدأ البلاغ من جديد.",
+ "moderation_and_reports.report_outcome_invalid": "تتطلب تسوية البلاغ باتخاذ إجراء تحديد نتيجة غير عدم وجود مخالفة. وتتطلب تسوية البلاغ بوصفه مكررًا تحديد البلاغ الأصلي، ولا تقبل أي نتيجة. أما التسوية بعدم وجود مخالفة فلا تقبل أي نتيجة أخرى.",
"moderation_and_reports.report_under_legal_hold": "هذا البلاغ خاضع لحجز قانوني ولا يمكن حذفه.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "تحتاج إلى إكمال إعداد حسابك قبل إرسال البلاغات.",
+ "moderation_and_reports.unknown_enforcement_decision": "قرار إنفاذ غير معروف.",
"moderation_and_reports.unknown_report": "بلاغ غير معروف.",
"moderation_and_reports.user_is_not_banned": "المستخدم غير محظور.",
"names_and_normalization.name_empty_after_normalization": "لا يمكن أن يكون الاسم فارغًا بعد التسوية.",
- "permissions.global_ip_banned": "تم حظر عنوان IP الخاص بك {ipAddress} نهائيًا من {product_name} API بواسطة مسؤولي المنصة. {appealEmail, select, null {إذا كنت تعتقد أن هذا خطأ، فتواصل مع مسؤولي هذا المثيل للاستئناف.} other {إذا كنت تعتقد أن هذا خطأ، فتواصل مع {appealEmail} للاستئناف.}} اذكر عنوان IP هذا في الاستئناف.",
- "permissions.global_ip_temporarily_banned": "تم حظر عنوان IP الخاص بك {ipAddress} مؤقتًا من {product_name} API. يُرفع الحظر تلقائيًا عند انتهاء مدته. {appealEmail, select, null {إذا كنت تعتقد أن هذا خطأ، فتواصل مع مسؤولي هذا المثيل واذكر عنوان IP هذا.} other {إذا كنت تعتقد أن هذا خطأ، فتواصل مع {appealEmail} واذكر عنوان IP هذا.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {حجب {product_name} الوصول من هذه الشبكة بسبب نشاط خالف قواعده.} other {حجب {product_name} الوصول من هذه الشبكة.}} إذا كنت تشارك هذه الشبكة مع آخرين، كما في المدرسة أو العمل أو على شبكة Wi-Fi عامة أو عبر شركة الاتصالات أو شبكة VPN، فقد لا يكون لهذا الحجب أي علاقة بك. أسرع حل هو تغيير الشبكة، مثل استخدام بيانات الجوال بدلًا من Wi-Fi، أو تشغيل شبكة VPN أو إيقافها.{appealEmail, select, null {} other { إذا كنت تعتقد أن هذا الحجب خطأ، فراسل {appealEmail} واذكر عنوان IP الخاص بك، {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {حجب {product_name} الوصول من هذه الشبكة بسبب نشاط خالف قواعده.} other {حجب {product_name} الوصول من هذه الشبكة.}} ينتهي الحجب في {expiresAt}. إذا كنت تشارك هذه الشبكة مع آخرين، كما في المدرسة أو العمل أو على شبكة Wi-Fi عامة أو عبر شركة الاتصالات أو شبكة VPN، فقد لا يكون لهذا الحجب أي علاقة بك. أسرع حل هو تغيير الشبكة، مثل استخدام بيانات الجوال بدلًا من Wi-Fi، أو تشغيل شبكة VPN أو إيقافها.{appealEmail, select, null {} other { إذا كنت تعتقد أن هذا الحجب خطأ، فراسل {appealEmail} واذكر عنوان IP الخاص بك، {ipAddress}.}}",
"permissions.missing_access": "ليس لديك وصول إلى هذا المورد أو الميزة.",
"permissions.missing_permissions": "لا تملك الأذونات المطلوبة لتنفيذ هذا الإجراء.",
"permissions.user_banned_from_guild": "المستخدم محظور من هذا المجتمع.",
diff --git a/packages/errors/src/i18n/weblate/locales/bg.json b/packages/errors/src/i18n/weblate/locales/bg.json
index bd7ce6fce..554fd8113 100644
--- a/packages/errors/src/i18n/weblate/locales/bg.json
+++ b/packages/errors/src/i18n/weblate/locales/bg.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL-ите не трябва да са празни.",
"admin_and_system.admin_api_key_not_found": "Админ API ключът не беше намерен.",
"admin_and_system.deletion_failed": "Не успяхме да изтрием ресурса. Опитай отново.",
+ "admin_and_system.enforcement_account_closed": "Този акаунт е закрит, затова не може да бъде спрян.",
+ "admin_and_system.enforcement_confirmations_required": "Потвърди, че доказателствата са запазени и че всеки задължителен доклад е подаден.",
+ "admin_and_system.enforcement_decision_ended": "Това решение вече е приключило.",
+ "admin_and_system.enforcement_decision_owns_state": "Това ограничение е част от решение за прилагане на мерки. Вместо това прекрати решението.",
+ "admin_and_system.enforcement_decision_replaced": "По-късно решение замени това, затова то вече не може да бъде прекратено.",
+ "admin_and_system.enforcement_deletion_started": "Изтриването на този акаунт вече е започнало, затова решението вече не може да бъде прекратено.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Директни съобщения могат да се използват като доказателство само ако свързан сигнал обхваща този разговор.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Премахваните съобщения се запазват като доказателство, затова не добавяй отделни съобщения за доказателство.",
+ "admin_and_system.enforcement_evidence_not_found": "Едно от съобщенията за доказателство не е намерено.",
+ "admin_and_system.enforcement_evidence_not_subject": "Всяко съобщение за доказателство трябва да е от акаунта или общността, за които се отнася това решение.",
+ "admin_and_system.enforcement_evidence_required": "Това решение изисква поне едно съобщение за доказателство.",
+ "admin_and_system.enforcement_facts_required": "Добави съобщение за доказателство или бележка към потребителя.",
+ "admin_and_system.enforcement_internal_note_required": "Добави вътрешна бележка в заглавката X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Тази причина не може да се използва за това действие.",
+ "admin_and_system.enforcement_limit_end_invalid": "Само ограничението за сигнали има крайна дата и тя трябва да е в следващите 365 дни.",
+ "admin_and_system.enforcement_limit_not_allowed": "Тази причина не може да се използва за това ограничение.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Мрежи могат да се блокират само при безсрочно спиране или закриване заради нарушено правило.",
+ "admin_and_system.enforcement_network_shared": "Други акаунти без ограничения последно са били активни в тази мрежа, затова тя не може да бъде блокирана.",
+ "admin_and_system.enforcement_network_unknown": "Този акаунт не е използвал тази мрежа през последните 30 дни.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Този вид решение може да бъде прекратено само чрез отмяна, защото няма какво да се премахне.",
+ "admin_and_system.enforcement_permanent_required": "Спиранията по тази причина трябва да са безсрочни.",
+ "admin_and_system.enforcement_report_mismatch": "Всеки свързан сигнал трябва да съществува и да се отнася за акаунта или общността, за които е това решение.",
+ "admin_and_system.enforcement_report_required": "Когато източникът е сигнал, свържи поне един сигнал.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Носител на права може да се посочи само при решения за авторско право.",
+ "admin_and_system.enforcement_rights_holder_required": "Решенията за авторско право изискват носителя на правата или засегнатото право.",
+ "admin_and_system.enforcement_statement_not_allowed": "Решенията по тази причина не могат да съдържат бележка към потребителя.",
+ "admin_and_system.flag_requires_enforcement_route": "Този флаг е част от ограничение. Промени го чрез маршрутите за спиране, изтриване или ограничаване на функции.",
"admin_and_system.general_error": "Нещо се обърка. Опитай отново по-късно.",
"admin_and_system.guild_id_required_for_search_index": "За индексите за търсене на съобщения в канали и на членове е необходимо ID на общността.",
"admin_and_system.instance_policy_transition_not_allowed": "Тази промяна на правилата на инстанцията не е позволена.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Невалиден времеви печат.",
"admin_and_system.invalid_timezone_identifier": "Невалиден идентификатор на часовата зона.",
"admin_and_system.missing_acl": "Липсва ACL.",
+ "admin_and_system.moderation_basis_required": "Посочи основание за изтриването на съобщенията.",
"admin_and_system.must_be_iso_timestamp": "Трябва да е валиден ISO времеви печат.",
"admin_and_system.processing_failed": "Не успяхме да обработим заявката. Опитай отново.",
"admin_and_system.resource_locked": "Този ресурс в момента се променя. Опитай отново след малко.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Осребряването на кода за подарък е в процес. Опитай отново след малко.",
"invites_and_gifts.unknown_gift_code": "Неизвестен код за подарък.",
"invites_and_packs.max_emojis_reached": "Достигна максимума от {count} {count, plural, one {емоджи} other {емоджита}}.",
- "limits.at_least_one_entry_required": "Необходим е поне един запис.",
"limits.base64_length_invalid": "Дължината на Base64 низа трябва да е между {min} и {maxLength} знака.",
"limits.cannot_specify_before_and_after": "Не можеш да зададеш едновременно `before` и `after`.",
"limits.content_exceeds_max_length": "Текстът не може да надвишава {maxLength} {maxLength, plural, one {знак} other {знака}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Невалиден код за потвърждение на DSA.",
"moderation_and_reports.invalid_report_flow_answers": "Тези отговори не съответстват на формуляра за сигнал. Започни сигнала отначало.",
"moderation_and_reports.ip_ban_declined": "Този IP адрес не може да бъде добавен към списъка с блокирани адреси.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Това блокиране на мрежа принадлежи на решение за прилагане на мерки. Прекрати решението, за да го премахнеш.",
"moderation_and_reports.report_already_resolved": "Сигналът вече е разгледан.",
"moderation_and_reports.report_banned": "Имаш забрана да подаваш сигнали.",
"moderation_and_reports.report_flow_outdated": "Формулярът за сигнал се промени, докато го попълваше. Започни сигнала отначало.",
+ "moderation_and_reports.report_outcome_invalid": "Резолюцията „предприети мерки“ изисква резултат, различен от „няма нарушение“. Резолюцията „дубликат“ изисква сигнала, който повтаря, и не приема резултат. Резолюцията „няма нарушение“ не приема друг резултат.",
"moderation_and_reports.report_under_legal_hold": "Този сигнал е под правно задържане и не може да бъде изтрит.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Трябва да завършиш настройката на акаунта си, преди да можеш да подаваш сигнали.",
+ "moderation_and_reports.unknown_enforcement_decision": "Непознато решение за прилагане на мерки.",
"moderation_and_reports.unknown_report": "Неизвестен сигнал.",
"moderation_and_reports.user_is_not_banned": "Този потребител няма наложена забрана.",
"names_and_normalization.name_empty_after_normalization": "Името не може да бъде празно след нормализиране.",
- "permissions.global_ip_banned": "IP адресът ти {ipAddress} е блокиран за постоянно за достъп до {product_name} API от администраторите на платформата. {appealEmail, select, null {Ако смяташ, че това е грешка, свържи се с администраторите на тази инстанция, за да обжалваш.} other {Ако смяташ, че това е грешка, свържи се със {appealEmail}, за да обжалваш.}} Включи този IP адрес в обжалването.",
- "permissions.global_ip_temporarily_banned": "IP адресът ти {ipAddress} е временно блокиран за достъп до {product_name} API. Блокирането се премахва автоматично, когато изтече. {appealEmail, select, null {Ако смяташ, че това е грешка, свържи се с администраторите на тази инстанция и посочи този IP адрес.} other {Ако смяташ, че това е грешка, свържи се със {appealEmail} и посочи този IP адрес.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} блокира достъпа от тази мрежа заради дейност, която нарушава правилата му.} other {{product_name} блокира достъпа от тази мрежа.}} Ако ползваш тази мрежа заедно с други хора, например в училище, на работа, в обществена Wi-Fi мрежа, чрез мобилния си оператор или VPN, това блокиране може да няма нищо общо с теб. Най-бързото решение е да смениш мрежата, например да минеш от Wi-Fi на мобилни данни, или да включиш или изключиш VPN.{appealEmail, select, null {} other { Ако смяташ, че това блокиране е грешка, пиши на {appealEmail} и посочи своя IP адрес: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} блокира достъпа от тази мрежа заради дейност, която нарушава правилата му.} other {{product_name} блокира достъпа от тази мрежа.}} Блокирането е в сила до {expiresAt}. Ако ползваш тази мрежа заедно с други хора, например в училище, на работа, в обществена Wi-Fi мрежа, чрез мобилния си оператор или VPN, това блокиране може да няма нищо общо с теб. Най-бързото решение е да смениш мрежата, например да минеш от Wi-Fi на мобилни данни, или да включиш или изключиш VPN.{appealEmail, select, null {} other { Ако смяташ, че това блокиране е грешка, пиши на {appealEmail} и посочи своя IP адрес: {ipAddress}.}}",
"permissions.missing_access": "Нямаш достъп до този ресурс или функция.",
"permissions.missing_permissions": "Нямаш необходимите разрешения, за да изпълниш това действие.",
"permissions.user_banned_from_guild": "Този потребител има наложена забрана в тази общност.",
diff --git a/packages/errors/src/i18n/weblate/locales/cs.json b/packages/errors/src/i18n/weblate/locales/cs.json
index 45c094443..0f672b5da 100644
--- a/packages/errors/src/i18n/weblate/locales/cs.json
+++ b/packages/errors/src/i18n/weblate/locales/cs.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "Seznamy řízení přístupu (ACL) nesmějí být prázdné.",
"admin_and_system.admin_api_key_not_found": "Klíč API správce se nenašel.",
"admin_and_system.deletion_failed": "Nepodařilo se odstranit zdroj. Zkuste to znovu.",
+ "admin_and_system.enforcement_account_closed": "Tento účet je zrušen, takže ho nelze pozastavit.",
+ "admin_and_system.enforcement_confirmations_required": "Potvrďte, že jsou důkazy zajištěny a že bylo podáno každé povinné hlášení.",
+ "admin_and_system.enforcement_decision_ended": "Toto rozhodnutí už skončilo.",
+ "admin_and_system.enforcement_decision_owns_state": "Toto omezení patří k rozhodnutí o opatření. Místo toho ukončete rozhodnutí.",
+ "admin_and_system.enforcement_decision_replaced": "Toto rozhodnutí bylo nahrazeno pozdějším, takže ho už nelze ukončit.",
+ "admin_and_system.enforcement_deletion_started": "Mazání tohoto účtu už začalo, takže rozhodnutí už nelze ukončit.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Zprávy z konverzací v přímých zprávách lze použít jako důkaz, jen pokud danou konverzaci pokrývá propojené nahlášení.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Odstraňované zprávy se ukládají jako důkazy, proto nepřidávejte samostatné důkazní zprávy.",
+ "admin_and_system.enforcement_evidence_not_found": "Jedna z důkazních zpráv nebyla nalezena.",
+ "admin_and_system.enforcement_evidence_not_subject": "Každá důkazní zpráva musí pocházet z účtu nebo komunity, které se toto rozhodnutí týká.",
+ "admin_and_system.enforcement_evidence_required": "Toto rozhodnutí potřebuje alespoň jednu důkazní zprávu.",
+ "admin_and_system.enforcement_facts_required": "Přidejte důkazní zprávu nebo poznámku pro uživatele.",
+ "admin_and_system.enforcement_internal_note_required": "Přidejte interní poznámku do hlavičky X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Tento důvod nelze pro tuto akci použít.",
+ "admin_and_system.enforcement_limit_end_invalid": "Datum konce má jen omezení nahlašování a musí být v příštích 365 dnech.",
+ "admin_and_system.enforcement_limit_not_allowed": "Tento důvod nelze pro toto omezení použít.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Blokovat sítě může jen trvalé pozastavení nebo zrušení účtu za porušení pravidla.",
+ "admin_and_system.enforcement_network_shared": "V této síti byly naposledy aktivní jiné účty bez omezení, takže ji nelze zablokovat.",
+ "admin_and_system.enforcement_network_unknown": "Tento účet tuto síť za posledních 30 dní nepoužil.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Tento druh rozhodnutí lze ukončit jen zrušením, protože není co uvolnit.",
+ "admin_and_system.enforcement_permanent_required": "Pozastavení z tohoto důvodu musí být trvalá.",
+ "admin_and_system.enforcement_report_mismatch": "Každé propojené nahlášení musí existovat a týkat se účtu nebo komunity, které se toto rozhodnutí týká.",
+ "admin_and_system.enforcement_report_required": "Pokud je zdrojem nahlášení, propojte alespoň jedno nahlášení.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Držitele práv lze uvést jen u rozhodnutí o autorských právech.",
+ "admin_and_system.enforcement_rights_holder_required": "Rozhodnutí o autorských právech vyžadují držitele práv nebo dotčené právo.",
+ "admin_and_system.enforcement_statement_not_allowed": "Rozhodnutí z tohoto důvodu nemohou obsahovat poznámku pro uživatele.",
+ "admin_and_system.flag_requires_enforcement_route": "Tento příznak je součástí omezení. Změňte ho přes cesty pro pozastavení, smazání nebo omezení funkcí.",
"admin_and_system.general_error": "Něco se pokazilo. Zkuste to později.",
"admin_and_system.guild_id_required_for_search_index": "Pro vyhledávací indexy zpráv v kanálech a členů je nutné zadat ID komunity.",
"admin_and_system.instance_policy_transition_not_allowed": "Tato změna zásad instance není povolena.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Neplatné časové razítko.",
"admin_and_system.invalid_timezone_identifier": "Neplatný identifikátor časového pásma.",
"admin_and_system.missing_acl": "ACL chybí.",
+ "admin_and_system.moderation_basis_required": "Uveďte základ pro smazání zpráv.",
"admin_and_system.must_be_iso_timestamp": "Je vyžadováno platné časové razítko ve formátu ISO.",
"admin_and_system.processing_failed": "Nepodařilo se zpracovat požadavek. Zkuste to znovu.",
"admin_and_system.resource_locked": "Tento zdroj je právě upravován. Zkuste to prosím znovu za chvíli.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Uplatnění dárkového kódu probíhá. Zkuste to znovu za chvíli.",
"invites_and_gifts.unknown_gift_code": "Neznámý dárkový kód.",
"invites_and_packs.max_emojis_reached": "Dosáhli jste limitu {count, plural, one {# emoji} few {# emoji} many {# emoji} other {# emoji}}.",
- "limits.at_least_one_entry_required": "Je vyžadován alespoň jeden záznam.",
"limits.base64_length_invalid": "Řetězec Base64 musí mít {min} až {maxLength} znaků.",
"limits.cannot_specify_before_and_after": "Nemůžete zadat `before` i `after` zároveň.",
"limits.content_exceeds_max_length": "Text nesmí přesáhnout {maxLength, plural, one {# znak} few {# znaky} many {# znaku} other {# znaků}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Neplatný ověřovací kód DSA.",
"moderation_and_reports.invalid_report_flow_answers": "Tyto odpovědi neodpovídají formuláři nahlášení. Začněte nahlášení znovu.",
"moderation_and_reports.ip_ban_declined": "Tuto IP adresu nelze přidat na seznam blokovaných.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Toto blokování sítě patří k rozhodnutí o opatření. Pro jeho odstranění ukončete rozhodnutí.",
"moderation_and_reports.report_already_resolved": "Nahlášení již bylo vyřešeno.",
"moderation_and_reports.report_banned": "Máte zakázáno odesílat nahlášení.",
"moderation_and_reports.report_flow_outdated": "Formulář nahlášení se během jeho vyplňování změnil. Nahlášení začněte znovu.",
+ "moderation_and_reports.report_outcome_invalid": "Vyřízení „opatření přijato“ vyžaduje jiný výsledek než „bez porušení“. Vyřízení „duplicitní“ vyžaduje nahlášení, které opakuje, a žádný výsledek nepřijímá. Vyřízení „bez porušení“ jiný výsledek nepřijímá.",
"moderation_and_reports.report_under_legal_hold": "Toto nahlášení podléhá právnímu zadržení a nelze ho smazat.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Než budete moci odesílat nahlášení, musíte dokončit registraci účtu.",
+ "moderation_and_reports.unknown_enforcement_decision": "Neznámé rozhodnutí o opatření.",
"moderation_and_reports.unknown_report": "Neznámé nahlášení.",
"moderation_and_reports.user_is_not_banned": "Tento uživatel není zabanován.",
"names_and_normalization.name_empty_after_normalization": "Název nemůže být po normalizaci prázdný.",
- "permissions.global_ip_banned": "Vaše IP adresa {ipAddress} byla správci platformy trvale zablokována pro {product_name} API. {appealEmail, select, null {Pokud se domníváte, že jde o chybu, podejte odvolání u správců této instance.} other {Pokud se domníváte, že jde o chybu, podejte odvolání na adrese {appealEmail}.}} V odvolání uveďte tuto IP adresu.",
- "permissions.global_ip_temporarily_banned": "Vaše IP adresa {ipAddress} byla dočasně zablokována pro {product_name} API. Blokace se po vypršení sama zruší. {appealEmail, select, null {Pokud se domníváte, že jde o chybu, kontaktujte správce této instance a uveďte tuto IP adresu.} other {Pokud se domníváte, že jde o chybu, napište na adresu {appealEmail} a uveďte tuto IP adresu.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} zablokoval přístup z této sítě kvůli aktivitě, která porušila jeho pravidla.} other {{product_name} zablokoval přístup z této sítě.}} Pokud tuto síť sdílíte s dalšími lidmi, například ve škole, v práci, na veřejné Wi-Fi, u mobilního operátora nebo přes VPN, toto blokování s vámi nemusí vůbec souviset. Nejrychleji pomůže přepnout na jinou síť, například z Wi-Fi na mobilní data, nebo zapnout či vypnout VPN.{appealEmail, select, null {} other { Pokud si myslíte, že je toto blokování omyl, napište na {appealEmail} a uveďte svou IP adresu: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} zablokoval přístup z této sítě kvůli aktivitě, která porušila jeho pravidla.} other {{product_name} zablokoval přístup z této sítě.}} Blokování platí do {expiresAt}. Pokud tuto síť sdílíte s dalšími lidmi, například ve škole, v práci, na veřejné Wi-Fi, u mobilního operátora nebo přes VPN, toto blokování s vámi nemusí vůbec souviset. Nejrychleji pomůže přepnout na jinou síť, například z Wi-Fi na mobilní data, nebo zapnout či vypnout VPN.{appealEmail, select, null {} other { Pokud si myslíte, že je toto blokování omyl, napište na {appealEmail} a uveďte svou IP adresu: {ipAddress}.}}",
"permissions.missing_access": "Nemáte přístup k tomuto zdroji nebo funkci.",
"permissions.missing_permissions": "Nemáte potřebná oprávnění k provedení této akce.",
"permissions.user_banned_from_guild": "Tento uživatel má v této komunitě ban.",
diff --git a/packages/errors/src/i18n/weblate/locales/da.json b/packages/errors/src/i18n/weblate/locales/da.json
index 344c3144f..bd90fd811 100644
--- a/packages/errors/src/i18n/weblate/locales/da.json
+++ b/packages/errors/src/i18n/weblate/locales/da.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL'er kan ikke være tomme.",
"admin_and_system.admin_api_key_not_found": "Administrator-API-nøglen blev ikke fundet.",
"admin_and_system.deletion_failed": "Ressourcen kunne ikke slettes. Prøv igen.",
+ "admin_and_system.enforcement_account_closed": "Denne konto er lukket, så den kan ikke suspenderes.",
+ "admin_and_system.enforcement_confirmations_required": "Bekræft, at beviserne er sikret, og at enhver påkrævet indberetning er indgivet.",
+ "admin_and_system.enforcement_decision_ended": "Denne afgørelse er allerede afsluttet.",
+ "admin_and_system.enforcement_decision_owns_state": "Denne begrænsning hører til en håndhævelsesafgørelse. Afslut afgørelsen i stedet.",
+ "admin_and_system.enforcement_decision_replaced": "En senere afgørelse har erstattet denne, så den kan ikke længere afsluttes.",
+ "admin_and_system.enforcement_deletion_started": "Sletningen af denne konto er allerede startet, så afgørelsen kan ikke længere afsluttes.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Beskeder i direkte beskeder kan kun bruges som bevis, når en tilknyttet anmeldelse dækker den samtale.",
+ "admin_and_system.enforcement_evidence_not_allowed": "De beskeder, der fjernes, gemmes som bevis, så udelad separate bevisbeskeder.",
+ "admin_and_system.enforcement_evidence_not_found": "En af bevisbeskederne blev ikke fundet.",
+ "admin_and_system.enforcement_evidence_not_subject": "Alle bevisbeskeder skal stamme fra den konto eller det fællesskab, som denne afgørelse handler om.",
+ "admin_and_system.enforcement_evidence_required": "Denne afgørelse kræver mindst én bevisbesked.",
+ "admin_and_system.enforcement_facts_required": "Tilføj en bevisbesked eller en besked til brugeren.",
+ "admin_and_system.enforcement_internal_note_required": "Tilføj en intern note i headeren X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Denne årsag kan ikke bruges til denne handling.",
+ "admin_and_system.enforcement_limit_end_invalid": "Kun en begrænsning af anmeldelser har en slutdato, og den skal ligge inden for de næste 365 dage.",
+ "admin_and_system.enforcement_limit_not_allowed": "Denne årsag kan ikke bruges til denne begrænsning.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Kun en permanent suspendering eller en lukning for brud på en regel kan blokere netværk.",
+ "admin_and_system.enforcement_network_shared": "Andre konti, der ikke er begrænset, var senest aktive på dette netværk, så det kan ikke blokeres.",
+ "admin_and_system.enforcement_network_unknown": "Denne konto har ikke brugt dette netværk inden for de seneste 30 dage.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Kun en omgørelse kan afslutte denne type afgørelse, fordi der ikke er noget at ophæve.",
+ "admin_and_system.enforcement_permanent_required": "Suspenderinger af denne årsag skal være permanente.",
+ "admin_and_system.enforcement_report_mismatch": "Alle tilknyttede anmeldelser skal findes og handle om den konto eller det fællesskab, som denne afgørelse handler om.",
+ "admin_and_system.enforcement_report_required": "Tilknyt mindst én anmeldelse, når kilden er en anmeldelse.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "En rettighedshaver kan kun angives ved afgørelser om ophavsret.",
+ "admin_and_system.enforcement_rights_holder_required": "Afgørelser om ophavsret kræver rettighedshaveren eller den berørte rettighed.",
+ "admin_and_system.enforcement_statement_not_allowed": "Afgørelser af denne årsag må ikke indeholde en besked til brugeren.",
+ "admin_and_system.flag_requires_enforcement_route": "Dette flag er en del af en begrænsning. Ændr det via ruterne for suspendering, sletning eller funktionsbegrænsning.",
"admin_and_system.general_error": "Noget gik galt. Prøv igen senere.",
"admin_and_system.guild_id_required_for_search_index": "Et fællesskabs-id er påkrævet for søgeindekser over kanalbeskeder og medlemmer.",
"admin_and_system.instance_policy_transition_not_allowed": "Denne ændring af instanspolitikken er ikke tilladt.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Ugyldigt tidsstempel.",
"admin_and_system.invalid_timezone_identifier": "Ugyldig tidszoneidentifikator.",
"admin_and_system.missing_acl": "Manglende ACL.",
+ "admin_and_system.moderation_basis_required": "Angiv et grundlag for at slette beskederne.",
"admin_and_system.must_be_iso_timestamp": "Skal være et gyldigt ISO-tidsstempel.",
"admin_and_system.processing_failed": "Anmodningen kunne ikke behandles. Prøv igen.",
"admin_and_system.resource_locked": "Denne ressource ændres i øjeblikket. Prøv igen om lidt.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Indløsning af gavekode er i gang. Prøv igen om et øjeblik.",
"invites_and_gifts.unknown_gift_code": "Ukendt gavekode.",
"invites_and_packs.max_emojis_reached": "Du har nået grænsen på {count, plural, one {# emoji} other {# emojis}}.",
- "limits.at_least_one_entry_required": "Mindst ét element er nødvendigt.",
"limits.base64_length_invalid": "Base64-strengens længde skal være mellem {min} og {maxLength} tegn.",
"limits.cannot_specify_before_and_after": "Du kan ikke bruge både `before` og `after`.",
"limits.content_exceeds_max_length": "Teksten må ikke overstige {maxLength} {maxLength, plural, one {tegn} other {tegn}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Ugyldig DSA-bekræftelseskode.",
"moderation_and_reports.invalid_report_flow_answers": "Disse svar passer ikke til anmeldelsesformularen. Start anmeldelsen forfra.",
"moderation_and_reports.ip_ban_declined": "Denne IP-adresse kan ikke føjes til bloklisten.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Denne netværksblokering hører til en håndhævelsesafgørelse. Afslut afgørelsen for at fjerne den.",
"moderation_and_reports.report_already_resolved": "Anmeldelsen er allerede afsluttet.",
"moderation_and_reports.report_banned": "Du er blevet udelukket fra at indsende anmeldelser.",
"moderation_and_reports.report_flow_outdated": "Anmeldelsesformularen blev ændret, mens du udfyldte den. Start anmeldelsen forfra.",
+ "moderation_and_reports.report_outcome_invalid": "En afslutning med tiltag kræver et andet udfald end \"ingen overtrædelse\". En dublet kræver den anmeldelse, den gentager, og må ikke have et udfald. En afslutning uden overtrædelse må ikke have et andet udfald.",
"moderation_and_reports.report_under_legal_hold": "Denne anmeldelse er omfattet af et retligt tilbagehold og kan ikke slettes.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Du skal fuldføre oprettelsen af din konto, før du kan indsende anmeldelser.",
+ "moderation_and_reports.unknown_enforcement_decision": "Ukendt håndhævelsesafgørelse.",
"moderation_and_reports.unknown_report": "Ukendt anmeldelse.",
"moderation_and_reports.user_is_not_banned": "Denne bruger er ikke udelukket.",
"names_and_normalization.name_empty_after_normalization": "Navnet må ikke være tomt efter normalisering.",
- "permissions.global_ip_banned": "Din IP-adresse {ipAddress} er permanent blokeret fra {product_name} API af platformadministratorer. {appealEmail, select, null {Hvis du mener, at dette er en fejl, kan du kontakte administratorerne af denne instans for at klage.} other {Hvis du mener, at dette er en fejl, kan du kontakte {appealEmail} for at klage.}} Medtag denne IP-adresse i klagen.",
- "permissions.global_ip_temporarily_banned": "Din IP-adresse {ipAddress} er midlertidigt blokeret fra {product_name} API. Blokeringen ophæves automatisk, når den udløber. {appealEmail, select, null {Hvis du mener, at dette er en fejl, kan du kontakte administratorerne af denne instans og oplyse denne IP-adresse.} other {Hvis du mener, at dette er en fejl, kan du kontakte {appealEmail} og oplyse denne IP-adresse.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} har blokeret adgang fra dette netværk på grund af aktivitet, der brød reglerne.} other {{product_name} har blokeret adgang fra dette netværk.}} Hvis du deler dette netværk med andre, f.eks. i skolen, på arbejdet, på offentligt Wi-Fi, via dit mobilselskab eller en VPN, har blokeringen måske intet med dig at gøre. Den hurtigste løsning er at skifte netværk, f.eks. til mobildata i stedet for Wi-Fi, eller at slå din VPN til eller fra.{appealEmail, select, null {} other { Hvis du mener, at blokeringen er en fejl, så send en e-mail til {appealEmail}, og oplys din IP-adresse, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} har blokeret adgang fra dette netværk på grund af aktivitet, der brød reglerne.} other {{product_name} har blokeret adgang fra dette netværk.}} Blokeringen ophører den {expiresAt}. Hvis du deler dette netværk med andre, f.eks. i skolen, på arbejdet, på offentligt Wi-Fi, via dit mobilselskab eller en VPN, har blokeringen måske intet med dig at gøre. Den hurtigste løsning er at skifte netværk, f.eks. til mobildata i stedet for Wi-Fi, eller at slå din VPN til eller fra.{appealEmail, select, null {} other { Hvis du mener, at blokeringen er en fejl, så send en e-mail til {appealEmail}, og oplys din IP-adresse, {ipAddress}.}}",
"permissions.missing_access": "Du har ikke adgang til denne ressource eller funktion.",
"permissions.missing_permissions": "Du har ikke de nødvendige tilladelser til at udføre denne handling.",
"permissions.user_banned_from_guild": "Denne bruger er udelukket fra dette fællesskab.",
diff --git a/packages/errors/src/i18n/weblate/locales/de.json b/packages/errors/src/i18n/weblate/locales/de.json
index 8b93b14e0..a69dc62d2 100644
--- a/packages/errors/src/i18n/weblate/locales/de.json
+++ b/packages/errors/src/i18n/weblate/locales/de.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACLs dürfen nicht leer sein.",
"admin_and_system.admin_api_key_not_found": "Admin-API-Schlüssel wurde nicht gefunden.",
"admin_and_system.deletion_failed": "Wir konnten die Ressource nicht löschen. Bitte versuche es erneut.",
+ "admin_and_system.enforcement_account_closed": "Dieser Account ist geschlossen und kann daher nicht gesperrt werden.",
+ "admin_and_system.enforcement_confirmations_required": "Bestätige, dass die Beweise gesichert sind und jede vorgeschriebene Meldung erstattet ist.",
+ "admin_and_system.enforcement_decision_ended": "Diese Entscheidung ist bereits beendet.",
+ "admin_and_system.enforcement_decision_owns_state": "Diese Einschränkung gehört zu einer Durchsetzungsentscheidung. Beende stattdessen die Entscheidung.",
+ "admin_and_system.enforcement_decision_replaced": "Eine spätere Entscheidung hat diese ersetzt, daher kann sie nicht mehr beendet werden.",
+ "admin_and_system.enforcement_deletion_started": "Die Löschung dieses Accounts hat bereits begonnen, daher kann die Entscheidung nicht mehr beendet werden.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Nachrichten aus Direktnachrichten können nur als Beweis genutzt werden, wenn eine verknüpfte Meldung diese Unterhaltung abdeckt.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Die entfernten Nachrichten werden als Beweis gespeichert, lass separate Beweisnachrichten also weg.",
+ "admin_and_system.enforcement_evidence_not_found": "Eine der Beweisnachrichten wurde nicht gefunden.",
+ "admin_and_system.enforcement_evidence_not_subject": "Jede Beweisnachricht muss von dem Account oder der Community stammen, um die es in dieser Entscheidung geht.",
+ "admin_and_system.enforcement_evidence_required": "Diese Entscheidung braucht mindestens eine Beweisnachricht.",
+ "admin_and_system.enforcement_facts_required": "Füge eine Beweisnachricht oder einen Hinweis an die Person hinzu.",
+ "admin_and_system.enforcement_internal_note_required": "Gib eine interne Notiz im Header X-Audit-Log-Reason an.",
+ "admin_and_system.enforcement_kind_not_allowed": "Dieser Grund kann für diese Aktion nicht verwendet werden.",
+ "admin_and_system.enforcement_limit_end_invalid": "Nur eine Einschränkung von Meldungen hat ein Enddatum, und es muss innerhalb der nächsten 365 Tage liegen.",
+ "admin_and_system.enforcement_limit_not_allowed": "Dieser Grund kann für diese Einschränkung nicht verwendet werden.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Nur eine dauerhafte Sperre oder eine Schließung wegen eines Regelverstoßes kann Netzwerke sperren.",
+ "admin_and_system.enforcement_network_shared": "In diesem Netzwerk waren zuletzt andere Accounts aktiv, die nicht eingeschränkt sind, daher kann es nicht gesperrt werden.",
+ "admin_and_system.enforcement_network_unknown": "Dieser Account hat dieses Netzwerk in den letzten 30 Tagen nicht genutzt.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Diese Art von Entscheidung kann nur durch eine Rücknahme beendet werden, weil es nichts aufzuheben gibt.",
+ "admin_and_system.enforcement_permanent_required": "Sperren aus diesem Grund müssen dauerhaft sein.",
+ "admin_and_system.enforcement_report_mismatch": "Jede verknüpfte Meldung muss existieren und den Account oder die Community betreffen, um die es in dieser Entscheidung geht.",
+ "admin_and_system.enforcement_report_required": "Verknüpfe mindestens eine Meldung, wenn die Quelle eine Meldung ist.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Ein Rechteinhaber kann nur bei Urheberrechtsentscheidungen angegeben werden.",
+ "admin_and_system.enforcement_rights_holder_required": "Urheberrechtsentscheidungen brauchen den Rechteinhaber oder das betroffene Recht.",
+ "admin_and_system.enforcement_statement_not_allowed": "Entscheidungen aus diesem Grund dürfen keinen Hinweis an die Person enthalten.",
+ "admin_and_system.flag_requires_enforcement_route": "Dieses Flag gehört zu einer Einschränkung. Ändere es über die Routen für Sperre, Löschung oder Funktionseinschränkung.",
"admin_and_system.general_error": "Etwas ist schiefgelaufen. Bitte versuche es später erneut.",
"admin_and_system.guild_id_required_for_search_index": "Für Kanalnachrichten- und Mitgliedersuchindizes ist eine Community-ID erforderlich.",
"admin_and_system.instance_policy_transition_not_allowed": "Diese Änderung der Instanzrichtlinie ist nicht erlaubt.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Ungültiger Zeitstempel.",
"admin_and_system.invalid_timezone_identifier": "Ungültige Zeitzonen-ID.",
"admin_and_system.missing_acl": "ACL fehlt.",
+ "admin_and_system.moderation_basis_required": "Gib eine Grundlage an, um die Nachrichten zu löschen.",
"admin_and_system.must_be_iso_timestamp": "Es muss ein gültiger ISO-Zeitstempel sein.",
"admin_and_system.processing_failed": "Wir konnten die Anfrage nicht verarbeiten. Bitte versuche es erneut.",
"admin_and_system.resource_locked": "Diese Ressource wird gerade geändert. Bitte versuche es in Kürze erneut.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Der Geschenkcode wird gerade eingelöst. Versuche es gleich noch einmal.",
"invites_and_gifts.unknown_gift_code": "Unbekannter Geschenkcode.",
"invites_and_packs.max_emojis_reached": "Du hast die maximale Anzahl von {count, plural, one {# Emoji} other {# Emojis}} erreicht.",
- "limits.at_least_one_entry_required": "Mindestens ein Eintrag ist erforderlich.",
"limits.base64_length_invalid": "Die Länge der Base64-Zeichenkette muss zwischen {min} und {maxLength} Zeichen liegen.",
"limits.cannot_specify_before_and_after": "Du kannst nicht gleichzeitig `before` und `after` angeben.",
"limits.content_exceeds_max_length": "Text darf maximal {maxLength, plural, one {# Zeichen} other {# Zeichen}} lang sein.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Ungültiger DSA-Bestätigungscode.",
"moderation_and_reports.invalid_report_flow_answers": "Diese Antworten passen nicht zum Meldeformular. Starte die Meldung erneut.",
"moderation_and_reports.ip_ban_declined": "Diese IP-Adresse kann nicht zur Blockierliste hinzugefügt werden.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Diese Netzwerksperre gehört zu einer Durchsetzungsentscheidung. Beende die Entscheidung, um sie aufzuheben.",
"moderation_and_reports.report_already_resolved": "Meldung bereits erledigt.",
"moderation_and_reports.report_banned": "Du bist für das Einreichen von Meldungen gesperrt.",
"moderation_and_reports.report_flow_outdated": "Das Meldeformular hat sich geändert, während du es ausgefüllt hast. Starte die Meldung erneut.",
+ "moderation_and_reports.report_outcome_invalid": "Ein Abschluss mit Maßnahme braucht ein anderes Ergebnis als „kein Verstoß“. Ein Duplikat braucht die Meldung, die es wiederholt, und darf kein Ergebnis haben. Ein Abschluss ohne Verstoß darf kein anderes Ergebnis haben.",
"moderation_and_reports.report_under_legal_hold": "Diese Meldung unterliegt einer rechtlichen Aufbewahrungspflicht und kann nicht gelöscht werden.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Du musst die Einrichtung deines Accounts abschließen, bevor du Meldungen einreichen kannst.",
+ "moderation_and_reports.unknown_enforcement_decision": "Unbekannte Durchsetzungsentscheidung.",
"moderation_and_reports.unknown_report": "Unbekannte Meldung.",
"moderation_and_reports.user_is_not_banned": "Dieser Benutzer ist nicht gebannt.",
"names_and_normalization.name_empty_after_normalization": "Der Name darf nach der Normalisierung nicht leer bleiben.",
- "permissions.global_ip_banned": "Deine IP-Adresse {ipAddress} wurde von Plattformadministratoren dauerhaft von der {product_name} API gesperrt. {appealEmail, select, null {Wenn du glaubst, dass dies ein Fehler ist, kontaktiere die Administratoren dieser Instanz, um Einspruch einzulegen.} other {Wenn du glaubst, dass dies ein Fehler ist, kontaktiere {appealEmail}, um Einspruch einzulegen.}} Gib diese IP-Adresse in deinem Einspruch an.",
- "permissions.global_ip_temporarily_banned": "Deine IP-Adresse {ipAddress} wurde vorübergehend von der {product_name} API gesperrt. Die Sperre wird automatisch aufgehoben, sobald sie abläuft. {appealEmail, select, null {Wenn du glaubst, dass dies ein Fehler ist, kontaktiere die Administratoren dieser Instanz und gib diese IP-Adresse an.} other {Wenn du glaubst, dass dies ein Fehler ist, kontaktiere {appealEmail} und gib diese IP-Adresse an.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} hat den Zugriff aus diesem Netzwerk wegen Aktivitäten blockiert, die gegen die Regeln verstoßen haben.} other {{product_name} hat den Zugriff aus diesem Netzwerk blockiert.}} Wenn du dieses Netzwerk mit anderen teilst, zum Beispiel in der Schule, bei der Arbeit, in einem öffentlichen WLAN, über deinen Mobilfunkanbieter oder ein VPN, hat diese Sperre vielleicht nichts mit dir zu tun. Am schnellsten hilft es, das Netzwerk zu wechseln, zum Beispiel zu mobilen Daten statt WLAN, oder dein VPN ein- oder auszuschalten.{appealEmail, select, null {} other { Wenn du glaubst, dass diese Sperre ein Fehler ist, sende eine E-Mail an {appealEmail} und gib deine IP-Adresse an: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} hat den Zugriff aus diesem Netzwerk wegen Aktivitäten blockiert, die gegen die Regeln verstoßen haben.} other {{product_name} hat den Zugriff aus diesem Netzwerk blockiert.}} Die Sperre endet am {expiresAt}. Wenn du dieses Netzwerk mit anderen teilst, zum Beispiel in der Schule, bei der Arbeit, in einem öffentlichen WLAN, über deinen Mobilfunkanbieter oder ein VPN, hat diese Sperre vielleicht nichts mit dir zu tun. Am schnellsten hilft es, das Netzwerk zu wechseln, zum Beispiel zu mobilen Daten statt WLAN, oder dein VPN ein- oder auszuschalten.{appealEmail, select, null {} other { Wenn du glaubst, dass diese Sperre ein Fehler ist, sende eine E-Mail an {appealEmail} und gib deine IP-Adresse an: {ipAddress}.}}",
"permissions.missing_access": "Du hast keinen Zugriff auf diese Ressource oder Funktion.",
"permissions.missing_permissions": "Du hast nicht die erforderlichen Berechtigungen, um diese Aktion auszuführen.",
"permissions.user_banned_from_guild": "Dieser Benutzer ist aus dieser Community gebannt.",
diff --git a/packages/errors/src/i18n/weblate/locales/el.json b/packages/errors/src/i18n/weblate/locales/el.json
index 934a8d1c8..81c53ed52 100644
--- a/packages/errors/src/i18n/weblate/locales/el.json
+++ b/packages/errors/src/i18n/weblate/locales/el.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "Οι ACLs δεν μπορούν να είναι κενές.",
"admin_and_system.admin_api_key_not_found": "Το κλειδί API διαχειριστή δεν βρέθηκε.",
"admin_and_system.deletion_failed": "Δεν μπορέσαμε να διαγράψουμε τον πόρο. Δοκίμασε ξανά.",
+ "admin_and_system.enforcement_account_closed": "Αυτός ο λογαριασμός έχει κλείσει, οπότε δεν μπορεί να τεθεί σε αναστολή.",
+ "admin_and_system.enforcement_confirmations_required": "Επιβεβαίωσε ότι τα αποδεικτικά στοιχεία έχουν διατηρηθεί και ότι έχει υποβληθεί κάθε απαιτούμενη αναφορά.",
+ "admin_and_system.enforcement_decision_ended": "Αυτή η απόφαση έχει ήδη λήξει.",
+ "admin_and_system.enforcement_decision_owns_state": "Αυτός ο περιορισμός ανήκει σε απόφαση επιβολής κανόνων. Τερμάτισε αντί γι' αυτό την απόφαση.",
+ "admin_and_system.enforcement_decision_replaced": "Μια μεταγενέστερη απόφαση αντικατέστησε αυτήν, οπότε δεν μπορεί πλέον να τερματιστεί.",
+ "admin_and_system.enforcement_deletion_started": "Η διαγραφή αυτού του λογαριασμού έχει ήδη ξεκινήσει, οπότε η απόφαση δεν μπορεί πλέον να τερματιστεί.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Μηνύματα από συνομιλίες απευθείας μηνυμάτων μπορούν να χρησιμοποιηθούν ως αποδεικτικά στοιχεία μόνο όταν μια συνδεδεμένη αναφορά καλύπτει τη συγκεκριμένη συνομιλία.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Τα μηνύματα που αφαιρούνται αποθηκεύονται ως αποδεικτικά στοιχεία, οπότε μην προσθέσεις ξεχωριστά μηνύματα αποδεικτικών στοιχείων.",
+ "admin_and_system.enforcement_evidence_not_found": "Ένα από τα μηνύματα αποδεικτικών στοιχείων δεν βρέθηκε.",
+ "admin_and_system.enforcement_evidence_not_subject": "Κάθε μήνυμα αποδεικτικών στοιχείων πρέπει να προέρχεται από τον λογαριασμό ή την κοινότητα που αφορά αυτή η απόφαση.",
+ "admin_and_system.enforcement_evidence_required": "Αυτή η απόφαση χρειάζεται τουλάχιστον ένα μήνυμα αποδεικτικών στοιχείων.",
+ "admin_and_system.enforcement_facts_required": "Πρόσθεσε ένα μήνυμα αποδεικτικών στοιχείων ή μια σημείωση προς τον χρήστη.",
+ "admin_and_system.enforcement_internal_note_required": "Πρόσθεσε μια εσωτερική σημείωση στην κεφαλίδα X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Αυτός ο λόγος δεν μπορεί να χρησιμοποιηθεί για αυτή την ενέργεια.",
+ "admin_and_system.enforcement_limit_end_invalid": "Μόνο ο περιορισμός αναφορών έχει ημερομηνία λήξης, και αυτή πρέπει να είναι εντός των επόμενων 365 ημερών.",
+ "admin_and_system.enforcement_limit_not_allowed": "Αυτός ο λόγος δεν μπορεί να χρησιμοποιηθεί για αυτόν τον περιορισμό.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Μόνο μια οριστική αναστολή ή ένα κλείσιμο λόγω παραβίασης κανόνα μπορεί να αποκλείσει δίκτυα.",
+ "admin_and_system.enforcement_network_shared": "Σε αυτό το δίκτυο ήταν τελευταία ενεργοί άλλοι λογαριασμοί χωρίς περιορισμούς, οπότε δεν μπορεί να αποκλειστεί.",
+ "admin_and_system.enforcement_network_unknown": "Αυτός ο λογαριασμός δεν έχει χρησιμοποιήσει αυτό το δίκτυο τις τελευταίες 30 ημέρες.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Αυτό το είδος απόφασης μπορεί να τερματιστεί μόνο με ανάκληση, επειδή δεν υπάρχει κάτι για άρση.",
+ "admin_and_system.enforcement_permanent_required": "Οι αναστολές για αυτόν τον λόγο πρέπει να είναι οριστικές.",
+ "admin_and_system.enforcement_report_mismatch": "Κάθε συνδεδεμένη αναφορά πρέπει να υπάρχει και να αφορά τον λογαριασμό ή την κοινότητα που αφορά αυτή η απόφαση.",
+ "admin_and_system.enforcement_report_required": "Σύνδεσε τουλάχιστον μία αναφορά όταν η πηγή είναι αναφορά.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Δικαιούχος μπορεί να οριστεί μόνο σε αποφάσεις για πνευματικά δικαιώματα.",
+ "admin_and_system.enforcement_rights_holder_required": "Οι αποφάσεις για πνευματικά δικαιώματα χρειάζονται τον δικαιούχο ή το σχετικό δικαίωμα.",
+ "admin_and_system.enforcement_statement_not_allowed": "Οι αποφάσεις για αυτόν τον λόγο δεν μπορούν να περιλαμβάνουν σημείωση προς τον χρήστη.",
+ "admin_and_system.flag_requires_enforcement_route": "Αυτή η σημαία είναι μέρος ενός περιορισμού. Άλλαξέ τη μέσω των διαδρομών αναστολής, διαγραφής ή περιορισμού λειτουργιών.",
"admin_and_system.general_error": "Κάτι πήγε στραβά. Δοκίμασε ξανά αργότερα.",
"admin_and_system.guild_id_required_for_search_index": "Απαιτείται το αναγνωριστικό της κοινότητας για τους δείκτες αναζήτησης μηνυμάτων καναλιού και μελών.",
"admin_and_system.instance_policy_transition_not_allowed": "Αυτή η αλλαγή πολιτικής της εγκατάστασης δεν επιτρέπεται.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Μη έγκυρη χρονική σήμανση.",
"admin_and_system.invalid_timezone_identifier": "Μη έγκυρο αναγνωριστικό ζώνης ώρας.",
"admin_and_system.missing_acl": "Λείπει ACL.",
+ "admin_and_system.moderation_basis_required": "Δώσε μια βάση για τη διαγραφή των μηνυμάτων.",
"admin_and_system.must_be_iso_timestamp": "Πρέπει να είναι έγκυρη χρονική σήμανση ISO.",
"admin_and_system.processing_failed": "Δεν μπορέσαμε να επεξεργαστούμε το αίτημα. Δοκίμασε ξανά.",
"admin_and_system.resource_locked": "Αυτός ο πόρος τροποποιείται. Δοκίμασε ξανά σε λίγο.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Η εξαργύρωση του κωδικού δώρου βρίσκεται σε εξέλιξη. Δοκίμασε ξανά σε λίγο.",
"invites_and_gifts.unknown_gift_code": "Άγνωστος κωδικός δώρου.",
"invites_and_packs.max_emojis_reached": "Έχεις φτάσει το μέγιστο των {count} {count, plural, one {emoji} other {emoji}}.",
- "limits.at_least_one_entry_required": "Απαιτείται τουλάχιστον μία εγγραφή.",
"limits.base64_length_invalid": "Το μήκος της συμβολοσειράς Base64 πρέπει να είναι μεταξύ {min} και {maxLength} χαρακτήρων.",
"limits.cannot_specify_before_and_after": "Δεν μπορείς να καθορίσεις ταυτόχρονα `before` και `after`.",
"limits.content_exceeds_max_length": "Το κείμενο δεν πρέπει να υπερβαίνει τους {maxLength} {maxLength, plural, one {χαρακτήρα} other {χαρακτήρες}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Μη έγκυρος κωδικός επαλήθευσης DSA.",
"moderation_and_reports.invalid_report_flow_answers": "Αυτές οι απαντήσεις δεν ταιριάζουν με τη φόρμα αναφοράς. Ξεκίνα ξανά την αναφορά.",
"moderation_and_reports.ip_ban_declined": "Αυτή η διεύθυνση IP δεν μπορεί να προστεθεί στη λίστα αποκλεισμού.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Αυτός ο αποκλεισμός δικτύου ανήκει σε απόφαση επιβολής κανόνων. Τερμάτισε την απόφαση για να τον αφαιρέσεις.",
"moderation_and_reports.report_already_resolved": "Η αναφορά έχει ήδη διευθετηθεί.",
"moderation_and_reports.report_banned": "Έχεις αποκλειστεί από την υποβολή αναφορών.",
"moderation_and_reports.report_flow_outdated": "Η φόρμα αναφοράς άλλαξε ενώ τη συμπλήρωνες. Ξεκίνα ξανά την αναφορά.",
+ "moderation_and_reports.report_outcome_invalid": "Η επίλυση «έγινε ενέργεια» απαιτεί αποτέλεσμα διαφορετικό από «καμία παραβίαση». Η επίλυση «διπλότυπο» απαιτεί την αναφορά που επαναλαμβάνει και δεν επιτρέπεται να έχει αποτέλεσμα. Στην επίλυση «καμία παραβίαση» δεν επιτρέπεται άλλο αποτέλεσμα.",
"moderation_and_reports.report_under_legal_hold": "Αυτή η αναφορά τελεί υπό νομική δέσμευση και δεν μπορεί να διαγραφεί.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Πρέπει να ολοκληρώσεις τη ρύθμιση του λογαριασμού σου πριν υποβάλεις αναφορές.",
+ "moderation_and_reports.unknown_enforcement_decision": "Άγνωστη απόφαση επιβολής κανόνων.",
"moderation_and_reports.unknown_report": "Άγνωστη αναφορά.",
"moderation_and_reports.user_is_not_banned": "Αυτός ο χρήστης δεν έχει αποκλειστεί.",
"names_and_normalization.name_empty_after_normalization": "Το όνομα δεν μπορεί να είναι κενό μετά την κανονικοποίηση.",
- "permissions.global_ip_banned": "Η διεύθυνση IP σου {ipAddress} έχει αποκλειστεί μόνιμα από το {product_name} API από τους διαχειριστές της πλατφόρμας. {appealEmail, select, null {Αν πιστεύεις ότι πρόκειται για λάθος, επικοινώνησε με τους διαχειριστές αυτής της παρουσίας για να υποβάλεις προσφυγή.} other {Αν πιστεύεις ότι πρόκειται για λάθος, επικοινώνησε με {appealEmail} για να υποβάλεις προσφυγή.}} Συμπερίλαβε αυτήν τη διεύθυνση IP στην προσφυγή σου.",
- "permissions.global_ip_temporarily_banned": "Η διεύθυνση IP σου {ipAddress} έχει αποκλειστεί προσωρινά από το {product_name} API. Ο αποκλεισμός αίρεται αυτόματα όταν λήξει. {appealEmail, select, null {Αν πιστεύεις ότι πρόκειται για λάθος, επικοινώνησε με τους διαχειριστές αυτής της παρουσίας και συμπερίλαβε αυτήν τη διεύθυνση IP.} other {Αν πιστεύεις ότι πρόκειται για λάθος, επικοινώνησε με {appealEmail} και συμπερίλαβε αυτήν τη διεύθυνση IP.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {Το {product_name} απέκλεισε την πρόσβαση από αυτό το δίκτυο λόγω δραστηριότητας που παραβίασε τους κανόνες του.} other {Το {product_name} απέκλεισε την πρόσβαση από αυτό το δίκτυο.}} Αν μοιράζεσαι αυτό το δίκτυο με άλλους, για παράδειγμα στο σχολείο, στη δουλειά, σε δημόσιο Wi-Fi, μέσω της εταιρείας κινητής τηλεφωνίας σου ή μέσω VPN, ο αποκλεισμός μπορεί να μην έχει καμία σχέση με εσένα. Η πιο γρήγορη λύση είναι να αλλάξεις δίκτυο, για παράδειγμα να χρησιμοποιήσεις δεδομένα κινητής αντί για Wi-Fi, ή να ενεργοποιήσεις ή να απενεργοποιήσεις το VPN σου.{appealEmail, select, null {} other { Αν πιστεύεις ότι ο αποκλεισμός είναι λάθος, στείλε email στο {appealEmail} και ανάφερε τη διεύθυνση IP σου, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {Το {product_name} απέκλεισε την πρόσβαση από αυτό το δίκτυο λόγω δραστηριότητας που παραβίασε τους κανόνες του.} other {Το {product_name} απέκλεισε την πρόσβαση από αυτό το δίκτυο.}} Ο αποκλεισμός λήγει στις {expiresAt}. Αν μοιράζεσαι αυτό το δίκτυο με άλλους, για παράδειγμα στο σχολείο, στη δουλειά, σε δημόσιο Wi-Fi, μέσω της εταιρείας κινητής τηλεφωνίας σου ή μέσω VPN, ο αποκλεισμός μπορεί να μην έχει καμία σχέση με εσένα. Η πιο γρήγορη λύση είναι να αλλάξεις δίκτυο, για παράδειγμα να χρησιμοποιήσεις δεδομένα κινητής αντί για Wi-Fi, ή να ενεργοποιήσεις ή να απενεργοποιήσεις το VPN σου.{appealEmail, select, null {} other { Αν πιστεύεις ότι ο αποκλεισμός είναι λάθος, στείλε email στο {appealEmail} και ανάφερε τη διεύθυνση IP σου, {ipAddress}.}}",
"permissions.missing_access": "Δεν έχεις πρόσβαση σε αυτόν τον πόρο ή σε αυτήν τη λειτουργία.",
"permissions.missing_permissions": "Δεν έχεις τα απαραίτητα δικαιώματα για να εκτελέσεις αυτήν την ενέργεια.",
"permissions.user_banned_from_guild": "Αυτός ο χρήστης έχει αποκλειστεί από αυτήν την κοινότητα.",
diff --git a/packages/errors/src/i18n/weblate/locales/en-GB.json b/packages/errors/src/i18n/weblate/locales/en-GB.json
index 288614276..1ab780e30 100644
--- a/packages/errors/src/i18n/weblate/locales/en-GB.json
+++ b/packages/errors/src/i18n/weblate/locales/en-GB.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACLs must be non-empty.",
"admin_and_system.admin_api_key_not_found": "Admin API key wasn't found.",
"admin_and_system.deletion_failed": "We couldn't delete the resource. Please try again.",
+ "admin_and_system.enforcement_account_closed": "This account is closed, so it can't be suspended.",
+ "admin_and_system.enforcement_confirmations_required": "Confirm that the evidence is preserved and that any required report is filed.",
+ "admin_and_system.enforcement_decision_ended": "This decision has already ended.",
+ "admin_and_system.enforcement_decision_owns_state": "An enforcement decision owns this restriction. End the decision instead.",
+ "admin_and_system.enforcement_decision_replaced": "A later decision replaced this one, so it can no longer be ended.",
+ "admin_and_system.enforcement_deletion_started": "The deletion of this account has already started, so the decision can no longer be ended.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Messages in direct messages can only be used as evidence when a linked report covers that conversation.",
+ "admin_and_system.enforcement_evidence_not_allowed": "The messages being removed are saved as evidence, so leave out separate evidence messages.",
+ "admin_and_system.enforcement_evidence_not_found": "One of the evidence messages wasn't found.",
+ "admin_and_system.enforcement_evidence_not_subject": "Every evidence message must be from the account or community this decision is about.",
+ "admin_and_system.enforcement_evidence_required": "This decision needs at least one evidence message.",
+ "admin_and_system.enforcement_facts_required": "Add an evidence message or a note to the user.",
+ "admin_and_system.enforcement_internal_note_required": "Add an internal note in the X-Audit-Log-Reason header.",
+ "admin_and_system.enforcement_kind_not_allowed": "This reason can't be used for this action.",
+ "admin_and_system.enforcement_limit_end_invalid": "Only a reports limit has an end date, and it must be within the next 365 days.",
+ "admin_and_system.enforcement_limit_not_allowed": "This reason can't be used for this limit.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Only a permanent suspension or a closure for a broken rule can block networks.",
+ "admin_and_system.enforcement_network_shared": "Other accounts that aren't restricted were last active on this network, so it can't be blocked.",
+ "admin_and_system.enforcement_network_unknown": "This account hasn't used this network in the last 30 days.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Only a reversal can end this kind of decision, because there is nothing to lift.",
+ "admin_and_system.enforcement_permanent_required": "Suspensions for this reason must be permanent.",
+ "admin_and_system.enforcement_report_mismatch": "Every linked report must exist and be about the account or community this decision is about.",
+ "admin_and_system.enforcement_report_required": "Link at least one report when the source is a report.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "A rights holder can only be given for copyright decisions.",
+ "admin_and_system.enforcement_rights_holder_required": "Copyright decisions need the rights holder or the right concerned.",
+ "admin_and_system.enforcement_statement_not_allowed": "Decisions for this reason can't include a note to the user.",
+ "admin_and_system.flag_requires_enforcement_route": "This flag is part of a restriction. Change it through the suspension, deletion or feature limit routes.",
"admin_and_system.general_error": "Something went wrong. Please try again later.",
"admin_and_system.guild_id_required_for_search_index": "Community ID is required for channel message and member search indexes.",
"admin_and_system.instance_policy_transition_not_allowed": "This instance policy change is not allowed.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Invalid timestamp.",
"admin_and_system.invalid_timezone_identifier": "Invalid time zone identifier.",
"admin_and_system.missing_acl": "Missing ACL.",
+ "admin_and_system.moderation_basis_required": "Give a basis to delete the messages.",
"admin_and_system.must_be_iso_timestamp": "Must be a valid ISO timestamp.",
"admin_and_system.processing_failed": "We couldn't process the request. Please try again.",
"admin_and_system.resource_locked": "This resource is being modified. Please try again shortly.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Gift code redemption is in progress. Try again in a moment.",
"invites_and_gifts.unknown_gift_code": "Unknown gift code.",
"invites_and_packs.max_emojis_reached": "You've reached the maximum of {count, plural, one {# emoji} other {# emojis}}.",
- "limits.at_least_one_entry_required": "At least one entry is required.",
"limits.base64_length_invalid": "Base64 string length must be between {min} and {maxLength} characters.",
"limits.cannot_specify_before_and_after": "You can't specify both `before` and `after`.",
"limits.content_exceeds_max_length": "Text must not exceed {maxLength, plural, one {# character} other {# characters}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Invalid DSA verification code.",
"moderation_and_reports.invalid_report_flow_answers": "These answers don't match the report form. Start the report again.",
"moderation_and_reports.ip_ban_declined": "This IP address cannot be added to the blocklist.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "This network block belongs to an enforcement decision. End the decision to remove it.",
"moderation_and_reports.report_already_resolved": "Report already resolved.",
"moderation_and_reports.report_banned": "You've been banned from submitting reports.",
"moderation_and_reports.report_flow_outdated": "The report form changed while you were filling it in. Start the report again.",
+ "moderation_and_reports.report_outcome_invalid": "An actioned resolution needs an outcome other than no violation. A duplicate needs the report it repeats and takes no outcome. A no violation resolution takes no other outcome.",
"moderation_and_reports.report_under_legal_hold": "This report is under a legal hold and can't be deleted.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "You need to complete your account setup before you can submit reports.",
+ "moderation_and_reports.unknown_enforcement_decision": "Unknown enforcement decision.",
"moderation_and_reports.unknown_report": "Unknown report.",
"moderation_and_reports.user_is_not_banned": "This user isn't banned.",
"names_and_normalization.name_empty_after_normalization": "Name can't be empty after normalisation.",
- "permissions.global_ip_banned": "Your IP address {ipAddress} has been permanently blocked from the {product_name} API by platform administrators. {appealEmail, select, null {If you believe this is a mistake, contact the administrators of this instance to appeal.} other {If you believe this is a mistake, contact {appealEmail} to appeal.}} Include this IP address in your appeal.",
- "permissions.global_ip_temporarily_banned": "Your IP address {ipAddress} has been temporarily blocked from the {product_name} API. The block lifts on its own when it expires. {appealEmail, select, null {If you think this is a mistake, contact the administrators of this instance and include this IP address.} other {If you think this is a mistake, contact {appealEmail} and include this IP address.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} If you share this network, for example at school, at work, on public Wi-Fi, through your mobile network or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} The block ends on {expiresAt}. If you share this network, for example at school, at work, on public Wi-Fi, through your mobile network or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}",
"permissions.missing_access": "You don't have access to this resource or feature.",
"permissions.missing_permissions": "You don't have the permissions required to perform this action.",
"permissions.user_banned_from_guild": "This user is banned from this community.",
diff --git a/packages/errors/src/i18n/weblate/locales/es-419.json b/packages/errors/src/i18n/weblate/locales/es-419.json
index 033dd81b3..9dcfe9c02 100644
--- a/packages/errors/src/i18n/weblate/locales/es-419.json
+++ b/packages/errors/src/i18n/weblate/locales/es-419.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "Las ACL no pueden estar vacías.",
"admin_and_system.admin_api_key_not_found": "No se encontró la clave de API de administrador.",
"admin_and_system.deletion_failed": "No se pudo eliminar el recurso. Inténtalo de nuevo.",
+ "admin_and_system.enforcement_account_closed": "Esta cuenta está cerrada, así que no se puede suspender.",
+ "admin_and_system.enforcement_confirmations_required": "Confirma que las pruebas se conservaron y que se presentó cualquier notificación obligatoria.",
+ "admin_and_system.enforcement_decision_ended": "Esta decisión ya terminó.",
+ "admin_and_system.enforcement_decision_owns_state": "Esta restricción depende de una decisión de moderación. Finaliza esa decisión.",
+ "admin_and_system.enforcement_decision_replaced": "Una decisión posterior reemplazó a esta, así que ya no se puede finalizar.",
+ "admin_and_system.enforcement_deletion_started": "La eliminación de esta cuenta ya comenzó, así que la decisión ya no se puede finalizar.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Los mensajes directos solo se pueden usar como pruebas si un reporte vinculado cubre esa conversación.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Los mensajes que se eliminan se guardan como pruebas, así que no agregues mensajes de prueba aparte.",
+ "admin_and_system.enforcement_evidence_not_found": "No se encontró uno de los mensajes de prueba.",
+ "admin_and_system.enforcement_evidence_not_subject": "Todos los mensajes de prueba deben ser de la cuenta o la comunidad a la que se refiere esta decisión.",
+ "admin_and_system.enforcement_evidence_required": "Esta decisión necesita al menos un mensaje de prueba.",
+ "admin_and_system.enforcement_facts_required": "Agrega un mensaje de prueba o una nota para el usuario.",
+ "admin_and_system.enforcement_internal_note_required": "Agrega una nota interna en el encabezado X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Este motivo no se puede usar para esta acción.",
+ "admin_and_system.enforcement_limit_end_invalid": "Solo un límite de reportes tiene fecha de fin, y debe estar dentro de los próximos 365 días.",
+ "admin_and_system.enforcement_limit_not_allowed": "Este motivo no se puede usar para este límite.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Solo una suspensión permanente o un cierre por infringir una regla pueden bloquear redes.",
+ "admin_and_system.enforcement_network_shared": "Otras cuentas sin restricciones tuvieron su última actividad en esta red, así que no se puede bloquear.",
+ "admin_and_system.enforcement_network_unknown": "Esta cuenta no usó esta red en los últimos 30 días.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Solo una revocación puede finalizar este tipo de decisión, porque no hay nada que levantar.",
+ "admin_and_system.enforcement_permanent_required": "Las suspensiones por este motivo deben ser permanentes.",
+ "admin_and_system.enforcement_report_mismatch": "Todos los reportes vinculados deben existir y referirse a la cuenta o la comunidad a la que se refiere esta decisión.",
+ "admin_and_system.enforcement_report_required": "Vincula al menos un reporte cuando el origen sea un reporte.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Solo se puede indicar un titular de derechos en decisiones de derechos de autor.",
+ "admin_and_system.enforcement_rights_holder_required": "Las decisiones de derechos de autor necesitan el titular de los derechos o el derecho afectado.",
+ "admin_and_system.enforcement_statement_not_allowed": "Las decisiones por este motivo no pueden incluir una nota para el usuario.",
+ "admin_and_system.flag_requires_enforcement_route": "Este indicador forma parte de una restricción. Cámbialo mediante las rutas de suspensión, eliminación o límite de funciones.",
"admin_and_system.general_error": "Algo salió mal. Inténtalo de nuevo más tarde.",
"admin_and_system.guild_id_required_for_search_index": "Se requiere el ID de la comunidad para los índices de búsqueda de mensajes del canal y de miembros.",
"admin_and_system.instance_policy_transition_not_allowed": "Este cambio de la política de la instancia no está permitido.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Marca de tiempo inválida.",
"admin_and_system.invalid_timezone_identifier": "Identificador de zona horaria inválido.",
"admin_and_system.missing_acl": "Falta ACL.",
+ "admin_and_system.moderation_basis_required": "Indica un fundamento para eliminar los mensajes.",
"admin_and_system.must_be_iso_timestamp": "Debe ser una marca de tiempo ISO válida.",
"admin_and_system.processing_failed": "No se pudo procesar la solicitud. Inténtalo de nuevo.",
"admin_and_system.resource_locked": "Este recurso se está modificando. Inténtalo de nuevo en breve.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "El canje del código de regalo está en proceso. Intenta de nuevo en un momento.",
"invites_and_gifts.unknown_gift_code": "Código de regalo desconocido.",
"invites_and_packs.max_emojis_reached": "Has alcanzado el máximo de {count} {count, plural, one {emoji} other {emojis}}.",
- "limits.at_least_one_entry_required": "Se requiere al menos una entrada.",
"limits.base64_length_invalid": "La longitud de la cadena Base64 debe estar entre {min} y {maxLength} caracteres.",
"limits.cannot_specify_before_and_after": "No puedes especificar `before` y `after` a la vez.",
"limits.content_exceeds_max_length": "El texto no debe exceder los {maxLength} {maxLength, plural, one {carácter} other {caracteres}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Código de verificación DSA no válido.",
"moderation_and_reports.invalid_report_flow_answers": "Estas respuestas no coinciden con el formulario de reporte. Vuelve a iniciar el reporte.",
"moderation_and_reports.ip_ban_declined": "Esta dirección IP no se puede agregar a la lista de bloqueo.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Este bloqueo de red pertenece a una decisión de moderación. Finaliza la decisión para quitarlo.",
"moderation_and_reports.report_already_resolved": "El reporte ya se resolvió.",
"moderation_and_reports.report_banned": "Se te ha prohibido enviar reportes.",
"moderation_and_reports.report_flow_outdated": "El formulario de reporte cambió mientras lo completabas. Vuelve a iniciar el reporte.",
+ "moderation_and_reports.report_outcome_invalid": "Una resolución con medidas necesita un resultado, que no puede ser la ausencia de infracción. Una resolución duplicada necesita el reporte original y no admite ningún resultado. Una resolución sin infracción no admite ningún otro resultado.",
"moderation_and_reports.report_under_legal_hold": "Este reporte está bajo retención legal y no se puede eliminar.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Tienes que completar el registro de tu cuenta antes de poder enviar reportes.",
+ "moderation_and_reports.unknown_enforcement_decision": "Decisión de moderación desconocida.",
"moderation_and_reports.unknown_report": "Reporte desconocido.",
"moderation_and_reports.user_is_not_banned": "Este usuario no ha sido baneado.",
"names_and_normalization.name_empty_after_normalization": "El nombre no puede quedar vacío después de la normalización.",
- "permissions.global_ip_banned": "Tu dirección IP {ipAddress} fue bloqueada permanentemente de la API de {product_name} por administradores de la plataforma. {appealEmail, select, null {Si crees que es un error, comunícate con los administradores de esta instancia para apelar.} other {Si crees que es un error, escribe a {appealEmail} para apelar.}} Incluye esta dirección IP en tu apelación.",
- "permissions.global_ip_temporarily_banned": "Tu dirección IP {ipAddress} fue bloqueada temporalmente de la API de {product_name}. El bloqueo se levanta automáticamente cuando vence. {appealEmail, select, null {Si crees que es un error, comunícate con los administradores de esta instancia e incluye esta dirección IP.} other {Si crees que es un error, escribe a {appealEmail} e incluye esta dirección IP.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} bloqueó el acceso desde esta red debido a una actividad que infringía sus reglas.} other {{product_name} bloqueó el acceso desde esta red.}} Si compartes esta red, por ejemplo en la escuela, en el trabajo, en una red Wi-Fi pública, a través de tu compañía de celular o de una VPN, es posible que este bloqueo no tenga nada que ver contigo. La forma más rápida de solucionarlo es cambiar de red, por ejemplo usar datos móviles en lugar de Wi-Fi, o activar o desactivar tu VPN.{appealEmail, select, null {} other { Si crees que este bloqueo es un error, escribe a {appealEmail} e indica tu dirección IP, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} bloqueó el acceso desde esta red debido a una actividad que infringía sus reglas.} other {{product_name} bloqueó el acceso desde esta red.}} El bloqueo termina el {expiresAt}. Si compartes esta red, por ejemplo en la escuela, en el trabajo, en una red Wi-Fi pública, a través de tu compañía de celular o de una VPN, es posible que este bloqueo no tenga nada que ver contigo. La forma más rápida de solucionarlo es cambiar de red, por ejemplo usar datos móviles en lugar de Wi-Fi, o activar o desactivar tu VPN.{appealEmail, select, null {} other { Si crees que este bloqueo es un error, escribe a {appealEmail} e indica tu dirección IP, {ipAddress}.}}",
"permissions.missing_access": "No tienes acceso a este recurso o función.",
"permissions.missing_permissions": "No tienes los permisos necesarios para realizar esta acción.",
"permissions.user_banned_from_guild": "Este usuario ha sido baneado de esta comunidad.",
diff --git a/packages/errors/src/i18n/weblate/locales/es-ES.json b/packages/errors/src/i18n/weblate/locales/es-ES.json
index 1d1d2d79a..9c6d2c8df 100644
--- a/packages/errors/src/i18n/weblate/locales/es-ES.json
+++ b/packages/errors/src/i18n/weblate/locales/es-ES.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "Las ACL no pueden estar vacías.",
"admin_and_system.admin_api_key_not_found": "No se encontró la clave API de administrador.",
"admin_and_system.deletion_failed": "No se pudo eliminar el recurso. Inténtalo de nuevo.",
+ "admin_and_system.enforcement_account_closed": "Esta cuenta está cerrada, así que no se puede suspender.",
+ "admin_and_system.enforcement_confirmations_required": "Confirma que las pruebas se han conservado y que se ha presentado cualquier notificación obligatoria.",
+ "admin_and_system.enforcement_decision_ended": "Esta decisión ya ha terminado.",
+ "admin_and_system.enforcement_decision_owns_state": "Esta restricción depende de una decisión de moderación. Finaliza esa decisión.",
+ "admin_and_system.enforcement_decision_replaced": "Una decisión posterior ha sustituido a esta, así que ya no se puede finalizar.",
+ "admin_and_system.enforcement_deletion_started": "La eliminación de esta cuenta ya ha empezado, así que la decisión ya no se puede finalizar.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Los mensajes directos solo se pueden usar como pruebas si una denuncia vinculada cubre esa conversación.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Los mensajes que se eliminan se guardan como pruebas, así que no añadas mensajes de prueba aparte.",
+ "admin_and_system.enforcement_evidence_not_found": "No se ha encontrado uno de los mensajes de prueba.",
+ "admin_and_system.enforcement_evidence_not_subject": "Todos los mensajes de prueba deben ser de la cuenta o la comunidad a la que se refiere esta decisión.",
+ "admin_and_system.enforcement_evidence_required": "Esta decisión necesita al menos un mensaje de prueba.",
+ "admin_and_system.enforcement_facts_required": "Añade un mensaje de prueba o una nota para el usuario.",
+ "admin_and_system.enforcement_internal_note_required": "Añade una nota interna en la cabecera X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Este motivo no se puede usar para esta acción.",
+ "admin_and_system.enforcement_limit_end_invalid": "Solo un límite de denuncias tiene fecha de fin, y debe estar dentro de los próximos 365 días.",
+ "admin_and_system.enforcement_limit_not_allowed": "Este motivo no se puede usar para este límite.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Solo una suspensión permanente o un cierre por infringir una norma pueden bloquear redes.",
+ "admin_and_system.enforcement_network_shared": "Otras cuentas sin restricciones tuvieron su última actividad en esta red, así que no se puede bloquear.",
+ "admin_and_system.enforcement_network_unknown": "Esta cuenta no ha usado esta red en los últimos 30 días.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Solo una revocación puede finalizar este tipo de decisión, porque no hay nada que levantar.",
+ "admin_and_system.enforcement_permanent_required": "Las suspensiones por este motivo deben ser permanentes.",
+ "admin_and_system.enforcement_report_mismatch": "Todas las denuncias vinculadas deben existir y referirse a la cuenta o la comunidad a la que se refiere esta decisión.",
+ "admin_and_system.enforcement_report_required": "Vincula al menos una denuncia cuando el origen sea una denuncia.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Solo se puede indicar un titular de derechos en decisiones de derechos de autor.",
+ "admin_and_system.enforcement_rights_holder_required": "Las decisiones de derechos de autor necesitan el titular de los derechos o el derecho afectado.",
+ "admin_and_system.enforcement_statement_not_allowed": "Las decisiones por este motivo no pueden incluir una nota para el usuario.",
+ "admin_and_system.flag_requires_enforcement_route": "Este indicador forma parte de una restricción. Cámbialo mediante las rutas de suspensión, eliminación o límite de funciones.",
"admin_and_system.general_error": "Algo ha salido mal. Inténtalo de nuevo más tarde.",
"admin_and_system.guild_id_required_for_search_index": "Se requiere el ID de la comunidad para los índices de búsqueda de mensajes del canal y de miembros.",
"admin_and_system.instance_policy_transition_not_allowed": "Este cambio de la política de la instancia no está permitido.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Marca de tiempo no válida.",
"admin_and_system.invalid_timezone_identifier": "Identificador de zona horaria no válido.",
"admin_and_system.missing_acl": "Falta la ACL.",
+ "admin_and_system.moderation_basis_required": "Indica un fundamento para eliminar los mensajes.",
"admin_and_system.must_be_iso_timestamp": "Debe ser una marca de tiempo ISO válida.",
"admin_and_system.processing_failed": "No se pudo procesar la solicitud. Inténtalo de nuevo.",
"admin_and_system.resource_locked": "Este recurso se está modificando. Por favor, inténtalo de nuevo en breve.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "El canje del código de regalo está en curso. Inténtalo de nuevo en un momento.",
"invites_and_gifts.unknown_gift_code": "Código de regalo desconocido.",
"invites_and_packs.max_emojis_reached": "Has alcanzado el máximo de {count} {count, plural, one {emoji} other {emojis}}.",
- "limits.at_least_one_entry_required": "Es necesaria al menos una entrada.",
"limits.base64_length_invalid": "La longitud de la cadena Base64 debe estar entre {min} y {maxLength} caracteres.",
"limits.cannot_specify_before_and_after": "No puedes especificar `before` y `after` a la vez.",
"limits.content_exceeds_max_length": "El texto no debe exceder {maxLength} {maxLength, plural, one {carácter} other {caracteres}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Código de verificación DSA no válido.",
"moderation_and_reports.invalid_report_flow_answers": "Estas respuestas no coinciden con el formulario de denuncia. Vuelve a empezar la denuncia.",
"moderation_and_reports.ip_ban_declined": "Esta dirección IP no se puede añadir a la lista de bloqueo.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Este bloqueo de red pertenece a una decisión de moderación. Finaliza la decisión para quitarlo.",
"moderation_and_reports.report_already_resolved": "La denuncia ya se ha resuelto.",
"moderation_and_reports.report_banned": "Se te ha prohibido enviar denuncias.",
"moderation_and_reports.report_flow_outdated": "El formulario de denuncia ha cambiado mientras lo rellenabas. Vuelve a empezar la denuncia.",
+ "moderation_and_reports.report_outcome_invalid": "Una resolución con medidas necesita un resultado, que no puede ser la ausencia de infracción. Una resolución duplicada necesita la denuncia original y no admite ningún resultado. Una resolución sin infracción no admite ningún otro resultado.",
"moderation_and_reports.report_under_legal_hold": "Esta denuncia está sujeta a una retención legal y no se puede eliminar.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Tienes que completar el registro de tu cuenta antes de poder enviar denuncias.",
+ "moderation_and_reports.unknown_enforcement_decision": "Decisión de moderación desconocida.",
"moderation_and_reports.unknown_report": "Denuncia desconocida.",
"moderation_and_reports.user_is_not_banned": "Este usuario no está baneado.",
"names_and_normalization.name_empty_after_normalization": "El nombre no puede quedar vacío tras la normalización.",
- "permissions.global_ip_banned": "Tu dirección IP {ipAddress} ha sido bloqueada permanentemente de la API de {product_name} por administradores de la plataforma. {appealEmail, select, null {Si crees que es un error, contacta con los administradores de esta instancia para apelar.} other {Si crees que es un error, contacta con {appealEmail} para apelar.}} Incluye esta dirección IP en la apelación.",
- "permissions.global_ip_temporarily_banned": "Tu dirección IP {ipAddress} ha sido bloqueada temporalmente de la API de {product_name}. El bloqueo se levantará automáticamente cuando caduque. {appealEmail, select, null {Si crees que es un error, contacta con los administradores de esta instancia e incluye esta dirección IP.} other {Si crees que es un error, contacta con {appealEmail} e incluye esta dirección IP.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} ha bloqueado el acceso desde esta red debido a una actividad que infringía sus normas.} other {{product_name} ha bloqueado el acceso desde esta red.}} Si compartes esta red, por ejemplo en el centro de estudios, en el trabajo, en una red Wi-Fi pública, a través de tu operador móvil o de una VPN, puede que este bloqueo no tenga nada que ver contigo. La forma más rápida de solucionarlo es cambiar de red, por ejemplo usar datos móviles en lugar de Wi-Fi, o activar o desactivar tu VPN.{appealEmail, select, null {} other { Si crees que este bloqueo es un error, escribe a {appealEmail} e indica tu dirección IP, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} ha bloqueado el acceso desde esta red debido a una actividad que infringía sus normas.} other {{product_name} ha bloqueado el acceso desde esta red.}} El bloqueo termina el {expiresAt}. Si compartes esta red, por ejemplo en el centro de estudios, en el trabajo, en una red Wi-Fi pública, a través de tu operador móvil o de una VPN, puede que este bloqueo no tenga nada que ver contigo. La forma más rápida de solucionarlo es cambiar de red, por ejemplo usar datos móviles en lugar de Wi-Fi, o activar o desactivar tu VPN.{appealEmail, select, null {} other { Si crees que este bloqueo es un error, escribe a {appealEmail} e indica tu dirección IP, {ipAddress}.}}",
"permissions.missing_access": "No tienes acceso a este recurso o función.",
"permissions.missing_permissions": "No tienes los permisos necesarios para realizar esta acción.",
"permissions.user_banned_from_guild": "Este usuario está baneado de esta comunidad.",
diff --git a/packages/errors/src/i18n/weblate/locales/fi.json b/packages/errors/src/i18n/weblate/locales/fi.json
index b5ca25630..8adfee67f 100644
--- a/packages/errors/src/i18n/weblate/locales/fi.json
+++ b/packages/errors/src/i18n/weblate/locales/fi.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL:t eivät saa olla tyhjiä.",
"admin_and_system.admin_api_key_not_found": "Ylläpidon API-avainta ei löytynyt.",
"admin_and_system.deletion_failed": "Resurssia ei voitu poistaa. Yritä uudelleen.",
+ "admin_and_system.enforcement_account_closed": "Tämä tili on suljettu, joten sitä ei voi jäädyttää.",
+ "admin_and_system.enforcement_confirmations_required": "Vahvista, että todisteet on säilytetty ja että mahdollinen vaadittu ilmoitus on tehty.",
+ "admin_and_system.enforcement_decision_ended": "Tämä päätös on jo päättynyt.",
+ "admin_and_system.enforcement_decision_owns_state": "Tämä rajoitus kuuluu valvontapäätökseen. Lopeta sen sijaan päätöksen voimassaolo.",
+ "admin_and_system.enforcement_decision_replaced": "Myöhempi päätös korvasi tämän, joten sen voimassaoloa ei voi enää lopettaa.",
+ "admin_and_system.enforcement_deletion_started": "Tämän tilin poistaminen on jo alkanut, joten päätöksen voimassaoloa ei voi enää lopettaa.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Yksityisviestejä voi käyttää todisteina vain, kun linkitetty ilmoitus kattaa kyseisen keskustelun.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Poistettavat viestit tallennetaan todisteiksi, joten jätä erilliset todisteviestit pois.",
+ "admin_and_system.enforcement_evidence_not_found": "Yhtä todisteviesteistä ei löytynyt.",
+ "admin_and_system.enforcement_evidence_not_subject": "Jokaisen todisteviestin on oltava tililtä tai yhteisöstä, jota tämä päätös koskee.",
+ "admin_and_system.enforcement_evidence_required": "Tämä päätös tarvitsee vähintään yhden todisteviestin.",
+ "admin_and_system.enforcement_facts_required": "Lisää todisteviesti tai huomautus käyttäjälle.",
+ "admin_and_system.enforcement_internal_note_required": "Lisää sisäinen huomautus X-Audit-Log-Reason-otsakkeeseen.",
+ "admin_and_system.enforcement_kind_not_allowed": "Tätä syytä ei voi käyttää tähän toimenpiteeseen.",
+ "admin_and_system.enforcement_limit_end_invalid": "Vain ilmoitusrajoituksella on päättymispäivä, ja sen on oltava seuraavien 365 päivän sisällä.",
+ "admin_and_system.enforcement_limit_not_allowed": "Tätä syytä ei voi käyttää tähän rajoitukseen.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Verkkoja voi estää vain pysyvällä jäädytyksellä tai rikotun säännön vuoksi tehdyllä sulkemisella.",
+ "admin_and_system.enforcement_network_shared": "Tässä verkossa on viimeksi ollut aktiivisena muita tilejä, joita ei ole rajoitettu, joten verkkoa ei voi estää.",
+ "admin_and_system.enforcement_network_unknown": "Tämä tili ei ole käyttänyt tätä verkkoa viimeisten 30 päivän aikana.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Tämäntyyppisen päätöksen voi lopettaa vain kumoamalla, koska poistettavaa rajoitusta ei ole.",
+ "admin_and_system.enforcement_permanent_required": "Tästä syystä tehtyjen jäädytysten on oltava pysyviä.",
+ "admin_and_system.enforcement_report_mismatch": "Jokaisen linkitetyn ilmoituksen on oltava olemassa ja koskettava samaa tiliä tai yhteisöä kuin tämä päätös.",
+ "admin_and_system.enforcement_report_required": "Linkitä vähintään yksi ilmoitus, kun lähteenä on ilmoitus.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Oikeudenhaltijan voi antaa vain tekijänoikeuspäätöksiin.",
+ "admin_and_system.enforcement_rights_holder_required": "Tekijänoikeuspäätöksiin tarvitaan oikeudenhaltija tai kyseinen oikeus.",
+ "admin_and_system.enforcement_statement_not_allowed": "Tästä syystä tehtyihin päätöksiin ei voi lisätä huomautusta käyttäjälle.",
+ "admin_and_system.flag_requires_enforcement_route": "Tämä lippu on osa rajoitusta. Muuta sitä jäädytys-, poisto- tai ominaisuusrajoitusreittien kautta.",
"admin_and_system.general_error": "Jokin meni pieleen. Yritä uudelleen myöhemmin.",
"admin_and_system.guild_id_required_for_search_index": "Kanavaviestien ja jäsenten hakuindeksit vaativat yhteisön tunnuksen.",
"admin_and_system.instance_policy_transition_not_allowed": "Tätä instanssin käytännön muutosta ei sallita.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Virheellinen aikaleima.",
"admin_and_system.invalid_timezone_identifier": "Virheellinen aikavyöhyketunnus.",
"admin_and_system.missing_acl": "ACL puuttuu.",
+ "admin_and_system.moderation_basis_required": "Anna peruste viestien poistamiselle.",
"admin_and_system.must_be_iso_timestamp": "On oltava kelvollinen ISO-aikaleima.",
"admin_and_system.processing_failed": "Pyyntöä ei voitu käsitellä. Yritä uudelleen.",
"admin_and_system.resource_locked": "Tätä resurssia muokataan parhaillaan. Yritä uudelleen hetken kuluttua.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Lahjakoodin lunastus on käynnissä. Yritä uudelleen hetken kuluttua.",
"invites_and_gifts.unknown_gift_code": "Tuntematon lahjakoodi.",
"invites_and_packs.max_emojis_reached": "Olet saavuttanut emojien enimmäismäärän: {count, plural, one {# emoji} other {# emojia}}.",
- "limits.at_least_one_entry_required": "Vähintään yksi merkintä vaaditaan.",
"limits.base64_length_invalid": "Base64-merkkijonon pituuden on oltava {min}–{maxLength} merkkiä.",
"limits.cannot_specify_before_and_after": "Et voi määrittää sekä `before`- että `after`-arvoja.",
"limits.content_exceeds_max_length": "Tekstin pituus saa olla enintään {maxLength, plural, one {# merkki} other {# merkkiä}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Virheellinen DSA-vahvistuskoodi.",
"moderation_and_reports.invalid_report_flow_answers": "Nämä vastaukset eivät vastaa ilmoituslomaketta. Aloita ilmoitus uudelleen.",
"moderation_and_reports.ip_ban_declined": "Tätä IP-osoitetta ei voi lisätä estolistalle.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Tämä verkkoesto kuuluu valvontapäätökseen. Poista se lopettamalla päätöksen voimassaolo.",
"moderation_and_reports.report_already_resolved": "Ilmoitus on jo ratkaistu.",
"moderation_and_reports.report_banned": "Sinut on estetty lähettämästä ilmoituksia.",
"moderation_and_reports.report_flow_outdated": "Ilmoituslomake muuttui, kun täytit sitä. Aloita ilmoitus uudelleen.",
+ "moderation_and_reports.report_outcome_invalid": "Ratkaisulle ”toimenpiteitä tehty” on annettava jokin muu lopputulos kuin ”ei rikkomusta”. Ratkaisulle ”kaksoiskappale” on annettava ilmoitus, jonka kaksoiskappale se on, eikä sille saa antaa lopputulosta. Ratkaisulle ”ei rikkomusta” ei saa antaa muuta lopputulosta.",
"moderation_and_reports.report_under_legal_hold": "Tämä ilmoitus on oikeudellisen säilytysvelvoitteen alainen, eikä sitä voi poistaa.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Viimeistele tilisi rekisteröinti ennen kuin voit lähettää ilmoituksia.",
+ "moderation_and_reports.unknown_enforcement_decision": "Tuntematon valvontapäätös.",
"moderation_and_reports.unknown_report": "Tuntematon ilmoitus.",
"moderation_and_reports.user_is_not_banned": "Tällä käyttäjällä ei ole porttikieltoa.",
"names_and_normalization.name_empty_after_normalization": "Normalisoinnin jälkeen nimi ei voi olla tyhjä.",
- "permissions.global_ip_banned": "Alustan ylläpitäjät ovat estäneet IP-osoitteelta {ipAddress} pääsyn {product_name} API -rajapintaan pysyvästi. {appealEmail, select, null {Jos uskot tämän olevan virhe, lähetä valitus tämän instanssin ylläpitäjille.} other {Jos uskot tämän olevan virhe, lähetä valitus osoitteeseen {appealEmail}.}} Liitä tämä IP-osoite valitukseesi.",
- "permissions.global_ip_temporarily_banned": "IP-osoitteeltasi {ipAddress} on estetty väliaikaisesti pääsy {product_name} API -rajapintaan. Esto poistuu automaattisesti, kun sen voimassaolo päättyy. {appealEmail, select, null {Jos uskot tämän olevan virhe, ota yhteyttä tämän instanssin ylläpitäjiin ja mainitse tämä IP-osoite.} other {Jos uskot tämän olevan virhe, ota yhteyttä osoitteeseen {appealEmail} ja mainitse tämä IP-osoite.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} esti pääsyn tästä verkosta sääntöjä rikkoneen toiminnan vuoksi.} other {{product_name} esti pääsyn tästä verkosta.}} Jos käytät tätä verkkoa yhdessä muiden kanssa, esimerkiksi koulussa, töissä, julkisessa Wi-Fi-verkossa, mobiilioperaattorisi kautta tai VPN:n kautta, esto ei ehkä liity sinuun mitenkään. Nopein ratkaisu on vaihtaa verkkoa, esimerkiksi mobiilidataan Wi-Fin sijaan, tai kytkeä VPN päälle tai pois.{appealEmail, select, null {} other { Jos uskot, että esto on virhe, lähetä sähköpostia osoitteeseen {appealEmail} ja mainitse IP-osoitteesi, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} esti pääsyn tästä verkosta sääntöjä rikkoneen toiminnan vuoksi.} other {{product_name} esti pääsyn tästä verkosta.}} Esto päättyy {expiresAt}. Jos käytät tätä verkkoa yhdessä muiden kanssa, esimerkiksi koulussa, töissä, julkisessa Wi-Fi-verkossa, mobiilioperaattorisi kautta tai VPN:n kautta, esto ei ehkä liity sinuun mitenkään. Nopein ratkaisu on vaihtaa verkkoa, esimerkiksi mobiilidataan Wi-Fin sijaan, tai kytkeä VPN päälle tai pois.{appealEmail, select, null {} other { Jos uskot, että esto on virhe, lähetä sähköpostia osoitteeseen {appealEmail} ja mainitse IP-osoitteesi, {ipAddress}.}}",
"permissions.missing_access": "Ei oikeutta tähän resurssiin tai ominaisuuteen.",
"permissions.missing_permissions": "Ei tarvittavia oikeuksia tämän toiminnon tekemiseen.",
"permissions.user_banned_from_guild": "Tällä käyttäjällä on porttikielto tähän yhteisöön.",
diff --git a/packages/errors/src/i18n/weblate/locales/fr.json b/packages/errors/src/i18n/weblate/locales/fr.json
index 282de387d..b610bd8d6 100644
--- a/packages/errors/src/i18n/weblate/locales/fr.json
+++ b/packages/errors/src/i18n/weblate/locales/fr.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "Les listes de contrôle d'accès ne doivent pas être vides.",
"admin_and_system.admin_api_key_not_found": "La clé API administrateur n'a pas été trouvée.",
"admin_and_system.deletion_failed": "Impossible de supprimer la ressource. Réessayez.",
+ "admin_and_system.enforcement_account_closed": "Ce compte est fermé, il ne peut donc pas être suspendu.",
+ "admin_and_system.enforcement_confirmations_required": "Confirmez que les preuves sont conservées et que tout signalement obligatoire a été transmis.",
+ "admin_and_system.enforcement_decision_ended": "Cette décision a déjà pris fin.",
+ "admin_and_system.enforcement_decision_owns_state": "Cette restriction relève d'une décision de modération. Mettez plutôt fin à la décision.",
+ "admin_and_system.enforcement_decision_replaced": "Une décision ultérieure a remplacé celle-ci, il n'est donc plus possible d'y mettre fin.",
+ "admin_and_system.enforcement_deletion_started": "La suppression de ce compte a déjà commencé, il n'est donc plus possible de mettre fin à la décision.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Les messages privés ne peuvent servir de preuve que si un signalement lié couvre cette conversation.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Les messages supprimés sont conservés comme preuves, n'ajoutez donc pas de messages de preuve séparés.",
+ "admin_and_system.enforcement_evidence_not_found": "L'un des messages de preuve est introuvable.",
+ "admin_and_system.enforcement_evidence_not_subject": "Chaque message de preuve doit provenir du compte ou de la communauté visés par cette décision.",
+ "admin_and_system.enforcement_evidence_required": "Cette décision nécessite au moins un message de preuve.",
+ "admin_and_system.enforcement_facts_required": "Ajoutez un message de preuve ou une note à l'utilisateur.",
+ "admin_and_system.enforcement_internal_note_required": "Ajoutez une note interne dans l'en-tête X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Ce motif ne peut pas être utilisé pour cette action.",
+ "admin_and_system.enforcement_limit_end_invalid": "Seule une limite de signalements peut avoir une date de fin, et celle-ci doit se situer dans les 365 prochains jours.",
+ "admin_and_system.enforcement_limit_not_allowed": "Ce motif ne peut pas être utilisé pour cette limite.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Seule une suspension définitive ou une fermeture pour violation d'une règle peut bloquer des réseaux.",
+ "admin_and_system.enforcement_network_shared": "D'autres comptes sans restriction ont été actifs en dernier sur ce réseau, il ne peut donc pas être bloqué.",
+ "admin_and_system.enforcement_network_unknown": "Ce compte n'a pas utilisé ce réseau au cours des 30 derniers jours.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Seule une annulation peut mettre fin à ce type de décision, car il n'y a rien à lever.",
+ "admin_and_system.enforcement_permanent_required": "Les suspensions pour ce motif doivent être définitives.",
+ "admin_and_system.enforcement_report_mismatch": "Chaque signalement lié doit exister et concerner le compte ou la communauté visés par cette décision.",
+ "admin_and_system.enforcement_report_required": "Liez au moins un signalement lorsque la source est un signalement.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Un titulaire de droits ne peut être indiqué que pour les décisions relatives au droit d'auteur.",
+ "admin_and_system.enforcement_rights_holder_required": "Les décisions relatives au droit d'auteur nécessitent le titulaire des droits ou le droit concerné.",
+ "admin_and_system.enforcement_statement_not_allowed": "Les décisions pour ce motif ne peuvent pas inclure de note à l'utilisateur.",
+ "admin_and_system.flag_requires_enforcement_route": "Cet indicateur fait partie d'une restriction. Modifiez-le via les routes de suspension, de suppression ou de limitation de fonctionnalités.",
"admin_and_system.general_error": "Une erreur est survenue. Réessayez plus tard.",
"admin_and_system.guild_id_required_for_search_index": "L’ID de la communauté est requis pour les index de recherche des messages des salons et des membres.",
"admin_and_system.instance_policy_transition_not_allowed": "Cette modification de la politique de l'instance n'est pas autorisée.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Horodatage invalide.",
"admin_and_system.invalid_timezone_identifier": "Identifiant de fuseau horaire invalide.",
"admin_and_system.missing_acl": "Liste de contrôle d'accès manquante.",
+ "admin_and_system.moderation_basis_required": "Indiquez un fondement pour supprimer les messages.",
"admin_and_system.must_be_iso_timestamp": "Doit être un horodatage ISO valide.",
"admin_and_system.processing_failed": "Impossible de traiter la requête. Réessayez.",
"admin_and_system.resource_locked": "Cette ressource est en cours de modification. Veuillez réessayer dans quelques instants.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "L’utilisation du code cadeau est en cours. Réessayez dans quelques instants.",
"invites_and_gifts.unknown_gift_code": "Code cadeau inconnu.",
"invites_and_packs.max_emojis_reached": "Vous avez atteint le maximum de {count, plural, =1 {# emoji} other {# emojis}}.",
- "limits.at_least_one_entry_required": "Au moins un élément est requis.",
"limits.base64_length_invalid": "La longueur de la chaîne Base64 doit être comprise entre {min} et {maxLength} caractères.",
"limits.cannot_specify_before_and_after": "Vous ne pouvez pas indiquer à la fois `before` et `after`.",
"limits.content_exceeds_max_length": "Le texte ne doit pas dépasser {maxLength, plural, =1 {# caractère} other {# caractères}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Code de vérification DSA invalide.",
"moderation_and_reports.invalid_report_flow_answers": "Ces réponses ne correspondent pas au formulaire de signalement. Veuillez recommencer le signalement.",
"moderation_and_reports.ip_ban_declined": "Cette adresse IP ne peut pas être ajoutée à la liste de blocage.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Ce blocage réseau appartient à une décision de modération. Mettez fin à la décision pour le retirer.",
"moderation_and_reports.report_already_resolved": "Signalement déjà résolu.",
"moderation_and_reports.report_banned": "Vous n’êtes plus autorisé à envoyer des signalements.",
"moderation_and_reports.report_flow_outdated": "Le formulaire de signalement a changé pendant que vous le remplissiez. Veuillez recommencer le signalement.",
+ "moderation_and_reports.report_outcome_invalid": "Une résolution avec mesure nécessite un résultat, qui ne peut pas être l'absence d'infraction. Une résolution en doublon doit indiquer le signalement d'origine et n'accepte aucun résultat. Une résolution sans infraction n'accepte aucun autre résultat.",
"moderation_and_reports.report_under_legal_hold": "Ce signalement fait l’objet d’une conservation légale et ne peut pas être supprimé.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Vous devez finaliser votre inscription avant de pouvoir envoyer des signalements.",
+ "moderation_and_reports.unknown_enforcement_decision": "Décision de modération inconnue.",
"moderation_and_reports.unknown_report": "Signalement inconnu.",
"moderation_and_reports.user_is_not_banned": "Cet utilisateur n'est pas banni.",
"names_and_normalization.name_empty_after_normalization": "Le nom ne peut pas être vide une fois normalisé.",
- "permissions.global_ip_banned": "Les administrateurs de la plateforme ont définitivement bloqué l’accès à {product_name} API depuis votre adresse IP {ipAddress}. {appealEmail, select, null {Si vous pensez qu’il s’agit d’une erreur, contactez les administrateurs de cette instance pour déposer un recours.} other {Si vous pensez qu’il s’agit d’une erreur, écrivez à {appealEmail} pour déposer un recours.}} Indiquez cette adresse IP dans votre recours.",
- "permissions.global_ip_temporarily_banned": "L’accès à {product_name} API depuis votre adresse IP {ipAddress} a été temporairement bloqué. Le blocage sera levé automatiquement à son expiration. {appealEmail, select, null {Si vous pensez qu’il s’agit d’une erreur, contactez les administrateurs de cette instance en indiquant cette adresse IP.} other {Si vous pensez qu’il s’agit d’une erreur, écrivez à {appealEmail} en indiquant cette adresse IP.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} a bloqué l'accès depuis ce réseau en raison d'une activité qui enfreignait ses règles.} other {{product_name} a bloqué l'accès depuis ce réseau.}} Si vous partagez ce réseau, par exemple à l'école, au travail, sur un Wi-Fi public, via votre opérateur mobile ou un VPN, ce blocage n'a peut-être rien à voir avec vous. Le plus rapide est de changer de réseau, par exemple en passant aux données mobiles au lieu du Wi-Fi, ou d'activer ou de désactiver votre VPN.{appealEmail, select, null {} other { Si vous pensez que ce blocage est une erreur, écrivez à {appealEmail} en indiquant votre adresse IP, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} a bloqué l'accès depuis ce réseau en raison d'une activité qui enfreignait ses règles.} other {{product_name} a bloqué l'accès depuis ce réseau.}} Le blocage prend fin le {expiresAt}. Si vous partagez ce réseau, par exemple à l'école, au travail, sur un Wi-Fi public, via votre opérateur mobile ou un VPN, ce blocage n'a peut-être rien à voir avec vous. Le plus rapide est de changer de réseau, par exemple en passant aux données mobiles au lieu du Wi-Fi, ou d'activer ou de désactiver votre VPN.{appealEmail, select, null {} other { Si vous pensez que ce blocage est une erreur, écrivez à {appealEmail} en indiquant votre adresse IP, {ipAddress}.}}",
"permissions.missing_access": "Vous n’avez pas accès à cette ressource ou fonctionnalité.",
"permissions.missing_permissions": "Vous n’avez pas les permissions requises pour effectuer cette action.",
"permissions.user_banned_from_guild": "Cet utilisateur est banni de cette communauté.",
diff --git a/packages/errors/src/i18n/weblate/locales/he.json b/packages/errors/src/i18n/weblate/locales/he.json
index 248682f6f..1ff45ce8e 100644
--- a/packages/errors/src/i18n/weblate/locales/he.json
+++ b/packages/errors/src/i18n/weblate/locales/he.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "רשימות ACL לא יכולות להיות ריקות.",
"admin_and_system.admin_api_key_not_found": "מפתח API של אדמין לא נמצא.",
"admin_and_system.deletion_failed": "לא הצלחנו למחוק את המשאב. ניתן לנסות שוב.",
+ "admin_and_system.enforcement_account_closed": "החשבון הזה סגור, ולכן אי אפשר להשעות אותו.",
+ "admin_and_system.enforcement_confirmations_required": "יש לאשר שהראיות נשמרו ושכל דיווח נדרש הוגש.",
+ "admin_and_system.enforcement_decision_ended": "ההחלטה הזו כבר הסתיימה.",
+ "admin_and_system.enforcement_decision_owns_state": "ההגבלה הזו שייכת להחלטת אכיפה. יש לסיים את ההחלטה במקום זאת.",
+ "admin_and_system.enforcement_decision_replaced": "החלטה מאוחרת יותר החליפה את ההחלטה הזו, ולכן כבר אי אפשר לסיים אותה.",
+ "admin_and_system.enforcement_deletion_started": "מחיקת החשבון הזה כבר התחילה, ולכן כבר אי אפשר לסיים את ההחלטה.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "אפשר להשתמש בהודעות מתוך הודעות פרטיות כראיה רק כשדיווח מקושר מכסה את השיחה הזו.",
+ "admin_and_system.enforcement_evidence_not_allowed": "ההודעות שמוסרות נשמרות כראיה, ולכן אין לצרף הודעות ראיה נפרדות.",
+ "admin_and_system.enforcement_evidence_not_found": "אחת מהודעות הראיה לא נמצאה.",
+ "admin_and_system.enforcement_evidence_not_subject": "כל הודעת ראיה חייבת להיות מהחשבון או מהקהילה שההחלטה הזו עוסקת בהם.",
+ "admin_and_system.enforcement_evidence_required": "ההחלטה הזו דורשת לפחות הודעת ראיה אחת.",
+ "admin_and_system.enforcement_facts_required": "יש להוסיף הודעת ראיה או הערה למשתמש.",
+ "admin_and_system.enforcement_internal_note_required": "יש להוסיף הערה פנימית בכותרת X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "אי אפשר להשתמש בסיבה הזו לפעולה הזו.",
+ "admin_and_system.enforcement_limit_end_invalid": "רק להגבלת דיווחים יש תאריך סיום, והוא חייב להיות בתוך 365 הימים הקרובים.",
+ "admin_and_system.enforcement_limit_not_allowed": "אי אפשר להשתמש בסיבה הזו להגבלה הזו.",
+ "admin_and_system.enforcement_network_block_not_allowed": "רק השעיה לצמיתות או סגירה בגלל הפרת כלל יכולות לחסום רשתות.",
+ "admin_and_system.enforcement_network_shared": "חשבונות אחרים שאינם מוגבלים היו פעילים לאחרונה ברשת הזו, ולכן אי אפשר לחסום אותה.",
+ "admin_and_system.enforcement_network_unknown": "החשבון הזה לא השתמש ברשת הזו ב-30 הימים האחרונים.",
+ "admin_and_system.enforcement_outcome_not_allowed": "רק ביטול יכול לסיים החלטה מהסוג הזה, כי אין מה להסיר.",
+ "admin_and_system.enforcement_permanent_required": "השעיות מהסיבה הזו חייבות להיות לצמיתות.",
+ "admin_and_system.enforcement_report_mismatch": "כל דיווח מקושר חייב להיות קיים ולעסוק בחשבון או בקהילה שההחלטה הזו עוסקת בהם.",
+ "admin_and_system.enforcement_report_required": "יש לקשר לפחות דיווח אחד כשהמקור הוא דיווח.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "אפשר לציין בעל זכויות רק בהחלטות בנושא זכויות יוצרים.",
+ "admin_and_system.enforcement_rights_holder_required": "החלטות בנושא זכויות יוצרים דורשות את בעל הזכויות או את הזכות הנוגעת בדבר.",
+ "admin_and_system.enforcement_statement_not_allowed": "החלטות מהסיבה הזו לא יכולות לכלול הערה למשתמש.",
+ "admin_and_system.flag_requires_enforcement_route": "הסימון הזה הוא חלק מהגבלה. יש לשנות אותו דרך נתיבי ההשעיה, המחיקה או הגבלת התכונות.",
"admin_and_system.general_error": "משהו השתבש. ניתן לנסות שוב מאוחר יותר.",
"admin_and_system.guild_id_required_for_search_index": "מזהה הקהילה נדרש עבור אינדקסים של חיפוש הודעות ערוצים וחברים.",
"admin_and_system.instance_policy_transition_not_allowed": "שינוי זה במדיניות המופע אינו מותר.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "חותמת זמן שגויה.",
"admin_and_system.invalid_timezone_identifier": "מזהה אזור זמן שגוי.",
"admin_and_system.missing_acl": "ACL חסר.",
+ "admin_and_system.moderation_basis_required": "יש לציין בסיס למחיקת ההודעות.",
"admin_and_system.must_be_iso_timestamp": "חייבת להיות חותמת זמן ISO תקינה.",
"admin_and_system.processing_failed": "לא הצלחנו לעבד את הבקשה. ניתן לנסות שוב.",
"admin_and_system.resource_locked": "המשאב הזה נמצא כעת בעריכה. ניתן לנסות שוב בעוד זמן קצר.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "מימוש קוד המתנה בעיצומו. ניתן לנסות שוב בעוד רגע.",
"invites_and_gifts.unknown_gift_code": "קוד מתנה לא ידוע.",
"invites_and_packs.max_emojis_reached": "הגעת למספר המרבי של {count} {count, plural, one {אימוג'י} other {אימוג'ים}}.",
- "limits.at_least_one_entry_required": "נדרשת רשומה אחת לפחות.",
"limits.base64_length_invalid": "אורך מחרוזת Base64 חייב להיות בין {min} ל-{maxLength} תווים.",
"limits.cannot_specify_before_and_after": "לא ניתן לציין את `before` ואת `after` יחד.",
"limits.content_exceeds_max_length": "הטקסט מוגבל ל-{maxLength} {maxLength, plural, one {תו} other {תווים}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "קוד אימות DSA שגוי.",
"moderation_and_reports.invalid_report_flow_answers": "התשובות האלה לא תואמות לטופס הדיווח. יש להתחיל את הדיווח מחדש.",
"moderation_and_reports.ip_ban_declined": "לא ניתן להוסיף כתובת IP זו לרשימת החסימה.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "חסימת הרשת הזו שייכת להחלטת אכיפה. יש לסיים את ההחלטה כדי להסיר אותה.",
"moderation_and_reports.report_already_resolved": "הדיווח כבר טופל.",
"moderation_and_reports.report_banned": "נחסמת מלהגיש דיווחים.",
"moderation_and_reports.report_flow_outdated": "טופס הדיווח השתנה במהלך המילוי. יש להתחיל את הדיווח מחדש.",
+ "moderation_and_reports.report_outcome_invalid": "סגירה כטופל דורשת תוצאה שאינה ללא הפרה. סגירה ככפול דורשת את הדיווח המקורי ולא מקבלת תוצאה. סגירה ללא הפרה לא מקבלת תוצאה אחרת.",
"moderation_and_reports.report_under_legal_hold": "הדיווח הזה נתון להקפאה משפטית ואי אפשר למחוק אותו.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "עליך להשלים את הגדרת החשבון שלך לפני שאפשר להגיש דיווחים.",
+ "moderation_and_reports.unknown_enforcement_decision": "החלטת אכיפה לא ידועה.",
"moderation_and_reports.unknown_report": "דיווח לא ידוע.",
"moderation_and_reports.user_is_not_banned": "משתמש זה לא חסום.",
"names_and_normalization.name_empty_after_normalization": "השם לא יכול להיות ריק לאחר נורמליזציה.",
- "permissions.global_ip_banned": "כתובת ה-IP שלך {ipAddress} נחסמה לצמיתות מ-{product_name} API על ידי מנהלי הפלטפורמה. {appealEmail, select, null {אם לדעתך זו טעות, אפשר לפנות אל מנהלי המערכת של המופע הזה כדי לערער.} other {אם לדעתך זו טעות, אפשר לפנות אל {appealEmail} כדי לערער.}} יש לכלול את כתובת ה-IP הזו בערעור.",
- "permissions.global_ip_temporarily_banned": "כתובת ה-IP שלך {ipAddress} נחסמה זמנית מ-{product_name} API. החסימה תוסר אוטומטית כשתפוג. {appealEmail, select, null {אם לדעתך זו טעות, אפשר לפנות אל מנהלי המערכת של המופע הזה ולציין את כתובת ה-IP הזו.} other {אם לדעתך זו טעות, אפשר לפנות אל {appealEmail} ולציין את כתובת ה-IP הזו.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} חסם את הגישה מהרשת הזו בגלל פעילות שהפרה את הכללים שלו.} other {{product_name} חסם את הגישה מהרשת הזו.}} אם אתם חולקים את הרשת הזו עם אחרים, למשל בבית הספר, בעבודה, ב-Wi-Fi ציבורי, דרך ספק הסלולר או דרך VPN, ייתכן שלחסימה הזו אין שום קשר אליכם. הפתרון המהיר ביותר הוא לעבור לרשת אחרת, למשל לגלישה סלולרית במקום Wi-Fi, או להפעיל או לכבות את ה-VPN.{appealEmail, select, null {} other { אם לדעתכם החסימה הזו היא טעות, שלחו אימייל אל {appealEmail} וציינו את כתובת ה-IP שלכם, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} חסם את הגישה מהרשת הזו בגלל פעילות שהפרה את הכללים שלו.} other {{product_name} חסם את הגישה מהרשת הזו.}} החסימה מסתיימת ב-{expiresAt}. אם אתם חולקים את הרשת הזו עם אחרים, למשל בבית הספר, בעבודה, ב-Wi-Fi ציבורי, דרך ספק הסלולר או דרך VPN, ייתכן שלחסימה הזו אין שום קשר אליכם. הפתרון המהיר ביותר הוא לעבור לרשת אחרת, למשל לגלישה סלולרית במקום Wi-Fi, או להפעיל או לכבות את ה-VPN.{appealEmail, select, null {} other { אם לדעתכם החסימה הזו היא טעות, שלחו אימייל אל {appealEmail} וציינו את כתובת ה-IP שלכם, {ipAddress}.}}",
"permissions.missing_access": "אין לך גישה למשאב או לתכונה הזו.",
"permissions.missing_permissions": "אין לך את ההרשאות הנדרשות לביצוע פעולה זו.",
"permissions.user_banned_from_guild": "משתמש זה חסום בקהילה זו.",
diff --git a/packages/errors/src/i18n/weblate/locales/hi.json b/packages/errors/src/i18n/weblate/locales/hi.json
index 3a7bb86f0..dd92fcc9e 100644
--- a/packages/errors/src/i18n/weblate/locales/hi.json
+++ b/packages/errors/src/i18n/weblate/locales/hi.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACLs खाली नहीं हो सकते।",
"admin_and_system.admin_api_key_not_found": "एडमिन API कुंजी नहीं मिली।",
"admin_and_system.deletion_failed": "रिसोर्स डिलीट नहीं किया जा सका। कृपया फिर से कोशिश करें।",
+ "admin_and_system.enforcement_account_closed": "यह अकाउंट बंद है, इसलिए इसे सस्पेंड नहीं किया जा सकता।",
+ "admin_and_system.enforcement_confirmations_required": "पुष्टि करें कि सबूत सुरक्षित रखे गए हैं और हर ज़रूरी रिपोर्ट दर्ज कर दी गई है।",
+ "admin_and_system.enforcement_decision_ended": "यह फैसला पहले ही खत्म हो चुका है।",
+ "admin_and_system.enforcement_decision_owns_state": "यह पाबंदी एक एनफ़ोर्समेंट फैसले के तहत है। इसके बजाय फैसला खत्म करें।",
+ "admin_and_system.enforcement_decision_replaced": "बाद के एक फैसले ने इसकी जगह ले ली है, इसलिए इसे अब खत्म नहीं किया जा सकता।",
+ "admin_and_system.enforcement_deletion_started": "इस अकाउंट को डिलीट करने की प्रक्रिया शुरू हो चुकी है, इसलिए फैसला अब खत्म नहीं किया जा सकता।",
+ "admin_and_system.enforcement_evidence_dm_unreported": "डायरेक्ट मैसेज बातचीत के मैसेज सबूत के तौर पर तभी इस्तेमाल किए जा सकते हैं जब कोई लिंक की गई रिपोर्ट उस बातचीत को कवर करती हो।",
+ "admin_and_system.enforcement_evidence_not_allowed": "हटाए जा रहे मैसेज सबूत के तौर पर सेव किए जाते हैं, इसलिए अलग से सबूत मैसेज न जोड़ें।",
+ "admin_and_system.enforcement_evidence_not_found": "सबूत वाला एक मैसेज नहीं मिला।",
+ "admin_and_system.enforcement_evidence_not_subject": "हर सबूत मैसेज उसी अकाउंट या कम्युनिटी का होना चाहिए जिसके बारे में यह फैसला है।",
+ "admin_and_system.enforcement_evidence_required": "इस फैसले के लिए कम से कम एक सबूत मैसेज ज़रूरी है।",
+ "admin_and_system.enforcement_facts_required": "एक सबूत मैसेज या यूज़र के लिए एक नोट जोड़ें।",
+ "admin_and_system.enforcement_internal_note_required": "X-Audit-Log-Reason हेडर में एक इंटरनल नोट जोड़ें।",
+ "admin_and_system.enforcement_kind_not_allowed": "इस वजह का इस्तेमाल इस कार्रवाई के लिए नहीं किया जा सकता।",
+ "admin_and_system.enforcement_limit_end_invalid": "सिर्फ़ रिपोर्ट वाली पाबंदी की खत्म होने की तारीख होती है, और वह अगले 365 दिनों के अंदर होनी चाहिए।",
+ "admin_and_system.enforcement_limit_not_allowed": "इस वजह का इस्तेमाल इस पाबंदी के लिए नहीं किया जा सकता।",
+ "admin_and_system.enforcement_network_block_not_allowed": "सिर्फ़ स्थायी सस्पेंशन या किसी नियम के उल्लंघन पर अकाउंट बंद करने से ही नेटवर्क ब्लॉक किए जा सकते हैं।",
+ "admin_and_system.enforcement_network_shared": "इस नेटवर्क पर हाल ही में ऐसे दूसरे अकाउंट एक्टिव थे जिन पर पाबंदी नहीं है, इसलिए इसे ब्लॉक नहीं किया जा सकता।",
+ "admin_and_system.enforcement_network_unknown": "इस अकाउंट ने पिछले 30 दिनों में इस नेटवर्क का इस्तेमाल नहीं किया है।",
+ "admin_and_system.enforcement_outcome_not_allowed": "इस तरह का फैसला सिर्फ़ उसे पलटकर ही खत्म किया जा सकता है, क्योंकि हटाने के लिए कुछ नहीं है।",
+ "admin_and_system.enforcement_permanent_required": "इस वजह से किए गए सस्पेंशन स्थायी होने चाहिए।",
+ "admin_and_system.enforcement_report_mismatch": "हर लिंक की गई रिपोर्ट मौजूद होनी चाहिए और उसी अकाउंट या कम्युनिटी के बारे में होनी चाहिए जिसके बारे में यह फैसला है।",
+ "admin_and_system.enforcement_report_required": "जब सोर्स रिपोर्ट हो, तो कम से कम एक रिपोर्ट लिंक करें।",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "अधिकार धारक सिर्फ़ कॉपीराइट फैसलों के लिए दिया जा सकता है।",
+ "admin_and_system.enforcement_rights_holder_required": "कॉपीराइट फैसलों के लिए अधिकार धारक या संबंधित अधिकार ज़रूरी है।",
+ "admin_and_system.enforcement_statement_not_allowed": "इस वजह से लिए गए फैसलों में यूज़र के लिए नोट शामिल नहीं किया जा सकता।",
+ "admin_and_system.flag_requires_enforcement_route": "यह फ़्लैग एक पाबंदी का हिस्सा है। इसे सस्पेंशन, डिलीशन या फ़ीचर लिमिट वाले रूट से बदलें।",
"admin_and_system.general_error": "कुछ गलत हो गया। कृपया बाद में फिर से कोशिश करें।",
"admin_and_system.guild_id_required_for_search_index": "चैनल मैसेज और सदस्य सर्च इंडेक्स के लिए कम्युनिटी ID ज़रूरी है।",
"admin_and_system.instance_policy_transition_not_allowed": "इंस्टेंस पॉलिसी में इस बदलाव की अनुमति नहीं है।",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "अमान्य टाइमस्टैम्प।",
"admin_and_system.invalid_timezone_identifier": "अमान्य टाइमज़ोन आइडेंटिफ़ायर।",
"admin_and_system.missing_acl": "ACL गायब है।",
+ "admin_and_system.moderation_basis_required": "मैसेज डिलीट करने का आधार बताएँ।",
"admin_and_system.must_be_iso_timestamp": "मान्य ISO टाइमस्टैम्प होना ज़रूरी है।",
"admin_and_system.processing_failed": "रिक्वेस्ट प्रोसेस नहीं की जा सकी। कृपया फिर से कोशिश करें।",
"admin_and_system.resource_locked": "यह रिसोर्स अभी बदला जा रहा है। कृपया थोड़ी देर बाद फिर से कोशिश करें।",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "गिफ्ट कोड रिडीम किया जा रहा है। थोड़ी देर में फिर से कोशिश करें।",
"invites_and_gifts.unknown_gift_code": "अज्ञात गिफ्ट कोड।",
"invites_and_packs.max_emojis_reached": "आप अधिकतम {count} {count, plural, one {इमोजी} other {इमोजी}} तक पहुँच गए हैं।",
- "limits.at_least_one_entry_required": "कम से कम एक एंट्री ज़रूरी है।",
"limits.base64_length_invalid": "Base64 स्ट्रिंग की लंबाई {min} और {maxLength} कैरेक्टर के बीच होनी चाहिए।",
"limits.cannot_specify_before_and_after": "आप `before` और `after` दोनों को स्पेसिफाई नहीं कर सकते।",
"limits.content_exceeds_max_length": "टेक्स्ट {maxLength} {maxLength, plural, one {कैरेक्टर} other {कैरेक्टर}} से ज़्यादा नहीं होना चाहिए।",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "अमान्य DSA वेरिफ़िकेशन कोड।",
"moderation_and_reports.invalid_report_flow_answers": "ये जवाब रिपोर्ट फ़ॉर्म से मेल नहीं खाते। रिपोर्ट को फिर से शुरू करें।",
"moderation_and_reports.ip_ban_declined": "इस IP पते को ब्लॉकलिस्ट में नहीं जोड़ा जा सकता।",
+ "moderation_and_reports.ip_ban_linked_to_decision": "यह नेटवर्क ब्लॉक एक एनफ़ोर्समेंट फैसले से जुड़ा है। इसे हटाने के लिए फैसला खत्म करें।",
"moderation_and_reports.report_already_resolved": "रिपोर्ट पहले ही हल हो चुकी है।",
"moderation_and_reports.report_banned": "आपको रिपोर्ट सबमिट करने से बैन कर दिया गया है।",
"moderation_and_reports.report_flow_outdated": "रिपोर्ट फ़ॉर्म भरते समय बदल गया था। कृपया रिपोर्ट दोबारा शुरू करें।",
+ "moderation_and_reports.report_outcome_invalid": "कार्रवाई की गई वाले समाधान के लिए उल्लंघन नहीं के अलावा कोई दूसरा नतीजा ज़रूरी है। डुप्लिकेट वाले समाधान के लिए मूल रिपोर्ट ज़रूरी है, और उसमें कोई नतीजा नहीं दिया जा सकता। उल्लंघन नहीं वाले समाधान में कोई दूसरा नतीजा नहीं दिया जा सकता।",
"moderation_and_reports.report_under_legal_hold": "यह रिपोर्ट कानूनी रोक के तहत है और इसे हटाया नहीं जा सकता।",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "रिपोर्ट सबमिट करने से पहले आपको अपना अकाउंट सेटअप पूरा करना होगा।",
+ "moderation_and_reports.unknown_enforcement_decision": "अज्ञात एनफ़ोर्समेंट फैसला।",
"moderation_and_reports.unknown_report": "अज्ञात रिपोर्ट।",
"moderation_and_reports.user_is_not_banned": "यह यूज़र बैन नहीं है।",
"names_and_normalization.name_empty_after_normalization": "नॉर्मलाइज़ेशन के बाद नाम खाली नहीं हो सकता।",
- "permissions.global_ip_banned": "आपका IP पता {ipAddress} प्लेटफ़ॉर्म एडमिनों द्वारा {product_name} API से स्थायी रूप से ब्लॉक कर दिया गया है। {appealEmail, select, null {अगर आपको लगता है कि यह गलती है, तो अपील के लिए इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें।} other {अगर आपको लगता है कि यह गलती है, तो अपील के लिए {appealEmail} से संपर्क करें।}} अपनी अपील में यह IP पता शामिल करें।",
- "permissions.global_ip_temporarily_banned": "आपका IP पता {ipAddress} {product_name} API से अस्थायी रूप से ब्लॉक कर दिया गया है। समय पूरा होने पर ब्लॉक अपने-आप हट जाएगा। {appealEmail, select, null {अगर आपको लगता है कि यह गलती है, तो इस इंस्टेंस के एडमिनिस्ट्रेटर से संपर्क करें और यह IP पता शामिल करें।} other {अगर आपको लगता है कि यह गलती है, तो {appealEmail} से संपर्क करें और यह IP पता शामिल करें।}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} ने अपने नियम तोड़ने वाली गतिविधि की वजह से इस नेटवर्क से एक्सेस ब्लॉक कर दिया है।} other {{product_name} ने इस नेटवर्क से एक्सेस ब्लॉक कर दिया है।}} अगर आप यह नेटवर्क दूसरों के साथ शेयर करते हैं, जैसे स्कूल में, ऑफ़िस में, पब्लिक Wi-Fi पर, अपने मोबाइल कैरियर के ज़रिए या VPN से, तो हो सकता है कि इस ब्लॉक का आपसे कोई लेना-देना न हो। सबसे जल्दी हल है नेटवर्क बदलना, जैसे Wi-Fi की जगह मोबाइल डेटा इस्तेमाल करना, या अपना VPN चालू या बंद करना।{appealEmail, select, null {} other { अगर आपको लगता है कि यह ब्लॉक गलती से हुआ है, तो {appealEmail} पर ईमेल करें और अपना IP एड्रेस, {ipAddress}, लिखें।}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} ने अपने नियम तोड़ने वाली गतिविधि की वजह से इस नेटवर्क से एक्सेस ब्लॉक कर दिया है।} other {{product_name} ने इस नेटवर्क से एक्सेस ब्लॉक कर दिया है।}} यह ब्लॉक {expiresAt} को खत्म होगा। अगर आप यह नेटवर्क दूसरों के साथ शेयर करते हैं, जैसे स्कूल में, ऑफ़िस में, पब्लिक Wi-Fi पर, अपने मोबाइल कैरियर के ज़रिए या VPN से, तो हो सकता है कि इस ब्लॉक का आपसे कोई लेना-देना न हो। सबसे जल्दी हल है नेटवर्क बदलना, जैसे Wi-Fi की जगह मोबाइल डेटा इस्तेमाल करना, या अपना VPN चालू या बंद करना।{appealEmail, select, null {} other { अगर आपको लगता है कि यह ब्लॉक गलती से हुआ है, तो {appealEmail} पर ईमेल करें और अपना IP एड्रेस, {ipAddress}, लिखें।}}",
"permissions.missing_access": "आपके पास इस रिसोर्स या फ़ीचर का एक्सेस नहीं है।",
"permissions.missing_permissions": "आपके पास यह एक्शन करने के लिए ज़रूरी अनुमति नहीं है।",
"permissions.user_banned_from_guild": "इस यूज़र को इस कम्युनिटी से बैन कर दिया गया है।",
diff --git a/packages/errors/src/i18n/weblate/locales/hr.json b/packages/errors/src/i18n/weblate/locales/hr.json
index 3c1a2c69f..df57c1b3a 100644
--- a/packages/errors/src/i18n/weblate/locales/hr.json
+++ b/packages/errors/src/i18n/weblate/locales/hr.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL-ovi ne smiju biti prazni.",
"admin_and_system.admin_api_key_not_found": "Administratorski API ključ nije pronađen.",
"admin_and_system.deletion_failed": "Nismo mogli obrisati resurs. Pokušaj ponovno.",
+ "admin_and_system.enforcement_account_closed": "Ovaj je račun zatvoren pa ga nije moguće suspendirati.",
+ "admin_and_system.enforcement_confirmations_required": "Potvrdi da su dokazi sačuvani i da je podnesena svaka obvezna prijava.",
+ "admin_and_system.enforcement_decision_ended": "Ova je odluka već prestala važiti.",
+ "admin_and_system.enforcement_decision_owns_state": "Ovo ograničenje pripada odluci o provedbi mjera. Umjesto toga završi odluku.",
+ "admin_and_system.enforcement_decision_replaced": "Kasnija odluka zamijenila je ovu pa je više nije moguće završiti.",
+ "admin_and_system.enforcement_deletion_started": "Brisanje ovog računa već je počelo pa odluku više nije moguće završiti.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Izravne poruke mogu se koristiti kao dokaz samo ako povezana prijava obuhvaća taj razgovor.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Poruke koje se uklanjaju spremaju se kao dokaz pa izostavi zasebne poruke kao dokaz.",
+ "admin_and_system.enforcement_evidence_not_found": "Jedna od poruka koje služe kao dokaz nije pronađena.",
+ "admin_and_system.enforcement_evidence_not_subject": "Svaka poruka koja služi kao dokaz mora biti s računa ili iz zajednice na koju se odluka odnosi.",
+ "admin_and_system.enforcement_evidence_required": "Za ovu odluku potrebna je barem jedna poruka kao dokaz.",
+ "admin_and_system.enforcement_facts_required": "Dodaj poruku kao dokaz ili napomenu za korisnika.",
+ "admin_and_system.enforcement_internal_note_required": "Dodaj internu bilješku u zaglavlje X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Ovaj razlog nije moguće koristiti za ovu radnju.",
+ "admin_and_system.enforcement_limit_end_invalid": "Datum završetka ima samo ograničenje prijava i mora biti unutar sljedećih 365 dana.",
+ "admin_and_system.enforcement_limit_not_allowed": "Ovaj razlog nije moguće koristiti za ovo ograničenje.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Mreže se mogu blokirati samo trajnom suspenzijom ili zatvaranjem računa zbog prekršenog pravila.",
+ "admin_and_system.enforcement_network_shared": "Drugi računi bez ograničenja zadnji su put bili aktivni na ovoj mreži pa je nije moguće blokirati.",
+ "admin_and_system.enforcement_network_unknown": "Ovaj račun nije koristio ovu mrežu u posljednjih 30 dana.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Ovu vrstu odluke moguće je završiti samo poništenjem jer se nema što ukinuti.",
+ "admin_and_system.enforcement_permanent_required": "Suspenzije zbog ovog razloga moraju biti trajne.",
+ "admin_and_system.enforcement_report_mismatch": "Svaka povezana prijava mora postojati i odnositi se na račun ili zajednicu na koju se odluka odnosi.",
+ "admin_and_system.enforcement_report_required": "Kada je izvor prijava, poveži barem jednu prijavu.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Nositelj prava može se navesti samo za odluke o autorskom pravu.",
+ "admin_and_system.enforcement_rights_holder_required": "Odluke o autorskom pravu zahtijevaju nositelja prava ili predmetno pravo.",
+ "admin_and_system.enforcement_statement_not_allowed": "Odluke zbog ovog razloga ne mogu sadržavati napomenu za korisnika.",
+ "admin_and_system.flag_requires_enforcement_route": "Ova je oznaka dio ograničenja. Promijeni je putem ruta za suspenziju, brisanje ili ograničenje funkcija.",
"admin_and_system.general_error": "Nešto je pošlo po krivu. Pokušaj ponovno kasnije.",
"admin_and_system.guild_id_required_for_search_index": "ID zajednice je obavezan za indekse pretraživanja poruka kanala i članova.",
"admin_and_system.instance_policy_transition_not_allowed": "Ova promjena pravila instance nije dopuštena.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Nevažeća vremenska oznaka.",
"admin_and_system.invalid_timezone_identifier": "Nevažeći identifikator vremenske zone.",
"admin_and_system.missing_acl": "Nedostaje ACL.",
+ "admin_and_system.moderation_basis_required": "Navedi osnovu za brisanje poruka.",
"admin_and_system.must_be_iso_timestamp": "Mora biti valjana ISO vremenska oznaka.",
"admin_and_system.processing_failed": "Nismo mogli obraditi zahtjev. Pokušaj ponovno.",
"admin_and_system.resource_locked": "Ovaj se resurs trenutačno mijenja. Pokušaj ponovno za nekoliko trenutaka.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Iskorištavanje poklon-koda je u tijeku. Pokušaj ponovno za trenutak.",
"invites_and_gifts.unknown_gift_code": "Nepoznat poklon-kod.",
"invites_and_packs.max_emojis_reached": "Dosegnut je maksimum od {count, plural, one {# emojija} few {# emojija} other {# emojija}}.",
- "limits.at_least_one_entry_required": "Potreban je barem jedan unos.",
"limits.base64_length_invalid": "Duljina Base64 niza mora biti između {min} i {maxLength} znakova.",
"limits.cannot_specify_before_and_after": "Ne možeš navesti i `before` i `after`.",
"limits.content_exceeds_max_length": "Tekst ne smije prelaziti {maxLength, plural, one {# znak} few {# znaka} other {# znakova}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Nevažeći DSA kod za provjeru.",
"moderation_and_reports.invalid_report_flow_answers": "Ovi odgovori ne odgovaraju obrascu prijave. Započni prijavu ponovno.",
"moderation_and_reports.ip_ban_declined": "Ovu IP adresu nije moguće dodati na popis blokiranih.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Ova blokada mreže pripada odluci o provedbi mjera. Da bi se blokada uklonila, završi odluku.",
"moderation_and_reports.report_already_resolved": "Prijava je već riješena.",
"moderation_and_reports.report_banned": "Zabranjeno ti je podnositi prijave.",
"moderation_and_reports.report_flow_outdated": "Obrazac prijave promijenio se tijekom ispunjavanja. Započni prijavu ponovno.",
+ "moderation_and_reports.report_outcome_invalid": "Rješenje „poduzete mjere” zahtijeva ishod koji nije „nema kršenja”. Rješenje „duplikat” zahtijeva prijavu koju ponavlja i ne prima ishod. Rješenje „nema kršenja” ne prima drugi ishod.",
"moderation_and_reports.report_under_legal_hold": "Ova prijava podliježe pravnom zadržavanju i ne može se izbrisati.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Moraš dovršiti postavljanje računa prije nego što možeš podnositi prijave.",
+ "moderation_and_reports.unknown_enforcement_decision": "Nepoznata odluka o provedbi mjera.",
"moderation_and_reports.unknown_report": "Nepoznata prijava.",
"moderation_and_reports.user_is_not_banned": "Ovaj korisnik nema zabranu.",
"names_and_normalization.name_empty_after_normalization": "Ime ne može biti prazno nakon normalizacije.",
- "permissions.global_ip_banned": "Administratori platforme trajno su blokirali pristup {product_name} API-ju s tvoje IP adrese {ipAddress}. {appealEmail, select, null {Ako smatraš da je to pogreška, obrati se administratorima ove instance i uloži žalbu.} other {Ako smatraš da je to pogreška, javi se na {appealEmail} i uloži žalbu.}} U žalbu uključi ovu IP adresu.",
- "permissions.global_ip_temporarily_banned": "Pristup {product_name} API-ju s tvoje IP adrese {ipAddress} privremeno je blokiran. Blokada se automatski uklanja kada istekne. {appealEmail, select, null {Ako smatraš da je to pogreška, obrati se administratorima ove instance i navedi ovu IP adresu.} other {Ako smatraš da je to pogreška, javi se na {appealEmail} i navedi ovu IP adresu.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} je blokirao pristup s ove mreže zbog aktivnosti koja je kršila njegova pravila.} other {{product_name} je blokirao pristup s ove mreže.}} Ako ovu mrežu dijeliš s drugima, na primjer u školi, na poslu, na javnom Wi-Fiju, preko mobilnog operatera ili VPN-a, ova blokada možda nema nikakve veze s tobom. Najbrže rješenje je promijeniti mrežu, na primjer prijeći s Wi-Fija na mobilne podatke, ili uključiti odnosno isključiti VPN.{appealEmail, select, null {} other { Ako misliš da je ova blokada pogreška, pošalji e-poruku na {appealEmail} i navedi svoju IP adresu: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} je blokirao pristup s ove mreže zbog aktivnosti koja je kršila njegova pravila.} other {{product_name} je blokirao pristup s ove mreže.}} Blokada traje do {expiresAt}. Ako ovu mrežu dijeliš s drugima, na primjer u školi, na poslu, na javnom Wi-Fiju, preko mobilnog operatera ili VPN-a, ova blokada možda nema nikakve veze s tobom. Najbrže rješenje je promijeniti mrežu, na primjer prijeći s Wi-Fija na mobilne podatke, ili uključiti odnosno isključiti VPN.{appealEmail, select, null {} other { Ako misliš da je ova blokada pogreška, pošalji e-poruku na {appealEmail} i navedi svoju IP adresu: {ipAddress}.}}",
"permissions.missing_access": "Nemaš pristup ovom resursu ili značajci.",
"permissions.missing_permissions": "Nemaš potrebna dopuštenja za ovu radnju.",
"permissions.user_banned_from_guild": "Ovaj korisnik ima zabranu pristupa ovoj zajednici.",
diff --git a/packages/errors/src/i18n/weblate/locales/hu.json b/packages/errors/src/i18n/weblate/locales/hu.json
index a0bf4229d..774d0e33e 100644
--- a/packages/errors/src/i18n/weblate/locales/hu.json
+++ b/packages/errors/src/i18n/weblate/locales/hu.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "Az ACL-ek nem lehetnek üresek.",
"admin_and_system.admin_api_key_not_found": "Az adminisztrátori API-kulcs nem található.",
"admin_and_system.deletion_failed": "Nem sikerült törölni az erőforrást. Próbáld újra.",
+ "admin_and_system.enforcement_account_closed": "Ez a fiók le van zárva, ezért nem függeszthető fel.",
+ "admin_and_system.enforcement_confirmations_required": "Erősítsd meg, hogy a bizonyítékokat megőrizted, és minden kötelező bejelentést megtettél.",
+ "admin_and_system.enforcement_decision_ended": "Ez a döntés már lezárult.",
+ "admin_and_system.enforcement_decision_owns_state": "Ezt a korlátozást egy moderációs döntés kezeli. Helyette a döntést zárd le.",
+ "admin_and_system.enforcement_decision_replaced": "Egy későbbi döntés felváltotta ezt, ezért már nem zárható le.",
+ "admin_and_system.enforcement_deletion_started": "A fiók törlése már megkezdődött, ezért a döntés már nem zárható le.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Közvetlen üzenetek csak akkor használhatók bizonyítékként, ha egy kapcsolt bejelentés kiterjed az adott beszélgetésre.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Az eltávolítandó üzeneteket bizonyítékként mentjük, ezért ne adj meg külön bizonyítéküzeneteket.",
+ "admin_and_system.enforcement_evidence_not_found": "Az egyik bizonyítéküzenet nem található.",
+ "admin_and_system.enforcement_evidence_not_subject": "Minden bizonyítéküzenetnek attól a fióktól vagy abból a közösségből kell származnia, amelyre ez a döntés vonatkozik.",
+ "admin_and_system.enforcement_evidence_required": "Ehhez a döntéshez legalább egy bizonyítéküzenet szükséges.",
+ "admin_and_system.enforcement_facts_required": "Adj meg egy bizonyítéküzenetet vagy egy megjegyzést a felhasználónak.",
+ "admin_and_system.enforcement_internal_note_required": "Adj meg egy belső megjegyzést az X-Audit-Log-Reason fejlécben.",
+ "admin_and_system.enforcement_kind_not_allowed": "Ez az indok nem használható ehhez az intézkedéshez.",
+ "admin_and_system.enforcement_limit_end_invalid": "Csak a bejelentési korlátozásnak lehet záró dátuma, és annak a következő 365 napon belül kell lennie.",
+ "admin_and_system.enforcement_limit_not_allowed": "Ez az indok nem használható ehhez a korlátozáshoz.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Hálózatokat csak végleges felfüggesztés vagy szabálysértés miatti lezárás tilthat le.",
+ "admin_and_system.enforcement_network_shared": "Ezen a hálózaton legutóbb más, nem korlátozott fiókok is aktívak voltak, ezért nem tiltható le.",
+ "admin_and_system.enforcement_network_unknown": "Ez a fiók az elmúlt 30 napban nem használta ezt a hálózatot.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Az ilyen típusú döntést csak visszavonással lehet lezárni, mert nincs mit feloldani.",
+ "admin_and_system.enforcement_permanent_required": "Az ilyen indokú felfüggesztéseknek véglegesnek kell lenniük.",
+ "admin_and_system.enforcement_report_mismatch": "Minden kapcsolt bejelentésnek léteznie kell, és arra a fiókra vagy közösségre kell vonatkoznia, amelyről ez a döntés szól.",
+ "admin_and_system.enforcement_report_required": "Kapcsolj legalább egy bejelentést, ha a forrás egy bejelentés.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Jogtulajdonos csak szerzői jogi döntéseknél adható meg.",
+ "admin_and_system.enforcement_rights_holder_required": "A szerzői jogi döntésekhez meg kell adni a jogtulajdonost vagy az érintett jogot.",
+ "admin_and_system.enforcement_statement_not_allowed": "Az ilyen indokú döntések nem tartalmazhatnak megjegyzést a felhasználónak.",
+ "admin_and_system.flag_requires_enforcement_route": "Ez a jelző egy korlátozás része. A felfüggesztési, törlési vagy funkciókorlátozási útvonalakon keresztül módosítsd.",
"admin_and_system.general_error": "Hiba történt. Próbáld újra később.",
"admin_and_system.guild_id_required_for_search_index": "A csatornaüzenet- és tagkeresési indexekhez meg kell adni a közösség azonosítóját.",
"admin_and_system.instance_policy_transition_not_allowed": "A példány szabályzatának ez a módosítása nem engedélyezett.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Érvénytelen időbélyeg.",
"admin_and_system.invalid_timezone_identifier": "Érvénytelen időzóna-azonosító.",
"admin_and_system.missing_acl": "Hiányzó ACL.",
+ "admin_and_system.moderation_basis_required": "Add meg az üzenetek törlésének alapját.",
"admin_and_system.must_be_iso_timestamp": "Érvényes ISO-időbélyegnek kell lennie.",
"admin_and_system.processing_failed": "Nem tudtuk feldolgozni a kérést. Próbáld újra.",
"admin_and_system.resource_locked": "Az erőforrás módosítása folyamatban van. Próbáld újra rövidesen.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Az ajándékkód beváltása folyamatban van. Próbáld újra kis idő múlva.",
"invites_and_gifts.unknown_gift_code": "Ismeretlen ajándékkód.",
"invites_and_packs.max_emojis_reached": "Elérted az emojik megengedett számát ({count, plural, one {#} other {#}}).",
- "limits.at_least_one_entry_required": "Legalább egy bejegyzés szükséges.",
"limits.base64_length_invalid": "A Base64 karakterlánc hossza {min} és {maxLength} karakter közötti lehet.",
"limits.cannot_specify_before_and_after": "Nem adhatod meg egyszerre a `before` és az `after` paramétert.",
"limits.content_exceeds_max_length": "A szöveg legfeljebb {maxLength, plural, one {# karakter} other {# karakter}} hosszú lehet.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Érvénytelen DSA-ellenőrzőkód.",
"moderation_and_reports.invalid_report_flow_answers": "Ezek a válaszok nem egyeznek a bejelentési űrlappal. Kezdd elölről a bejelentést.",
"moderation_and_reports.ip_ban_declined": "Ez az IP-cím nem adható hozzá a tiltólistához.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Ez a hálózati letiltás egy moderációs döntéshez tartozik. Az eltávolításához zárd le a döntést.",
"moderation_and_reports.report_already_resolved": "A bejelentést már lezárták.",
"moderation_and_reports.report_banned": "Eltiltottak a bejelentések küldésétől.",
"moderation_and_reports.report_flow_outdated": "A bejelentési űrlap megváltozott, amíg kitöltötted. Kezdd elölről a bejelentést.",
+ "moderation_and_reports.report_outcome_invalid": "Az intézkedéssel lezárt ügyekhez a szabálysértés nélküli eredménytől eltérő eredmény szükséges. A duplikátumként lezárt ügyekhez meg kell adni az eredeti bejelentést, eredmény viszont nem adható meg. A szabálysértés nélkül lezárt ügyekhez más eredmény nem adható meg.",
"moderation_and_reports.report_under_legal_hold": "Ez a bejelentés jogi visszatartás alatt áll, ezért nem törölhető.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Be kell fejezned a fiókod regisztrációját, mielőtt bejelentéseket küldhetnél.",
+ "moderation_and_reports.unknown_enforcement_decision": "Ismeretlen moderációs döntés.",
"moderation_and_reports.unknown_report": "Ismeretlen bejelentés.",
"moderation_and_reports.user_is_not_banned": "Ez a felhasználó nincs kitiltva.",
"names_and_normalization.name_empty_after_normalization": "Normalizálás után a név nem lehet üres.",
- "permissions.global_ip_banned": "Az IP-címedet ({ipAddress}) a platform adminisztrátorai véglegesen letiltották a {product_name} API használatáról. {appealEmail, select, null {Ha úgy gondolod, hogy ez tévedés, ennek a példánynak az adminisztrátoraihoz nyújthatsz be fellebbezést.} other {Ha úgy gondolod, hogy ez tévedés, a {appealEmail} címre írhatsz fellebbezést.}} Add meg benne ezt az IP-címet.",
- "permissions.global_ip_temporarily_banned": "Az IP-címedet ({ipAddress}) ideiglenesen letiltottuk a {product_name} API használatáról. A tiltás a lejártakor magától megszűnik. {appealEmail, select, null {Ha úgy gondolod, hogy ez tévedés, fordulj ennek a példánynak az adminisztrátoraihoz, és add meg ezt az IP-címet.} other {Ha úgy gondolod, hogy ez tévedés, írj a {appealEmail} címre, és add meg ezt az IP-címet.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {A(z) {product_name} letiltotta a hozzáférést erről a hálózatról a szabályait sértő tevékenység miatt.} other {A(z) {product_name} letiltotta a hozzáférést erről a hálózatról.}} Ha ezt a hálózatot másokkal közösen használod, például az iskolában, a munkahelyeden, nyilvános Wi-Fi-n, a mobilszolgáltatódon vagy egy VPN-en keresztül, előfordulhat, hogy a letiltásnak semmi köze hozzád. A leggyorsabb megoldás, ha hálózatot váltasz, például Wi-Fi helyett mobilinternetre, vagy ki- vagy bekapcsolod a VPN-t.{appealEmail, select, null {} other { Ha úgy gondolod, hogy a letiltás tévedés, írj a(z) {appealEmail} címre, és add meg az IP-címedet: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {A(z) {product_name} letiltotta a hozzáférést erről a hálózatról a szabályait sértő tevékenység miatt.} other {A(z) {product_name} letiltotta a hozzáférést erről a hálózatról.}} A letiltás vége: {expiresAt}. Ha ezt a hálózatot másokkal közösen használod, például az iskolában, a munkahelyeden, nyilvános Wi-Fi-n, a mobilszolgáltatódon vagy egy VPN-en keresztül, előfordulhat, hogy a letiltásnak semmi köze hozzád. A leggyorsabb megoldás, ha hálózatot váltasz, például Wi-Fi helyett mobilinternetre, vagy ki- vagy bekapcsolod a VPN-t.{appealEmail, select, null {} other { Ha úgy gondolod, hogy a letiltás tévedés, írj a(z) {appealEmail} címre, és add meg az IP-címedet: {ipAddress}.}}",
"permissions.missing_access": "Nem férsz hozzá ehhez az erőforráshoz vagy funkcióhoz.",
"permissions.missing_permissions": "Nincs meg a művelet elvégzéséhez szükséges jogosultságod.",
"permissions.user_banned_from_guild": "Ez a felhasználó ki van tiltva a közösségből.",
diff --git a/packages/errors/src/i18n/weblate/locales/id.json b/packages/errors/src/i18n/weblate/locales/id.json
index 4bea8bce6..d0818a61e 100644
--- a/packages/errors/src/i18n/weblate/locales/id.json
+++ b/packages/errors/src/i18n/weblate/locales/id.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL tidak boleh kosong.",
"admin_and_system.admin_api_key_not_found": "Kunci API admin tidak ditemukan.",
"admin_and_system.deletion_failed": "Tidak bisa menghapus sumber daya. Coba lagi.",
+ "admin_and_system.enforcement_account_closed": "Akun ini sudah ditutup, jadi tidak bisa ditangguhkan.",
+ "admin_and_system.enforcement_confirmations_required": "Konfirmasikan bahwa bukti sudah disimpan dan setiap laporan yang diwajibkan sudah diajukan.",
+ "admin_and_system.enforcement_decision_ended": "Keputusan ini sudah berakhir.",
+ "admin_and_system.enforcement_decision_owns_state": "Pembatasan ini dikendalikan oleh keputusan penegakan. Akhiri keputusan tersebut sebagai gantinya.",
+ "admin_and_system.enforcement_decision_replaced": "Keputusan yang lebih baru telah menggantikan keputusan ini, jadi keputusan ini tidak bisa diakhiri lagi.",
+ "admin_and_system.enforcement_deletion_started": "Penghapusan akun ini sudah dimulai, jadi keputusan ini tidak bisa diakhiri lagi.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Pesan dalam pesan langsung hanya bisa digunakan sebagai bukti jika ada laporan tertaut yang mencakup percakapan tersebut.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Pesan yang dihapus sudah disimpan sebagai bukti, jadi jangan sertakan pesan bukti terpisah.",
+ "admin_and_system.enforcement_evidence_not_found": "Salah satu pesan bukti tidak ditemukan.",
+ "admin_and_system.enforcement_evidence_not_subject": "Setiap pesan bukti harus berasal dari akun atau komunitas yang menjadi subjek keputusan ini.",
+ "admin_and_system.enforcement_evidence_required": "Keputusan ini memerlukan setidaknya satu pesan bukti.",
+ "admin_and_system.enforcement_facts_required": "Tambahkan pesan bukti atau catatan untuk pengguna.",
+ "admin_and_system.enforcement_internal_note_required": "Tambahkan catatan internal di header X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Alasan ini tidak bisa digunakan untuk tindakan ini.",
+ "admin_and_system.enforcement_limit_end_invalid": "Hanya pembatasan laporan yang memiliki tanggal berakhir, dan tanggal itu harus dalam 365 hari ke depan.",
+ "admin_and_system.enforcement_limit_not_allowed": "Alasan ini tidak bisa digunakan untuk pembatasan ini.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Hanya penangguhan permanen atau penutupan karena pelanggaran aturan yang bisa memblokir jaringan.",
+ "admin_and_system.enforcement_network_shared": "Akun lain yang tidak dibatasi terakhir aktif di jaringan ini, jadi jaringan ini tidak bisa diblokir.",
+ "admin_and_system.enforcement_network_unknown": "Akun ini tidak menggunakan jaringan ini dalam 30 hari terakhir.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Keputusan jenis ini hanya bisa diakhiri dengan pembatalan, karena tidak ada yang perlu dicabut.",
+ "admin_and_system.enforcement_permanent_required": "Penangguhan karena alasan ini harus permanen.",
+ "admin_and_system.enforcement_report_mismatch": "Setiap laporan tertaut harus ada dan berkaitan dengan akun atau komunitas yang menjadi subjek keputusan ini.",
+ "admin_and_system.enforcement_report_required": "Tautkan setidaknya satu laporan jika sumbernya adalah laporan.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Pemegang hak hanya bisa diisi untuk keputusan hak cipta.",
+ "admin_and_system.enforcement_rights_holder_required": "Keputusan hak cipta memerlukan pemegang hak atau hak yang bersangkutan.",
+ "admin_and_system.enforcement_statement_not_allowed": "Keputusan karena alasan ini tidak bisa menyertakan catatan untuk pengguna.",
+ "admin_and_system.flag_requires_enforcement_route": "Penanda ini adalah bagian dari pembatasan. Ubah melalui rute penangguhan, penghapusan, atau pembatasan fitur.",
"admin_and_system.general_error": "Ada yang salah. Coba lagi nanti.",
"admin_and_system.guild_id_required_for_search_index": "ID komunitas diperlukan untuk indeks pencarian pesan saluran dan anggota.",
"admin_and_system.instance_policy_transition_not_allowed": "Perubahan kebijakan instance ini tidak diizinkan.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Timestamp tidak valid.",
"admin_and_system.invalid_timezone_identifier": "Pengenal zona waktu tidak valid.",
"admin_and_system.missing_acl": "ACL tidak ada.",
+ "admin_and_system.moderation_basis_required": "Berikan dasar untuk menghapus pesan.",
"admin_and_system.must_be_iso_timestamp": "Harus berupa ISO timestamp yang valid.",
"admin_and_system.processing_failed": "Tidak bisa memproses permintaan. Coba lagi.",
"admin_and_system.resource_locked": "Sumber daya ini sedang diubah. Coba lagi dalam beberapa saat.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Penukaran kode hadiah sedang berlangsung. Coba lagi beberapa saat lagi.",
"invites_and_gifts.unknown_gift_code": "Kode hadiah tidak dikenal.",
"invites_and_packs.max_emojis_reached": "Kamu sudah mencapai batas maksimum {count} {count, plural, other {emoji}}.",
- "limits.at_least_one_entry_required": "Minimal satu entri diperlukan.",
"limits.base64_length_invalid": "Panjang string Base64 harus antara {min} dan {maxLength} karakter.",
"limits.cannot_specify_before_and_after": "Kamu tidak bisa menentukan `before` dan `after` sekaligus.",
"limits.content_exceeds_max_length": "Teks tidak boleh melebihi {maxLength} {maxLength, plural, other {karakter}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Kode verifikasi DSA tidak valid.",
"moderation_and_reports.invalid_report_flow_answers": "Jawaban ini tidak sesuai dengan formulir laporan. Mulai ulang laporanmu.",
"moderation_and_reports.ip_ban_declined": "Alamat IP ini tidak dapat ditambahkan ke daftar blokir.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Blokir jaringan ini terikat pada keputusan penegakan. Akhiri keputusan tersebut untuk menghapusnya.",
"moderation_and_reports.report_already_resolved": "Laporan sudah ditangani.",
"moderation_and_reports.report_banned": "Kamu dilarang mengirim laporan.",
"moderation_and_reports.report_flow_outdated": "Formulir laporan berubah saat kamu mengisinya. Mulai ulang laporanmu.",
+ "moderation_and_reports.report_outcome_invalid": "Penyelesaian dengan tindakan memerlukan hasil selain tanpa pelanggaran. Penyelesaian duplikat memerlukan laporan aslinya dan tidak boleh memakai hasil. Penyelesaian tanpa pelanggaran tidak boleh memakai hasil lain.",
"moderation_and_reports.report_under_legal_hold": "Laporan ini sedang ditahan karena alasan hukum dan tidak dapat dihapus.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Kamu perlu menyelesaikan penyiapan akunmu sebelum bisa mengirim laporan.",
+ "moderation_and_reports.unknown_enforcement_decision": "Keputusan penegakan tidak dikenal.",
"moderation_and_reports.unknown_report": "Laporan tidak dikenal.",
"moderation_and_reports.user_is_not_banned": "Pengguna ini tidak diblokir.",
"names_and_normalization.name_empty_after_normalization": "Nama tidak bisa kosong setelah normalisasi.",
- "permissions.global_ip_banned": "Alamat IP kamu {ipAddress} telah diblokir permanen dari {product_name} API oleh admin platform. {appealEmail, select, null {Jika kamu merasa ini keliru, hubungi administrator instance ini untuk mengajukan banding.} other {Jika kamu merasa ini keliru, hubungi {appealEmail} untuk mengajukan banding.}} Sertakan alamat IP ini dalam bandingmu.",
- "permissions.global_ip_temporarily_banned": "Alamat IP kamu {ipAddress} diblokir sementara dari {product_name} API. Pemblokiran akan dicabut secara otomatis saat masa berlakunya habis. {appealEmail, select, null {Jika kamu merasa ini keliru, hubungi administrator instance ini dan sertakan alamat IP ini.} other {Jika kamu merasa ini keliru, hubungi {appealEmail} dan sertakan alamat IP ini.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} memblokir akses dari jaringan ini karena aktivitas yang melanggar aturannya.} other {{product_name} memblokir akses dari jaringan ini.}} Jika kamu berbagi jaringan ini dengan orang lain, misalnya di sekolah, di tempat kerja, di Wi-Fi publik, melalui operator selulermu, atau lewat VPN, blokir ini mungkin tidak ada hubungannya denganmu. Cara tercepat untuk mengatasinya adalah berganti jaringan, misalnya memakai data seluler alih-alih Wi-Fi, atau menyalakan atau mematikan VPN-mu.{appealEmail, select, null {} other { Jika menurutmu blokir ini keliru, kirim email ke {appealEmail} dan sertakan alamat IP-mu, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} memblokir akses dari jaringan ini karena aktivitas yang melanggar aturannya.} other {{product_name} memblokir akses dari jaringan ini.}} Blokir berakhir pada {expiresAt}. Jika kamu berbagi jaringan ini dengan orang lain, misalnya di sekolah, di tempat kerja, di Wi-Fi publik, melalui operator selulermu, atau lewat VPN, blokir ini mungkin tidak ada hubungannya denganmu. Cara tercepat untuk mengatasinya adalah berganti jaringan, misalnya memakai data seluler alih-alih Wi-Fi, atau menyalakan atau mematikan VPN-mu.{appealEmail, select, null {} other { Jika menurutmu blokir ini keliru, kirim email ke {appealEmail} dan sertakan alamat IP-mu, {ipAddress}.}}",
"permissions.missing_access": "Kamu tidak memiliki akses ke sumber daya atau fitur ini.",
"permissions.missing_permissions": "Kamu tidak memiliki izin yang diperlukan untuk melakukan tindakan ini.",
"permissions.user_banned_from_guild": "Pengguna ini diblokir dari komunitas ini.",
diff --git a/packages/errors/src/i18n/weblate/locales/it.json b/packages/errors/src/i18n/weblate/locales/it.json
index 6eb5765f4..b060f15ae 100644
--- a/packages/errors/src/i18n/weblate/locales/it.json
+++ b/packages/errors/src/i18n/weblate/locales/it.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "Le ACL non possono essere vuote.",
"admin_and_system.admin_api_key_not_found": "La chiave API admin non è stata trovata.",
"admin_and_system.deletion_failed": "Non è stato possibile eliminare la risorsa. Riprova.",
+ "admin_and_system.enforcement_account_closed": "Questo account è chiuso, quindi non può essere sospeso.",
+ "admin_and_system.enforcement_confirmations_required": "Conferma che le prove sono state conservate e che ogni segnalazione obbligatoria è stata inviata.",
+ "admin_and_system.enforcement_decision_ended": "Questa decisione è già terminata.",
+ "admin_and_system.enforcement_decision_owns_state": "Questa restrizione dipende da una decisione di moderazione. Termina invece la decisione.",
+ "admin_and_system.enforcement_decision_replaced": "Una decisione successiva ha sostituito questa, quindi non può più essere terminata.",
+ "admin_and_system.enforcement_deletion_started": "L'eliminazione di questo account è già iniziata, quindi la decisione non può più essere terminata.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "I messaggi diretti possono essere usati come prove solo se una segnalazione collegata riguarda quella conversazione.",
+ "admin_and_system.enforcement_evidence_not_allowed": "I messaggi da rimuovere vengono salvati come prove, quindi non aggiungere messaggi di prova separati.",
+ "admin_and_system.enforcement_evidence_not_found": "Uno dei messaggi di prova non è stato trovato.",
+ "admin_and_system.enforcement_evidence_not_subject": "Ogni messaggio di prova deve provenire dall'account o dalla community a cui si riferisce questa decisione.",
+ "admin_and_system.enforcement_evidence_required": "Questa decisione richiede almeno un messaggio di prova.",
+ "admin_and_system.enforcement_facts_required": "Aggiungi un messaggio di prova o una nota per l'utente.",
+ "admin_and_system.enforcement_internal_note_required": "Aggiungi una nota interna nell'header X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Questo motivo non può essere usato per questa azione.",
+ "admin_and_system.enforcement_limit_end_invalid": "Solo un limite sulle segnalazioni ha una data di fine, che deve essere entro i prossimi 365 giorni.",
+ "admin_and_system.enforcement_limit_not_allowed": "Questo motivo non può essere usato per questo limite.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Solo una sospensione permanente o una chiusura per violazione di una regola può bloccare le reti.",
+ "admin_and_system.enforcement_network_shared": "L'ultima attività di altri account senza restrizioni è avvenuta su questa rete, quindi non può essere bloccata.",
+ "admin_and_system.enforcement_network_unknown": "Questo account non ha usato questa rete negli ultimi 30 giorni.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Solo un annullamento può terminare questo tipo di decisione, perché non c'è nulla da revocare.",
+ "admin_and_system.enforcement_permanent_required": "Le sospensioni per questo motivo devono essere permanenti.",
+ "admin_and_system.enforcement_report_mismatch": "Ogni segnalazione collegata deve esistere e riguardare l'account o la community a cui si riferisce questa decisione.",
+ "admin_and_system.enforcement_report_required": "Collega almeno una segnalazione quando l'origine è una segnalazione.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Un titolare dei diritti può essere indicato solo per le decisioni sul diritto d'autore.",
+ "admin_and_system.enforcement_rights_holder_required": "Le decisioni sul diritto d'autore richiedono il titolare dei diritti o il diritto in questione.",
+ "admin_and_system.enforcement_statement_not_allowed": "Le decisioni per questo motivo non possono includere una nota per l'utente.",
+ "admin_and_system.flag_requires_enforcement_route": "Questo flag fa parte di una restrizione. Modificalo tramite le route di sospensione, eliminazione o limitazione delle funzionalità.",
"admin_and_system.general_error": "Qualcosa è andato storto. Riprova più tardi.",
"admin_and_system.guild_id_required_for_search_index": "È necessario l'ID della community per gli indici di ricerca dei messaggi e dei membri del canale.",
"admin_and_system.instance_policy_transition_not_allowed": "Questa modifica delle policy dell'istanza non è consentita.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Timestamp non valido.",
"admin_and_system.invalid_timezone_identifier": "Identificatore del fuso orario non valido.",
"admin_and_system.missing_acl": "ACL assente.",
+ "admin_and_system.moderation_basis_required": "Indica un fondamento per eliminare i messaggi.",
"admin_and_system.must_be_iso_timestamp": "Deve essere un timestamp ISO valido.",
"admin_and_system.processing_failed": "Non è stato possibile elaborare la richiesta. Riprova.",
"admin_and_system.resource_locked": "Questa risorsa è in fase di modifica. Riprova tra breve.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Il riscatto del codice regalo è in corso. Riprova tra un momento.",
"invites_and_gifts.unknown_gift_code": "Codice regalo sconosciuto.",
"invites_and_packs.max_emojis_reached": "Hai raggiunto il massimo di {count, plural, one {# emoji} other {# emoji}}.",
- "limits.at_least_one_entry_required": "È richiesta almeno una voce.",
"limits.base64_length_invalid": "La lunghezza della stringa base64 deve essere compresa tra {min} e {maxLength} caratteri.",
"limits.cannot_specify_before_and_after": "Non puoi specificare sia `before` che `after`.",
"limits.content_exceeds_max_length": "Il testo non può superare {maxLength, plural, one {# carattere} other {# caratteri}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Codice di verifica DSA non valido.",
"moderation_and_reports.invalid_report_flow_answers": "Queste risposte non corrispondono al modulo di segnalazione. Ricomincia la segnalazione.",
"moderation_and_reports.ip_ban_declined": "Questo indirizzo IP non può essere aggiunto all'elenco di blocco.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Questo blocco di rete appartiene a una decisione di moderazione. Termina la decisione per rimuoverlo.",
"moderation_and_reports.report_already_resolved": "La segnalazione è già stata risolta.",
"moderation_and_reports.report_banned": "Non hai più il permesso di inviare segnalazioni.",
"moderation_and_reports.report_flow_outdated": "Il modulo di segnalazione è cambiato mentre lo stavi compilando. Ricomincia la segnalazione.",
+ "moderation_and_reports.report_outcome_invalid": "Una risoluzione con provvedimento richiede un esito, che non può essere l'assenza di violazione. Una risoluzione duplicata richiede la segnalazione originale e non ammette alcun esito. Una risoluzione senza violazione non ammette altri esiti.",
"moderation_and_reports.report_under_legal_hold": "Questa segnalazione è soggetta a un vincolo di conservazione legale e non può essere eliminata.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Devi completare la registrazione del tuo account prima di poter inviare segnalazioni.",
+ "moderation_and_reports.unknown_enforcement_decision": "Decisione di moderazione sconosciuta.",
"moderation_and_reports.unknown_report": "Segnalazione sconosciuta.",
"moderation_and_reports.user_is_not_banned": "L'utente non è bannato.",
"names_and_normalization.name_empty_after_normalization": "Il nome non può essere vuoto dopo la normalizzazione.",
- "permissions.global_ip_banned": "Il tuo indirizzo IP {ipAddress} è stato bloccato in modo permanente dall'API {product_name} dagli amministratori della piattaforma. {appealEmail, select, null {Se pensi che sia un errore, contatta gli amministratori di questa istanza per fare ricorso.} other {Se pensi che sia un errore, contatta {appealEmail} per fare ricorso.}} Includi questo indirizzo IP nel ricorso.",
- "permissions.global_ip_temporarily_banned": "Il tuo indirizzo IP {ipAddress} è stato bloccato temporaneamente dall'API {product_name}. Il blocco verrà rimosso automaticamente alla scadenza. {appealEmail, select, null {Se pensi che sia un errore, contatta gli amministratori di questa istanza indicando questo indirizzo IP.} other {Se pensi che sia un errore, contatta {appealEmail} indicando questo indirizzo IP.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} ha bloccato l'accesso da questa rete a causa di attività che violavano le sue regole.} other {{product_name} ha bloccato l'accesso da questa rete.}} Se condividi questa rete, ad esempio a scuola, al lavoro, su una rete Wi-Fi pubblica, tramite il tuo operatore mobile o una VPN, questo blocco potrebbe non avere nulla a che fare con te. La soluzione più rapida è cambiare rete, ad esempio passando ai dati mobili invece del Wi-Fi, oppure attivare o disattivare la VPN.{appealEmail, select, null {} other { Se pensi che questo blocco sia un errore, scrivi a {appealEmail} indicando il tuo indirizzo IP, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} ha bloccato l'accesso da questa rete a causa di attività che violavano le sue regole.} other {{product_name} ha bloccato l'accesso da questa rete.}} Il blocco termina il {expiresAt}. Se condividi questa rete, ad esempio a scuola, al lavoro, su una rete Wi-Fi pubblica, tramite il tuo operatore mobile o una VPN, questo blocco potrebbe non avere nulla a che fare con te. La soluzione più rapida è cambiare rete, ad esempio passando ai dati mobili invece del Wi-Fi, oppure attivare o disattivare la VPN.{appealEmail, select, null {} other { Se pensi che questo blocco sia un errore, scrivi a {appealEmail} indicando il tuo indirizzo IP, {ipAddress}.}}",
"permissions.missing_access": "Non hai accesso a questa risorsa o funzionalità.",
"permissions.missing_permissions": "Non hai le autorizzazioni necessarie per eseguire questa azione.",
"permissions.user_banned_from_guild": "L'utente è bannato da questa community.",
diff --git a/packages/errors/src/i18n/weblate/locales/ja.json b/packages/errors/src/i18n/weblate/locales/ja.json
index ea9a80adb..179d9f172 100644
--- a/packages/errors/src/i18n/weblate/locales/ja.json
+++ b/packages/errors/src/i18n/weblate/locales/ja.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACLは空にできません。",
"admin_and_system.admin_api_key_not_found": "管理者APIキーが見つかりませんでした。",
"admin_and_system.deletion_failed": "リソースを削除できませんでした。もう一度お試しください。",
+ "admin_and_system.enforcement_account_closed": "このアカウントは閉鎖済みのため、一時停止できません。",
+ "admin_and_system.enforcement_confirmations_required": "証拠が保全されていること、および必要な報告が提出済みであることを確認してください。",
+ "admin_and_system.enforcement_decision_ended": "この決定はすでに終了しています。",
+ "admin_and_system.enforcement_decision_owns_state": "この制限は措置決定によって管理されています。代わりに決定を終了してください。",
+ "admin_and_system.enforcement_decision_replaced": "後の決定に置き換えられたため、この決定は終了できなくなりました。",
+ "admin_and_system.enforcement_deletion_started": "このアカウントの削除はすでに始まっているため、決定を終了できなくなりました。",
+ "admin_and_system.enforcement_evidence_dm_unreported": "ダイレクトメッセージ内のメッセージは、その会話を対象とする報告がリンクされている場合にのみ証拠として使用できます。",
+ "admin_and_system.enforcement_evidence_not_allowed": "削除されるメッセージは証拠として保存されるため、個別の証拠メッセージは指定しないでください。",
+ "admin_and_system.enforcement_evidence_not_found": "証拠メッセージのうち1件が見つかりませんでした。",
+ "admin_and_system.enforcement_evidence_not_subject": "すべての証拠メッセージは、この決定の対象となるアカウントまたはコミュニティのものである必要があります。",
+ "admin_and_system.enforcement_evidence_required": "この決定には、少なくとも1件の証拠メッセージが必要です。",
+ "admin_and_system.enforcement_facts_required": "証拠メッセージまたはユーザーへのメモを追加してください。",
+ "admin_and_system.enforcement_internal_note_required": "X-Audit-Log-Reasonヘッダーに内部メモを追加してください。",
+ "admin_and_system.enforcement_kind_not_allowed": "この理由はこの措置には使用できません。",
+ "admin_and_system.enforcement_limit_end_invalid": "終了日を設定できるのは報告の制限のみで、今日から365日以内である必要があります。",
+ "admin_and_system.enforcement_limit_not_allowed": "この理由はこの制限には使用できません。",
+ "admin_and_system.enforcement_network_block_not_allowed": "ネットワークをブロックできるのは、ルール違反による永久停止または閉鎖のみです。",
+ "admin_and_system.enforcement_network_shared": "制限されていない他のアカウントがこのネットワークで最後にアクティブだったため、ブロックできません。",
+ "admin_and_system.enforcement_network_unknown": "このアカウントは過去30日間にこのネットワークを使用していません。",
+ "admin_and_system.enforcement_outcome_not_allowed": "解除する対象がないため、この種類の決定は取り消しでのみ終了できます。",
+ "admin_and_system.enforcement_permanent_required": "この理由による停止は永久停止である必要があります。",
+ "admin_and_system.enforcement_report_mismatch": "リンクするすべての報告が存在し、この決定の対象となるアカウントまたはコミュニティに関するものである必要があります。",
+ "admin_and_system.enforcement_report_required": "ソースが報告の場合は、少なくとも1件の報告をリンクしてください。",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "権利者を指定できるのは、著作権に関する決定のみです。",
+ "admin_and_system.enforcement_rights_holder_required": "著作権に関する決定には、権利者または関係する権利が必要です。",
+ "admin_and_system.enforcement_statement_not_allowed": "この理由による決定には、ユーザーへのメモを含めることはできません。",
+ "admin_and_system.flag_requires_enforcement_route": "このフラグは制限の一部です。停止、削除、または機能制限のルートから変更してください。",
"admin_and_system.general_error": "問題が発生しました。後でもう一度お試しください。",
"admin_and_system.guild_id_required_for_search_index": "チャンネルメッセージとメンバーの検索インデックスにはコミュニティIDが必要です。",
"admin_and_system.instance_policy_transition_not_allowed": "このインスタンスポリシーの変更は許可されていません。",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "タイムスタンプが無効です。",
"admin_and_system.invalid_timezone_identifier": "タイムゾーンIDが無効です。",
"admin_and_system.missing_acl": "ACLがありません。",
+ "admin_and_system.moderation_basis_required": "メッセージを削除する根拠を指定してください。",
"admin_and_system.must_be_iso_timestamp": "有効なISOタイムスタンプである必要があります。",
"admin_and_system.processing_failed": "リクエストを処理できませんでした。もう一度お試しください。",
"admin_and_system.resource_locked": "このリソースは現在変更されています。しばらくしてからもう一度お試しください。",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "ギフトコードを引き換え中です。しばらくしてからもう一度お試しください。",
"invites_and_gifts.unknown_gift_code": "不明なギフトコードです。",
"invites_and_packs.max_emojis_reached": "絵文字の上限{count, plural, other {#個}}に達しました。",
- "limits.at_least_one_entry_required": "1つ以上のエントリが必要です。",
"limits.base64_length_invalid": "Base64文字列の長さは{min}~{maxLength}文字である必要があります。",
"limits.cannot_specify_before_and_after": "`before`と`after`は同時に指定できません。",
"limits.content_exceeds_max_length": "テキストは{maxLength, plural, other {#文字}}を超えることはできません。",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "DSA確認コードが無効です。",
"moderation_and_reports.invalid_report_flow_answers": "これらの回答は報告フォームと一致しません。最初から報告し直してください。",
"moderation_and_reports.ip_ban_declined": "このIPアドレスはブロックリストに追加できません。",
+ "moderation_and_reports.ip_ban_linked_to_decision": "このネットワークブロックは措置決定に紐づいています。削除するには決定を終了してください。",
"moderation_and_reports.report_already_resolved": "報告はすでに解決済みです。",
"moderation_and_reports.report_banned": "報告の送信は禁止されています。",
"moderation_and_reports.report_flow_outdated": "入力中に報告フォームが変更されました。最初から報告し直してください。",
+ "moderation_and_reports.report_outcome_invalid": "対応済みの解決には違反なし以外の結果が必要です。重複には重複元の報告が必要で、結果は指定できません。違反なしの解決には他の結果を指定できません。",
"moderation_and_reports.report_under_legal_hold": "この報告は法的保全の対象のため削除できません。",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "報告を送信する前に、アカウント設定を完了する必要があります。",
+ "moderation_and_reports.unknown_enforcement_decision": "不明な措置決定です。",
"moderation_and_reports.unknown_report": "不明な報告です。",
"moderation_and_reports.user_is_not_banned": "このユーザーはBANされていません。",
"names_and_normalization.name_empty_after_normalization": "正規化後、名前は空にできません。",
- "permissions.global_ip_banned": "IPアドレス{ipAddress}は、プラットフォーム管理者により{product_name} APIから永久にブロックされました。{appealEmail, select, null {誤りだと思う場合は、このインスタンスの管理者に連絡して異議申し立てをしてください。} other {誤りだと思う場合は、{appealEmail}に連絡して異議申し立てをしてください。}}申し立てにはこのIPアドレスを記載してください。",
- "permissions.global_ip_temporarily_banned": "IPアドレス{ipAddress}は、{product_name} APIから一時的にブロックされました。ブロックは期限が切れると自動的に解除されます。{appealEmail, select, null {誤りだと思う場合は、このIPアドレスを記載のうえ、このインスタンスの管理者に連絡してください。} other {誤りだと思う場合は、このIPアドレスを記載のうえ、{appealEmail}に連絡してください。}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name}は、ルールに違反する活動があったため、このネットワークからのアクセスをブロックしました。} other {{product_name}は、このネットワークからのアクセスをブロックしました。}}学校、職場、公共Wi-Fi、モバイルキャリア、VPNなどでこのネットワークを他の人と共有している場合、このブロックはあなたとは関係ないかもしれません。いちばん早い解決策は、Wi-Fiからモバイルデータに切り替えるなどしてネットワークを変えるか、VPNをオンまたはオフにすることです。{appealEmail, select, null {} other {このブロックが誤りだと思われる場合は、IPアドレス({ipAddress})を記載して{appealEmail}までメールでご連絡ください。}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name}は、ルールに違反する活動があったため、このネットワークからのアクセスをブロックしました。} other {{product_name}は、このネットワークからのアクセスをブロックしました。}}ブロックは{expiresAt}に解除されます。学校、職場、公共Wi-Fi、モバイルキャリア、VPNなどでこのネットワークを他の人と共有している場合、このブロックはあなたとは関係ないかもしれません。いちばん早い解決策は、Wi-Fiからモバイルデータに切り替えるなどしてネットワークを変えるか、VPNをオンまたはオフにすることです。{appealEmail, select, null {} other {このブロックが誤りだと思われる場合は、IPアドレス({ipAddress})を記載して{appealEmail}までメールでご連絡ください。}}",
"permissions.missing_access": "このリソースや機能にアクセスする権限がありません。",
"permissions.missing_permissions": "この操作を実行するために必要な権限がありません。",
"permissions.user_banned_from_guild": "このユーザーはこのコミュニティでBANされています。",
diff --git a/packages/errors/src/i18n/weblate/locales/ko.json b/packages/errors/src/i18n/weblate/locales/ko.json
index 0c2a8702b..d45da0cb5 100644
--- a/packages/errors/src/i18n/weblate/locales/ko.json
+++ b/packages/errors/src/i18n/weblate/locales/ko.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL은 비어 있을 수 없어요.",
"admin_and_system.admin_api_key_not_found": "관리자 API 키를 찾을 수 없어요.",
"admin_and_system.deletion_failed": "리소스를 삭제하지 못했어요. 다시 시도해 주세요.",
+ "admin_and_system.enforcement_account_closed": "이 계정은 폐쇄되어 정지할 수 없어요.",
+ "admin_and_system.enforcement_confirmations_required": "증거가 보존되었고 필요한 보고가 제출되었는지 확인해 주세요.",
+ "admin_and_system.enforcement_decision_ended": "이 결정은 이미 종료되었어요.",
+ "admin_and_system.enforcement_decision_owns_state": "이 제한은 제재 결정에 따라 관리돼요. 대신 결정을 종료해 주세요.",
+ "admin_and_system.enforcement_decision_replaced": "이후의 결정이 이 결정을 대체해서 더 이상 종료할 수 없어요.",
+ "admin_and_system.enforcement_deletion_started": "이 계정의 삭제가 이미 시작되어 더 이상 결정을 종료할 수 없어요.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "DM 속 메시지는 연결된 신고가 해당 대화를 다룰 때만 증거로 사용할 수 있어요.",
+ "admin_and_system.enforcement_evidence_not_allowed": "삭제되는 메시지는 증거로 저장되므로 별도의 증거 메시지는 빼 주세요.",
+ "admin_and_system.enforcement_evidence_not_found": "증거 메시지 중 하나를 찾을 수 없어요.",
+ "admin_and_system.enforcement_evidence_not_subject": "모든 증거 메시지는 이 결정의 대상인 계정이나 커뮤니티의 것이어야 해요.",
+ "admin_and_system.enforcement_evidence_required": "이 결정에는 증거 메시지가 하나 이상 필요해요.",
+ "admin_and_system.enforcement_facts_required": "증거 메시지나 사용자에게 보낼 메모를 추가해 주세요.",
+ "admin_and_system.enforcement_internal_note_required": "X-Audit-Log-Reason 헤더에 내부 메모를 추가해 주세요.",
+ "admin_and_system.enforcement_kind_not_allowed": "이 사유는 이 조치에 사용할 수 없어요.",
+ "admin_and_system.enforcement_limit_end_invalid": "종료일은 신고 제한에만 지정할 수 있으며, 앞으로 365일 이내여야 해요.",
+ "admin_and_system.enforcement_limit_not_allowed": "이 사유는 이 제한에 사용할 수 없어요.",
+ "admin_and_system.enforcement_network_block_not_allowed": "네트워크는 규칙 위반에 따른 영구 정지나 폐쇄로만 차단할 수 있어요.",
+ "admin_and_system.enforcement_network_shared": "제한되지 않은 다른 계정이 마지막으로 이 네트워크에서 활동해서 차단할 수 없어요.",
+ "admin_and_system.enforcement_network_unknown": "이 계정은 최근 30일 동안 이 네트워크를 사용하지 않았어요.",
+ "admin_and_system.enforcement_outcome_not_allowed": "해제할 대상이 없으므로 이 유형의 결정은 취소로만 종료할 수 있어요.",
+ "admin_and_system.enforcement_permanent_required": "이 사유로 인한 정지는 영구 정지여야 해요.",
+ "admin_and_system.enforcement_report_mismatch": "연결된 모든 신고는 존재해야 하며, 이 결정의 대상인 계정이나 커뮤니티에 관한 것이어야 해요.",
+ "admin_and_system.enforcement_report_required": "출처가 신고라면 신고를 하나 이상 연결해 주세요.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "권리자는 저작권 결정에만 지정할 수 있어요.",
+ "admin_and_system.enforcement_rights_holder_required": "저작권 결정에는 권리자 또는 관련 권리가 필요해요.",
+ "admin_and_system.enforcement_statement_not_allowed": "이 사유로 내린 결정에는 사용자에게 보낼 메모를 포함할 수 없어요.",
+ "admin_and_system.flag_requires_enforcement_route": "이 플래그는 제한의 일부예요. 정지, 삭제 또는 기능 제한 경로에서 변경해 주세요.",
"admin_and_system.general_error": "문제가 발생했어요. 나중에 다시 시도해 주세요.",
"admin_and_system.guild_id_required_for_search_index": "채널 메시지 및 멤버 검색 인덱스에는 커뮤니티 ID가 필요해요.",
"admin_and_system.instance_policy_transition_not_allowed": "이 인스턴스 정책 변경은 허용되지 않아요.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "타임스탬프가 유효하지 않아요.",
"admin_and_system.invalid_timezone_identifier": "시간대 식별자가 유효하지 않아요.",
"admin_and_system.missing_acl": "ACL이 누락되었어요.",
+ "admin_and_system.moderation_basis_required": "메시지를 삭제할 근거를 입력해 주세요.",
"admin_and_system.must_be_iso_timestamp": "유효한 ISO 타임스탬프여야 해요.",
"admin_and_system.processing_failed": "요청을 처리하지 못했어요. 다시 시도해 주세요.",
"admin_and_system.resource_locked": "이 리소스는 지금 수정 중이에요. 잠시 후 다시 시도해 주세요.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "선물 코드 사용이 진행 중이에요. 잠시 후 다시 시도해 주세요.",
"invites_and_gifts.unknown_gift_code": "알 수 없는 선물 코드예요.",
"invites_and_packs.max_emojis_reached": "최대 {count, plural, other {#개}}의 이모지에 도달했어요.",
- "limits.at_least_one_entry_required": "최소 한 개의 항목이 필요해요.",
"limits.base64_length_invalid": "Base64 문자열 길이는 {min}자에서 {maxLength}자 사이여야 해요.",
"limits.cannot_specify_before_and_after": "`before`와 `after`를 동시에 지정할 수 없어요.",
"limits.content_exceeds_max_length": "텍스트는 {maxLength, plural, other {#자}}를 초과할 수 없어요.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "DSA 인증 코드가 올바르지 않아요.",
"moderation_and_reports.invalid_report_flow_answers": "이 답변은 신고 양식과 맞지 않아요. 신고를 다시 시작해 주세요.",
"moderation_and_reports.ip_ban_declined": "이 IP 주소는 차단 목록에 추가할 수 없어요.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "이 네트워크 차단은 제재 결정에 속해 있어요. 차단을 없애려면 결정을 종료해 주세요.",
"moderation_and_reports.report_already_resolved": "이미 해결된 신고예요.",
"moderation_and_reports.report_banned": "신고 제출이 금지되었어요.",
"moderation_and_reports.report_flow_outdated": "작성하는 동안 신고 양식이 변경되었어요. 신고를 다시 시작해 주세요.",
+ "moderation_and_reports.report_outcome_invalid": "조치 완료 처리에는 위반 없음 이외의 결과가 필요해요. 중복 처리에는 원래 신고가 필요하고 결과를 지정할 수 없어요. 위반 없음 처리에는 다른 결과를 지정할 수 없어요.",
"moderation_and_reports.report_under_legal_hold": "이 신고는 법적 보존 조치 대상이라 삭제할 수 없어요.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "신고를 제출하려면 계정 설정을 완료해야 해요.",
+ "moderation_and_reports.unknown_enforcement_decision": "알 수 없는 제재 결정이에요.",
"moderation_and_reports.unknown_report": "알 수 없는 신고예요.",
"moderation_and_reports.user_is_not_banned": "이 사용자는 차단되지 않았어요.",
"names_and_normalization.name_empty_after_normalization": "정규화 후 이름은 비워둘 수 없어요.",
- "permissions.global_ip_banned": "회원님의 IP 주소 {ipAddress}는 플랫폼 관리자가 {product_name} API에서 영구 차단했어요. {appealEmail, select, null {오류라고 생각한다면 이 인스턴스의 관리자에게 문의해 이의를 제기해 주세요.} other {오류라고 생각한다면 {appealEmail}으로 문의해 이의를 제기해 주세요.}} 이의 제기에는 이 IP 주소를 포함해 주세요.",
- "permissions.global_ip_temporarily_banned": "회원님의 IP 주소 {ipAddress}는 {product_name} API에서 일시 차단되었어요. 차단은 기간이 끝나면 자동으로 해제돼요. {appealEmail, select, null {오류라고 생각한다면 이 IP 주소를 포함해 이 인스턴스의 관리자에게 문의해 주세요.} other {오류라고 생각한다면 이 IP 주소를 포함해 {appealEmail}으로 문의해 주세요.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {규칙을 위반한 활동 때문에 {product_name}에서 이 네트워크의 접속을 차단했어요.} other {{product_name}에서 이 네트워크의 접속을 차단했어요.}} 학교, 직장, 공용 Wi-Fi, 이동통신사, VPN 등으로 이 네트워크를 다른 사람과 함께 쓰고 있다면 이 차단은 본인과 관계없을 수도 있어요. 가장 빠른 해결 방법은 Wi-Fi 대신 모바일 데이터를 쓰는 등 네트워크를 바꾸거나, VPN을 켜거나 끄는 거예요.{appealEmail, select, null {} other { 이 차단이 잘못되었다고 생각하면 IP 주소({ipAddress})를 적어 {appealEmail} 주소로 이메일을 보내 주세요.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {규칙을 위반한 활동 때문에 {product_name}에서 이 네트워크의 접속을 차단했어요.} other {{product_name}에서 이 네트워크의 접속을 차단했어요.}} 차단은 {expiresAt}에 해제돼요. 학교, 직장, 공용 Wi-Fi, 이동통신사, VPN 등으로 이 네트워크를 다른 사람과 함께 쓰고 있다면 이 차단은 본인과 관계없을 수도 있어요. 가장 빠른 해결 방법은 Wi-Fi 대신 모바일 데이터를 쓰는 등 네트워크를 바꾸거나, VPN을 켜거나 끄는 거예요.{appealEmail, select, null {} other { 이 차단이 잘못되었다고 생각하면 IP 주소({ipAddress})를 적어 {appealEmail} 주소로 이메일을 보내 주세요.}}",
"permissions.missing_access": "이 리소스 또는 기능에 접근할 권한이 없어요.",
"permissions.missing_permissions": "이 작업을 수행하는 데 필요한 권한이 없어요.",
"permissions.user_banned_from_guild": "이 사용자는 이 커뮤니티에서 차단되었어요.",
diff --git a/packages/errors/src/i18n/weblate/locales/lt.json b/packages/errors/src/i18n/weblate/locales/lt.json
index 789f550f9..e6bbbddbe 100644
--- a/packages/errors/src/i18n/weblate/locales/lt.json
+++ b/packages/errors/src/i18n/weblate/locales/lt.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL negali būti tuščias.",
"admin_and_system.admin_api_key_not_found": "Nerastas administratoriaus API raktas.",
"admin_and_system.deletion_failed": "Ištekliaus ištrinti nepavyko. Pabandyk dar kartą.",
+ "admin_and_system.enforcement_account_closed": "Ši paskyra uždaryta, todėl jos negalima sustabdyti.",
+ "admin_and_system.enforcement_confirmations_required": "Patvirtink, kad įrodymai išsaugoti ir kad visi privalomi pranešimai pateikti.",
+ "admin_and_system.enforcement_decision_ended": "Šis sprendimas jau nebegalioja.",
+ "admin_and_system.enforcement_decision_owns_state": "Šis apribojimas priklauso moderavimo sprendimui. Vietoj to nutrauk sprendimo galiojimą.",
+ "admin_and_system.enforcement_decision_replaced": "Šį sprendimą pakeitė vėlesnis, todėl jo galiojimo nebegalima nutraukti.",
+ "admin_and_system.enforcement_deletion_started": "Šios paskyros ištrynimas jau prasidėjo, todėl sprendimo galiojimo nebegalima nutraukti.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Žinutes iš tiesioginių žinučių pokalbių kaip įrodymus galima naudoti tik tada, kai tą pokalbį apima susietas pranešimas.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Šalinamos žinutės išsaugomos kaip įrodymai, todėl atskirų įrodymų žinučių nenurodyk.",
+ "admin_and_system.enforcement_evidence_not_found": "Viena iš įrodymų žinučių nerasta.",
+ "admin_and_system.enforcement_evidence_not_subject": "Kiekviena įrodymų žinutė turi būti iš paskyros ar bendruomenės, kuriai skirtas šis sprendimas.",
+ "admin_and_system.enforcement_evidence_required": "Šiam sprendimui reikia bent vienos įrodymų žinutės.",
+ "admin_and_system.enforcement_facts_required": "Pridėk įrodymų žinutę arba pastabą naudotojui.",
+ "admin_and_system.enforcement_internal_note_required": "Pridėk vidinę pastabą antraštėje X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Šios priežasties negalima naudoti šiam veiksmui.",
+ "admin_and_system.enforcement_limit_end_invalid": "Pabaigos datą gali turėti tik pranešimų apribojimas, ir ji turi būti per artimiausias 365 dienas.",
+ "admin_and_system.enforcement_limit_not_allowed": "Šios priežasties negalima naudoti šiam apribojimui.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Tinklus blokuoti galima tik sustabdant paskyrą visam laikui arba ją uždarant dėl taisyklės pažeidimo.",
+ "admin_and_system.enforcement_network_shared": "Šiame tinkle paskutinį kartą buvo aktyvios kitos neapribotos paskyros, todėl jo blokuoti negalima.",
+ "admin_and_system.enforcement_network_unknown": "Ši paskyra per pastarąsias 30 dienų šiuo tinklu nesinaudojo.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Tokio tipo sprendimą galima nutraukti tik jį atšaukiant, nes nėra ką panaikinti.",
+ "admin_and_system.enforcement_permanent_required": "Dėl šios priežasties taikomi sustabdymai turi būti visam laikui.",
+ "admin_and_system.enforcement_report_mismatch": "Kiekvienas susietas pranešimas turi egzistuoti ir būti apie paskyrą ar bendruomenę, kuriai skirtas šis sprendimas.",
+ "admin_and_system.enforcement_report_required": "Kai šaltinis yra pranešimas, susiek bent vieną pranešimą.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Teisių turėtoją galima nurodyti tik sprendimuose dėl autorių teisių.",
+ "admin_and_system.enforcement_rights_holder_required": "Sprendimuose dėl autorių teisių reikia nurodyti teisių turėtoją arba susijusią teisę.",
+ "admin_and_system.enforcement_statement_not_allowed": "Sprendimuose dėl šios priežasties negalima pateikti pastabos naudotojui.",
+ "admin_and_system.flag_requires_enforcement_route": "Ši žymė yra apribojimo dalis. Keisk ją per sustabdymo, ištrynimo arba funkcijų apribojimo maršrutus.",
"admin_and_system.general_error": "Kažkas nepavyko. Pabandyk dar kartą vėliau.",
"admin_and_system.guild_id_required_for_search_index": "Bendruomenės ID reikalingas kanalo žinučių ir narių paieškos indeksams.",
"admin_and_system.instance_policy_transition_not_allowed": "Šis instancijos politikos keitimas neleidžiamas.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Netinkama laiko žyma.",
"admin_and_system.invalid_timezone_identifier": "Netinkamas laiko juostos identifikatorius.",
"admin_and_system.missing_acl": "Nėra ACL.",
+ "admin_and_system.moderation_basis_required": "Nurodyk žinučių ištrynimo pagrindą.",
"admin_and_system.must_be_iso_timestamp": "Turi būti galiojanti ISO laiko žyma.",
"admin_and_system.processing_failed": "Užklausos apdoroti nepavyko. Pabandyk dar kartą.",
"admin_and_system.resource_locked": "Šis išteklius šiuo metu keičiamas. Pabandyk dar kartą netrukus.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Dovanos kodas jau išperkamas. Pabandyk dar kartą po akimirkos.",
"invites_and_gifts.unknown_gift_code": "Nežinomas dovanos kodas.",
"invites_and_packs.max_emojis_reached": "Pasiekei {count, plural, one {# emoji} few {# emoji} many {# emoji} other {# emoji}} ribą.",
- "limits.at_least_one_entry_required": "Reikalingas bent vienas įrašas.",
"limits.base64_length_invalid": "Base64 eilutės ilgis turi būti nuo {min} iki {maxLength} simbolių.",
"limits.cannot_specify_before_and_after": "Negali nurodyti `before` ir `after` vienu metu.",
"limits.content_exceeds_max_length": "Tekstas neturi viršyti {maxLength, plural, one {# simbolio} few {# simbolių} many {# simbolio} other {# simbolių}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Neteisingas DSA patvirtinimo kodas.",
"moderation_and_reports.invalid_report_flow_answers": "Šie atsakymai neatitinka pranešimo formos. Pradėk pranešimą iš naujo.",
"moderation_and_reports.ip_ban_declined": "Šio IP adreso negalima įtraukti į blokavimo sąrašą.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Šis tinklo blokavimas priklauso moderavimo sprendimui. Kad jį pašalintum, nutrauk sprendimo galiojimą.",
"moderation_and_reports.report_already_resolved": "Pranešimas jau išnagrinėtas.",
"moderation_and_reports.report_banned": "Tau uždrausta teikti pranešimus.",
"moderation_and_reports.report_flow_outdated": "Pranešimo forma pasikeitė, kol ją pildei. Pradėk pranešimą iš naujo.",
+ "moderation_and_reports.report_outcome_invalid": "Sprendimui „imtasi veiksmų“ reikia nurodyti kitą rezultatą nei „pažeidimo nėra“. Sprendimui „dublikatas“ reikia nurodyti pranešimą, kurį jis kartoja, o rezultato nurodyti negalima. Sprendimui „pažeidimo nėra“ kito rezultato nurodyti negalima.",
"moderation_and_reports.report_under_legal_hold": "Šiam pranešimui taikomas teisinis išsaugojimas, todėl jo ištrinti negalima.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Kad galėtum teikti pranešimus, turi užbaigti paskyros nustatymą.",
+ "moderation_and_reports.unknown_enforcement_decision": "Nežinomas moderavimo sprendimas.",
"moderation_and_reports.unknown_report": "Nežinomas pranešimas.",
"moderation_and_reports.user_is_not_banned": "Šis naudotojas nėra užblokuotas.",
"names_and_normalization.name_empty_after_normalization": "Po normalizavimo pavadinimas negali būti tuščias.",
- "permissions.global_ip_banned": "Tavo IP adresas {ipAddress} platformos administratorių visam laikui užblokuotas {product_name} API. {appealEmail, select, null {Jei manai, kad tai klaida, dėl apeliacijos susisiek su šios instancijos administratoriais.} other {Jei manai, kad tai klaida, dėl apeliacijos susisiek adresu {appealEmail}.}} Apeliacijoje nurodyk šį IP adresą.",
- "permissions.global_ip_temporarily_banned": "Tavo IP adresas {ipAddress} laikinai užblokuotas {product_name} API. Blokavimas bus panaikintas automatiškai, kai baigsis jo laikas. {appealEmail, select, null {Jei manai, kad tai klaida, susisiek su šios instancijos administratoriais ir nurodyk šį IP adresą.} other {Jei manai, kad tai klaida, susisiek adresu {appealEmail} ir nurodyk šį IP adresą.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} užblokavo prieigą iš šio tinklo dėl veiklos, pažeidusios taisykles.} other {{product_name} užblokavo prieigą iš šio tinklo.}} Jei šiuo tinklu naudojiesi kartu su kitais, pavyzdžiui, mokykloje, darbe, viešajame Wi-Fi tinkle, per mobiliojo ryšio operatorių ar VPN, šis blokavimas gali būti visai nesusijęs su tavimi. Greičiausiai padės pakeisti tinklą, pavyzdžiui, vietoj Wi-Fi naudoti mobiliuosius duomenis, arba įjungti ar išjungti VPN.{appealEmail, select, null {} other { Jei manai, kad šis blokavimas yra klaida, parašyk adresu {appealEmail} ir nurodyk savo IP adresą: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} užblokavo prieigą iš šio tinklo dėl veiklos, pažeidusios taisykles.} other {{product_name} užblokavo prieigą iš šio tinklo.}} Blokavimas baigsis {expiresAt}. Jei šiuo tinklu naudojiesi kartu su kitais, pavyzdžiui, mokykloje, darbe, viešajame Wi-Fi tinkle, per mobiliojo ryšio operatorių ar VPN, šis blokavimas gali būti visai nesusijęs su tavimi. Greičiausiai padės pakeisti tinklą, pavyzdžiui, vietoj Wi-Fi naudoti mobiliuosius duomenis, arba įjungti ar išjungti VPN.{appealEmail, select, null {} other { Jei manai, kad šis blokavimas yra klaida, parašyk adresu {appealEmail} ir nurodyk savo IP adresą: {ipAddress}.}}",
"permissions.missing_access": "Neturi prieigos prie šio ištekliaus ar funkcijos.",
"permissions.missing_permissions": "Neturi reikiamų leidimų atlikti šį veiksmą.",
"permissions.user_banned_from_guild": "Šis naudotojas užblokuotas šioje bendruomenėje.",
diff --git a/packages/errors/src/i18n/weblate/locales/nl.json b/packages/errors/src/i18n/weblate/locales/nl.json
index 0c61fe65b..77a6b3082 100644
--- a/packages/errors/src/i18n/weblate/locales/nl.json
+++ b/packages/errors/src/i18n/weblate/locales/nl.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL's mogen niet leeg zijn.",
"admin_and_system.admin_api_key_not_found": "Admin-API-sleutel is niet gevonden.",
"admin_and_system.deletion_failed": "We konden het item niet verwijderen. Probeer het opnieuw.",
+ "admin_and_system.enforcement_account_closed": "Dit account is gesloten en kan daarom niet worden geschorst.",
+ "admin_and_system.enforcement_confirmations_required": "Bevestig dat het bewijs is bewaard en dat elke verplichte melding is gedaan.",
+ "admin_and_system.enforcement_decision_ended": "Deze beslissing is al beëindigd.",
+ "admin_and_system.enforcement_decision_owns_state": "Deze beperking hoort bij een handhavingsbeslissing. Beëindig in plaats daarvan de beslissing.",
+ "admin_and_system.enforcement_decision_replaced": "Een latere beslissing heeft deze vervangen, dus deze kan niet meer worden beëindigd.",
+ "admin_and_system.enforcement_deletion_started": "De verwijdering van dit account is al begonnen, dus de beslissing kan niet meer worden beëindigd.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Berichten uit directe berichten kunnen alleen als bewijs worden gebruikt als een gekoppelde melding dat gesprek dekt.",
+ "admin_and_system.enforcement_evidence_not_allowed": "De berichten die worden verwijderd, worden als bewijs bewaard, dus laat aparte bewijsberichten weg.",
+ "admin_and_system.enforcement_evidence_not_found": "Een van de bewijsberichten is niet gevonden.",
+ "admin_and_system.enforcement_evidence_not_subject": "Elk bewijsbericht moet afkomstig zijn van het account of de community waar deze beslissing over gaat.",
+ "admin_and_system.enforcement_evidence_required": "Deze beslissing heeft minstens één bewijsbericht nodig.",
+ "admin_and_system.enforcement_facts_required": "Voeg een bewijsbericht of een opmerking voor de gebruiker toe.",
+ "admin_and_system.enforcement_internal_note_required": "Voeg een interne notitie toe in de header X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Deze reden kan niet worden gebruikt voor deze actie.",
+ "admin_and_system.enforcement_limit_end_invalid": "Alleen een beperking op meldingen heeft een einddatum, en die moet binnen de komende 365 dagen liggen.",
+ "admin_and_system.enforcement_limit_not_allowed": "Deze reden kan niet worden gebruikt voor deze beperking.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Alleen een permanente schorsing of een sluiting wegens een overtreden regel kan netwerken blokkeren.",
+ "admin_and_system.enforcement_network_shared": "Andere accounts die niet zijn beperkt, waren als laatste actief op dit netwerk, dus het kan niet worden geblokkeerd.",
+ "admin_and_system.enforcement_network_unknown": "Dit account heeft dit netwerk de afgelopen 30 dagen niet gebruikt.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Dit soort beslissing kan alleen worden beëindigd door terugdraaien, omdat er niets op te heffen valt.",
+ "admin_and_system.enforcement_permanent_required": "Schorsingen om deze reden moeten permanent zijn.",
+ "admin_and_system.enforcement_report_mismatch": "Elke gekoppelde melding moet bestaan en gaan over het account of de community waar deze beslissing over gaat.",
+ "admin_and_system.enforcement_report_required": "Koppel minstens één melding als de bron een melding is.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Een rechthebbende kan alleen worden opgegeven bij auteursrechtbeslissingen.",
+ "admin_and_system.enforcement_rights_holder_required": "Auteursrechtbeslissingen hebben de rechthebbende of het betrokken recht nodig.",
+ "admin_and_system.enforcement_statement_not_allowed": "Beslissingen om deze reden mogen geen opmerking voor de gebruiker bevatten.",
+ "admin_and_system.flag_requires_enforcement_route": "Deze vlag hoort bij een beperking. Wijzig hem via de routes voor schorsing, verwijdering of functiebeperking.",
"admin_and_system.general_error": "Er is iets misgegaan. Probeer het later nog eens.",
"admin_and_system.guild_id_required_for_search_index": "Een community-ID is vereist voor de zoekindexen van kanaalberichten en leden.",
"admin_and_system.instance_policy_transition_not_allowed": "Deze wijziging van het instantiebeleid is niet toegestaan.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Ongeldige tijdstempel.",
"admin_and_system.invalid_timezone_identifier": "Ongeldige tijdzone-ID.",
"admin_and_system.missing_acl": "Een ACL ontbreekt.",
+ "admin_and_system.moderation_basis_required": "Geef een grondslag op om de berichten te verwijderen.",
"admin_and_system.must_be_iso_timestamp": "Moet een geldige ISO-tijdstempel zijn.",
"admin_and_system.processing_failed": "We konden het verzoek niet verwerken. Probeer het opnieuw.",
"admin_and_system.resource_locked": "Dit item wordt momenteel gewijzigd. Probeer het zo opnieuw.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "De cadeaucode wordt ingewisseld. Probeer het zo opnieuw.",
"invites_and_gifts.unknown_gift_code": "Onbekende cadeaucode.",
"invites_and_packs.max_emojis_reached": "Je hebt het maximum van {count, plural, one {# emoji} other {# emoji’s}} bereikt.",
- "limits.at_least_one_entry_required": "Minimaal één invoer is vereist.",
"limits.base64_length_invalid": "De Base64-string moet tussen {min} en {maxLength} tekens lang zijn.",
"limits.cannot_specify_before_and_after": "Je kunt niet zowel `before` als `after` opgeven.",
"limits.content_exceeds_max_length": "Tekst mag niet meer dan {maxLength, plural, one {# teken} other {# tekens}} bevatten.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Ongeldige DSA-verificatiecode.",
"moderation_and_reports.invalid_report_flow_answers": "Deze antwoorden passen niet bij het meldingsformulier. Begin opnieuw met je melding.",
"moderation_and_reports.ip_ban_declined": "Dit IP-adres kan niet aan de blokkeerlijst worden toegevoegd.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Deze netwerkblokkade hoort bij een handhavingsbeslissing. Beëindig de beslissing om de blokkade op te heffen.",
"moderation_and_reports.report_already_resolved": "De melding is al afgehandeld.",
"moderation_and_reports.report_banned": "Je bent uitgesloten van het indienen van meldingen.",
"moderation_and_reports.report_flow_outdated": "Het meldingsformulier is gewijzigd terwijl je het invulde. Begin opnieuw met je melding.",
+ "moderation_and_reports.report_outcome_invalid": "Een afhandeling met maatregel heeft een andere uitkomst nodig dan \"geen overtreding\". Een duplicaat heeft de melding nodig die het herhaalt en mag geen uitkomst hebben. Een afhandeling zonder overtreding mag geen andere uitkomst hebben.",
"moderation_and_reports.report_under_legal_hold": "Deze melding valt onder een juridische bewaarplicht en kan niet worden verwijderd.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Je moet de registratie van je account voltooien voordat je meldingen kunt indienen.",
+ "moderation_and_reports.unknown_enforcement_decision": "Onbekende handhavingsbeslissing.",
"moderation_and_reports.unknown_report": "Onbekende melding.",
"moderation_and_reports.user_is_not_banned": "Deze gebruiker is niet verbannen.",
"names_and_normalization.name_empty_after_normalization": "Naam kan niet leeg zijn na normalisatie.",
- "permissions.global_ip_banned": "Je IP-adres {ipAddress} is door platformbeheerders permanent geblokkeerd voor de {product_name} API. {appealEmail, select, null {Als je denkt dat dit een fout is, neem dan contact op met de beheerders van deze instantie om bezwaar te maken.} other {Als je denkt dat dit een fout is, neem dan contact op met {appealEmail} om bezwaar te maken.}} Vermeld dit IP-adres in je bezwaar.",
- "permissions.global_ip_temporarily_banned": "Je IP-adres {ipAddress} is tijdelijk geblokkeerd voor de {product_name} API. De blokkade wordt automatisch opgeheven zodra deze verloopt. {appealEmail, select, null {Als je denkt dat dit een fout is, neem dan contact op met de beheerders van deze instantie en vermeld dit IP-adres.} other {Als je denkt dat dit een fout is, neem dan contact op met {appealEmail} en vermeld dit IP-adres.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} heeft de toegang vanaf dit netwerk geblokkeerd vanwege activiteit die de regels overtrad.} other {{product_name} heeft de toegang vanaf dit netwerk geblokkeerd.}} Als je dit netwerk met anderen deelt, bijvoorbeeld op school, op je werk, via openbare wifi, via je mobiele provider of een VPN, heeft deze blokkade misschien niets met jou te maken. De snelste oplossing is om van netwerk te wisselen, bijvoorbeeld naar mobiele data in plaats van wifi, of om je VPN aan of uit te zetten.{appealEmail, select, null {} other { Als je denkt dat deze blokkade een vergissing is, stuur dan een e-mail naar {appealEmail} en vermeld je IP-adres, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} heeft de toegang vanaf dit netwerk geblokkeerd vanwege activiteit die de regels overtrad.} other {{product_name} heeft de toegang vanaf dit netwerk geblokkeerd.}} De blokkade eindigt op {expiresAt}. Als je dit netwerk met anderen deelt, bijvoorbeeld op school, op je werk, via openbare wifi, via je mobiele provider of een VPN, heeft deze blokkade misschien niets met jou te maken. De snelste oplossing is om van netwerk te wisselen, bijvoorbeeld naar mobiele data in plaats van wifi, of om je VPN aan of uit te zetten.{appealEmail, select, null {} other { Als je denkt dat deze blokkade een vergissing is, stuur dan een e-mail naar {appealEmail} en vermeld je IP-adres, {ipAddress}.}}",
"permissions.missing_access": "Je hebt geen toegang tot dit item of deze functie.",
"permissions.missing_permissions": "Je hebt niet de benodigde machtigingen om deze actie uit te voeren.",
"permissions.user_banned_from_guild": "Deze gebruiker is verbannen uit deze community.",
diff --git a/packages/errors/src/i18n/weblate/locales/no.json b/packages/errors/src/i18n/weblate/locales/no.json
index e2666cc77..8d7e67d3e 100644
--- a/packages/errors/src/i18n/weblate/locales/no.json
+++ b/packages/errors/src/i18n/weblate/locales/no.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL-er må ikke være tomme.",
"admin_and_system.admin_api_key_not_found": "API-nøkkelen for administrasjon ble ikke funnet.",
"admin_and_system.deletion_failed": "Vi kunne ikke slette ressursen. Prøv på nytt.",
+ "admin_and_system.enforcement_account_closed": "Denne kontoen er stengt, så den kan ikke suspenderes.",
+ "admin_and_system.enforcement_confirmations_required": "Bekreft at bevisene er sikret, og at eventuelle pålagte innrapporteringer er sendt inn.",
+ "admin_and_system.enforcement_decision_ended": "Denne avgjørelsen er allerede avsluttet.",
+ "admin_and_system.enforcement_decision_owns_state": "Denne begrensningen hører til en håndhevingsavgjørelse. Avslutt avgjørelsen i stedet.",
+ "admin_and_system.enforcement_decision_replaced": "En senere avgjørelse erstattet denne, så den kan ikke lenger avsluttes.",
+ "admin_and_system.enforcement_deletion_started": "Slettingen av denne kontoen har allerede startet, så avgjørelsen kan ikke lenger avsluttes.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Meldinger i direktemeldinger kan bare brukes som bevis når en tilknyttet rapport dekker den samtalen.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Meldingene som fjernes, lagres som bevis, så utelat separate bevismeldinger.",
+ "admin_and_system.enforcement_evidence_not_found": "En av bevismeldingene ble ikke funnet.",
+ "admin_and_system.enforcement_evidence_not_subject": "Alle bevismeldinger må være fra kontoen eller fellesskapet denne avgjørelsen gjelder.",
+ "admin_and_system.enforcement_evidence_required": "Denne avgjørelsen trenger minst én bevismelding.",
+ "admin_and_system.enforcement_facts_required": "Legg til en bevismelding eller en merknad til brukeren.",
+ "admin_and_system.enforcement_internal_note_required": "Legg til et internt notat i headeren X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Denne årsaken kan ikke brukes for denne handlingen.",
+ "admin_and_system.enforcement_limit_end_invalid": "Bare en begrensning av rapporter har en sluttdato, og den må være innen de neste 365 dagene.",
+ "admin_and_system.enforcement_limit_not_allowed": "Denne årsaken kan ikke brukes for denne begrensningen.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Bare en permanent suspensjon eller en stenging for brudd på en regel kan blokkere nettverk.",
+ "admin_and_system.enforcement_network_shared": "Andre kontoer som ikke er begrenset, var sist aktive på dette nettverket, så det kan ikke blokkeres.",
+ "admin_and_system.enforcement_network_unknown": "Denne kontoen har ikke brukt dette nettverket de siste 30 dagene.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Bare en omgjøring kan avslutte denne typen avgjørelse, fordi det ikke er noe å oppheve.",
+ "admin_and_system.enforcement_permanent_required": "Suspensjoner av denne årsaken må være permanente.",
+ "admin_and_system.enforcement_report_mismatch": "Alle tilknyttede rapporter må finnes og gjelde kontoen eller fellesskapet denne avgjørelsen gjelder.",
+ "admin_and_system.enforcement_report_required": "Knytt til minst én rapport når kilden er en rapport.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "En rettighetshaver kan bare oppgis for avgjørelser om opphavsrett.",
+ "admin_and_system.enforcement_rights_holder_required": "Avgjørelser om opphavsrett trenger rettighetshaveren eller den berørte rettigheten.",
+ "admin_and_system.enforcement_statement_not_allowed": "Avgjørelser av denne årsaken kan ikke inneholde en merknad til brukeren.",
+ "admin_and_system.flag_requires_enforcement_route": "Dette flagget er en del av en begrensning. Endre det via rutene for suspensjon, sletting eller funksjonsbegrensning.",
"admin_and_system.general_error": "Noe gikk galt. Prøv igjen senere.",
"admin_and_system.guild_id_required_for_search_index": "Fellesskaps-ID kreves for søkeindekser for kanalmeldinger og medlemmer.",
"admin_and_system.instance_policy_transition_not_allowed": "Denne endringen av instansens retningslinjer er ikke tillatt.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Ugyldig tidsstempel.",
"admin_and_system.invalid_timezone_identifier": "Ugyldig tidssoneidentifikator.",
"admin_and_system.missing_acl": "ACL mangler.",
+ "admin_and_system.moderation_basis_required": "Oppgi et grunnlag for å slette meldingene.",
"admin_and_system.must_be_iso_timestamp": "Må være et gyldig ISO-tidsstempel.",
"admin_and_system.processing_failed": "Vi kunne ikke behandle forespørselen. Prøv på nytt.",
"admin_and_system.resource_locked": "Denne ressursen blir endret. Prøv igjen om kort tid.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Innløsning av gavekode pågår. Prøv igjen om et øyeblikk.",
"invites_and_gifts.unknown_gift_code": "Ukjent gavekode.",
"invites_and_packs.max_emojis_reached": "Du har nådd grensen på {count, plural, one {# emoji} other {# emojier}}.",
- "limits.at_least_one_entry_required": "Minst én oppføring er påkrevd.",
"limits.base64_length_invalid": "Base64-strengen må inneholde mellom {min} og {maxLength} tegn.",
"limits.cannot_specify_before_and_after": "Du kan ikke angi både `before` og `after`.",
"limits.content_exceeds_max_length": "Teksten kan ikke overstige {maxLength, plural, one {# tegn} other {# tegn}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Ugyldig DSA-bekreftelseskode.",
"moderation_and_reports.invalid_report_flow_answers": "Disse svarene stemmer ikke med rapportskjemaet. Start rapporten på nytt.",
"moderation_and_reports.ip_ban_declined": "Denne IP-adressen kan ikke legges til i blokkeringslisten.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Denne nettverksblokkeringen hører til en håndhevingsavgjørelse. Avslutt avgjørelsen for å fjerne den.",
"moderation_and_reports.report_already_resolved": "Rapporten er allerede behandlet.",
"moderation_and_reports.report_banned": "Du er utestengt fra å sende rapporter.",
"moderation_and_reports.report_flow_outdated": "Rapportskjemaet ble endret mens du fylte det ut. Start rapporten på nytt.",
+ "moderation_and_reports.report_outcome_invalid": "En avslutning med tiltak trenger et annet utfall enn «ingen brudd». Et duplikat trenger rapporten det gjentar, og skal ikke ha noe utfall. En avslutning uten brudd skal ikke ha noe annet utfall.",
"moderation_and_reports.report_under_legal_hold": "Denne rapporten er underlagt rettslig bevaring og kan ikke slettes.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Du må fullføre registreringen av kontoen din før du kan sende rapporter.",
+ "moderation_and_reports.unknown_enforcement_decision": "Ukjent håndhevingsavgjørelse.",
"moderation_and_reports.unknown_report": "Ukjent rapport.",
"moderation_and_reports.user_is_not_banned": "Denne brukeren er ikke utestengt.",
"names_and_normalization.name_empty_after_normalization": "Navnet kan ikke være tomt etter normalisering.",
- "permissions.global_ip_banned": "IP-adressen din {ipAddress} er permanent blokkert fra {product_name}-API-et av plattformadministratorene. {appealEmail, select, null {Hvis du mener dette er en feil, kan du kontakte administratorene av denne instansen for å klage.} other {Hvis du mener dette er en feil, kan du kontakte {appealEmail} for å klage.}} Ta med denne IP-adressen i klagen.",
- "permissions.global_ip_temporarily_banned": "IP-adressen din {ipAddress} er midlertidig blokkert fra {product_name}-API-et. Blokkeringen oppheves automatisk når den utløper. {appealEmail, select, null {Hvis du mener dette er en feil, kan du kontakte administratorene av denne instansen og oppgi denne IP-adressen.} other {Hvis du mener dette er en feil, kan du kontakte {appealEmail} og oppgi denne IP-adressen.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} har blokkert tilgang fra dette nettverket på grunn av aktivitet som brøt reglene.} other {{product_name} har blokkert tilgang fra dette nettverket.}} Hvis du deler dette nettverket med andre, for eksempel på skolen, på jobb, på offentlig Wi-Fi, via mobiloperatøren din eller et VPN, er det ikke sikkert at blokkeringen har noe med deg å gjøre. Den raskeste løsningen er å bytte nettverk, for eksempel til mobildata i stedet for Wi-Fi, eller å slå VPN-et av eller på.{appealEmail, select, null {} other { Hvis du mener at blokkeringen er en feil, send en e-post til {appealEmail} og oppgi IP-adressen din, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} har blokkert tilgang fra dette nettverket på grunn av aktivitet som brøt reglene.} other {{product_name} har blokkert tilgang fra dette nettverket.}} Blokkeringen opphører den {expiresAt}. Hvis du deler dette nettverket med andre, for eksempel på skolen, på jobb, på offentlig Wi-Fi, via mobiloperatøren din eller et VPN, er det ikke sikkert at blokkeringen har noe med deg å gjøre. Den raskeste løsningen er å bytte nettverk, for eksempel til mobildata i stedet for Wi-Fi, eller å slå VPN-et av eller på.{appealEmail, select, null {} other { Hvis du mener at blokkeringen er en feil, send en e-post til {appealEmail} og oppgi IP-adressen din, {ipAddress}.}}",
"permissions.missing_access": "Du har ikke tilgang til denne ressursen eller funksjonen.",
"permissions.missing_permissions": "Du har ikke de nødvendige tillatelsene til å utføre denne handlingen.",
"permissions.user_banned_from_guild": "Denne brukeren er utestengt fra dette fellesskapet.",
diff --git a/packages/errors/src/i18n/weblate/locales/pl.json b/packages/errors/src/i18n/weblate/locales/pl.json
index b1f60f6e5..cf7e030e1 100644
--- a/packages/errors/src/i18n/weblate/locales/pl.json
+++ b/packages/errors/src/i18n/weblate/locales/pl.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL-e nie mogą być puste.",
"admin_and_system.admin_api_key_not_found": "Nie znaleziono klucza API administratora.",
"admin_and_system.deletion_failed": "Nie udało się usunąć zasobu. Spróbuj jeszcze raz.",
+ "admin_and_system.enforcement_account_closed": "To konto jest zamknięte, więc nie można go zawiesić.",
+ "admin_and_system.enforcement_confirmations_required": "Potwierdź, że dowody zostały zabezpieczone, a wszystkie wymagane zgłoszenia zostały złożone.",
+ "admin_and_system.enforcement_decision_ended": "Ta decyzja już przestała obowiązywać.",
+ "admin_and_system.enforcement_decision_owns_state": "To ograniczenie wynika z decyzji moderacyjnej. Zamiast tego zakończ decyzję.",
+ "admin_and_system.enforcement_decision_replaced": "Tę decyzję zastąpiła późniejsza, więc nie można już jej zakończyć.",
+ "admin_and_system.enforcement_deletion_started": "Usuwanie tego konta już się rozpoczęło, więc nie można już zakończyć decyzji.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Wiadomości z rozmów prywatnych mogą posłużyć jako dowody tylko wtedy, gdy powiązane zgłoszenie obejmuje tę rozmowę.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Usuwane wiadomości są zapisywane jako dowody, więc nie dodawaj osobnych wiadomości dowodowych.",
+ "admin_and_system.enforcement_evidence_not_found": "Nie znaleziono jednej z wiadomości dowodowych.",
+ "admin_and_system.enforcement_evidence_not_subject": "Każda wiadomość dowodowa musi pochodzić z konta lub społeczności, których dotyczy ta decyzja.",
+ "admin_and_system.enforcement_evidence_required": "Ta decyzja wymaga co najmniej jednej wiadomości dowodowej.",
+ "admin_and_system.enforcement_facts_required": "Dodaj wiadomość dowodową lub komentarz dla użytkownika.",
+ "admin_and_system.enforcement_internal_note_required": "Dodaj notatkę wewnętrzną w nagłówku X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Tego powodu nie można użyć dla tej akcji.",
+ "admin_and_system.enforcement_limit_end_invalid": "Datę zakończenia ma tylko ograniczenie zgłoszeń i musi ona przypadać w ciągu najbliższych 365 dni.",
+ "admin_and_system.enforcement_limit_not_allowed": "Tego powodu nie można użyć dla tego ograniczenia.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Sieci można blokować tylko przy bezterminowym zawieszeniu lub zamknięciu konta za naruszenie zasady.",
+ "admin_and_system.enforcement_network_shared": "Inne konta bez ograniczeń były ostatnio aktywne w tej sieci, więc nie można jej zablokować.",
+ "admin_and_system.enforcement_network_unknown": "To konto nie korzystało z tej sieci w ciągu ostatnich 30 dni.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Decyzję tego rodzaju można zakończyć tylko przez jej cofnięcie, ponieważ nie ma czego znosić.",
+ "admin_and_system.enforcement_permanent_required": "Zawieszenia z tego powodu muszą być bezterminowe.",
+ "admin_and_system.enforcement_report_mismatch": "Każde powiązane zgłoszenie musi istnieć i dotyczyć konta lub społeczności, których dotyczy ta decyzja.",
+ "admin_and_system.enforcement_report_required": "Gdy źródłem jest zgłoszenie, powiąż co najmniej jedno zgłoszenie.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Właściciela praw można podać tylko w decyzjach dotyczących praw autorskich.",
+ "admin_and_system.enforcement_rights_holder_required": "Decyzje dotyczące praw autorskich wymagają podania właściciela praw lub prawa, którego dotyczy sprawa.",
+ "admin_and_system.enforcement_statement_not_allowed": "Decyzje z tego powodu nie mogą zawierać komentarza dla użytkownika.",
+ "admin_and_system.flag_requires_enforcement_route": "Ta flaga jest częścią ograniczenia. Zmień ją przez ścieżki zawieszenia, usunięcia lub ograniczenia funkcji.",
"admin_and_system.general_error": "Coś poszło nie tak. Spróbuj jeszcze raz później.",
"admin_and_system.guild_id_required_for_search_index": "Identyfikator społeczności jest wymagany dla indeksów wyszukiwania wiadomości w kanałach i członków.",
"admin_and_system.instance_policy_transition_not_allowed": "Ta zmiana zasad instancji jest niedozwolona.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Nieprawidłowy znacznik czasu.",
"admin_and_system.invalid_timezone_identifier": "Nieprawidłowy identyfikator strefy czasowej.",
"admin_and_system.missing_acl": "Brak ACL-a.",
+ "admin_and_system.moderation_basis_required": "Podaj podstawę usunięcia wiadomości.",
"admin_and_system.must_be_iso_timestamp": "Wymagany prawidłowy znacznik czasu ISO.",
"admin_and_system.processing_failed": "Nie udało się przetworzyć żądania. Spróbuj jeszcze raz.",
"admin_and_system.resource_locked": "Ten zasób jest aktualnie modyfikowany. Spróbuj ponownie za kilka chwil.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Trwa realizacja kodu podarunkowego. Spróbuj ponownie za chwilę.",
"invites_and_gifts.unknown_gift_code": "Nieznany kod podarunkowy.",
"invites_and_packs.max_emojis_reached": "Osiągnięto limit {count, plural, one {# emoji} few {# emoji} many {# emoji} other {# emoji}}.",
- "limits.at_least_one_entry_required": "Wymagany jest co najmniej jeden wpis.",
"limits.base64_length_invalid": "Długość ciągu Base64 musi wynosić od {min} do {maxLength} znaków.",
"limits.cannot_specify_before_and_after": "Nie możesz określić jednocześnie `before` i `after`.",
"limits.content_exceeds_max_length": "Tekst nie może mieć więcej niż {maxLength, plural, one {# znak} few {# znaki} many {# znaków} other {# znaku}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Nieprawidłowy kod weryfikacyjny DSA.",
"moderation_and_reports.invalid_report_flow_answers": "Te odpowiedzi nie pasują do formularza zgłoszenia. Rozpocznij zgłoszenie ponownie.",
"moderation_and_reports.ip_ban_declined": "Ten adres IP nie może zostać dodany do listy blokowanych.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Ta blokada sieci należy do decyzji moderacyjnej. Aby ją usunąć, zakończ decyzję.",
"moderation_and_reports.report_already_resolved": "Zgłoszenie zostało już rozpatrzone.",
"moderation_and_reports.report_banned": "Zablokowano Ci możliwość przesyłania zgłoszeń.",
"moderation_and_reports.report_flow_outdated": "Formularz zgłoszenia zmienił się podczas jego wypełniania. Rozpocznij zgłoszenie ponownie.",
+ "moderation_and_reports.report_outcome_invalid": "Rozstrzygnięcie „podjęto działania” wymaga wyniku innego niż „brak naruszenia”. Rozstrzygnięcie „duplikat” wymaga wskazania zgłoszenia, które powtarza, i nie przyjmuje wyniku. Rozstrzygnięcie „brak naruszenia” nie przyjmuje innego wyniku.",
"moderation_and_reports.report_under_legal_hold": "To zgłoszenie podlega prawnemu zabezpieczeniu i nie można go usunąć.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Dokończ rejestrację konta, zanim wyślesz zgłoszenia.",
+ "moderation_and_reports.unknown_enforcement_decision": "Nieznana decyzja moderacyjna.",
"moderation_and_reports.unknown_report": "Nieznane zgłoszenie.",
"moderation_and_reports.user_is_not_banned": "Ten użytkownik nie ma bana.",
"names_and_normalization.name_empty_after_normalization": "Nazwa nie może być pusta po normalizacji.",
- "permissions.global_ip_banned": "Twój adres IP {ipAddress} został trwale zablokowany w {product_name} API przez administratorów platformy. {appealEmail, select, null {Jeśli uważasz, że to błąd, skontaktuj się z administratorami tej instancji, aby się odwołać.} other {Jeśli uważasz, że to błąd, skontaktuj się z {appealEmail}, aby się odwołać.}} Podaj ten adres IP w odwołaniu.",
- "permissions.global_ip_temporarily_banned": "Twój adres IP {ipAddress} został tymczasowo zablokowany w {product_name} API. Blokada zostanie zdjęta automatycznie po jej wygaśnięciu. {appealEmail, select, null {Jeśli uważasz, że to błąd, skontaktuj się z administratorami tej instancji i podaj ten adres IP.} other {Jeśli uważasz, że to błąd, skontaktuj się z {appealEmail} i podaj ten adres IP.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} zablokował dostęp z tej sieci z powodu aktywności naruszającej jego zasady.} other {{product_name} zablokował dostęp z tej sieci.}} Jeśli korzystasz z tej sieci razem z innymi, na przykład w szkole, w pracy, w publicznej sieci Wi-Fi, przez operatora komórkowego lub VPN, ta blokada może nie mieć z Tobą nic wspólnego. Najszybciej pomoże zmiana sieci, na przykład przejście z Wi-Fi na dane komórkowe, albo włączenie lub wyłączenie VPN.{appealEmail, select, null {} other { Jeśli uważasz, że ta blokada to pomyłka, napisz na adres {appealEmail} i podaj swój adres IP: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} zablokował dostęp z tej sieci z powodu aktywności naruszającej jego zasady.} other {{product_name} zablokował dostęp z tej sieci.}} Blokada obowiązuje do {expiresAt}. Jeśli korzystasz z tej sieci razem z innymi, na przykład w szkole, w pracy, w publicznej sieci Wi-Fi, przez operatora komórkowego lub VPN, ta blokada może nie mieć z Tobą nic wspólnego. Najszybciej pomoże zmiana sieci, na przykład przejście z Wi-Fi na dane komórkowe, albo włączenie lub wyłączenie VPN.{appealEmail, select, null {} other { Jeśli uważasz, że ta blokada to pomyłka, napisz na adres {appealEmail} i podaj swój adres IP: {ipAddress}.}}",
"permissions.missing_access": "Brak dostępu do tego zasobu lub funkcji.",
"permissions.missing_permissions": "Brak wymaganych uprawnień do wykonania tej akcji.",
"permissions.user_banned_from_guild": "Ten użytkownik ma bana w tej społeczności.",
diff --git a/packages/errors/src/i18n/weblate/locales/pt-BR.json b/packages/errors/src/i18n/weblate/locales/pt-BR.json
index 1ed962b1c..b63c9ad00 100644
--- a/packages/errors/src/i18n/weblate/locales/pt-BR.json
+++ b/packages/errors/src/i18n/weblate/locales/pt-BR.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "As ACLs não podem estar vazias.",
"admin_and_system.admin_api_key_not_found": "A chave da API de administrador não foi encontrada.",
"admin_and_system.deletion_failed": "Não foi possível excluir o recurso. Tente de novo.",
+ "admin_and_system.enforcement_account_closed": "Esta conta está encerrada, então não pode ser suspensa.",
+ "admin_and_system.enforcement_confirmations_required": "Confirme que as provas foram preservadas e que qualquer comunicação obrigatória foi feita.",
+ "admin_and_system.enforcement_decision_ended": "Esta decisão já terminou.",
+ "admin_and_system.enforcement_decision_owns_state": "Uma decisão de moderação controla esta restrição. Encerre essa decisão.",
+ "admin_and_system.enforcement_decision_replaced": "Uma decisão posterior substituiu esta, então ela não pode mais ser encerrada.",
+ "admin_and_system.enforcement_deletion_started": "A exclusão desta conta já começou, então a decisão não pode mais ser encerrada.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Mensagens diretas só podem ser usadas como prova quando uma denúncia vinculada abrange essa conversa.",
+ "admin_and_system.enforcement_evidence_not_allowed": "As mensagens que estão sendo removidas são salvas como prova, então não inclua mensagens de prova separadas.",
+ "admin_and_system.enforcement_evidence_not_found": "Uma das mensagens de prova não foi encontrada.",
+ "admin_and_system.enforcement_evidence_not_subject": "Toda mensagem de prova deve ser da conta ou da comunidade a que esta decisão se refere.",
+ "admin_and_system.enforcement_evidence_required": "Esta decisão precisa de pelo menos uma mensagem de prova.",
+ "admin_and_system.enforcement_facts_required": "Adicione uma mensagem de prova ou uma nota ao usuário.",
+ "admin_and_system.enforcement_internal_note_required": "Adicione uma nota interna no cabeçalho X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Este motivo não pode ser usado para esta ação.",
+ "admin_and_system.enforcement_limit_end_invalid": "Somente um limite de denúncias tem data de término, e ela deve estar dentro dos próximos 365 dias.",
+ "admin_and_system.enforcement_limit_not_allowed": "Este motivo não pode ser usado para este limite.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Somente uma suspensão permanente ou um encerramento por violação de regra pode bloquear redes.",
+ "admin_and_system.enforcement_network_shared": "Outras contas sem restrições tiveram sua última atividade nesta rede, então ela não pode ser bloqueada.",
+ "admin_and_system.enforcement_network_unknown": "Esta conta não usou esta rede nos últimos 30 dias.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Somente uma reversão pode encerrar este tipo de decisão, porque não há nada a remover.",
+ "admin_and_system.enforcement_permanent_required": "Suspensões por este motivo devem ser permanentes.",
+ "admin_and_system.enforcement_report_mismatch": "Toda denúncia vinculada deve existir e se referir à conta ou à comunidade a que esta decisão se refere.",
+ "admin_and_system.enforcement_report_required": "Vincule pelo menos uma denúncia quando a origem for uma denúncia.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Um titular de direitos só pode ser informado em decisões de direitos autorais.",
+ "admin_and_system.enforcement_rights_holder_required": "Decisões de direitos autorais precisam do titular dos direitos ou do direito em questão.",
+ "admin_and_system.enforcement_statement_not_allowed": "Decisões por este motivo não podem incluir uma nota ao usuário.",
+ "admin_and_system.flag_requires_enforcement_route": "Esta flag faz parte de uma restrição. Altere-a pelas rotas de suspensão, exclusão ou limite de recursos.",
"admin_and_system.general_error": "Algo deu errado. Tente de novo mais tarde.",
"admin_and_system.guild_id_required_for_search_index": "É necessário o ID da comunidade para os índices de pesquisa de canais, mensagens e membros.",
"admin_and_system.instance_policy_transition_not_allowed": "Esta alteração da política da instância não é permitida.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Timestamp inválido.",
"admin_and_system.invalid_timezone_identifier": "Identificador de fuso horário inválido.",
"admin_and_system.missing_acl": "ACL ausente.",
+ "admin_and_system.moderation_basis_required": "Informe um fundamento para excluir as mensagens.",
"admin_and_system.must_be_iso_timestamp": "Deve ser um timestamp ISO válido.",
"admin_and_system.processing_failed": "Não foi possível processar a solicitação. Tente de novo.",
"admin_and_system.resource_locked": "Este recurso está sendo modificado. Tente novamente em breve.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "O resgate do código de presente está em andamento. Tente novamente em instantes.",
"invites_and_gifts.unknown_gift_code": "Código de presente desconhecido.",
"invites_and_packs.max_emojis_reached": "Você atingiu o máximo de {count, plural, =1 {# emoji} other {# emojis}}.",
- "limits.at_least_one_entry_required": "Pelo menos uma entrada é obrigatória.",
"limits.base64_length_invalid": "O comprimento da string Base64 precisa estar entre {min} e {maxLength} caracteres.",
"limits.cannot_specify_before_and_after": "Você não pode especificar `before` e `after` ao mesmo tempo.",
"limits.content_exceeds_max_length": "O texto não deve exceder {maxLength, plural, =1 {# caractere} other {# caracteres}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Código de verificação do DSA inválido.",
"moderation_and_reports.invalid_report_flow_answers": "Estas respostas não correspondem ao formulário de denúncia. Inicie a denúncia novamente.",
"moderation_and_reports.ip_ban_declined": "Este endereço IP não pode ser adicionado à lista de bloqueio.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Este bloqueio de rede pertence a uma decisão de moderação. Encerre a decisão para removê-lo.",
"moderation_and_reports.report_already_resolved": "A denúncia já foi resolvida.",
"moderation_and_reports.report_banned": "Você foi impedido de enviar denúncias.",
"moderation_and_reports.report_flow_outdated": "O formulário de denúncia mudou enquanto você o preenchia. Comece a denúncia novamente.",
+ "moderation_and_reports.report_outcome_invalid": "Uma resolução com medida precisa de um resultado, que não pode ser a ausência de violação. Uma resolução duplicada precisa indicar a denúncia original e não aceita nenhum resultado. Uma resolução sem violação não aceita nenhum outro resultado.",
"moderation_and_reports.report_under_legal_hold": "Esta denúncia está sob retenção legal e não pode ser excluída.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Você precisa terminar a configuração da sua conta antes de fazer denúncias.",
+ "moderation_and_reports.unknown_enforcement_decision": "Decisão de moderação desconhecida.",
"moderation_and_reports.unknown_report": "Denúncia não encontrada.",
"moderation_and_reports.user_is_not_banned": "Este usuário não está banido.",
"names_and_normalization.name_empty_after_normalization": "O nome não pode ficar vazio após a normalização.",
- "permissions.global_ip_banned": "Seu endereço IP {ipAddress} foi bloqueado permanentemente na {product_name} API pelos administradores da plataforma. {appealEmail, select, null {Se você acredita que isso é um erro, entre em contato com os administradores desta instância para recorrer.} other {Se você acredita que isso é um erro, entre em contato com {appealEmail} para recorrer.}} Inclua este endereço IP no recurso.",
- "permissions.global_ip_temporarily_banned": "Seu endereço IP {ipAddress} foi bloqueado temporariamente na {product_name} API. O bloqueio será removido automaticamente quando expirar. {appealEmail, select, null {Se você acredita que isso é um erro, entre em contato com os administradores desta instância e informe este endereço IP.} other {Se você acredita que isso é um erro, entre em contato com {appealEmail} e informe este endereço IP.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {O {product_name} bloqueou o acesso a partir desta rede por causa de atividades que violaram as regras do serviço.} other {O {product_name} bloqueou o acesso a partir desta rede.}} Se você compartilha esta rede, por exemplo na escola, no trabalho, em um Wi-Fi público, pela sua operadora de celular ou por uma VPN, este bloqueio pode não ter nada a ver com você. A solução mais rápida é trocar de rede, por exemplo usar os dados móveis em vez do Wi-Fi, ou ativar ou desativar sua VPN.{appealEmail, select, null {} other { Se você acha que este bloqueio é um erro, envie um e-mail para {appealEmail} informando seu endereço IP, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {O {product_name} bloqueou o acesso a partir desta rede por causa de atividades que violaram as regras do serviço.} other {O {product_name} bloqueou o acesso a partir desta rede.}} O bloqueio termina em {expiresAt}. Se você compartilha esta rede, por exemplo na escola, no trabalho, em um Wi-Fi público, pela sua operadora de celular ou por uma VPN, este bloqueio pode não ter nada a ver com você. A solução mais rápida é trocar de rede, por exemplo usar os dados móveis em vez do Wi-Fi, ou ativar ou desativar sua VPN.{appealEmail, select, null {} other { Se você acha que este bloqueio é um erro, envie um e-mail para {appealEmail} informando seu endereço IP, {ipAddress}.}}",
"permissions.missing_access": "Você não tem acesso a este recurso ou funcionalidade.",
"permissions.missing_permissions": "Você não tem as permissões necessárias para executar esta ação.",
"permissions.user_banned_from_guild": "Este usuário está banido desta comunidade.",
diff --git a/packages/errors/src/i18n/weblate/locales/ro.json b/packages/errors/src/i18n/weblate/locales/ro.json
index d638eb224..34e1a9c59 100644
--- a/packages/errors/src/i18n/weblate/locales/ro.json
+++ b/packages/errors/src/i18n/weblate/locales/ro.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL-urile nu pot fi goale.",
"admin_and_system.admin_api_key_not_found": "Cheia API de administrator nu a fost găsită.",
"admin_and_system.deletion_failed": "Nu s-a putut șterge resursa. Încearcă din nou.",
+ "admin_and_system.enforcement_account_closed": "Acest cont este închis, așa că nu poate fi suspendat.",
+ "admin_and_system.enforcement_confirmations_required": "Confirmă că dovezile sunt păstrate și că orice raportare obligatorie a fost trimisă.",
+ "admin_and_system.enforcement_decision_ended": "Această decizie s-a încheiat deja.",
+ "admin_and_system.enforcement_decision_owns_state": "Această restricție aparține unei decizii de moderare. Încheie decizia respectivă.",
+ "admin_and_system.enforcement_decision_replaced": "O decizie ulterioară a înlocuit-o pe aceasta, așa că nu mai poate fi încheiată.",
+ "admin_and_system.enforcement_deletion_started": "Ștergerea acestui cont a început deja, așa că decizia nu mai poate fi încheiată.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Mesajele directe pot fi folosite ca dovezi doar dacă un raport asociat acoperă acea conversație.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Mesajele care sunt eliminate sunt salvate ca dovezi, așa că nu adăuga mesaje-dovadă separate.",
+ "admin_and_system.enforcement_evidence_not_found": "Unul dintre mesajele-dovadă nu a fost găsit.",
+ "admin_and_system.enforcement_evidence_not_subject": "Fiecare mesaj-dovadă trebuie să provină din contul sau comunitatea la care se referă această decizie.",
+ "admin_and_system.enforcement_evidence_required": "Această decizie necesită cel puțin un mesaj-dovadă.",
+ "admin_and_system.enforcement_facts_required": "Adaugă un mesaj-dovadă sau o notă pentru utilizator.",
+ "admin_and_system.enforcement_internal_note_required": "Adaugă o notă internă în antetul X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Acest motiv nu poate fi folosit pentru această acțiune.",
+ "admin_and_system.enforcement_limit_end_invalid": "Doar o limită pentru rapoarte are dată de încheiere, iar aceasta trebuie să fie în următoarele 365 de zile.",
+ "admin_and_system.enforcement_limit_not_allowed": "Acest motiv nu poate fi folosit pentru această limită.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Doar o suspendare permanentă sau o închidere pentru încălcarea unei reguli poate bloca rețele.",
+ "admin_and_system.enforcement_network_shared": "Alte conturi fără restricții au fost active ultima dată în această rețea, așa că nu poate fi blocată.",
+ "admin_and_system.enforcement_network_unknown": "Acest cont nu a folosit această rețea în ultimele 30 de zile.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Doar o anulare poate încheia acest tip de decizie, deoarece nu există nimic de ridicat.",
+ "admin_and_system.enforcement_permanent_required": "Suspendările pentru acest motiv trebuie să fie permanente.",
+ "admin_and_system.enforcement_report_mismatch": "Fiecare raport asociat trebuie să existe și să se refere la contul sau comunitatea la care se referă această decizie.",
+ "admin_and_system.enforcement_report_required": "Asociază cel puțin un raport când sursa este un raport.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Un titular de drepturi poate fi indicat doar pentru deciziile privind drepturile de autor.",
+ "admin_and_system.enforcement_rights_holder_required": "Deciziile privind drepturile de autor necesită titularul drepturilor sau dreptul în cauză.",
+ "admin_and_system.enforcement_statement_not_allowed": "Deciziile pentru acest motiv nu pot include o notă pentru utilizator.",
+ "admin_and_system.flag_requires_enforcement_route": "Acest indicator face parte dintr-o restricție. Modifică-l prin rutele de suspendare, ștergere sau limitare a funcțiilor.",
"admin_and_system.general_error": "Ceva nu a mers bine. Încearcă din nou mai târziu.",
"admin_and_system.guild_id_required_for_search_index": "Este necesar un ID de comunitate pentru indexurile de căutare a mesajelor din canale și a membrilor.",
"admin_and_system.instance_policy_transition_not_allowed": "Această modificare a politicii instanței nu este permisă.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Marca de timp este invalidă.",
"admin_and_system.invalid_timezone_identifier": "Identificatorul de fus orar este invalid.",
"admin_and_system.missing_acl": "ACL lipsă.",
+ "admin_and_system.moderation_basis_required": "Indică un temei pentru ștergerea mesajelor.",
"admin_and_system.must_be_iso_timestamp": "Trebuie să fie o marcă de timp ISO validă.",
"admin_and_system.processing_failed": "Solicitarea nu a putut fi procesată. Încearcă din nou.",
"admin_and_system.resource_locked": "Această resursă este în curs de modificare. Încearcă din nou peste puțin timp.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Revendicarea codului cadou este în curs. Încearcă din nou peste puțin timp.",
"invites_and_gifts.unknown_gift_code": "Cod cadou necunoscut.",
"invites_and_packs.max_emojis_reached": "Ai atins numărul maxim de {count, plural, one {# emoji} few {# emoji} other {# de emoji}}.",
- "limits.at_least_one_entry_required": "Este necesară cel puțin o intrare.",
"limits.base64_length_invalid": "Lungimea șirului Base64 trebuie să fie între {min} și {maxLength} caractere.",
"limits.cannot_specify_before_and_after": "Nu poți specifica atât `before`, cât și `after`.",
"limits.content_exceeds_max_length": "Textul nu trebuie să depășească {maxLength, plural, one {# caracter} few {# caractere} other {# de caractere}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Cod de verificare DSA invalid.",
"moderation_and_reports.invalid_report_flow_answers": "Aceste răspunsuri nu corespund formularului de raportare. Repornește raportarea.",
"moderation_and_reports.ip_ban_declined": "Această adresă IP nu poate fi adăugată pe lista de blocare.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Acest blocaj de rețea aparține unei decizii de moderare. Încheie decizia pentru a-l elimina.",
"moderation_and_reports.report_already_resolved": "Raportul a fost deja rezolvat.",
"moderation_and_reports.report_banned": "Ți s-a interzis să trimiți rapoarte.",
"moderation_and_reports.report_flow_outdated": "Formularul de raportare s-a modificat în timp ce îl completai. Repornește raportarea.",
+ "moderation_and_reports.report_outcome_invalid": "O rezoluție cu măsuri necesită un rezultat, care nu poate fi lipsa încălcării. O rezoluție duplicată necesită raportul original și nu acceptă niciun rezultat. O rezoluție fără încălcare nu acceptă niciun alt rezultat.",
"moderation_and_reports.report_under_legal_hold": "Acest raport este supus unei rețineri legale și nu poate fi șters.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Trebuie să-ți finalizezi configurarea contului înainte să poți trimite rapoarte.",
+ "moderation_and_reports.unknown_enforcement_decision": "Decizie de moderare necunoscută.",
"moderation_and_reports.unknown_report": "Raport necunoscut.",
"moderation_and_reports.user_is_not_banned": "Acest utilizator nu este banat.",
"names_and_normalization.name_empty_after_normalization": "Numele nu poate fi gol după normalizare.",
- "permissions.global_ip_banned": "Accesul adresei tale IP {ipAddress} la {product_name} API a fost blocat permanent de administratorii platformei. {appealEmail, select, null {Dacă crezi că este o greșeală, contactează administratorii acestei instanțe pentru a depune o contestație.} other {Dacă crezi că este o greșeală, contactează {appealEmail} pentru a depune o contestație.}} Include această adresă IP în contestație.",
- "permissions.global_ip_temporarily_banned": "Accesul adresei tale IP {ipAddress} la {product_name} API a fost blocat temporar. Blocarea se ridică automat când expiră. {appealEmail, select, null {Dacă crezi că este o greșeală, contactează administratorii acestei instanțe și include această adresă IP.} other {Dacă crezi că este o greșeală, contactează {appealEmail} și include această adresă IP.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} a blocat accesul din această rețea din cauza unei activități care i-a încălcat regulile.} other {{product_name} a blocat accesul din această rețea.}} Dacă folosești această rețea împreună cu alte persoane, de exemplu la școală, la serviciu, pe o rețea Wi-Fi publică, prin operatorul de telefonie mobilă sau printr-un VPN, este posibil ca acest blocaj să nu aibă nicio legătură cu tine. Cea mai rapidă soluție este să schimbi rețeaua, de exemplu să folosești datele mobile în loc de Wi-Fi sau să pornești ori să oprești VPN-ul.{appealEmail, select, null {} other { Dacă crezi că acest blocaj este o greșeală, scrie la {appealEmail} și include adresa ta IP, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} a blocat accesul din această rețea din cauza unei activități care i-a încălcat regulile.} other {{product_name} a blocat accesul din această rețea.}} Blocajul se încheie pe {expiresAt}. Dacă folosești această rețea împreună cu alte persoane, de exemplu la școală, la serviciu, pe o rețea Wi-Fi publică, prin operatorul de telefonie mobilă sau printr-un VPN, este posibil ca acest blocaj să nu aibă nicio legătură cu tine. Cea mai rapidă soluție este să schimbi rețeaua, de exemplu să folosești datele mobile în loc de Wi-Fi sau să pornești ori să oprești VPN-ul.{appealEmail, select, null {} other { Dacă crezi că acest blocaj este o greșeală, scrie la {appealEmail} și include adresa ta IP, {ipAddress}.}}",
"permissions.missing_access": "Nu ai acces la această resursă sau funcție.",
"permissions.missing_permissions": "Nu ai permisiunile necesare pentru a efectua această acțiune.",
"permissions.user_banned_from_guild": "Acest utilizator este banat din această comunitate.",
diff --git a/packages/errors/src/i18n/weblate/locales/ru.json b/packages/errors/src/i18n/weblate/locales/ru.json
index 1a9df2808..27e8d479e 100644
--- a/packages/errors/src/i18n/weblate/locales/ru.json
+++ b/packages/errors/src/i18n/weblate/locales/ru.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "Списки ACL не могут быть пустыми.",
"admin_and_system.admin_api_key_not_found": "Ключ Admin API не найден.",
"admin_and_system.deletion_failed": "Не удалось удалить ресурс. Попробуй ещё раз.",
+ "admin_and_system.enforcement_account_closed": "Этот аккаунт закрыт, поэтому его нельзя временно заблокировать.",
+ "admin_and_system.enforcement_confirmations_required": "Подтверди, что доказательства сохранены и все обязательные уведомления поданы.",
+ "admin_and_system.enforcement_decision_ended": "Это решение уже прекратило действие.",
+ "admin_and_system.enforcement_decision_owns_state": "Это ограничение установлено решением о применении мер. Вместо этого заверши решение.",
+ "admin_and_system.enforcement_decision_replaced": "Это решение заменено более поздним, поэтому его больше нельзя завершить.",
+ "admin_and_system.enforcement_deletion_started": "Удаление этого аккаунта уже началось, поэтому решение больше нельзя завершить.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Сообщения из личной переписки можно использовать как доказательства, только если эта переписка указана в связанной жалобе.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Удаляемые сообщения сохраняются как доказательства, поэтому не указывай отдельные сообщения-доказательства.",
+ "admin_and_system.enforcement_evidence_not_found": "Одно из сообщений-доказательств не найдено.",
+ "admin_and_system.enforcement_evidence_not_subject": "Каждое сообщение-доказательство должно принадлежать аккаунту или сообществу, к которому относится это решение.",
+ "admin_and_system.enforcement_evidence_required": "Для этого решения нужно хотя бы одно сообщение-доказательство.",
+ "admin_and_system.enforcement_facts_required": "Добавь сообщение-доказательство или комментарий для пользователя.",
+ "admin_and_system.enforcement_internal_note_required": "Добавь внутреннюю заметку в заголовке X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Эту причину нельзя использовать для этого действия.",
+ "admin_and_system.enforcement_limit_end_invalid": "Дата окончания есть только у ограничения на жалобы, и она должна быть в пределах следующих 365 дней.",
+ "admin_and_system.enforcement_limit_not_allowed": "Эту причину нельзя использовать для этого ограничения.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Блокировать сети можно только при бессрочной блокировке или закрытии аккаунта за нарушение правила.",
+ "admin_and_system.enforcement_network_shared": "В этой сети последний раз были активны другие аккаунты без ограничений, поэтому её нельзя заблокировать.",
+ "admin_and_system.enforcement_network_unknown": "Этот аккаунт не использовал эту сеть за последние 30 дней.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Решение такого типа можно завершить только отменой, потому что снимать нечего.",
+ "admin_and_system.enforcement_permanent_required": "Блокировки по этой причине должны быть бессрочными.",
+ "admin_and_system.enforcement_report_mismatch": "Каждая связанная жалоба должна существовать и относиться к аккаунту или сообществу, к которому относится это решение.",
+ "admin_and_system.enforcement_report_required": "Если источником является жалоба, свяжи с решением хотя бы одну жалобу.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Правообладателя можно указать только в решениях об авторском праве.",
+ "admin_and_system.enforcement_rights_holder_required": "В решениях об авторском праве нужно указать правообладателя или затронутое право.",
+ "admin_and_system.enforcement_statement_not_allowed": "Решения по этой причине не могут содержать комментарий для пользователя.",
+ "admin_and_system.flag_requires_enforcement_route": "Этот флаг входит в ограничение. Измени его через маршруты временной блокировки, удаления или ограничения функций.",
"admin_and_system.general_error": "Что-то пошло не так. Попробуй позже.",
"admin_and_system.guild_id_required_for_search_index": "ID сообщества обязателен для индексов поиска по сообщениям канала и участникам.",
"admin_and_system.instance_policy_transition_not_allowed": "Это изменение политики экземпляра не разрешено.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Неверная метка времени.",
"admin_and_system.invalid_timezone_identifier": "Неверный идентификатор часового пояса.",
"admin_and_system.missing_acl": "Отсутствует ACL.",
+ "admin_and_system.moderation_basis_required": "Укажи основание для удаления сообщений.",
"admin_and_system.must_be_iso_timestamp": "Требуется действительная метка времени ISO.",
"admin_and_system.processing_failed": "Не удалось обработать запрос. Попробуй ещё раз.",
"admin_and_system.resource_locked": "Этот ресурс сейчас изменяется. Попробуй ещё раз через пару секунд.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Подарочный код уже активируется. Попробуй ещё раз чуть позже.",
"invites_and_gifts.unknown_gift_code": "Неизвестный подарочный код.",
"invites_and_packs.max_emojis_reached": "Ты достиг максимума: {count} {count, plural, one {эмодзи} few {эмодзи} many {эмодзи} other {эмодзи}}.",
- "limits.at_least_one_entry_required": "Требуется хотя бы одна запись.",
"limits.base64_length_invalid": "Длина строки Base64 должна быть от {min} до {maxLength} символов.",
"limits.cannot_specify_before_and_after": "Нельзя указывать `before` и `after` одновременно.",
"limits.content_exceeds_max_length": "Текст не должен превышать {maxLength} {maxLength, plural, one {символ} few {символа} many {символов} other {символа}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Неверный код подтверждения DSA.",
"moderation_and_reports.invalid_report_flow_answers": "Эти ответы не соответствуют форме жалобы. Начни жалобу заново.",
"moderation_and_reports.ip_ban_declined": "Этот IP-адрес нельзя добавить в чёрный список.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Эта блокировка сети относится к решению о применении мер. Чтобы снять её, заверши решение.",
"moderation_and_reports.report_already_resolved": "Жалоба уже рассмотрена.",
"moderation_and_reports.report_banned": "Ты забанен и не можешь отправлять жалобы.",
"moderation_and_reports.report_flow_outdated": "Форма жалобы изменилась во время заполнения. Начни жалобу заново.",
+ "moderation_and_reports.report_outcome_invalid": "Для статуса «приняты меры» нужен результат, отличный от «нарушений нет». Для статуса «дубликат» нужна жалоба, которую он повторяет, а результат указывать нельзя. Для статуса «нарушений нет» другой результат указывать нельзя.",
"moderation_and_reports.report_under_legal_hold": "Эта жалоба находится на юридическом удержании и не может быть удалена.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Тебе нужно завершить настройку аккаунта, чтобы подавать жалобы.",
+ "moderation_and_reports.unknown_enforcement_decision": "Неизвестное решение о применении мер.",
"moderation_and_reports.unknown_report": "Жалоба не найдена.",
"moderation_and_reports.user_is_not_banned": "Этот пользователь не забанен.",
"names_and_normalization.name_empty_after_normalization": "Имя не может быть пустым после нормализации.",
- "permissions.global_ip_banned": "Твой IP-адрес {ipAddress} навсегда заблокирован в {product_name} API администраторами платформы. {appealEmail, select, null {Если считаешь, что это ошибка, свяжись с администраторами этого экземпляра, чтобы подать апелляцию.} other {Если считаешь, что это ошибка, напиши на {appealEmail}, чтобы подать апелляцию.}} Укажи в ней этот IP-адрес.",
- "permissions.global_ip_temporarily_banned": "Твой IP-адрес {ipAddress} временно заблокирован в {product_name} API. Блокировка снимется автоматически, когда истечёт её срок. {appealEmail, select, null {Если считаешь, что это ошибка, свяжись с администраторами этого экземпляра и укажи этот IP-адрес.} other {Если считаешь, что это ошибка, напиши на {appealEmail} и укажи этот IP-адрес.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} заблокировал доступ из этой сети из-за действий, нарушивших его правила.} other {{product_name} заблокировал доступ из этой сети.}} Если ты пользуешься этой сетью вместе с другими людьми, например в школе, на работе, в общественной сети Wi-Fi, через мобильного оператора или VPN, эта блокировка может быть никак не связана с тобой. Быстрее всего сменить сеть, например перейти с Wi-Fi на мобильный интернет, или включить либо выключить VPN.{appealEmail, select, null {} other { Если ты считаешь, что эта блокировка ошибочна, напиши на {appealEmail} и укажи свой IP-адрес: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} заблокировал доступ из этой сети из-за действий, нарушивших его правила.} other {{product_name} заблокировал доступ из этой сети.}} Блокировка действует до {expiresAt}. Если ты пользуешься этой сетью вместе с другими людьми, например в школе, на работе, в общественной сети Wi-Fi, через мобильного оператора или VPN, эта блокировка может быть никак не связана с тобой. Быстрее всего сменить сеть, например перейти с Wi-Fi на мобильный интернет, или включить либо выключить VPN.{appealEmail, select, null {} other { Если ты считаешь, что эта блокировка ошибочна, напиши на {appealEmail} и укажи свой IP-адрес: {ipAddress}.}}",
"permissions.missing_access": "У тебя нет доступа к этому ресурсу или функции.",
"permissions.missing_permissions": "У тебя нет необходимых разрешений для выполнения этого действия.",
"permissions.user_banned_from_guild": "Этот пользователь забанен в этом сообществе.",
diff --git a/packages/errors/src/i18n/weblate/locales/sv-SE.json b/packages/errors/src/i18n/weblate/locales/sv-SE.json
index b3ff5a8d4..5c02200a9 100644
--- a/packages/errors/src/i18n/weblate/locales/sv-SE.json
+++ b/packages/errors/src/i18n/weblate/locales/sv-SE.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "Åtkomstkontrollistorna får inte vara tomma.",
"admin_and_system.admin_api_key_not_found": "Admin-API-nyckeln hittades inte.",
"admin_and_system.deletion_failed": "Det gick inte att radera resursen. Försök igen.",
+ "admin_and_system.enforcement_account_closed": "Det här kontot är stängt och kan därför inte stängas av.",
+ "admin_and_system.enforcement_confirmations_required": "Bekräfta att bevisen är säkrade och att alla obligatoriska rapporter har lämnats in.",
+ "admin_and_system.enforcement_decision_ended": "Det här beslutet har redan avslutats.",
+ "admin_and_system.enforcement_decision_owns_state": "Den här begränsningen hör till ett åtgärdsbeslut. Avsluta beslutet i stället.",
+ "admin_and_system.enforcement_decision_replaced": "Ett senare beslut har ersatt det här, så det kan inte längre avslutas.",
+ "admin_and_system.enforcement_deletion_started": "Raderingen av det här kontot har redan påbörjats, så beslutet kan inte längre avslutas.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Meddelanden i direktmeddelanden kan bara användas som bevis när en länkad anmälan omfattar den konversationen.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Meddelandena som tas bort sparas som bevis, så utelämna separata bevismeddelanden.",
+ "admin_and_system.enforcement_evidence_not_found": "Ett av bevismeddelandena hittades inte.",
+ "admin_and_system.enforcement_evidence_not_subject": "Varje bevismeddelande måste komma från kontot eller communityn som beslutet gäller.",
+ "admin_and_system.enforcement_evidence_required": "Det här beslutet behöver minst ett bevismeddelande.",
+ "admin_and_system.enforcement_facts_required": "Lägg till ett bevismeddelande eller en kommentar till användaren.",
+ "admin_and_system.enforcement_internal_note_required": "Lägg till en intern anteckning i headern X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Den här anledningen kan inte användas för den här åtgärden.",
+ "admin_and_system.enforcement_limit_end_invalid": "Bara en begränsning av anmälningar har ett slutdatum, och det måste ligga inom de kommande 365 dagarna.",
+ "admin_and_system.enforcement_limit_not_allowed": "Den här anledningen kan inte användas för den här begränsningen.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Bara en permanent avstängning eller en stängning för ett regelbrott kan blockera nätverk.",
+ "admin_and_system.enforcement_network_shared": "Andra konton som inte är begränsade var senast aktiva på det här nätverket, så det kan inte blockeras.",
+ "admin_and_system.enforcement_network_unknown": "Det här kontot har inte använt det här nätverket under de senaste 30 dagarna.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Bara ett upphävande kan avsluta den här typen av beslut, eftersom det inte finns något att häva.",
+ "admin_and_system.enforcement_permanent_required": "Avstängningar av den här anledningen måste vara permanenta.",
+ "admin_and_system.enforcement_report_mismatch": "Varje länkad anmälan måste finnas och gälla kontot eller communityn som beslutet gäller.",
+ "admin_and_system.enforcement_report_required": "Länka minst en anmälan när källan är en anmälan.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "En rättighetshavare kan bara anges för upphovsrättsbeslut.",
+ "admin_and_system.enforcement_rights_holder_required": "Upphovsrättsbeslut behöver rättighetshavaren eller den berörda rättigheten.",
+ "admin_and_system.enforcement_statement_not_allowed": "Beslut av den här anledningen får inte innehålla en kommentar till användaren.",
+ "admin_and_system.flag_requires_enforcement_route": "Den här flaggan är en del av en begränsning. Ändra den via routerna för avstängning, radering eller funktionsbegränsning.",
"admin_and_system.general_error": "Något gick fel. Försök igen senare.",
"admin_and_system.guild_id_required_for_search_index": "Ett community-ID krävs för sökindex för kanalmeddelanden och medlemmar.",
"admin_and_system.instance_policy_transition_not_allowed": "Den här ändringen av instanspolicyn är inte tillåten.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Ogiltig tidsstämpel.",
"admin_and_system.invalid_timezone_identifier": "Ogiltig tidszonsidentifierare.",
"admin_and_system.missing_acl": "Åtkomstkontrollista saknas.",
+ "admin_and_system.moderation_basis_required": "Ange en grund för att radera meddelandena.",
"admin_and_system.must_be_iso_timestamp": "Måste vara en giltig ISO-tidsstämpel.",
"admin_and_system.processing_failed": "Det gick inte att behandla begäran. Försök igen.",
"admin_and_system.resource_locked": "Den här resursen ändras just nu. Försök igen om en liten stund.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Presentkoden löses in. Försök igen om en liten stund.",
"invites_and_gifts.unknown_gift_code": "Okänd presentkod.",
"invites_and_packs.max_emojis_reached": "Du har nått gränsen på {count, plural, one {# emoji} other {# emojis}}.",
- "limits.at_least_one_entry_required": "Minst en post krävs.",
"limits.base64_length_invalid": "Base64-strängens längd måste vara mellan {min} och {maxLength} tecken.",
"limits.cannot_specify_before_and_after": "Du kan inte ange både `before` och `after`.",
"limits.content_exceeds_max_length": "Texten får inte innehålla fler än {maxLength, number} tecken.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Ogiltig DSA-verifieringskod.",
"moderation_and_reports.invalid_report_flow_answers": "Svaren stämmer inte med anmälningsformuläret. Börja om med anmälan.",
"moderation_and_reports.ip_ban_declined": "Den här IP-adressen kan inte läggas till i blocklistan.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Den här nätverksblockeringen hör till ett åtgärdsbeslut. Avsluta beslutet för att ta bort den.",
"moderation_and_reports.report_already_resolved": "Anmälan har redan behandlats.",
"moderation_and_reports.report_banned": "Du har förbjudits att skicka in anmälningar.",
"moderation_and_reports.report_flow_outdated": "Anmälningsformuläret ändrades medan du fyllde i det. Börja om med anmälan.",
+ "moderation_and_reports.report_outcome_invalid": "Ett avslut med åtgärd kräver ett annat utfall än \"ingen överträdelse\". En dubblett kräver anmälan som den upprepar och får inte ha något utfall. Ett avslut utan överträdelse får inte ha något annat utfall.",
"moderation_and_reports.report_under_legal_hold": "Den här anmälan omfattas av ett rättsligt bevarandekrav och kan inte raderas.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Du måste slutföra konfigureringen av ditt konto innan du kan skicka in anmälningar.",
+ "moderation_and_reports.unknown_enforcement_decision": "Okänt åtgärdsbeslut.",
"moderation_and_reports.unknown_report": "Okänd anmälan.",
"moderation_and_reports.user_is_not_banned": "Den här användaren är inte bannlyst.",
"names_and_normalization.name_empty_after_normalization": "Namnet kan inte vara tomt efter att ha normaliserats.",
- "permissions.global_ip_banned": "Din IP-adress {ipAddress} har blockerats permanent från {product_name}-API:et av plattformsadministratörerna. {appealEmail, select, null {Om du anser att detta är ett misstag kan du kontakta administratörerna för den här instansen för att överklaga.} other {Om du anser att detta är ett misstag kan du kontakta {appealEmail} för att överklaga.}} Ange den här IP-adressen i ditt överklagande.",
- "permissions.global_ip_temporarily_banned": "Din IP-adress {ipAddress} har blockerats tillfälligt från {product_name}-API:et. Blockeringen hävs automatiskt när den löper ut. {appealEmail, select, null {Om du anser att detta är ett misstag kan du kontakta administratörerna för den här instansen och ange den här IP-adressen.} other {Om du anser att detta är ett misstag kan du kontakta {appealEmail} och ange den här IP-adressen.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} har blockerat åtkomst från det här nätverket på grund av aktivitet som bröt mot reglerna.} other {{product_name} har blockerat åtkomst från det här nätverket.}} Om du delar det här nätverket med andra, till exempel i skolan, på jobbet, på ett offentligt Wi-Fi, via din mobiloperatör eller ett VPN, kanske blockeringen inte har något med dig att göra. Det snabbaste sättet att lösa det är att byta nätverk, till exempel till mobildata i stället för Wi-Fi, eller att slå på eller av ditt VPN.{appealEmail, select, null {} other { Om du tror att blockeringen är ett misstag kan du mejla {appealEmail} och ange din IP-adress, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} har blockerat åtkomst från det här nätverket på grund av aktivitet som bröt mot reglerna.} other {{product_name} har blockerat åtkomst från det här nätverket.}} Blockeringen upphör den {expiresAt}. Om du delar det här nätverket med andra, till exempel i skolan, på jobbet, på ett offentligt Wi-Fi, via din mobiloperatör eller ett VPN, kanske blockeringen inte har något med dig att göra. Det snabbaste sättet att lösa det är att byta nätverk, till exempel till mobildata i stället för Wi-Fi, eller att slå på eller av ditt VPN.{appealEmail, select, null {} other { Om du tror att blockeringen är ett misstag kan du mejla {appealEmail} och ange din IP-adress, {ipAddress}.}}",
"permissions.missing_access": "Du har inte åtkomst till denna resurs eller funktion.",
"permissions.missing_permissions": "Du har inte de behörigheter som krävs för att utföra denna åtgärd.",
"permissions.user_banned_from_guild": "Den här användaren är bannlyst från den här communityn.",
diff --git a/packages/errors/src/i18n/weblate/locales/th.json b/packages/errors/src/i18n/weblate/locales/th.json
index 19a6387a4..5c76f9d86 100644
--- a/packages/errors/src/i18n/weblate/locales/th.json
+++ b/packages/errors/src/i18n/weblate/locales/th.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL ต้องไม่ว่างเปล่า",
"admin_and_system.admin_api_key_not_found": "ไม่พบ Admin API key",
"admin_and_system.deletion_failed": "ไม่สามารถลบทรัพยากรได้ โปรดลองอีกครั้ง",
+ "admin_and_system.enforcement_account_closed": "บัญชีนี้ถูกปิดแล้ว จึงไม่สามารถระงับได้",
+ "admin_and_system.enforcement_confirmations_required": "โปรดยืนยันว่าได้เก็บรักษาหลักฐานไว้แล้ว และได้ยื่นรายงานที่จำเป็นทั้งหมดแล้ว",
+ "admin_and_system.enforcement_decision_ended": "คำตัดสินนี้สิ้นสุดไปแล้ว",
+ "admin_and_system.enforcement_decision_owns_state": "ข้อจำกัดนี้เป็นของคำตัดสินการบังคับใช้ โปรดสิ้นสุดคำตัดสินแทน",
+ "admin_and_system.enforcement_decision_replaced": "คำตัดสินที่ใหม่กว่าได้แทนที่คำตัดสินนี้แล้ว จึงไม่สามารถสิ้นสุดได้อีก",
+ "admin_and_system.enforcement_deletion_started": "การลบบัญชีนี้เริ่มต้นแล้ว จึงไม่สามารถสิ้นสุดคำตัดสินได้อีก",
+ "admin_and_system.enforcement_evidence_dm_unreported": "ข้อความในข้อความส่วนตัวจะใช้เป็นหลักฐานได้ก็ต่อเมื่อมีรายงานที่เชื่อมโยงครอบคลุมการสนทนานั้น",
+ "admin_and_system.enforcement_evidence_not_allowed": "ข้อความที่กำลังถูกลบจะถูกบันทึกเป็นหลักฐานอยู่แล้ว จึงไม่ต้องระบุข้อความหลักฐานแยก",
+ "admin_and_system.enforcement_evidence_not_found": "ไม่พบข้อความหลักฐานรายการหนึ่ง",
+ "admin_and_system.enforcement_evidence_not_subject": "ข้อความหลักฐานทุกรายการต้องมาจากบัญชีหรือคอมมูนิตี้ที่คำตัดสินนี้เกี่ยวข้อง",
+ "admin_and_system.enforcement_evidence_required": "คำตัดสินนี้ต้องมีข้อความหลักฐานอย่างน้อยหนึ่งรายการ",
+ "admin_and_system.enforcement_facts_required": "เพิ่มข้อความหลักฐานหรือหมายเหตุถึงผู้ใช้",
+ "admin_and_system.enforcement_internal_note_required": "เพิ่มหมายเหตุภายในในส่วนหัว X-Audit-Log-Reason",
+ "admin_and_system.enforcement_kind_not_allowed": "ไม่สามารถใช้เหตุผลนี้กับการดำเนินการนี้ได้",
+ "admin_and_system.enforcement_limit_end_invalid": "เฉพาะข้อจำกัดการรายงานเท่านั้นที่มีวันสิ้นสุด และต้องอยู่ภายใน 365 วันข้างหน้า",
+ "admin_and_system.enforcement_limit_not_allowed": "ไม่สามารถใช้เหตุผลนี้กับข้อจำกัดนี้ได้",
+ "admin_and_system.enforcement_network_block_not_allowed": "เฉพาะการระงับถาวรหรือการปิดบัญชีเนื่องจากละเมิดกฎเท่านั้นที่บล็อกเครือข่ายได้",
+ "admin_and_system.enforcement_network_shared": "มีบัญชีอื่นที่ไม่ถูกจำกัดใช้งานเครือข่ายนี้ล่าสุด จึงไม่สามารถบล็อกได้",
+ "admin_and_system.enforcement_network_unknown": "บัญชีนี้ไม่ได้ใช้เครือข่ายนี้ในช่วง 30 วันที่ผ่านมา",
+ "admin_and_system.enforcement_outcome_not_allowed": "คำตัดสินประเภทนี้สิ้นสุดได้ด้วยการกลับคำตัดสินเท่านั้น เนื่องจากไม่มีสิ่งใดให้ยกเลิก",
+ "admin_and_system.enforcement_permanent_required": "การระงับด้วยเหตุผลนี้ต้องเป็นการระงับถาวร",
+ "admin_and_system.enforcement_report_mismatch": "รายงานที่เชื่อมโยงทุกรายการต้องมีอยู่จริงและเกี่ยวกับบัญชีหรือคอมมูนิตี้ที่คำตัดสินนี้เกี่ยวข้อง",
+ "admin_and_system.enforcement_report_required": "เชื่อมโยงรายงานอย่างน้อยหนึ่งรายการเมื่อแหล่งที่มาคือรายงาน",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "ระบุผู้ถือสิทธิ์ได้เฉพาะในคำตัดสินเรื่องลิขสิทธิ์เท่านั้น",
+ "admin_and_system.enforcement_rights_holder_required": "คำตัดสินเรื่องลิขสิทธิ์ต้องระบุผู้ถือสิทธิ์หรือสิทธิ์ที่เกี่ยวข้อง",
+ "admin_and_system.enforcement_statement_not_allowed": "คำตัดสินด้วยเหตุผลนี้ไม่สามารถมีหมายเหตุถึงผู้ใช้ได้",
+ "admin_and_system.flag_requires_enforcement_route": "แฟล็กนี้เป็นส่วนหนึ่งของข้อจำกัด โปรดเปลี่ยนผ่านเส้นทางการระงับ การลบ หรือการจำกัดฟีเจอร์",
"admin_and_system.general_error": "เกิดข้อผิดพลาด โปรดลองอีกครั้งในภายหลัง",
"admin_and_system.guild_id_required_for_search_index": "จำเป็นต้องมี ID คอมมูนิตี้สำหรับดัชนีการค้นหาข้อความในช่องและสมาชิก",
"admin_and_system.instance_policy_transition_not_allowed": "ไม่อนุญาตให้เปลี่ยนนโยบายอินสแตนซ์นี้",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "การประทับเวลาไม่ถูกต้อง",
"admin_and_system.invalid_timezone_identifier": "ตัวระบุเขตเวลาไม่ถูกต้อง",
"admin_and_system.missing_acl": "ACL หายไป",
+ "admin_and_system.moderation_basis_required": "ระบุเหตุผลรองรับในการลบข้อความ",
"admin_and_system.must_be_iso_timestamp": "ต้องเป็นการประทับเวลา ISO ที่ถูกต้อง",
"admin_and_system.processing_failed": "ไม่สามารถดำเนินการตามคำขอได้ โปรดลองอีกครั้ง",
"admin_and_system.resource_locked": "ทรัพยากรนี้กำลังถูกแก้ไข โปรดลองอีกครั้งในอีกสักครู่",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "กำลังดำเนินการแลกรหัสของขวัญ โปรดลองอีกครั้งในอีกสักครู่",
"invites_and_gifts.unknown_gift_code": "ไม่พบรหัสของขวัญ",
"invites_and_packs.max_emojis_reached": "คุณใช้อิโมจิครบ {count} {count, plural, other {ตัว}} แล้ว",
- "limits.at_least_one_entry_required": "ต้องมีอย่างน้อยหนึ่งรายการ",
"limits.base64_length_invalid": "ความยาวสตริง Base64 ต้องอยู่ระหว่าง {min} ถึง {maxLength} ตัวอักษร",
"limits.cannot_specify_before_and_after": "คุณไม่สามารถระบุทั้ง `before` และ `after` ได้",
"limits.content_exceeds_max_length": "ข้อความต้องไม่เกิน {maxLength} {maxLength, plural, other {ตัวอักษร}}",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "รหัสยืนยัน DSA ไม่ถูกต้อง",
"moderation_and_reports.invalid_report_flow_answers": "คำตอบเหล่านี้ไม่ตรงกับแบบฟอร์มรายงาน โปรดเริ่มรายงานใหม่อีกครั้ง",
"moderation_and_reports.ip_ban_declined": "ไม่สามารถเพิ่มที่อยู่ IP นี้ไปยังรายการบล็อกได้",
+ "moderation_and_reports.ip_ban_linked_to_decision": "การบล็อกเครือข่ายนี้เป็นของคำตัดสินการบังคับใช้ โปรดสิ้นสุดคำตัดสินเพื่อนำการบล็อกออก",
"moderation_and_reports.report_already_resolved": "รายงานนี้ได้รับการดำเนินการแล้ว",
"moderation_and_reports.report_banned": "คุณถูกแบนจากการส่งรายงาน",
"moderation_and_reports.report_flow_outdated": "แบบฟอร์มรายงานมีการเปลี่ยนแปลงขณะที่คุณกำลังกรอกข้อมูลอยู่ โปรดเริ่มรายงานใหม่อีกครั้ง",
+ "moderation_and_reports.report_outcome_invalid": "การปิดรายงานแบบดำเนินการแล้วต้องระบุผลลัพธ์ที่ไม่ใช่ไม่พบการละเมิด การปิดแบบซ้ำต้องระบุรายงานต้นฉบับและต้องไม่ระบุผลลัพธ์ การปิดแบบไม่พบการละเมิดต้องไม่ระบุผลลัพธ์อื่น",
"moderation_and_reports.report_under_legal_hold": "รายงานนี้อยู่ระหว่างการระงับตามกฎหมายและไม่สามารถลบได้",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "คุณต้องตั้งค่าบัญชีให้เสร็จสมบูรณ์ก่อนจึงจะสามารถส่งรายงานได้",
+ "moderation_and_reports.unknown_enforcement_decision": "ไม่พบคำตัดสินการบังคับใช้",
"moderation_and_reports.unknown_report": "ไม่พบรายงาน",
"moderation_and_reports.user_is_not_banned": "ผู้ใช้รายนี้ไม่ได้ถูกแบน",
"names_and_normalization.name_empty_after_normalization": "ชื่อต้องไม่ว่างเปล่าหลังจากการปรับให้เป็นมาตรฐาน",
- "permissions.global_ip_banned": "ที่อยู่ IP ของคุณ {ipAddress} ถูกบล็อกจาก {product_name} API อย่างถาวรโดยผู้ดูแลแพลตฟอร์ม {appealEmail, select, null {หากคุณเชื่อว่านี่เป็นข้อผิดพลาด โปรดติดต่อผู้ดูแลระบบของอินสแตนซ์นี้เพื่ออุทธรณ์} other {หากคุณเชื่อว่านี่เป็นข้อผิดพลาด โปรดติดต่อ {appealEmail} เพื่ออุทธรณ์}} โปรดแนบที่อยู่ IP นี้ในการอุทธรณ์",
- "permissions.global_ip_temporarily_banned": "ที่อยู่ IP ของคุณ {ipAddress} ถูกบล็อกจาก {product_name} API ชั่วคราว การบล็อกจะถูกยกเลิกโดยอัตโนมัติเมื่อหมดเวลา {appealEmail, select, null {หากคุณเชื่อว่านี่เป็นข้อผิดพลาด โปรดติดต่อผู้ดูแลระบบของอินสแตนซ์นี้และแนบที่อยู่ IP นี้มาด้วย} other {หากคุณเชื่อว่านี่เป็นข้อผิดพลาด โปรดติดต่อ {appealEmail} และแนบที่อยู่ IP นี้มาด้วย}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} บล็อกการเข้าถึงจากเครือข่ายนี้ เนื่องจากมีกิจกรรมที่ละเมิดกฎ} other {{product_name} บล็อกการเข้าถึงจากเครือข่ายนี้}} หากคุณใช้เครือข่ายนี้ร่วมกับผู้อื่น เช่น ที่โรงเรียน ที่ทำงาน Wi-Fi สาธารณะ ผ่านผู้ให้บริการมือถือ หรือ VPN การบล็อกนี้อาจไม่เกี่ยวข้องกับคุณเลย วิธีแก้ที่เร็วที่สุดคือเปลี่ยนเครือข่าย เช่น ใช้อินเทอร์เน็ตมือถือแทน Wi-Fi หรือเปิดหรือปิด VPN{appealEmail, select, null {} other { หากคุณคิดว่าการบล็อกนี้ผิดพลาด โปรดส่งอีเมลไปที่ {appealEmail} และระบุที่อยู่ IP ของคุณ ซึ่งคือ {ipAddress}}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} บล็อกการเข้าถึงจากเครือข่ายนี้ เนื่องจากมีกิจกรรมที่ละเมิดกฎ} other {{product_name} บล็อกการเข้าถึงจากเครือข่ายนี้}} การบล็อกจะสิ้นสุดเมื่อ {expiresAt} หากคุณใช้เครือข่ายนี้ร่วมกับผู้อื่น เช่น ที่โรงเรียน ที่ทำงาน Wi-Fi สาธารณะ ผ่านผู้ให้บริการมือถือ หรือ VPN การบล็อกนี้อาจไม่เกี่ยวข้องกับคุณเลย วิธีแก้ที่เร็วที่สุดคือเปลี่ยนเครือข่าย เช่น ใช้อินเทอร์เน็ตมือถือแทน Wi-Fi หรือเปิดหรือปิด VPN{appealEmail, select, null {} other { หากคุณคิดว่าการบล็อกนี้ผิดพลาด โปรดส่งอีเมลไปที่ {appealEmail} และระบุที่อยู่ IP ของคุณ ซึ่งคือ {ipAddress}}}",
"permissions.missing_access": "คุณไม่มีสิทธิ์เข้าถึงทรัพยากรหรือฟีเจอร์นี้",
"permissions.missing_permissions": "คุณไม่มีสิทธิ์ที่จำเป็นในการดำเนินการนี้",
"permissions.user_banned_from_guild": "ผู้ใช้รายนี้ถูกแบนจากคอมมูนิตี้นี้",
diff --git a/packages/errors/src/i18n/weblate/locales/tr.json b/packages/errors/src/i18n/weblate/locales/tr.json
index e14771cc2..e54d2c07a 100644
--- a/packages/errors/src/i18n/weblate/locales/tr.json
+++ b/packages/errors/src/i18n/weblate/locales/tr.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL'ler boş olamaz.",
"admin_and_system.admin_api_key_not_found": "Yönetici API anahtarı bulunamadı.",
"admin_and_system.deletion_failed": "Kaynağı silemedik. Tekrar dene.",
+ "admin_and_system.enforcement_account_closed": "Bu hesap kapatıldı, bu nedenle askıya alınamaz.",
+ "admin_and_system.enforcement_confirmations_required": "Kanıtların saklandığını ve gerekli tüm bildirimlerin yapıldığını onayla.",
+ "admin_and_system.enforcement_decision_ended": "Bu karar zaten sona erdi.",
+ "admin_and_system.enforcement_decision_owns_state": "Bu kısıtlama bir yaptırım kararına ait. Bunun yerine kararı sonlandır.",
+ "admin_and_system.enforcement_decision_replaced": "Daha sonraki bir karar bunun yerini aldı, bu nedenle artık sonlandırılamaz.",
+ "admin_and_system.enforcement_deletion_started": "Bu hesabın silinmesi zaten başladı, bu nedenle karar artık sonlandırılamaz.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Doğrudan mesaj sohbetlerindeki mesajlar, yalnızca bağlı bir rapor o sohbeti kapsadığında kanıt olarak kullanılabilir.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Kaldırılan mesajlar kanıt olarak kaydedilir, bu nedenle ayrı kanıt mesajları ekleme.",
+ "admin_and_system.enforcement_evidence_not_found": "Kanıt mesajlarından biri bulunamadı.",
+ "admin_and_system.enforcement_evidence_not_subject": "Her kanıt mesajı, bu kararın ilgili olduğu hesaba veya topluluğa ait olmalı.",
+ "admin_and_system.enforcement_evidence_required": "Bu karar için en az bir kanıt mesajı gerekli.",
+ "admin_and_system.enforcement_facts_required": "Bir kanıt mesajı veya kullanıcıya bir not ekle.",
+ "admin_and_system.enforcement_internal_note_required": "X-Audit-Log-Reason başlığına bir dahili not ekle.",
+ "admin_and_system.enforcement_kind_not_allowed": "Bu neden bu işlem için kullanılamaz.",
+ "admin_and_system.enforcement_limit_end_invalid": "Yalnızca rapor kısıtlamasının bitiş tarihi olabilir ve bu tarih önümüzdeki 365 gün içinde olmalı.",
+ "admin_and_system.enforcement_limit_not_allowed": "Bu neden bu kısıtlama için kullanılamaz.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Ağları yalnızca kalıcı askıya alma veya ihlal edilen bir kural nedeniyle kapatma engelleyebilir.",
+ "admin_and_system.enforcement_network_shared": "Bu ağda en son kısıtlanmamış başka hesaplar etkindi, bu nedenle ağ engellenemez.",
+ "admin_and_system.enforcement_network_unknown": "Bu hesap son 30 gün içinde bu ağı kullanmadı.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Bu tür bir karar yalnızca geri alınarak sonlandırılabilir, çünkü kaldırılacak bir kısıtlama yok.",
+ "admin_and_system.enforcement_permanent_required": "Bu nedenle yapılan askıya almalar kalıcı olmalı.",
+ "admin_and_system.enforcement_report_mismatch": "Bağlı her rapor mevcut olmalı ve bu kararın ilgili olduğu hesap veya toplulukla ilgili olmalı.",
+ "admin_and_system.enforcement_report_required": "Kaynak bir rapor olduğunda en az bir rapor bağla.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Hak sahibi yalnızca telif hakkı kararlarında belirtilebilir.",
+ "admin_and_system.enforcement_rights_holder_required": "Telif hakkı kararları için hak sahibi veya ilgili hak gerekli.",
+ "admin_and_system.enforcement_statement_not_allowed": "Bu nedenle verilen kararlar kullanıcıya not içeremez.",
+ "admin_and_system.flag_requires_enforcement_route": "Bu bayrak bir kısıtlamanın parçası. Bunu askıya alma, silme veya özellik kısıtlama rotaları üzerinden değiştir.",
"admin_and_system.general_error": "Bir şeyler ters gitti. Daha sonra tekrar dene.",
"admin_and_system.guild_id_required_for_search_index": "Topluluk kimliği, kanal mesajı ve üye arama indeksleri için gerekli.",
"admin_and_system.instance_policy_transition_not_allowed": "Bu kurulum politikası değişikliğine izin verilmiyor.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Geçersiz zaman damgası.",
"admin_and_system.invalid_timezone_identifier": "Geçersiz saat dilimi tanımlayıcısı.",
"admin_and_system.missing_acl": "ACL eksik.",
+ "admin_and_system.moderation_basis_required": "Mesajları silmek için bir dayanak belirt.",
"admin_and_system.must_be_iso_timestamp": "Geçerli bir ISO zaman damgası olmalı.",
"admin_and_system.processing_failed": "İsteği işleyemedik. Tekrar dene.",
"admin_and_system.resource_locked": "Bu kaynak şu anda değiştiriliyor. Lütfen kısa süre sonra tekrar dene.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Hediye kodu kullanılıyor. Birazdan tekrar dene.",
"invites_and_gifts.unknown_gift_code": "Bilinmeyen hediye kodu.",
"invites_and_packs.max_emojis_reached": "{count, plural, one {# emoji} other {# emoji}} sınırına ulaştın.",
- "limits.at_least_one_entry_required": "En az bir öğe gerekli.",
"limits.base64_length_invalid": "Base64 dize uzunluğu {min} ile {maxLength} karakter arasında olmalı.",
"limits.cannot_specify_before_and_after": "Hem `before` hem de `after` belirtemezsin.",
"limits.content_exceeds_max_length": "Metin {maxLength, plural, one {# karakteri} other {# karakteri}} geçemez.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Geçersiz DSA doğrulama kodu.",
"moderation_and_reports.invalid_report_flow_answers": "Bu yanıtlar rapor formuyla eşleşmiyor. Raporu yeniden başlat.",
"moderation_and_reports.ip_ban_declined": "Bu IP adresi engelleme listesine eklenemez.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Bu ağ engeli bir yaptırım kararına ait. Kaldırmak için kararı sonlandır.",
"moderation_and_reports.report_already_resolved": "Rapor zaten çözüldü.",
"moderation_and_reports.report_banned": "Rapor göndermen yasaklandı.",
"moderation_and_reports.report_flow_outdated": "Rapor formu sen doldururken değişti. Raporu yeniden başlat.",
+ "moderation_and_reports.report_outcome_invalid": "“İşlem yapıldı” çözümü için “ihlal yok” dışında bir sonuç gerekir. “Yinelenen” çözümü için tekrarladığı rapor gerekir ve bu çözüme sonuç verilemez. “İhlal yok” çözümüne başka bir sonuç verilemez.",
"moderation_and_reports.report_under_legal_hold": "Bu rapor yasal saklama kapsamında olduğu için silinemez.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Rapor göndermeden önce hesap kurulumunu tamamlamalısın.",
+ "moderation_and_reports.unknown_enforcement_decision": "Bilinmeyen yaptırım kararı.",
"moderation_and_reports.unknown_report": "Bilinmeyen rapor.",
"moderation_and_reports.user_is_not_banned": "Bu kullanıcı yasaklı değil.",
"names_and_normalization.name_empty_after_normalization": "Ad, normalleştirildikten sonra boş olamaz.",
- "permissions.global_ip_banned": "IP adresin {ipAddress}, platform yöneticileri tarafından {product_name} API'den kalıcı olarak engellendi. {appealEmail, select, null {Bunun bir hata olduğunu düşünüyorsan itiraz etmek için bu kurulumun yöneticileriyle iletişime geç.} other {Bunun bir hata olduğunu düşünüyorsan itiraz etmek için {appealEmail} ile iletişime geç.}} İtirazına bu IP adresini ekle.",
- "permissions.global_ip_temporarily_banned": "IP adresin {ipAddress}, {product_name} API'den geçici olarak engellendi. Engelleme süresi dolduğunda kendiliğinden kalkar. {appealEmail, select, null {Bunun bir hata olduğunu düşünüyorsan bu kurulumun yöneticileriyle iletişime geç ve bu IP adresini belirt.} other {Bunun bir hata olduğunu düşünüyorsan {appealEmail} ile iletişime geç ve bu IP adresini belirt.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name}, kurallarını ihlal eden etkinlik nedeniyle bu ağdan erişimi engelledi.} other {{product_name} bu ağdan erişimi engelledi.}} Bu ağı başkalarıyla paylaşıyorsan, örneğin okulda, işte, halka açık bir Wi-Fi ağında, mobil operatörün aracılığıyla ya da bir VPN üzerinden, bu engellemenin seninle hiçbir ilgisi olmayabilir. En hızlı çözüm ağ değiştirmektir, örneğin Wi-Fi yerine mobil veriye geçmek ya da VPN bağlantını açmak ya da kapatmak.{appealEmail, select, null {} other { Bu engellemenin bir hata olduğunu düşünüyorsan {appealEmail} adresine e-posta gönder ve IP adresini belirt: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name}, kurallarını ihlal eden etkinlik nedeniyle bu ağdan erişimi engelledi.} other {{product_name} bu ağdan erişimi engelledi.}} Engelleme {expiresAt} tarihinde sona eriyor. Bu ağı başkalarıyla paylaşıyorsan, örneğin okulda, işte, halka açık bir Wi-Fi ağında, mobil operatörün aracılığıyla ya da bir VPN üzerinden, bu engellemenin seninle hiçbir ilgisi olmayabilir. En hızlı çözüm ağ değiştirmektir, örneğin Wi-Fi yerine mobil veriye geçmek ya da VPN bağlantını açmak ya da kapatmak.{appealEmail, select, null {} other { Bu engellemenin bir hata olduğunu düşünüyorsan {appealEmail} adresine e-posta gönder ve IP adresini belirt: {ipAddress}.}}",
"permissions.missing_access": "Bu kaynağa veya özelliğe erişimin yok.",
"permissions.missing_permissions": "Bu eylemi gerçekleştirmek için gerekli izinlere sahip değilsin.",
"permissions.user_banned_from_guild": "Bu kullanıcı bu topluluktan yasaklandı.",
diff --git a/packages/errors/src/i18n/weblate/locales/uk.json b/packages/errors/src/i18n/weblate/locales/uk.json
index 8be683f16..dc12e2901 100644
--- a/packages/errors/src/i18n/weblate/locales/uk.json
+++ b/packages/errors/src/i18n/weblate/locales/uk.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL не можуть бути порожніми.",
"admin_and_system.admin_api_key_not_found": "API-ключ адміністратора не знайдено.",
"admin_and_system.deletion_failed": "Не вдалося видалити ресурс. Спробуй ще раз.",
+ "admin_and_system.enforcement_account_closed": "Цей акаунт закрито, тому його не можна тимчасово заблокувати.",
+ "admin_and_system.enforcement_confirmations_required": "Підтверди, що докази збережено і всі обов'язкові повідомлення подано.",
+ "admin_and_system.enforcement_decision_ended": "Це рішення вже припинило дію.",
+ "admin_and_system.enforcement_decision_owns_state": "Це обмеження встановлено рішенням про застосування заходів. Натомість заверши рішення.",
+ "admin_and_system.enforcement_decision_replaced": "Це рішення замінено пізнішим, тому його вже не можна завершити.",
+ "admin_and_system.enforcement_deletion_started": "Видалення цього акаунта вже почалося, тому рішення вже не можна завершити.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Повідомлення з особистого листування можна використати як докази, лише якщо це листування охоплює пов'язана скарга.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Повідомлення, які видаляються, зберігаються як докази, тому не додавай окремих повідомлень-доказів.",
+ "admin_and_system.enforcement_evidence_not_found": "Одне з повідомлень-доказів не знайдено.",
+ "admin_and_system.enforcement_evidence_not_subject": "Кожне повідомлення-доказ має належати акаунту або спільноті, яких стосується це рішення.",
+ "admin_and_system.enforcement_evidence_required": "Для цього рішення потрібне принаймні одне повідомлення-доказ.",
+ "admin_and_system.enforcement_facts_required": "Додай повідомлення-доказ або коментар для користувача.",
+ "admin_and_system.enforcement_internal_note_required": "Додай внутрішню нотатку в заголовку X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Цю причину не можна використати для цієї дії.",
+ "admin_and_system.enforcement_limit_end_invalid": "Дату завершення має лише обмеження на скарги, і вона має бути в межах наступних 365 днів.",
+ "admin_and_system.enforcement_limit_not_allowed": "Цю причину не можна використати для цього обмеження.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Блокувати мережі можна лише в разі безстрокового блокування або закриття акаунта за порушення правила.",
+ "admin_and_system.enforcement_network_shared": "У цій мережі востаннє були активні інші акаунти без обмежень, тому її не можна заблокувати.",
+ "admin_and_system.enforcement_network_unknown": "Цей акаунт не використовував цю мережу протягом останніх 30 днів.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Рішення такого типу можна завершити лише скасуванням, бо знімати нічого.",
+ "admin_and_system.enforcement_permanent_required": "Блокування з цієї причини мають бути безстроковими.",
+ "admin_and_system.enforcement_report_mismatch": "Кожна пов'язана скарга має існувати й стосуватися акаунта або спільноти, яких стосується це рішення.",
+ "admin_and_system.enforcement_report_required": "Якщо джерелом є скарга, пов'яжи з рішенням принаймні одну скаргу.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Правовласника можна вказати лише в рішеннях щодо авторського права.",
+ "admin_and_system.enforcement_rights_holder_required": "У рішеннях щодо авторського права потрібно вказати правовласника або відповідне право.",
+ "admin_and_system.enforcement_statement_not_allowed": "Рішення з цієї причини не можуть містити коментар для користувача.",
+ "admin_and_system.flag_requires_enforcement_route": "Цей прапорець є частиною обмеження. Зміни його через маршрути тимчасового блокування, видалення або обмеження функцій.",
"admin_and_system.general_error": "Щось пішло не так. Спробуй пізніше.",
"admin_and_system.guild_id_required_for_search_index": "Для пошукових індексів повідомлень каналу та учасників потрібен ID спільноти.",
"admin_and_system.instance_policy_transition_not_allowed": "Цю зміну правил екземпляра не дозволено.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Недійсна мітка часу.",
"admin_and_system.invalid_timezone_identifier": "Недійсний ідентифікатор часового поясу.",
"admin_and_system.missing_acl": "Немає ACL.",
+ "admin_and_system.moderation_basis_required": "Укажи підставу для видалення повідомлень.",
"admin_and_system.must_be_iso_timestamp": "Має бути дійсна мітка часу ISO.",
"admin_and_system.processing_failed": "Не вдалося обробити запит. Спробуй ще раз.",
"admin_and_system.resource_locked": "Цей ресурс зараз змінюється. Спробуй ще раз за мить.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Активація подарункового коду триває. Спробуй ще раз за мить.",
"invites_and_gifts.unknown_gift_code": "Невідомий подарунковий код.",
"invites_and_packs.max_emojis_reached": "Досягнуто максимуму: {count} {count, plural, one {емоджі} few {емоджі} many {емоджі} other {емоджі}}.",
- "limits.at_least_one_entry_required": "Потрібен принаймні один запис.",
"limits.base64_length_invalid": "Довжина рядка Base64 має бути від {min} до {maxLength} символів.",
"limits.cannot_specify_before_and_after": "Ти не можеш вказати одночасно `before` та `after`.",
"limits.content_exceeds_max_length": "Текст не повинен перевищувати {maxLength} {maxLength, plural, one {символ} few {символи} many {символів} other {символа}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Недійсний код підтвердження DSA.",
"moderation_and_reports.invalid_report_flow_answers": "Ці відповіді не відповідають формі звіту. Почни звіт заново.",
"moderation_and_reports.ip_ban_declined": "Цю IP-адресу неможливо додати до чорного списку.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Це блокування мережі належить до рішення про застосування заходів. Щоб його зняти, заверши рішення.",
"moderation_and_reports.report_already_resolved": "Звіт вже розглянуто.",
"moderation_and_reports.report_banned": "Тобі заборонено надсилати звіти.",
"moderation_and_reports.report_flow_outdated": "Форма звіту змінилася під час заповнення. Почни звіт заново.",
+ "moderation_and_reports.report_outcome_invalid": "Для статусу «вжито заходів» потрібен результат, відмінний від «порушень немає». Для статусу «дублікат» потрібна скарга, яку він повторює, а результат указувати не можна. Для статусу «порушень немає» інший результат указувати не можна.",
"moderation_and_reports.report_under_legal_hold": "Цей звіт перебуває під юридичним утриманням, і його не можна видалити.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Тобі потрібно завершити налаштування акаунта, щоб надсилати звіти.",
+ "moderation_and_reports.unknown_enforcement_decision": "Невідоме рішення про застосування заходів.",
"moderation_and_reports.unknown_report": "Невідомий звіт.",
"moderation_and_reports.user_is_not_banned": "Цей користувач не забанений.",
"names_and_normalization.name_empty_after_normalization": "Ім'я не може бути порожнім після нормалізації.",
- "permissions.global_ip_banned": "Адміністратори платформи назавжди заблокували твоїй IP-адресі {ipAddress} доступ до {product_name} API. {appealEmail, select, null {Якщо ти вважаєш, що це помилка, звернися до адміністраторів цього екземпляра, щоб подати апеляцію.} other {Якщо ти вважаєш, що це помилка, напиши на {appealEmail}, щоб подати апеляцію.}} Вкажи цю IP-адресу в апеляції.",
- "permissions.global_ip_temporarily_banned": "Твоїй IP-адресі {ipAddress} тимчасово заблоковано доступ до {product_name} API. Блокування зніметься автоматично, коли завершиться його строк. {appealEmail, select, null {Якщо ти вважаєш, що це помилка, звернися до адміністраторів цього екземпляра і вкажи цю IP-адресу.} other {Якщо ти вважаєш, що це помилка, напиши на {appealEmail} і вкажи цю IP-адресу.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} заблокував доступ із цієї мережі через дії, що порушили його правила.} other {{product_name} заблокував доступ із цієї мережі.}} Якщо ти користуєшся цією мережею разом з іншими людьми, наприклад у школі, на роботі, у громадській мережі Wi-Fi, через мобільного оператора чи VPN, це блокування може бути ніяк не пов'язане з тобою. Найшвидше змінити мережу, наприклад перейти з Wi-Fi на мобільний інтернет, або ввімкнути чи вимкнути VPN.{appealEmail, select, null {} other { Якщо ти вважаєш, що це блокування помилкове, напиши на {appealEmail} і вкажи свою IP-адресу: {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} заблокував доступ із цієї мережі через дії, що порушили його правила.} other {{product_name} заблокував доступ із цієї мережі.}} Блокування діє до {expiresAt}. Якщо ти користуєшся цією мережею разом з іншими людьми, наприклад у школі, на роботі, у громадській мережі Wi-Fi, через мобільного оператора чи VPN, це блокування може бути ніяк не пов'язане з тобою. Найшвидше змінити мережу, наприклад перейти з Wi-Fi на мобільний інтернет, або ввімкнути чи вимкнути VPN.{appealEmail, select, null {} other { Якщо ти вважаєш, що це блокування помилкове, напиши на {appealEmail} і вкажи свою IP-адресу: {ipAddress}.}}",
"permissions.missing_access": "Ти не маєш доступу до цього ресурсу або функції.",
"permissions.missing_permissions": "Ти не маєш потрібних дозволів для цієї дії.",
"permissions.user_banned_from_guild": "Цей користувач забанений у цій спільноті.",
diff --git a/packages/errors/src/i18n/weblate/locales/vi.json b/packages/errors/src/i18n/weblate/locales/vi.json
index 03620faa8..f825ce891 100644
--- a/packages/errors/src/i18n/weblate/locales/vi.json
+++ b/packages/errors/src/i18n/weblate/locales/vi.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL không được để trống.",
"admin_and_system.admin_api_key_not_found": "Không tìm thấy khóa API quản trị.",
"admin_and_system.deletion_failed": "Không thể xóa tài nguyên. Vui lòng thử lại.",
+ "admin_and_system.enforcement_account_closed": "Tài khoản này đã bị đóng nên không thể đình chỉ.",
+ "admin_and_system.enforcement_confirmations_required": "Hãy xác nhận rằng bằng chứng đã được lưu giữ và mọi báo cáo bắt buộc đã được gửi.",
+ "admin_and_system.enforcement_decision_ended": "Quyết định này đã kết thúc.",
+ "admin_and_system.enforcement_decision_owns_state": "Hạn chế này thuộc về một quyết định xử lý vi phạm. Hãy kết thúc quyết định đó.",
+ "admin_and_system.enforcement_decision_replaced": "Một quyết định sau đó đã thay thế quyết định này nên không thể kết thúc nó nữa.",
+ "admin_and_system.enforcement_deletion_started": "Quá trình xóa tài khoản này đã bắt đầu nên không thể kết thúc quyết định nữa.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Tin nhắn trong tin nhắn trực tiếp chỉ có thể dùng làm bằng chứng khi có báo cáo được liên kết bao gồm cuộc trò chuyện đó.",
+ "admin_and_system.enforcement_evidence_not_allowed": "Các tin nhắn bị xóa được lưu làm bằng chứng, vì vậy đừng thêm tin nhắn bằng chứng riêng.",
+ "admin_and_system.enforcement_evidence_not_found": "Không tìm thấy một trong các tin nhắn bằng chứng.",
+ "admin_and_system.enforcement_evidence_not_subject": "Mọi tin nhắn bằng chứng phải đến từ tài khoản hoặc cộng đồng mà quyết định này nhắm đến.",
+ "admin_and_system.enforcement_evidence_required": "Quyết định này cần ít nhất một tin nhắn bằng chứng.",
+ "admin_and_system.enforcement_facts_required": "Hãy thêm một tin nhắn bằng chứng hoặc một ghi chú gửi người dùng.",
+ "admin_and_system.enforcement_internal_note_required": "Hãy thêm ghi chú nội bộ vào header X-Audit-Log-Reason.",
+ "admin_and_system.enforcement_kind_not_allowed": "Không thể dùng lý do này cho hành động này.",
+ "admin_and_system.enforcement_limit_end_invalid": "Chỉ giới hạn báo cáo mới có ngày kết thúc, và ngày đó phải nằm trong 365 ngày tới.",
+ "admin_and_system.enforcement_limit_not_allowed": "Không thể dùng lý do này cho giới hạn này.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Chỉ lệnh đình chỉ vĩnh viễn hoặc việc đóng tài khoản do vi phạm quy tắc mới có thể chặn mạng.",
+ "admin_and_system.enforcement_network_shared": "Các tài khoản khác không bị hạn chế đã hoạt động gần nhất trên mạng này nên không thể chặn mạng.",
+ "admin_and_system.enforcement_network_unknown": "Tài khoản này chưa sử dụng mạng này trong 30 ngày qua.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Chỉ có thể kết thúc loại quyết định này bằng cách đảo ngược, vì không có gì để gỡ bỏ.",
+ "admin_and_system.enforcement_permanent_required": "Lệnh đình chỉ vì lý do này phải là vĩnh viễn.",
+ "admin_and_system.enforcement_report_mismatch": "Mọi báo cáo được liên kết phải tồn tại và liên quan đến tài khoản hoặc cộng đồng mà quyết định này nhắm đến.",
+ "admin_and_system.enforcement_report_required": "Hãy liên kết ít nhất một báo cáo khi nguồn là báo cáo.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "Chỉ có thể nêu chủ sở hữu quyền cho các quyết định về bản quyền.",
+ "admin_and_system.enforcement_rights_holder_required": "Quyết định về bản quyền cần có chủ sở hữu quyền hoặc quyền liên quan.",
+ "admin_and_system.enforcement_statement_not_allowed": "Quyết định vì lý do này không thể kèm ghi chú gửi người dùng.",
+ "admin_and_system.flag_requires_enforcement_route": "Cờ này là một phần của một hạn chế. Hãy thay đổi nó qua các route đình chỉ, xóa hoặc giới hạn tính năng.",
"admin_and_system.general_error": "Đã xảy ra lỗi. Vui lòng thử lại sau.",
"admin_and_system.guild_id_required_for_search_index": "ID cộng đồng là bắt buộc để tạo chỉ mục tìm kiếm cho tin nhắn kênh và thành viên.",
"admin_and_system.instance_policy_transition_not_allowed": "Không được phép thực hiện thay đổi này đối với chính sách của phiên bản.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Mốc thời gian không hợp lệ.",
"admin_and_system.invalid_timezone_identifier": "Mã định danh múi giờ không hợp lệ.",
"admin_and_system.missing_acl": "Thiếu ACL.",
+ "admin_and_system.moderation_basis_required": "Hãy nêu căn cứ để xóa các tin nhắn.",
"admin_and_system.must_be_iso_timestamp": "Phải là mốc thời gian ISO hợp lệ.",
"admin_and_system.processing_failed": "Không thể xử lý yêu cầu. Vui lòng thử lại.",
"admin_and_system.resource_locked": "Tài nguyên này đang được sửa đổi. Vui lòng thử lại sau một lát.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Đang đổi mã quà tặng. Hãy thử lại sau giây lát.",
"invites_and_gifts.unknown_gift_code": "Mã quà tặng không xác định.",
"invites_and_packs.max_emojis_reached": "Bạn đã đạt tối đa {count} {count, plural, other {emoji}}.",
- "limits.at_least_one_entry_required": "Cần ít nhất một mục.",
"limits.base64_length_invalid": "Độ dài chuỗi Base64 phải từ {min} đến {maxLength} ký tự.",
"limits.cannot_specify_before_and_after": "Bạn không thể chỉ định đồng thời `before` và `after`.",
"limits.content_exceeds_max_length": "Văn bản không được dài quá {maxLength} {maxLength, plural, other {ký tự}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Mã xác minh DSA không hợp lệ.",
"moderation_and_reports.invalid_report_flow_answers": "Những câu trả lời này không khớp với biểu mẫu báo cáo. Hãy bắt đầu lại báo cáo.",
"moderation_and_reports.ip_ban_declined": "Không thể thêm địa chỉ IP này vào danh sách chặn.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "Lệnh chặn mạng này thuộc về một quyết định xử lý vi phạm. Hãy kết thúc quyết định đó để gỡ bỏ lệnh chặn.",
"moderation_and_reports.report_already_resolved": "Báo cáo đã được giải quyết.",
"moderation_and_reports.report_banned": "Bạn đã bị cấm gửi báo cáo.",
"moderation_and_reports.report_flow_outdated": "Biểu mẫu báo cáo đã thay đổi trong khi bạn đang điền. Hãy bắt đầu lại báo cáo.",
+ "moderation_and_reports.report_outcome_invalid": "Cách giải quyết “đã xử lý” cần có kết quả khác “không vi phạm”. Cách giải quyết “trùng lặp” cần có báo cáo mà nó trùng lặp và không được có kết quả. Cách giải quyết “không vi phạm” không được có kết quả nào khác.",
"moderation_and_reports.report_under_legal_hold": "Báo cáo này đang bị lưu giữ theo yêu cầu pháp lý và không thể xóa.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "Bạn cần hoàn tất thiết lập tài khoản trước khi có thể gửi báo cáo.",
+ "moderation_and_reports.unknown_enforcement_decision": "Quyết định xử lý vi phạm không xác định.",
"moderation_and_reports.unknown_report": "Báo cáo không xác định.",
"moderation_and_reports.user_is_not_banned": "Người dùng này không bị cấm.",
"names_and_normalization.name_empty_after_normalization": "Tên không được để trống sau khi chuẩn hóa.",
- "permissions.global_ip_banned": "Địa chỉ IP của bạn {ipAddress} đã bị quản trị viên nền tảng chặn vĩnh viễn khỏi {product_name} API. {appealEmail, select, null {Nếu bạn cho rằng đây là nhầm lẫn, hãy liên hệ quản trị viên của máy chủ này để khiếu nại.} other {Nếu bạn cho rằng đây là nhầm lẫn, hãy liên hệ {appealEmail} để khiếu nại.}} Hãy kèm địa chỉ IP này trong khiếu nại.",
- "permissions.global_ip_temporarily_banned": "Địa chỉ IP của bạn {ipAddress} đã bị chặn tạm thời khỏi {product_name} API. Lệnh chặn sẽ tự động được gỡ khi hết hạn. {appealEmail, select, null {Nếu bạn cho rằng đây là nhầm lẫn, hãy liên hệ quản trị viên của máy chủ này và kèm theo địa chỉ IP này.} other {Nếu bạn cho rằng đây là nhầm lẫn, hãy liên hệ {appealEmail} và kèm theo địa chỉ IP này.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} đã chặn quyền truy cập từ mạng này do có hoạt động vi phạm quy tắc.} other {{product_name} đã chặn quyền truy cập từ mạng này.}} Nếu bạn dùng chung mạng này với người khác, ví dụ ở trường học, nơi làm việc, Wi-Fi công cộng, qua nhà mạng di động hoặc VPN, việc chặn này có thể không liên quan gì đến bạn. Cách khắc phục nhanh nhất là chuyển sang mạng khác, ví dụ dùng dữ liệu di động thay cho Wi-Fi, hoặc bật hay tắt VPN.{appealEmail, select, null {} other { Nếu bạn cho rằng việc chặn này là nhầm lẫn, hãy gửi email đến {appealEmail} và ghi kèm địa chỉ IP của bạn, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} đã chặn quyền truy cập từ mạng này do có hoạt động vi phạm quy tắc.} other {{product_name} đã chặn quyền truy cập từ mạng này.}} Việc chặn sẽ kết thúc vào {expiresAt}. Nếu bạn dùng chung mạng này với người khác, ví dụ ở trường học, nơi làm việc, Wi-Fi công cộng, qua nhà mạng di động hoặc VPN, việc chặn này có thể không liên quan gì đến bạn. Cách khắc phục nhanh nhất là chuyển sang mạng khác, ví dụ dùng dữ liệu di động thay cho Wi-Fi, hoặc bật hay tắt VPN.{appealEmail, select, null {} other { Nếu bạn cho rằng việc chặn này là nhầm lẫn, hãy gửi email đến {appealEmail} và ghi kèm địa chỉ IP của bạn, {ipAddress}.}}",
"permissions.missing_access": "Bạn không có quyền truy cập vào tài nguyên hoặc tính năng này.",
"permissions.missing_permissions": "Bạn không có quyền cần thiết để thực hiện hành động này.",
"permissions.user_banned_from_guild": "Người dùng này đã bị cấm khỏi cộng đồng này.",
diff --git a/packages/errors/src/i18n/weblate/locales/zh-CN.json b/packages/errors/src/i18n/weblate/locales/zh-CN.json
index d2ff3cb82..2a0d63533 100644
--- a/packages/errors/src/i18n/weblate/locales/zh-CN.json
+++ b/packages/errors/src/i18n/weblate/locales/zh-CN.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACL 不能为空。",
"admin_and_system.admin_api_key_not_found": "未找到管理员 API 密钥。",
"admin_and_system.deletion_failed": "无法删除资源。请重试。",
+ "admin_and_system.enforcement_account_closed": "此账号已关闭,因此无法封禁。",
+ "admin_and_system.enforcement_confirmations_required": "请确认证据已保全,且所有必要的报告均已提交。",
+ "admin_and_system.enforcement_decision_ended": "此决定已结束。",
+ "admin_and_system.enforcement_decision_owns_state": "此限制由一项处置决定管理。请改为结束该决定。",
+ "admin_and_system.enforcement_decision_replaced": "此决定已被后续决定取代,因此无法再结束。",
+ "admin_and_system.enforcement_deletion_started": "此账号的删除已经开始,因此无法再结束该决定。",
+ "admin_and_system.enforcement_evidence_dm_unreported": "只有当关联的举报涵盖该对话时,私信中的消息才能用作证据。",
+ "admin_and_system.enforcement_evidence_not_allowed": "被删除的消息会作为证据保存,因此请勿另外添加证据消息。",
+ "admin_and_system.enforcement_evidence_not_found": "找不到其中一条证据消息。",
+ "admin_and_system.enforcement_evidence_not_subject": "每条证据消息都必须来自此决定所针对的账号或社区。",
+ "admin_and_system.enforcement_evidence_required": "此决定至少需要一条证据消息。",
+ "admin_and_system.enforcement_facts_required": "请添加一条证据消息或给用户的说明。",
+ "admin_and_system.enforcement_internal_note_required": "请在 X-Audit-Log-Reason 标头中添加内部备注。",
+ "admin_and_system.enforcement_kind_not_allowed": "此原因不能用于此操作。",
+ "admin_and_system.enforcement_limit_end_invalid": "只有举报限制可以设置结束日期,且必须在未来 365 天内。",
+ "admin_and_system.enforcement_limit_not_allowed": "此原因不能用于此限制。",
+ "admin_and_system.enforcement_network_block_not_allowed": "只有因违反规则而作出的永久封禁或关闭才能封锁网络。",
+ "admin_and_system.enforcement_network_shared": "其他未受限制的账号最近一次活跃也是在此网络上,因此无法封锁此网络。",
+ "admin_and_system.enforcement_network_unknown": "此账号在过去 30 天内未使用过此网络。",
+ "admin_and_system.enforcement_outcome_not_allowed": "由于没有可解除的限制,此类决定只能通过撤销来结束。",
+ "admin_and_system.enforcement_permanent_required": "因此原因作出的封禁必须是永久封禁。",
+ "admin_and_system.enforcement_report_mismatch": "每个关联的举报都必须存在,且必须与此决定所针对的账号或社区有关。",
+ "admin_and_system.enforcement_report_required": "来源为举报时,请至少关联一个举报。",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "只有版权决定可以指定权利人。",
+ "admin_and_system.enforcement_rights_holder_required": "版权决定需要提供权利人或相关权利。",
+ "admin_and_system.enforcement_statement_not_allowed": "因此原因作出的决定不能包含给用户的说明。",
+ "admin_and_system.flag_requires_enforcement_route": "此标记是某项限制的一部分。请通过封禁、删除或功能限制路由进行更改。",
"admin_and_system.general_error": "出错了。请稍后重试。",
"admin_and_system.guild_id_required_for_search_index": "频道消息和成员搜索索引需要提供社区 ID。",
"admin_and_system.instance_policy_transition_not_allowed": "不允许进行此实例策略变更。",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "时间戳无效。",
"admin_and_system.invalid_timezone_identifier": "时区标识符无效。",
"admin_and_system.missing_acl": "缺少 ACL。",
+ "admin_and_system.moderation_basis_required": "请提供删除这些消息的依据。",
"admin_and_system.must_be_iso_timestamp": "必须是有效的 ISO 时间戳。",
"admin_and_system.processing_failed": "无法处理请求。请重试。",
"admin_and_system.resource_locked": "此资源正在修改中。请稍后重试。",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "礼品码正在兑换中。请稍后重试。",
"invites_and_gifts.unknown_gift_code": "未知礼品码。",
"invites_and_packs.max_emojis_reached": "你已达到 {count, plural, other {# 个表情}}的上限。",
- "limits.at_least_one_entry_required": "至少需要一个条目。",
"limits.base64_length_invalid": "Base64 字符串长度必须在 {min} 到 {maxLength} 个字符之间。",
"limits.cannot_specify_before_and_after": "你不能同时指定 `before` 和 `after`。",
"limits.content_exceeds_max_length": "文本不能超过 {maxLength, plural, other {# 个字符}}。",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "DSA 验证码无效。",
"moderation_and_reports.invalid_report_flow_answers": "这些回答与举报表单不匹配。请重新开始举报。",
"moderation_and_reports.ip_ban_declined": "此 IP 地址无法添加到黑名单。",
+ "moderation_and_reports.ip_ban_linked_to_decision": "此网络封锁属于一项处置决定。请结束该决定以将其移除。",
"moderation_and_reports.report_already_resolved": "举报已解决。",
"moderation_and_reports.report_banned": "你已被禁止提交举报。",
"moderation_and_reports.report_flow_outdated": "举报表单在你填写过程中已更新。请重新开始举报。",
+ "moderation_and_reports.report_outcome_invalid": "以“已处理”结案时必须指定“无违规”以外的结果。以“重复”结案时必须指定其重复的举报,且不能指定结果。以“无违规”结案时不能指定其他结果。",
"moderation_and_reports.report_under_legal_hold": "该举报处于法律保全状态,无法删除。",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "你需要完成账号设置才能提交举报。",
+ "moderation_and_reports.unknown_enforcement_decision": "未知的处置决定。",
"moderation_and_reports.unknown_report": "未知举报。",
"moderation_and_reports.user_is_not_banned": "此用户未被封禁。",
"names_and_normalization.name_empty_after_normalization": "规范化后名称不能为空。",
- "permissions.global_ip_banned": "你的 IP 地址 {ipAddress} 已被平台管理员永久禁止访问 {product_name} API。{appealEmail, select, null {如果你认为这是误判,请联系此实例的管理员申诉。} other {如果你认为这是误判,请联系 {appealEmail} 申诉。}}请在申诉中附上此 IP 地址。",
- "permissions.global_ip_temporarily_banned": "你的 IP 地址 {ipAddress} 已被临时禁止访问 {product_name} API。限制到期后会自动解除。{appealEmail, select, null {如果你认为这是误判,请联系此实例的管理员并附上此 IP 地址。} other {如果你认为这是误判,请联系 {appealEmail} 并附上此 IP 地址。}}",
+ "permissions.global_ip_banned": "{reason, select, shown {由于存在违反规则的活动,{product_name} 已封锁来自此网络的访问。} other {{product_name} 已封锁来自此网络的访问。}}如果你与他人共用此网络,例如在学校、在公司、使用公共 Wi-Fi、通过移动运营商或 VPN 上网,此封锁可能与你无关。最快的解决方法是切换网络,例如改用移动数据而不是 Wi-Fi,或者开启或关闭 VPN。{appealEmail, select, null {} other {如果你认为此封锁有误,请发送邮件至 {appealEmail},并附上你的 IP 地址 {ipAddress}。}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {由于存在违反规则的活动,{product_name} 已封锁来自此网络的访问。} other {{product_name} 已封锁来自此网络的访问。}}此封锁将于 {expiresAt} 结束。如果你与他人共用此网络,例如在学校、在公司、使用公共 Wi-Fi、通过移动运营商或 VPN 上网,此封锁可能与你无关。最快的解决方法是切换网络,例如改用移动数据而不是 Wi-Fi,或者开启或关闭 VPN。{appealEmail, select, null {} other {如果你认为此封锁有误,请发送邮件至 {appealEmail},并附上你的 IP 地址 {ipAddress}。}}",
"permissions.missing_access": "你无权访问此资源或功能。",
"permissions.missing_permissions": "你没有执行此操作所需的权限。",
"permissions.user_banned_from_guild": "此用户已被此社区封禁。",
diff --git a/packages/errors/src/i18n/weblate/locales/zh-TW.json b/packages/errors/src/i18n/weblate/locales/zh-TW.json
index 873840029..df76304a3 100644
--- a/packages/errors/src/i18n/weblate/locales/zh-TW.json
+++ b/packages/errors/src/i18n/weblate/locales/zh-TW.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "存取控制清單 (ACL) 不可為空。",
"admin_and_system.admin_api_key_not_found": "找不到管理 API 金鑰。",
"admin_and_system.deletion_failed": "我們無法刪除資源。請再試一次。",
+ "admin_and_system.enforcement_account_closed": "此帳號已關閉,因此無法停權。",
+ "admin_and_system.enforcement_confirmations_required": "請確認證據已保全,且所有必要的通報均已提出。",
+ "admin_and_system.enforcement_decision_ended": "此決定已經結束。",
+ "admin_and_system.enforcement_decision_owns_state": "此限制由一項處置決定管理。請改為結束該決定。",
+ "admin_and_system.enforcement_decision_replaced": "此決定已被後續的決定取代,因此無法再結束。",
+ "admin_and_system.enforcement_deletion_started": "此帳號的刪除已經開始,因此無法再結束該決定。",
+ "admin_and_system.enforcement_evidence_dm_unreported": "只有在關聯的檢舉涵蓋該對話時,私訊中的訊息才能用作證據。",
+ "admin_and_system.enforcement_evidence_not_allowed": "被移除的訊息會作為證據保存,因此請勿另外加入證據訊息。",
+ "admin_and_system.enforcement_evidence_not_found": "找不到其中一則證據訊息。",
+ "admin_and_system.enforcement_evidence_not_subject": "每則證據訊息都必須來自此決定所針對的帳號或社群。",
+ "admin_and_system.enforcement_evidence_required": "此決定至少需要一則證據訊息。",
+ "admin_and_system.enforcement_facts_required": "請加入一則證據訊息或給使用者的說明。",
+ "admin_and_system.enforcement_internal_note_required": "請在 X-Audit-Log-Reason 標頭中加入內部備註。",
+ "admin_and_system.enforcement_kind_not_allowed": "此原因不能用於此操作。",
+ "admin_and_system.enforcement_limit_end_invalid": "只有檢舉限制可以設定結束日期,且必須在未來 365 天內。",
+ "admin_and_system.enforcement_limit_not_allowed": "此原因不能用於此限制。",
+ "admin_and_system.enforcement_network_block_not_allowed": "只有因違反規則而做出的永久停權或關閉才能封鎖網路。",
+ "admin_and_system.enforcement_network_shared": "其他未受限制的帳號最近一次活動也是在此網路上,因此無法封鎖此網路。",
+ "admin_and_system.enforcement_network_unknown": "此帳號在過去 30 天內沒有使用過此網路。",
+ "admin_and_system.enforcement_outcome_not_allowed": "由於沒有可解除的限制,這類決定只能透過撤銷來結束。",
+ "admin_and_system.enforcement_permanent_required": "因此原因做出的停權必須是永久停權。",
+ "admin_and_system.enforcement_report_mismatch": "每則關聯的檢舉都必須存在,且必須與此決定所針對的帳號或社群有關。",
+ "admin_and_system.enforcement_report_required": "來源為檢舉時,請至少關聯一則檢舉。",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "只有著作權決定可以指定權利人。",
+ "admin_and_system.enforcement_rights_holder_required": "著作權決定需要提供權利人或相關權利。",
+ "admin_and_system.enforcement_statement_not_allowed": "因此原因做出的決定不能包含給使用者的說明。",
+ "admin_and_system.flag_requires_enforcement_route": "此標記是某項限制的一部分。請透過停權、刪除或功能限制路由進行變更。",
"admin_and_system.general_error": "發生錯誤。請稍後再試。",
"admin_and_system.guild_id_required_for_search_index": "頻道訊息和成員搜尋索引需要社群 ID。",
"admin_and_system.instance_policy_transition_not_allowed": "不允許進行此實例政策變更。",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "時間戳記無效。",
"admin_and_system.invalid_timezone_identifier": "時區識別碼無效。",
"admin_and_system.missing_acl": "缺少存取控制清單 (ACL)。",
+ "admin_and_system.moderation_basis_required": "請提供刪除這些訊息的依據。",
"admin_and_system.must_be_iso_timestamp": "必須為有效的 ISO 時間戳記。",
"admin_and_system.processing_failed": "我們無法處理要求。請再試一次。",
"admin_and_system.resource_locked": "這個資源正在修改中。請稍後再試一次。",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "禮物代碼兌換正在進行中。請稍後再試。",
"invites_and_gifts.unknown_gift_code": "未知的禮物代碼。",
"invites_and_packs.max_emojis_reached": "你已達到 {count, plural, other {# 個表情符號}}的上限。",
- "limits.at_least_one_entry_required": "至少需要一個項目。",
"limits.base64_length_invalid": "Base64 字串長度必須介於 {min} 到 {maxLength} 個字元之間。",
"limits.cannot_specify_before_and_after": "你無法同時指定 `before` 和 `after`。",
"limits.content_exceeds_max_length": "文字不得超過 {maxLength, plural, other {# 個字元}}。",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "無效的 DSA 驗證碼。",
"moderation_and_reports.invalid_report_flow_answers": "這些回答與檢舉表單不符。請重新開始檢舉。",
"moderation_and_reports.ip_ban_declined": "無法將此 IP 位址加入封鎖名單。",
+ "moderation_and_reports.ip_ban_linked_to_decision": "此網路封鎖屬於一項處置決定。請結束該決定以將其移除。",
"moderation_and_reports.report_already_resolved": "檢舉已解決。",
"moderation_and_reports.report_banned": "你已被禁止送出檢舉。",
"moderation_and_reports.report_flow_outdated": "檢舉表單在你填寫時已變更。請重新開始檢舉。",
+ "moderation_and_reports.report_outcome_invalid": "以「已處理」結案時必須指定「無違規」以外的結果。以「重複」結案時必須指定所重複的檢舉,且不能指定結果。以「無違規」結案時不能指定其他結果。",
"moderation_and_reports.report_under_legal_hold": "此檢舉受法律保全約束,無法刪除。",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "你必須完成帳號設定才能送出檢舉。",
+ "moderation_and_reports.unknown_enforcement_decision": "未知的處置決定。",
"moderation_and_reports.unknown_report": "未知的檢舉。",
"moderation_and_reports.user_is_not_banned": "此使用者未被封鎖。",
"names_and_normalization.name_empty_after_normalization": "名稱正規化後不能為空。",
- "permissions.global_ip_banned": "你的 IP 位址 {ipAddress} 已被平台管理員永久禁止存取 {product_name} API。{appealEmail, select, null {如果你認為這是誤判,請聯絡此實例的管理員申訴。} other {如果你認為這是誤判,請聯絡 {appealEmail} 申訴。}}請在申訴中附上此 IP 位址。",
- "permissions.global_ip_temporarily_banned": "你的 IP 位址 {ipAddress} 已被暫時禁止存取 {product_name} API。限制到期後會自動解除。{appealEmail, select, null {如果你認為這是誤判,請聯絡此實例的管理員並附上此 IP 位址。} other {如果你認為這是誤判,請聯絡 {appealEmail} 並附上此 IP 位址。}}",
+ "permissions.global_ip_banned": "{reason, select, shown {由於有違反規則的活動,{product_name} 已封鎖來自此網路的存取。} other {{product_name} 已封鎖來自此網路的存取。}}如果您與他人共用此網路,例如在學校、在公司、使用公共 Wi-Fi、透過電信業者或 VPN 上網,這項封鎖可能與您無關。最快的解決方法是切換網路,例如改用行動數據而非 Wi-Fi,或開啟或關閉 VPN。{appealEmail, select, null {} other {如果您認為這項封鎖有誤,請寄信至 {appealEmail},並附上您的 IP 位址 {ipAddress}。}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {由於有違反規則的活動,{product_name} 已封鎖來自此網路的存取。} other {{product_name} 已封鎖來自此網路的存取。}}這項封鎖將於 {expiresAt} 結束。如果您與他人共用此網路,例如在學校、在公司、使用公共 Wi-Fi、透過電信業者或 VPN 上網,這項封鎖可能與您無關。最快的解決方法是切換網路,例如改用行動數據而非 Wi-Fi,或開啟或關閉 VPN。{appealEmail, select, null {} other {如果您認為這項封鎖有誤,請寄信至 {appealEmail},並附上您的 IP 位址 {ipAddress}。}}",
"permissions.missing_access": "你沒有權限使用此資源或功能。",
"permissions.missing_permissions": "你沒有執行此動作所需的權限。",
"permissions.user_banned_from_guild": "此使用者已被此社群封鎖。",
diff --git a/packages/errors/src/i18n/weblate/messages.json b/packages/errors/src/i18n/weblate/messages.json
index 3d52f9a9b..00090fd4e 100644
--- a/packages/errors/src/i18n/weblate/messages.json
+++ b/packages/errors/src/i18n/weblate/messages.json
@@ -15,6 +15,33 @@
"admin_and_system.acls_must_be_non_empty": "ACLs must be non-empty.",
"admin_and_system.admin_api_key_not_found": "Admin API key wasn't found.",
"admin_and_system.deletion_failed": "We couldn't delete the resource. Please try again.",
+ "admin_and_system.enforcement_account_closed": "This account is closed, so it can't be suspended.",
+ "admin_and_system.enforcement_confirmations_required": "Confirm that the evidence is preserved and that any required report is filed.",
+ "admin_and_system.enforcement_decision_ended": "This decision has already ended.",
+ "admin_and_system.enforcement_decision_owns_state": "An enforcement decision owns this restriction. End the decision instead.",
+ "admin_and_system.enforcement_decision_replaced": "A later decision replaced this one, so it can no longer be ended.",
+ "admin_and_system.enforcement_deletion_started": "The deletion of this account has already started, so the decision can no longer be ended.",
+ "admin_and_system.enforcement_evidence_dm_unreported": "Messages in direct messages can only be used as evidence when a linked report covers that conversation.",
+ "admin_and_system.enforcement_evidence_not_allowed": "The messages being removed are saved as evidence, so leave out separate evidence messages.",
+ "admin_and_system.enforcement_evidence_not_found": "One of the evidence messages wasn't found.",
+ "admin_and_system.enforcement_evidence_not_subject": "Every evidence message must be from the account or community this decision is about.",
+ "admin_and_system.enforcement_evidence_required": "This decision needs at least one evidence message.",
+ "admin_and_system.enforcement_facts_required": "Add an evidence message or a note to the user.",
+ "admin_and_system.enforcement_internal_note_required": "Add an internal note in the X-Audit-Log-Reason header.",
+ "admin_and_system.enforcement_kind_not_allowed": "This reason can't be used for this action.",
+ "admin_and_system.enforcement_limit_end_invalid": "Only a reports limit has an end date, and it must be within the next 365 days.",
+ "admin_and_system.enforcement_limit_not_allowed": "This reason can't be used for this limit.",
+ "admin_and_system.enforcement_network_block_not_allowed": "Only a permanent suspension or a closure for a broken rule can block networks.",
+ "admin_and_system.enforcement_network_shared": "Other accounts that aren't restricted were last active on this network, so it can't be blocked.",
+ "admin_and_system.enforcement_network_unknown": "This account hasn't used this network in the last 30 days.",
+ "admin_and_system.enforcement_outcome_not_allowed": "Only a reversal can end this kind of decision, because there is nothing to lift.",
+ "admin_and_system.enforcement_permanent_required": "Suspensions for this reason must be permanent.",
+ "admin_and_system.enforcement_report_mismatch": "Every linked report must exist and be about the account or community this decision is about.",
+ "admin_and_system.enforcement_report_required": "Link at least one report when the source is a report.",
+ "admin_and_system.enforcement_rights_holder_not_allowed": "A rights holder can only be given for copyright decisions.",
+ "admin_and_system.enforcement_rights_holder_required": "Copyright decisions need the rights holder or the right concerned.",
+ "admin_and_system.enforcement_statement_not_allowed": "Decisions for this reason can't include a note to the user.",
+ "admin_and_system.flag_requires_enforcement_route": "This flag is part of a restriction. Change it through the suspension, deletion or feature limit routes.",
"admin_and_system.general_error": "Something went wrong. Please try again later.",
"admin_and_system.guild_id_required_for_search_index": "Community ID is required for channel message and member search indexes.",
"admin_and_system.instance_policy_transition_not_allowed": "This instance policy change is not allowed.",
@@ -31,6 +58,7 @@
"admin_and_system.invalid_timestamp": "Invalid timestamp.",
"admin_and_system.invalid_timezone_identifier": "Invalid time zone identifier.",
"admin_and_system.missing_acl": "Missing ACL.",
+ "admin_and_system.moderation_basis_required": "Give a basis to delete the messages.",
"admin_and_system.must_be_iso_timestamp": "Must be a valid ISO timestamp.",
"admin_and_system.processing_failed": "We couldn't process the request. Please try again.",
"admin_and_system.resource_locked": "This resource is being modified. Please try again shortly.",
@@ -293,7 +321,6 @@
"invites_and_gifts.stripe_gift_redemption_in_progress": "Gift code redemption is in progress. Try again in a moment.",
"invites_and_gifts.unknown_gift_code": "Unknown gift code.",
"invites_and_packs.max_emojis_reached": "You've reached the maximum of {count, plural, one {# emoji} other {# emojis}}.",
- "limits.at_least_one_entry_required": "At least one entry is required.",
"limits.base64_length_invalid": "Base64 string length must be between {min} and {maxLength} characters.",
"limits.cannot_specify_before_and_after": "You can't specify both `before` and `after`.",
"limits.content_exceeds_max_length": "Text must not exceed {maxLength, plural, one {# character} other {# characters}}.",
@@ -358,16 +385,19 @@
"moderation_and_reports.invalid_dsa_verification_code": "Invalid DSA verification code.",
"moderation_and_reports.invalid_report_flow_answers": "These answers don't match the report form. Start the report again.",
"moderation_and_reports.ip_ban_declined": "This IP address cannot be added to the blocklist.",
+ "moderation_and_reports.ip_ban_linked_to_decision": "This network block belongs to an enforcement decision. End the decision to remove it.",
"moderation_and_reports.report_already_resolved": "Report already resolved.",
"moderation_and_reports.report_banned": "You've been banned from submitting reports.",
"moderation_and_reports.report_flow_outdated": "The report form changed while you were filling it in. Start the report again.",
+ "moderation_and_reports.report_outcome_invalid": "An actioned resolution needs an outcome other than no violation. A duplicate needs the report it repeats and takes no outcome. A no violation resolution takes no other outcome.",
"moderation_and_reports.report_under_legal_hold": "This report is under a legal hold and can't be deleted.",
"moderation_and_reports.unclaimed_account_cannot_submit_reports": "You need to complete your account setup before you can submit reports.",
+ "moderation_and_reports.unknown_enforcement_decision": "Unknown enforcement decision.",
"moderation_and_reports.unknown_report": "Unknown report.",
"moderation_and_reports.user_is_not_banned": "This user isn't banned.",
"names_and_normalization.name_empty_after_normalization": "Name can't be empty after normalization.",
- "permissions.global_ip_banned": "Your IP address {ipAddress} has been permanently blocked from the {product_name} API by platform administrators. {appealEmail, select, null {If you believe this is a mistake, contact the administrators of this instance to appeal.} other {If you believe this is a mistake, contact {appealEmail} to appeal.}} Include this IP address in your appeal.",
- "permissions.global_ip_temporarily_banned": "Your IP address {ipAddress} has been temporarily blocked from the {product_name} API. The block lifts on its own when it expires. {appealEmail, select, null {If you think this is a mistake, contact the administrators of this instance and include this IP address.} other {If you think this is a mistake, contact {appealEmail} and include this IP address.}}",
+ "permissions.global_ip_banned": "{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}",
+ "permissions.global_ip_temporarily_banned": "{reason, select, shown {{product_name} blocked access from this network because of activity that broke its rules.} other {{product_name} blocked access from this network.}} The block ends on {expiresAt}. If you share this network, for example at school, at work, on public Wi-Fi, through your mobile carrier or a VPN, this block may have nothing to do with you. The quickest fix is to switch networks, for example to mobile data instead of Wi-Fi, or to turn your VPN on or off.{appealEmail, select, null {} other { If you think this block is a mistake, email {appealEmail} and include your IP address, {ipAddress}.}}",
"permissions.missing_access": "You don't have access to this resource or feature.",
"permissions.missing_permissions": "You don't have the permissions required to perform this action.",
"permissions.user_banned_from_guild": "This user is banned from this community.",
diff --git a/packages/i18n/src/runtime/MessageCatalogTypes.ts b/packages/i18n/src/runtime/MessageCatalogTypes.ts
index d37b2ab50..3a2ebf817 100644
--- a/packages/i18n/src/runtime/MessageCatalogTypes.ts
+++ b/packages/i18n/src/runtime/MessageCatalogTypes.ts
@@ -25,17 +25,16 @@ type PlaceholderName<T extends string> = ValidPlaceholderName<PlaceholderHead<T>
type PlaceholderNameAfterOpen<T extends string> = T extends `${infer Placeholder}}${string}`
? PlaceholderName<Placeholder>
: never;
-type RestAfterPlaceholder<T extends string> = T extends `${string}}${infer Rest}` ? Rest : '';
type NumericPlaceholderNameAfterOpen<T extends string> = T extends `${infer Name}, plural,${string}`
- ? PlaceholderName<Name>
+ ? ValidPlaceholderName<Trim<Name>>
: T extends `${infer Name}, selectordinal,${string}`
- ? PlaceholderName<Name>
+ ? ValidPlaceholderName<Trim<Name>>
: never;
type TemplatePlaceholderNames<T extends string> = T extends `${string}{${infer AfterOpen}`
- ? PlaceholderNameAfterOpen<AfterOpen> | TemplatePlaceholderNames<RestAfterPlaceholder<AfterOpen>>
+ ? PlaceholderNameAfterOpen<AfterOpen> | TemplatePlaceholderNames<AfterOpen>
: never;
type NumericTemplatePlaceholderNames<T extends string> = T extends `${string}{${infer AfterOpen}`
- ? NumericPlaceholderNameAfterOpen<AfterOpen> | NumericTemplatePlaceholderNames<RestAfterPlaceholder<AfterOpen>>
+ ? NumericPlaceholderNameAfterOpen<AfterOpen> | NumericTemplatePlaceholderNames<AfterOpen>
: never;
export type MessageVariablesForTemplate<T extends string> = [TemplatePlaceholderNames<T>] extends [never]
? never
diff --git a/packages/i18n/src/runtime/tests/MessageCatalogTypes.test.ts b/packages/i18n/src/runtime/tests/MessageCatalogTypes.test.ts
index f3769132b..c585e19f6 100644
--- a/packages/i18n/src/runtime/tests/MessageCatalogTypes.test.ts
+++ b/packages/i18n/src/runtime/tests/MessageCatalogTypes.test.ts
@@ -43,4 +43,13 @@ describe('message catalog type helpers', () => {
expectTypeOf<Args>().toEqualTypeOf<[variables: {userName: string | number | boolean | Date}]>();
expectTypeOf<NoArgs>().toEqualTypeOf<[variables?: undefined]>();
});
+ it('types placeholders nested inside select and plural cases', () => {
+ type Variables =
+ MessageVariablesForTemplate<'{all, select, yes {All gone.} other {{count, plural, =1 {# item} other {# items}} until {ends_at}.}}'>;
+ expectTypeOf<Variables>().toEqualTypeOf<{
+ all: string | number | boolean | Date;
+ count: number;
+ ends_at: string | number | boolean | Date;
+ }>();
+ });
});
diff --git a/packages/i18n/src/runtime/tests/StaticCatalogCompile.test.ts b/packages/i18n/src/runtime/tests/StaticCatalogCompile.test.ts
new file mode 100644
index 000000000..b491d1b79
--- /dev/null
+++ b/packages/i18n/src/runtime/tests/StaticCatalogCompile.test.ts
@@ -0,0 +1,89 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import * as fs from 'node:fs';
+import * as path from 'node:path';
+import {fileURLToPath} from 'node:url';
+import {extractMessageTemplateVariables} from '@fluxer/i18n/src/runtime/MessageCatalogTypes';
+import MessageFormat from '@messageformat/core';
+import {describe, expect, it} from 'vitest';
+
+const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../../..');
+
+const CATALOG_DIRS = {
+ content: 'fluxer_api/src/api/content_i18n/weblate',
+ email: 'fluxer_api/pkgs/email/src/email_i18n/weblate',
+ errors: 'packages/errors/src/i18n/weblate',
+} as const;
+
+type CatalogEntry = string | {subject: string; body: string};
+
+function readCatalog(file: string): Record<string, CatalogEntry> {
+ return JSON.parse(fs.readFileSync(file, 'utf8')) as Record<string, CatalogEntry>;
+}
+
+function templates(entry: CatalogEntry): Array<[string, string]> {
+ return typeof entry === 'string'
+ ? [['', entry]]
+ : [
+ ['.subject', entry.subject],
+ ['.body', entry.body],
+ ];
+}
+
+function sortedVariables(template: string): Array<string> {
+ return [...extractMessageTemplateVariables(template)].sort();
+}
+
+const CASES = Object.entries(CATALOG_DIRS).flatMap(([catalog, dir]) => {
+ const localeDir = path.join(REPO_ROOT, dir, 'locales');
+ return fs
+ .readdirSync(localeDir)
+ .filter((file) => file.endsWith('.json'))
+ .map((file) => ({
+ catalog,
+ locale: file.slice(0, -'.json'.length),
+ source: readCatalog(path.join(REPO_ROOT, dir, 'messages.json')),
+ messages: readCatalog(path.join(localeDir, file)),
+ }));
+});
+
+describe('static i18n catalogs', () => {
+ it('finds every catalog', () => {
+ expect(new Set(CASES.map((entry) => entry.catalog))).toEqual(new Set(Object.keys(CATALOG_DIRS)));
+ });
+
+ it.each(CASES.map((entry) => [`${entry.catalog} ${entry.locale}`, entry] as const))(
+ '%s compiles under the plural rules of its locale',
+ (_label, {locale, messages}) => {
+ const messageFormat = new MessageFormat(locale);
+ const failures = Object.entries(messages).flatMap(([key, entry]) =>
+ templates(entry).flatMap(([part, template]) => {
+ try {
+ messageFormat.compile(template);
+ return [];
+ } catch (error) {
+ return [`${key}${part}: ${String(error).split('\n')[0]}`];
+ }
+ }),
+ );
+ expect(failures).toEqual([]);
+ },
+ );
+
+ it.each(CASES.map((entry) => [`${entry.catalog} ${entry.locale}`, entry] as const))(
+ '%s uses the variables of the English source',
+ (_label, {source, messages}) => {
+ const mismatches = Object.entries(messages).flatMap(([key, entry]) => {
+ const sourceEntry = source[key];
+ if (sourceEntry === undefined) return [`${key}: not in the source catalog`];
+ const sourceTemplates = new Map(templates(sourceEntry));
+ return templates(entry).flatMap(([part, template]) => {
+ const expected = sortedVariables(sourceTemplates.get(part) ?? '');
+ const actual = sortedVariables(template);
+ return expected.join(',') === actual.join(',') ? [] : [`${key}${part}: ${actual} != ${expected}`];
+ });
+ });
+ expect(mismatches).toEqual([]);
+ },
+ );
+});
diff --git a/packages/schema/src/domains/admin/AdminGuildSchemas.ts b/packages/schema/src/domains/admin/AdminGuildSchemas.ts
index eaff65f38..15b33f075 100644
--- a/packages/schema/src/domains/admin/AdminGuildSchemas.ts
+++ b/packages/schema/src/domains/admin/AdminGuildSchemas.ts
@@ -5,6 +5,7 @@ import {
GuildOperations,
GuildOperationsDescriptions,
} from '@fluxer/constants/src/GuildConstants';
+import {CommunityRemovalBasis} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
import {GuildAuditLogListResponse} from '@fluxer/schema/src/domains/guild/GuildAuditLogSchemas';
import {GuildBanCreateRequest} from '@fluxer/schema/src/domains/guild/GuildRequestSchemas';
import {GuildFeatureSchema} from '@fluxer/schema/src/domains/guild/GuildResponseSchemas';
@@ -139,6 +140,12 @@ export const ClearGuildFieldsRequest = z.object({
export type ClearGuildFieldsRequest = z.infer<typeof ClearGuildFieldsRequest>;
+export const AdminGuildDeleteRequest = z.object({
+ basis: CommunityRemovalBasis,
+});
+
+export type AdminGuildDeleteRequest = z.infer<typeof AdminGuildDeleteRequest>;
+
export const UpdateGuildVanityRequest = z.object({
guild_id: SnowflakeType.describe('ID of the guild to update'),
vanity_url_code: VanityURLCodeType.nullable().describe('New vanity URL code, or null to remove'),
diff --git a/packages/schema/src/domains/admin/AdminMessageSchemas.ts b/packages/schema/src/domains/admin/AdminMessageSchemas.ts
index 6c5e02819..b8487ba09 100644
--- a/packages/schema/src/domains/admin/AdminMessageSchemas.ts
+++ b/packages/schema/src/domains/admin/AdminMessageSchemas.ts
@@ -1,8 +1,13 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import {
+ BulkModerationBasis,
+ MessageDeletionBasis,
+ ModerationBasis,
+} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
import {FilenameType} from '@fluxer/schema/src/primitives/FileValidators';
import {createQueryIntegerType} from '@fluxer/schema/src/primitives/QueryValidators';
-import {Int32Type, SnowflakeType} from '@fluxer/schema/src/primitives/SchemaPrimitives';
+import {Int32Type, SnowflakeStringType, SnowflakeType} from '@fluxer/schema/src/primitives/SchemaPrimitives';
import {z} from 'zod';
const FALSE_QUERY_VALUES = ['false', 'False', '0'];
@@ -24,51 +29,39 @@ export const LookupMessageByAttachmentRequest = z.object({
export type LookupMessageByAttachmentRequest = z.infer<typeof LookupMessageByAttachmentRequest>;
-export const DeleteMessageRequest = z.object({
- channel_id: SnowflakeType,
- message_id: SnowflakeType,
+export const AdminMessageDeleteRequest = z.object({
+ basis: MessageDeletionBasis,
});
-export type DeleteMessageRequest = z.infer<typeof DeleteMessageRequest>;
+export type AdminMessageDeleteRequest = z.infer<typeof AdminMessageDeleteRequest>;
const MessageShredEntryType = z.object({
channel_id: SnowflakeType,
message_id: SnowflakeType,
});
-export const MessageShredRequest = z.object({
- user_id: SnowflakeType,
- entries: z.array(MessageShredEntryType).min(1).max(1000),
-});
-
-export type MessageShredRequest = z.infer<typeof MessageShredRequest>;
-
export const MessageShredResponse = z.object({
success: z.literal(true),
job_id: z.string(),
requested: z.number().int().min(0).optional(),
+ decision_id: SnowflakeStringType.optional().describe('The content removal decision, for an enforcement basis'),
});
export type MessageShredResponse = z.infer<typeof MessageShredResponse>;
-export const DeleteAllUserMessagesRequest = z.object({
- user_id: SnowflakeType,
- dry_run: z.boolean().default(true),
-});
-
-export type DeleteAllUserMessagesRequest = z.infer<typeof DeleteAllUserMessagesRequest>;
-
export const DeleteAllUserMessagesResponse = z.object({
success: z.literal(true),
dry_run: z.boolean(),
channel_count: Int32Type,
message_count: Int32Type,
job_id: z.string().optional(),
+ decision_id: SnowflakeStringType.optional().describe('The content removal decision, for an enforcement basis'),
});
export type DeleteAllUserMessagesResponse = z.infer<typeof DeleteAllUserMessagesResponse>;
export const BulkDeleteUserMessagesRequest = z.object({
user_ids: z.array(SnowflakeType).max(1000).describe('List of user IDs whose messages will be deleted'),
+ basis: BulkModerationBasis,
});
export type BulkDeleteUserMessagesRequest = z.infer<typeof BulkDeleteUserMessagesRequest>;
@@ -82,6 +75,7 @@ export type AdminMessageDetailQuery = z.infer<typeof AdminMessageDetailQuery>;
export const AdminUserMessageShredRequest = z.object({
entries: z.array(MessageShredEntryType).min(1).max(1000),
+ basis: ModerationBasis,
});
export type AdminUserMessageShredRequest = z.infer<typeof AdminUserMessageShredRequest>;
@@ -98,6 +92,14 @@ export const AdminUserMessageDeleteQuery = z.object({
export type AdminUserMessageDeleteQuery = z.infer<typeof AdminUserMessageDeleteQuery>;
+export const AdminUserMessageDeleteRequest = z.object({
+ basis: ModerationBasis.optional().describe(
+ 'Why the messages are removed. Required unless dry_run is true. An enforcement basis refuses child safety and violent extremism reasons',
+ ),
+});
+
+export type AdminUserMessageDeleteRequest = z.infer<typeof AdminUserMessageDeleteRequest>;
+
export const MessageShredJobIdParam = z.object({
job_id: SnowflakeType.describe('The ID of the message shred job'),
});
diff --git a/packages/schema/src/domains/admin/AdminSchemas.ts b/packages/schema/src/domains/admin/AdminSchemas.ts
index 7f23c0fc6..93ecad433 100644
--- a/packages/schema/src/domains/admin/AdminSchemas.ts
+++ b/packages/schema/src/domains/admin/AdminSchemas.ts
@@ -246,6 +246,18 @@ const ReportResolutionEnum = createNamedStringLiteralUnion(
'How the report was resolved',
);
+const ReportItemOutcomeEnum = createNamedStringLiteralUnion(
+ [
+ ['removed', 'removed', 'The reported content, profile field or community was removed'],
+ ['restricted', 'restricted', 'The reported account was restricted and the content was left up'],
+ ['action_taken', 'action_taken', 'Action was taken under the rules, and the reporter is not told which'],
+ ['no_violation', 'no_violation', 'The reported content or account does not break the rules and was left as it is'],
+ ],
+ 'What happened to the reported item',
+);
+
+export type ReportItemOutcome = z.infer<typeof ReportItemOutcomeEnum>;
+
export const UpdateReportRequest = z.object({
status: z.literal('resolved').describe('The status to move the report to'),
public_comment: createStringType(0, 512).optional().describe('Public comment to include with the resolution'),
@@ -255,7 +267,13 @@ export const UpdateReportRequest = z.object({
.describe(
'Whether to include the public comment in the notice sent to the reporter. The reporter is notified either way',
),
- resolution: ReportResolutionEnum.optional().describe('How the report was resolved'),
+ resolution: ReportResolutionEnum.describe('How the report was resolved'),
+ outcome: ReportItemOutcomeEnum.optional().describe(
+ 'What happened to the reported content or account. Required for actioned, where no_violation is refused. Optional for no_violation, where it can only be no_violation. Refused for duplicate. The reporter is told it',
+ ),
+ duplicate_of: SnowflakeType.optional().describe(
+ 'The report this one repeats. Required for duplicate and refused otherwise. The reporter is told the outcome of that report, or nothing while it has none',
+ ),
});
export type UpdateReportRequest = z.infer<typeof UpdateReportRequest>;
@@ -1173,6 +1191,9 @@ export const BanCheckResponseSchema = z.object({
.describe(
'ISO 8601 timestamp when the matching ban expires. Null when the ban is permanent, when nothing matches, and on every blocklist other than ip.',
),
+ decision_id: SnowflakeStringType.nullable().describe(
+ 'Enforcement decision the matching ip block belongs to. Null for a block added through the blocklist, when nothing matches, and on every blocklist other than ip.',
+ ),
});
export const BulkJobResponse = z.object({
job_id: SnowflakeStringType,
diff --git a/packages/schema/src/domains/admin/AdminUserSchemas.ts b/packages/schema/src/domains/admin/AdminUserSchemas.ts
index 4ab09944f..ee3e705e9 100644
--- a/packages/schema/src/domains/admin/AdminUserSchemas.ts
+++ b/packages/schema/src/domains/admin/AdminUserSchemas.ts
@@ -8,6 +8,12 @@ import {
UserFlagsDescriptions,
} from '@fluxer/constants/src/UserConstants';
import {ADMIN_ACL_COUNT, AdminAclType} from '@fluxer/schema/src/domains/admin/AdminAclType';
+import {
+ BulkModerationBasis,
+ ModerationBasis,
+ NetworkBlockRequest,
+ SkippedNetworkBlock,
+} from '@fluxer/schema/src/domains/admin/EnforcementSchemas';
import {CalendarDateType} from '@fluxer/schema/src/primitives/DateValidators';
import {NSFWLevelSchema} from '@fluxer/schema/src/primitives/GuildValidators';
import {createQueryIntegerType, QueryBooleanType} from '@fluxer/schema/src/primitives/QueryValidators';
@@ -20,11 +26,16 @@ import {
Int32Type,
SnowflakeStringType,
SnowflakeType,
- withFieldDescription,
} from '@fluxer/schema/src/primitives/SchemaPrimitives';
import {DiscriminatorType, EmailType, UsernameType} from '@fluxer/schema/src/primitives/UserValidators';
import {z} from 'zod';
+const DeletionReasonCodeType = createInt32EnumType(
+ Object.entries(DeletionReasons).map(([name, value]) => [value, name] as const),
+ 'Reason the account was scheduled for deletion',
+ 'DeletionReasonCode',
+);
+
export const UserAdminResponseSchema = z.object({
id: SnowflakeStringType,
username: z.string(),
@@ -57,8 +68,11 @@ export const UserAdminResponseSchema = z.object({
temp_banned_until: z.string().nullable(),
pending_deletion_at: z.string().nullable(),
pending_bulk_message_deletion_at: z.string().nullable(),
- deletion_reason_code: Int32Type.nullable(),
- deletion_public_reason: z.string().nullable(),
+ deletion_reason_code: DeletionReasonCodeType.nullable(),
+ deletion_public_reason: z
+ .string()
+ .nullable()
+ .describe('Public reason of a deletion scheduled before enforcement decisions existed. No longer written'),
deletion_audit_log_reason: z
.string()
.nullable()
@@ -67,6 +81,9 @@ export const UserAdminResponseSchema = z.object({
'ID of the account that scheduled the pending deletion, null when it was not recorded',
),
deletion_scheduled_at: z.string().nullable().describe('ISO 8601 timestamp when the pending deletion was scheduled'),
+ enforcement_decision_id: SnowflakeStringType.nullable().describe(
+ 'The enforcement decision behind the current suspension or closure, null when none owns it',
+ ),
acls: z.array(z.string()).max(ADMIN_ACL_COUNT),
traits: z.array(z.string()).max(100),
has_totp: z.boolean(),
@@ -119,6 +136,12 @@ export const UserMutationResponse = z.object({
export type UserMutationResponse = z.infer<typeof UserMutationResponse>;
+export const UserRestrictionResponse = UserMutationResponse.extend({
+ skipped_ips: z.array(SkippedNetworkBlock).describe('Requested network blocks that were not written, with the reason'),
+});
+
+export type UserRestrictionResponse = z.infer<typeof UserRestrictionResponse>;
+
export const LookupUserResponse = z.object({
users: z.array(UserAdminResponseSchema),
});
@@ -245,12 +268,7 @@ const UserProfileFieldEnum = createNamedStringLiteralUnion(
],
'User profile field that can be cleared',
);
-export const ClearUserFieldsRequest = z.object({
- user_id: SnowflakeType.describe('ID of the user to clear fields for'),
- fields: z.array(UserProfileFieldEnum).max(10).describe('List of profile fields to clear'),
-});
-
-export type ClearUserFieldsRequest = z.infer<typeof ClearUserFieldsRequest>;
+export type UserProfileField = z.infer<typeof UserProfileFieldEnum>;
export const SetUserBotStatusRequest = z.object({
user_id: SnowflakeType.describe('ID of the user to update'),
@@ -312,50 +330,14 @@ export const TerminateSessionsRequest = z.object({
export type TerminateSessionsRequest = z.infer<typeof TerminateSessionsRequest>;
-export const TempBanUserRequest = z.object({
- user_id: SnowflakeType.describe('ID of the user to temporarily ban'),
- duration_hours: z
- .number()
- .int()
- .min(0)
- .max(8760)
- .describe('Duration of the ban in hours. Use 0 for a permanent ban (until manually unbanned).'),
- reason: createStringType(0, 512).optional().describe('Reason shown to the user in the ban email'),
- notify_user: z
- .boolean()
- .default(true)
- .describe('Whether to email the user about a temporary ban. Permanent bans (duration_hours 0) are never emailed'),
-});
-
-export type TempBanUserRequest = z.infer<typeof TempBanUserRequest>;
-
-const DeletionReasonCodeType = createInt32EnumType(
- Object.entries(DeletionReasons).map(([name, value]) => [value, name] as const),
- 'Reason the account was scheduled for deletion',
- 'DeletionReasonCode',
-);
-
-export const ScheduleAccountDeletionRequest = z.object({
- user_id: SnowflakeType.describe('ID of the user to schedule deletion for'),
- reason_code: withFieldDescription(DeletionReasonCodeType, 'Code indicating the reason for deletion'),
- public_reason: createStringType(0, 512).optional().describe('Public-facing reason for the deletion'),
- days_until_deletion: z
- .number()
- .int()
- .min(1)
- .max(365)
- .default(60)
- .describe('Number of days until the account is deleted'),
- replace_pending_deletion_at: z.iso
- .datetime()
- .optional()
- .describe(
- 'pending_deletion_at of the deletion this request replaces. Required when a deletion is already scheduled for the account',
- ),
- notify_user: z.boolean().default(true).describe('Whether to email the user about the scheduled deletion'),
-});
-
-export type ScheduleAccountDeletionRequest = z.infer<typeof ScheduleAccountDeletionRequest>;
+const DaysUntilDeletionType = z
+ .number()
+ .int()
+ .min(1)
+ .max(365)
+ .describe(
+ 'Days until the account is deleted. Raised to 14, or to 74 when a rule was broken so an appeal can be reviewed first. Self-hosted instances have no appeals and raise every basis to 14',
+ );
export const SetUserAclsRequest = z.object({
user_id: SnowflakeType.describe('ID of the user to set ACLs for'),
@@ -392,14 +374,10 @@ export const BulkUpdateUserFlagsRequest = z.object({
export type BulkUpdateUserFlagsRequest = z.infer<typeof BulkUpdateUserFlagsRequest>;
-export const BulkScheduleUserDeletionRequest = ScheduleAccountDeletionRequest.omit({
- user_id: true,
- replace_pending_deletion_at: true,
-}).extend({
+export const BulkScheduleUserDeletionRequest = z.object({
user_ids: z.array(SnowflakeType).max(1000).describe('List of user IDs to schedule deletion for'),
- days_until_deletion: ScheduleAccountDeletionRequest.shape.days_until_deletion.describe(
- 'Number of days until the accounts are deleted',
- ),
+ days_until_deletion: DaysUntilDeletionType,
+ basis: BulkModerationBasis,
});
export type BulkScheduleUserDeletionRequest = z.infer<typeof BulkScheduleUserDeletionRequest>;
@@ -576,7 +554,10 @@ export const AdminUserWebAuthnCredentialParam = z.object({
export type AdminUserWebAuthnCredentialParam = z.infer<typeof AdminUserWebAuthnCredentialParam>;
-export const AdminUserClearFieldsRequest = ClearUserFieldsRequest.omit({user_id: true});
+export const AdminUserClearFieldsRequest = z.object({
+ fields: z.array(UserProfileFieldEnum).min(1).max(10).describe('List of profile fields to clear'),
+ basis: ModerationBasis,
+});
export type AdminUserClearFieldsRequest = z.infer<typeof AdminUserClearFieldsRequest>;
@@ -596,11 +577,21 @@ export const AdminUserEmailUpdateRequest = ChangeEmailRequest.omit({user_id: tru
export type AdminUserEmailUpdateRequest = z.infer<typeof AdminUserEmailUpdateRequest>;
-export const AdminUserBanRequest = TempBanUserRequest.omit({user_id: true});
-
-export type AdminUserBanRequest = z.infer<typeof AdminUserBanRequest>;
-
-export const AdminUserDeletionScheduleRequest = ScheduleAccountDeletionRequest.omit({user_id: true});
+export const AdminUserDeletionScheduleRequest = z.object({
+ days_until_deletion: DaysUntilDeletionType,
+ replace_pending_deletion_at: z.iso
+ .datetime()
+ .optional()
+ .describe(
+ 'pending_deletion_at of the deletion this request replaces. Required when a deletion is already scheduled for the account',
+ ),
+ basis: ModerationBasis,
+ remove_evidence: z
+ .boolean()
+ .optional()
+ .describe('Remove the evidence messages after they are snapshotted into the decision. Enforcement basis only'),
+ block_networks: NetworkBlockRequest.optional(),
+});
export type AdminUserDeletionScheduleRequest = z.infer<typeof AdminUserDeletionScheduleRequest>;
@@ -608,27 +599,10 @@ export const AdminUserDeletionCancelRequest = z.object({
expected_pending_deletion_at: z.iso
.datetime()
.describe('pending_deletion_at of the deletion being cancelled, as shown on the account'),
- notify_user: z.boolean().default(false).describe('Whether to email the user that the deletion was cancelled'),
});
export type AdminUserDeletionCancelRequest = z.infer<typeof AdminUserDeletionCancelRequest>;
-export const AdminUserUnbanRequest = z.object({
- notify_user: z.boolean().default(true).describe('Whether to email the user that the suspension was lifted'),
- public_reason: createStringType(0, 512)
- .optional()
- .describe('Reason shown to the user in the unban email. The audit log reason is never emailed'),
-});
-
-export type AdminUserUnbanRequest = z.infer<typeof AdminUserUnbanRequest>;
-
-export const AdminUserBanNoteRequest = z.object({
- ban_audit_log_id: SnowflakeType.describe('Audit log entry of the current ban that the note refers to'),
- note: createStringType(1, 512).describe('Note to append to the ban. Recorded as the reason of a new audit log entry'),
-});
-
-export type AdminUserBanNoteRequest = z.infer<typeof AdminUserBanNoteRequest>;
-
export const AdminUserAclsRequest = SetUserAclsRequest.omit({user_id: true});
export type AdminUserAclsRequest = z.infer<typeof AdminUserAclsRequest>;
diff --git a/packages/schema/src/domains/admin/EnforcementSchemas.ts b/packages/schema/src/domains/admin/EnforcementSchemas.ts
new file mode 100644
index 000000000..beb059078
--- /dev/null
+++ b/packages/schema/src/domains/admin/EnforcementSchemas.ts
@@ -0,0 +1,346 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {DeletionReasons} from '@fluxer/constants/src/Core';
+import {isEnforcementReasonCode} from '@fluxer/constants/src/EnforcementReasons';
+import {EnforcementKindType, EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
+import {createQueryIntegerType, QueryBooleanType} from '@fluxer/schema/src/primitives/QueryValidators';
+import {
+ createInt32EnumType,
+ createStringType,
+ Int32Type,
+ SnowflakeStringType,
+ SnowflakeType,
+} from '@fluxer/schema/src/primitives/SchemaPrimitives';
+import {z} from 'zod';
+
+export const EnforcementReasonCodeType = createInt32EnumType(
+ Object.entries(DeletionReasons).flatMap(([name, value]) =>
+ isEnforcementReasonCode(value) ? [[value, name] as const] : [],
+ ),
+ 'Reason code of an enforcement decision',
+ 'EnforcementReasonCode',
+);
+
+export const EnforcementDecisionInput = z
+ .object({
+ reason_code: EnforcementReasonCodeType,
+ source: z
+ .enum(['report', 'own_review'])
+ .describe('Whether the team reviewed this after a report or found it in its own review'),
+ automation: z
+ .enum(['none', 'flagged'])
+ .describe('Whether automated tools flagged this before a person on the team decided'),
+ report_ids: z
+ .array(SnowflakeType)
+ .max(20)
+ .optional()
+ .describe('Reports about the subject that this decision resolves. Required when the source is a report'),
+ evidence: z
+ .array(z.object({channel_id: SnowflakeType, message_id: SnowflakeType}))
+ .max(50)
+ .optional()
+ .describe(
+ 'Messages from the subject that the decision relies on. They are snapshotted when the decision is made',
+ ),
+ statement: createStringType(1, 500)
+ .optional()
+ .describe('Note to the user, shown in the notice. Never name or describe other people'),
+ rights_holder: createStringType(1, 200)
+ .optional()
+ .describe('The rights holder or the right concerned. Required for copyright decisions and refused otherwise'),
+ confirmations: z
+ .array(z.enum(['evidence_preserved', 'reports_filed_or_not_required']))
+ .max(2)
+ .optional()
+ .describe('Required for child safety and violent extremism decisions'),
+ })
+ .describe('Why the restriction is applied. The X-Audit-Log-Reason header is required and becomes the first note');
+
+export type EnforcementDecisionInput = z.infer<typeof EnforcementDecisionInput>;
+
+export const BulkEnforcementDecisionInput = z
+ .strictObject({
+ reason_code: EnforcementReasonCodeType,
+ source: z
+ .literal('own_review')
+ .describe('Bulk decisions cannot link reports, so the team always found them in its own review'),
+ automation: EnforcementDecisionInput.shape.automation,
+ statement: createStringType(1, 500).describe(
+ 'Note to the user, shown in every notice. It is the only fact a bulk decision can give',
+ ),
+ })
+ .describe('Why every account in the job is restricted. Reports and evidence messages are refused in bulk');
+
+export type BulkEnforcementDecisionInput = z.infer<typeof BulkEnforcementDecisionInput>;
+
+function enforcementBasis<Decision extends z.ZodType>(decision: Decision) {
+ return z
+ .object({type: z.literal('enforcement'), decision})
+ .describe('A rule was broken. Records an enforcement decision and sends its notice');
+}
+
+const HolderRequestBasis = z
+ .object({type: z.literal('holder_request')})
+ .describe('The account holder or community owner asked');
+
+const HousekeepingBasis = z
+ .object({type: z.literal('housekeeping')})
+ .describe("Nobody's conduct is involved, such as inactivity or cleanup");
+
+export const ModerationBasis = z
+ .discriminatedUnion('type', [enforcementBasis(EnforcementDecisionInput), HolderRequestBasis, HousekeepingBasis])
+ .describe('Why the action is taken');
+
+export type ModerationBasis = z.infer<typeof ModerationBasis>;
+
+export const BulkModerationBasis = z
+ .discriminatedUnion('type', [enforcementBasis(BulkEnforcementDecisionInput), HolderRequestBasis, HousekeepingBasis])
+ .describe('Why the action is taken');
+
+export type BulkModerationBasis = z.infer<typeof BulkModerationBasis>;
+
+export const MessageDeletionBasis = z
+ .discriminatedUnion('type', [HolderRequestBasis, HousekeepingBasis])
+ .describe(
+ 'Why the message is deleted. To remove a message for breaking a rule, shred it with an enforcement basis instead',
+ );
+
+export const CommunityRemovalBasis = z
+ .discriminatedUnion('type', [enforcementBasis(EnforcementDecisionInput), HolderRequestBasis])
+ .describe('Why the community is removed');
+
+export type CommunityRemovalBasis = z.infer<typeof CommunityRemovalBasis>;
+
+const NETWORK_BLOCK_DEFAULT_DAYS = 90;
+
+const IpAddressType = z.union([z.ipv4(), z.ipv6()]);
+
+export const NetworkBlockRequest = z
+ .object({
+ ips: z
+ .array(
+ createStringType(1, 45).refine(
+ (value) => IpAddressType.safeParse(value).success,
+ 'Must be a valid IPv4 or IPv6 address',
+ ),
+ )
+ .min(1)
+ .max(20)
+ .describe(
+ 'Addresses the account used in the last 30 days. An address on which another account that is not suspended or closed was last active is refused',
+ ),
+ days: z
+ .number()
+ .int()
+ .min(1)
+ .max(365)
+ .default(NETWORK_BLOCK_DEFAULT_DAYS)
+ .describe(
+ 'How many days the blocks last. Ending the decision or deleting the account removes them sooner. Defaults to 90',
+ ),
+ })
+ .describe(
+ 'Block networks the account used. Only with a permanent suspension or a closure for a broken rule. Requires BAN_IP_ADD and USER_VIEW_IP',
+ );
+
+export type NetworkBlockRequest = z.infer<typeof NetworkBlockRequest>;
+
+export const SkippedNetworkBlock = z.object({
+ ip: z.string(),
+ reason: z
+ .enum(['exempt', 'special_purpose', 'already_blocked'])
+ .describe(
+ 'Exempt addresses and special-purpose ranges such as private, shared carrier and documentation ranges are never blocked. An address that is already blocked permanently or by another decision is left as it is',
+ ),
+});
+
+export const NetworkBlockCandidatesResponse = z.object({
+ networks: z
+ .array(
+ z.object({
+ ip: z.string(),
+ last_seen_at: z.string().describe('When the account last used this address'),
+ skip_reason: z
+ .enum(['exempt', 'special_purpose'])
+ .nullable()
+ .describe('Why this address would be skipped. Null when it can be blocked'),
+ other_unrestricted_accounts: Int32Type.describe(
+ 'Other accounts that are not suspended or closed and were last active on this address. Blocking is refused when this is above zero',
+ ),
+ }),
+ )
+ .describe('Addresses the account used in the last 30 days, most recent first'),
+});
+
+export type NetworkBlockCandidatesResponse = z.infer<typeof NetworkBlockCandidatesResponse>;
+
+export const AdminUserBanRequest = z.object({
+ duration_hours: z
+ .number()
+ .int()
+ .min(0)
+ .max(8760)
+ .describe('Duration of the suspension in hours. Use 0 for a permanent suspension'),
+ decision: EnforcementDecisionInput,
+ remove_evidence: z
+ .boolean()
+ .optional()
+ .describe('Remove the evidence messages after they are snapshotted into the decision'),
+ block_networks: NetworkBlockRequest.optional(),
+});
+
+export type AdminUserBanRequest = z.infer<typeof AdminUserBanRequest>;
+
+export const AdminUserWarningRequest = z.object({
+ decision: EnforcementDecisionInput,
+});
+
+export type AdminUserWarningRequest = z.infer<typeof AdminUserWarningRequest>;
+
+export const AdminUserWarningResponse = z.object({
+ decision_id: SnowflakeStringType.describe('The warning decision'),
+});
+
+export const AdminUserFeatureLimitRequest = z.object({
+ limit: z
+ .enum(['direct_messages', 'reports', 'purchases'])
+ .describe(
+ 'The one feature this decision limits. Direct messages are for spam, automation, fraud and malware reasons only, reports for misuse of reporting, purchases for payment reasons',
+ ),
+ ends_at: z.iso
+ .datetime()
+ .optional()
+ .describe('When a reports limit ends, at most 365 days away. Defaults to 90 days. Refused for other limits'),
+ decision: EnforcementDecisionInput,
+});
+
+export type AdminUserFeatureLimitRequest = z.infer<typeof AdminUserFeatureLimitRequest>;
+
+export const EnforcementDecisionIdParam = z.object({
+ decision_id: SnowflakeType.describe('The ID of the enforcement decision'),
+});
+
+export const EnforcementDecisionListQuery = z
+ .object({
+ review_queue: QueryBooleanType.describe(
+ 'List the automated decisions waiting for a person to review them instead of one subject',
+ ),
+ subject_type: z.enum(['user', 'guild']).optional().describe('Kind of subject whose decisions to list'),
+ subject_id: SnowflakeType.optional().describe('ID of the user or community whose decisions to list'),
+ limit: createQueryIntegerType({defaultValue: 50, minValue: 1, maxValue: 100}).describe(
+ 'Maximum number of decisions to return',
+ ),
+ before: SnowflakeType.optional().describe('Return decisions with IDs lower than this decision ID'),
+ })
+ .refine((query) => query.review_queue || (query.subject_type !== undefined && query.subject_id !== undefined), {
+ error: 'Give subject_type and subject_id, or review_queue=true',
+ });
+
+export type EnforcementDecisionListQuery = z.infer<typeof EnforcementDecisionListQuery>;
+
+export const EnforcementDecisionNoteRequest = z.object({
+ body: createStringType(1, 2000).describe('The internal note. Staff only'),
+});
+
+export type EnforcementDecisionNoteRequest = z.infer<typeof EnforcementDecisionNoteRequest>;
+
+export const EnforcementDecisionEndRequest = z.object({
+ outcome: z
+ .enum(['lifted', 'reversed'])
+ .describe('Lifted ends a restriction that was correct. Reversed says the decision was wrong'),
+ statement: createStringType(1, 500).optional().describe('Note to the user, shown in the email'),
+});
+
+export type EnforcementDecisionEndRequest = z.infer<typeof EnforcementDecisionEndRequest>;
+
+const EnforcementDecisionSummary = z.object({
+ decision_id: SnowflakeStringType,
+ subject_type: z.enum(['user', 'guild']),
+ subject_id: SnowflakeStringType,
+ subject_name: z.string().nullable().describe('Community name or bot username when the decision was made'),
+ recipient_user_id: SnowflakeStringType.nullable().describe('Who receives the notice'),
+ kind: EnforcementKindType,
+ reason_code: Int32Type,
+ source: z.enum(['report', 'own_review']),
+ automation: z.enum(['none', 'flagged', 'automated']),
+ statement: z.string().nullable(),
+ rights_holder: z.string().nullable(),
+ ends_at: z.string().nullable(),
+ deletion_at: z.string().nullable(),
+ limit: z.enum(['direct_messages', 'reports', 'purchases']).nullable(),
+ profile_fields: z.array(z.string()),
+ removed_message_count: Int32Type.nullable(),
+ removed_all_messages: z.boolean(),
+ payment_at: z.string().nullable(),
+ report_ids: z.array(SnowflakeStringType).describe('Empty without the report view permission'),
+ decided_by: SnowflakeStringType,
+ created_at: z.string(),
+ status: z.enum(['active', 'ended']),
+ end_outcome: z
+ .enum(['lifted', 'reversed', 'expired'])
+ .nullable()
+ .describe('Expired is recorded by Fluxer when a temporary suspension runs out'),
+ ended_at: z.string().nullable(),
+ ended_by: SnowflakeStringType.nullable(),
+ end_statement: z.string().nullable(),
+ notice_status: z.enum(['pending', 'sent', 'undelivered']),
+ notice_channels: z.array(z.enum(['email', 'system_dm', 'sign_in'])),
+ notice_locale: z.string().nullable(),
+ notice_text: z.string().nullable().describe('The plain text that was sent'),
+ notice_sent_at: z.string().nullable(),
+ expired: z.boolean().describe('An active suspension or feature limit whose end has passed'),
+ replaced: z.boolean().describe('An active suspension or closure that a later decision replaced'),
+});
+
+const EnforcementDecisionNote = z.object({
+ note_id: SnowflakeStringType,
+ author_id: SnowflakeStringType,
+ body: z.string(),
+ created_at: z.string(),
+});
+
+const EnforcementEvidenceMessage = z.object({
+ message_id: SnowflakeStringType,
+ channel_id: SnowflakeStringType.nullable(),
+ timestamp: z.string(),
+ content: z.string().nullable().describe('Null without the message lookup permission, and for restricted decisions'),
+ attachments: z
+ .array(
+ z.object({
+ filename: z.string(),
+ size: z.string().nullable(),
+ content_type: z.string().nullable(),
+ }),
+ )
+ .nullable()
+ .describe('Attachment details without the files. Null without the message lookup permission'),
+ attachment_count: Int32Type,
+});
+
+export const EnforcementDecisionResponse = EnforcementDecisionSummary.extend({
+ notes: z.array(EnforcementDecisionNote),
+ evidence: z.array(EnforcementEvidenceMessage).describe('Empty once the evidence has expired'),
+ profile_values: z
+ .record(z.string(), z.string())
+ .nullable()
+ .describe('Profile values before a reset. Null without the message lookup permission'),
+ network_blocks: z
+ .array(
+ z.object({
+ ip: z.string().describe('Masked without the IP view permission'),
+ expires_at: z.string().nullable(),
+ }),
+ )
+ .describe('Network blocks that belong to this decision and have not expired'),
+ notice: EnforcementNotice.describe('What the holder sees now, rendered in English'),
+});
+
+export type EnforcementDecisionResponse = z.infer<typeof EnforcementDecisionResponse>;
+
+export const EnforcementDecisionListResponse = z.object({
+ decisions: z.array(EnforcementDecisionSummary),
+});
+
+export type EnforcementDecisionListResponse = z.infer<typeof EnforcementDecisionListResponse>;
+
+export const EnforcementDecisionNoteResponse = EnforcementDecisionNote;
diff --git a/packages/schema/src/domains/auth/EnforcementNoticeSchemas.ts b/packages/schema/src/domains/auth/EnforcementNoticeSchemas.ts
new file mode 100644
index 000000000..2e7d8e31f
--- /dev/null
+++ b/packages/schema/src/domains/auth/EnforcementNoticeSchemas.ts
@@ -0,0 +1,63 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {SnowflakeStringType} from '@fluxer/schema/src/primitives/SchemaPrimitives';
+import {z} from 'zod';
+
+export const EnforcementKindType = z
+ .enum(['warning', 'suspension', 'closure', 'feature_limit', 'content_removal', 'profile_reset', 'community_removal'])
+ .describe('What the decision did');
+
+export const EnforcementNotice = z.object({
+ decision_id: SnowflakeStringType.nullable().describe(
+ 'The decision reference. Null for restrictions from before decisions',
+ ),
+ kind: EnforcementKindType,
+ permanent: z.boolean().describe('Whether this is a suspension with no end'),
+ issued_at: z.string().nullable().describe('When the decision was made, as an ISO 8601 timestamp'),
+ ends_at: z.string().nullable().describe('When a suspension or feature limit ends, as an ISO 8601 timestamp'),
+ deletion_at: z.string().nullable().describe('When a closed account or bot is deleted, as an ISO 8601 timestamp'),
+ summary: z.string().describe('One sentence saying what happened'),
+ effects: z.array(z.string()).describe('What the decision means for the holder, one sentence each'),
+ rule: z
+ .object({
+ title: z.string().describe('Title of the rule that was broken'),
+ url: z.string().nullable().describe('Link to the rule, null when the instance publishes none'),
+ })
+ .nullable()
+ .describe('The rule the decision relies on, null when none was recorded'),
+ facts: z.array(z.string()).describe('The finding first, then where and when it happened'),
+ statement: z.string().nullable().describe('Note to the holder from the team'),
+ how_we_decided: z.array(z.string()).describe('How the case reached the team and who decided it'),
+ appeal: z
+ .object({
+ email: z.string().describe('Address that takes appeals'),
+ deadline: z.string().nullable().describe('Last day to appeal, already formatted for the reader'),
+ account_has_email: z.boolean().describe('Whether the account has an email address to write from'),
+ })
+ .nullable()
+ .describe('How to appeal, null when the instance offers no appeal route'),
+ redress: z.array(z.string()).describe('Other ways to challenge the decision'),
+});
+
+export type EnforcementNotice = z.infer<typeof EnforcementNotice>;
+
+export const NetworkBlock = z.object({
+ ip_address: z.string().describe('The blocked address the request came from'),
+ appeal_email: z
+ .string()
+ .nullable()
+ .describe('Address to write to about the block, null when the instance names none'),
+ appeals_supported: z.boolean().describe('Whether the instance takes appeals'),
+ ban_kind: z.enum(['permanent', 'temporary_24h']).describe('Whether the block has an end'),
+ expires_at: z.string().nullable().describe('When the block ends, as an ISO 8601 timestamp'),
+ reason: z
+ .object({
+ title: z.string().describe('Title of the rule behind the block'),
+ url: z.string().nullable().describe('Link to the rule, null when the instance publishes none'),
+ })
+ .nullable()
+ .describe('The rule behind the block, null when it is not shown'),
+ product_name: z.string().describe('Name of the instance, as the server writes it in its own messages'),
+});
+
+export type NetworkBlock = z.infer<typeof NetworkBlock>;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c5fa62e7b..39e3d6973 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1551,6 +1551,9 @@ importers:
'@babel/parser':
specifier: 8.0.5
version: 8.0.5
+ '@fluxer/errors':
+ specifier: workspace:*
+ version: link:../packages/errors
'@lingui/cli':
specifier: 'catalog:'
diff --git a/tools/dev/cassandra_target_schema.json b/tools/dev/cassandra_target_schema.json
index 31bc00fbb..d66175b13 100644
--- a/tools/dev/cassandra_target_schema.json
+++ b/tools/dev/cassandra_target_schema.json
@@ -1588,6 +1588,10 @@
{
"name": "created_at",
"type": "timestamp"
+ },
+ {
+ "name": "decision_id",
+ "type": "bigint"
}
],
"primary_key": "(ip)",
@@ -4111,6 +4115,221 @@
"primary_key": "((token_), user_id)",
"options": "default_time_to_live = 86400 AND gc_grace_seconds = 864000 AND compaction = {'class': 'TimeWindowCompactionStrategy', 'compaction_window_unit': 'HOURS', 'compaction_window_size': '1'}"
},
+ {
+ "name": "enforcement_decision_evidence",
+ "columns": [
+ {
+ "name": "decision_id",
+ "type": "bigint"
+ },
+ {
+ "name": "messages",
+ "type": "frozen<list<iar_message_context>>"
+ },
+ {
+ "name": "message_locations",
+ "type": "map<bigint, text>"
+ },
+ {
+ "name": "profile_values",
+ "type": "map<text, text>"
+ }
+ ],
+ "primary_key": "(decision_id)",
+ "options": "default_time_to_live = 31536000"
+ },
+ {
+ "name": "enforcement_decision_notes",
+ "columns": [
+ {
+ "name": "decision_id",
+ "type": "bigint"
+ },
+ {
+ "name": "note_id",
+ "type": "bigint"
+ },
+ {
+ "name": "author_id",
+ "type": "bigint"
+ },
+ {
+ "name": "body",
+ "type": "text"
+ },
+ {
+ "name": "created_at",
+ "type": "timestamp"
+ }
+ ],
+ "primary_key": "((decision_id), note_id)",
+ "options": "CLUSTERING ORDER BY (note_id ASC) AND default_time_to_live = 31536000"
+ },
+ {
+ "name": "enforcement_decisions",
+ "columns": [
+ {
+ "name": "decision_id",
+ "type": "bigint"
+ },
+ {
+ "name": "subject_type",
+ "type": "text"
+ },
+ {
+ "name": "subject_id",
+ "type": "bigint"
+ },
+ {
+ "name": "subject_name",
+ "type": "text"
+ },
+ {
+ "name": "recipient_user_id",
+ "type": "bigint"
+ },
+ {
+ "name": "kind",
+ "type": "text"
+ },
+ {
+ "name": "reason_code",
+ "type": "int"
+ },
+ {
+ "name": "source",
+ "type": "text"
+ },
+ {
+ "name": "automation",
+ "type": "text"
+ },
+ {
+ "name": "statement",
+ "type": "text"
+ },
+ {
+ "name": "rights_holder",
+ "type": "text"
+ },
+ {
+ "name": "ends_at",
+ "type": "timestamp"
+ },
+ {
+ "name": "deletion_at",
+ "type": "timestamp"
+ },
+ {
+ "name": "feature_limit",
+ "type": "text"
+ },
+ {
+ "name": "profile_fields",
+ "type": "set<text>"
+ },
+ {
+ "name": "removed_message_count",
+ "type": "int"
+ },
+ {
+ "name": "removed_all_messages",
+ "type": "boolean"
+ },
+ {
+ "name": "payment_at",
+ "type": "timestamp"
+ },
+ {
+ "name": "report_ids",
+ "type": "set<bigint>"
+ },
+ {
+ "name": "decided_by",
+ "type": "bigint"
+ },
+ {
+ "name": "created_at",
+ "type": "timestamp"
+ },
+ {
+ "name": "status",
+ "type": "text"
+ },
+ {
+ "name": "end_outcome",
+ "type": "text"
+ },
+ {
+ "name": "ended_at",
+ "type": "timestamp"
+ },
+ {
+ "name": "ended_by",
+ "type": "bigint"
+ },
+ {
+ "name": "end_statement",
+ "type": "text"
+ },
+ {
+ "name": "notice_status",
+ "type": "text"
+ },
+ {
+ "name": "notice_channels",
+ "type": "set<text>"
+ },
+ {
+ "name": "notice_locale",
+ "type": "text"
+ },
+ {
+ "name": "notice_text",
+ "type": "text"
+ },
+ {
+ "name": "notice_sent_at",
+ "type": "timestamp"
+ }
+ ],
+ "primary_key": "(decision_id)",
+ "options": ""
+ },
+ {
+ "name": "enforcement_decisions_by_subject",
+ "columns": [
+ {
+ "name": "subject_type",
+ "type": "text"
+ },
+ {
+ "name": "subject_id",
+ "type": "bigint"
+ },
+ {
+ "name": "decision_id",
+ "type": "bigint"
+ }
+ ],
+ "primary_key": "((subject_type, subject_id), decision_id)",
+ "options": "CLUSTERING ORDER BY (decision_id DESC)"
+ },
+ {
+ "name": "enforcement_review_queue",
+ "columns": [
+ {
+ "name": "bucket",
+ "type": "int"
+ },
+ {
+ "name": "decision_id",
+ "type": "bigint"
+ }
+ ],
+ "primary_key": "((bucket), decision_id)",
+ "options": "CLUSTERING ORDER BY (decision_id DESC)"
+ },
{
"name": "favorite_memes",
"columns": [
@@ -6146,6 +6365,10 @@
{
"name": "legal_hold_reason",
"type": "text"
+ },
+ {
+ "name": "reporter_outcome",
+ "type": "text"
}
],
"primary_key": "((report_id))",
@@ -8651,6 +8874,10 @@
{
"name": "content_hidden_since",
"type": "timestamp"
+ },
+ {
+ "name": "enforcement_decision_id",
+ "type": "bigint"
}
],
"primary_key": "((user_id))",