[AB-xxx] fixing reason field in multiple places breaking using quotes

This commit is contained in:
Sheldan
2025-01-06 00:14:49 +01:00
parent 4bb260dfc8
commit 733340cd0a
11 changed files with 11 additions and 11 deletions

View File

@@ -25,7 +25,7 @@
,
{
"name": "<@safe_include "userBanned_field_title_reason"/>",
"value": "${reason}"
"value": "${reason?json_string}"
}
</#if>
]

View File

@@ -20,7 +20,7 @@
,
{
"name": "<@safe_include "userUnBanned_field_title_reason"/>",
"value": "${reason}"
"value": "${reason?json_string}"
}
</#if>
]

View File

@@ -1 +1 @@
You were banned from the server ${serverName} for `${reason}`.
You were banned from the server ${serverName} for `${reason?json_string}`.

View File

@@ -1,2 +1,2 @@
Infraction #${infractionId} with type `${type}` towards user ${infractionUserText} by user ${infractionCreatorUserText} on ${infractionDate}. It is **${decayed?then('decayed', 'active')}**. The reason was: `${reason}`.
Infraction #${infractionId} with type `${type}` towards user ${infractionUserText} by user ${infractionCreatorUserText} on ${infractionDate}. It is **${decayed?then('decayed', 'active')}**. The reason was: `${reason?json_string}`.
${parameterText}

View File

@@ -1 +1 @@
You were kicked from the server ${serverName} for the following reason: ${warning.reason}.
You were kicked from the server ${serverName} for the following reason: ${warning.reason?json_string}.

View File

@@ -1 +1 @@
You were muted on the server ${serverName} for the following reason: ${reason}.
You were muted on the server ${serverName} for the following reason: ${reason?json_string}.

View File

@@ -1,2 +1,2 @@
Mute #${muteId} of user ${mutedUserText} by user ${mutingUserText} on ${muteDate} which lasted ${muteDuration} (Mute ended: ${muteEnded}).
Reason: `${reason}`
Reason: `${reason?json_string}`

View File

@@ -1 +1 @@
You were warned on the server ${serverName} for the following reason: ${reason}.
You were warned on the server ${serverName} for the following reason: ${reason?json_string}.

View File

@@ -1 +1 @@
Warning #${warnId} towards user ${warnedUserText} by user ${warningUserText} on ${warnDate}. It is **${decayed?then('decayed', 'active')}**. The reason was: `${reason}`.
Warning #${warnId} towards user ${warnedUserText} by user ${warningUserText} on ${warnDate}. It is **${decayed?then('decayed', 'active')}**. The reason was: `${reason?json_string}`.

View File

@@ -1 +1 @@
${warnedUser} was warned on ${warnDate} with reason `${warnReason}` by ${warningUser}
${warnedUser} was warned on ${warnDate} with reason `${warnReason?json_string}` by ${warningUser}

View File

@@ -1 +1 @@
Your warning from ${warningDate} with the reason `${reason}` has been decayed. You have ${remainingWarningsCount} remaining active warnings.
Your warning from ${warningDate} with the reason `${reason?json_string}` has been decayed. You have ${remainingWarningsCount} remaining active warnings.