Rename username to discordUsername in DiscordAppeal and update references for clarity.

This commit is contained in:
2025-11-24 01:34:32 +01:00
parent bfb656e033
commit 5622db917b
4 changed files with 5 additions and 5 deletions
@@ -55,7 +55,7 @@ public class AppealDiscord {
MC UUID: %s
Submitted: %s
""".formatted(
safe(discordAppeal.username()),
safe(discordAppeal.discordUsername()),
discordAppeal.discordId(),
safe(String.valueOf(discordAppeal.uuid())),
createdAt
@@ -102,7 +102,7 @@ public class AppealMail {
helper.setFrom(fromEmail);
helper.setTo(APPEAL_EMAIL);
helper.setReplyTo(appeal.email());
helper.setSubject("New Appeal Submitted - " + appeal.username());
helper.setSubject("New Appeal Submitted - " + appeal.discordUsername());
return helper;
}
@@ -96,13 +96,13 @@
<main>
<img id="header-img" src="https://beta.alttd.com/public/img/logos/logo.png" alt="The Altitude Minecraft Server" height="159"
width="275">
<h1 style="text-align: center;" th:text="'Appeal by ' + ${appeal.username}">Appeal by Username</h1>
<h1 style="text-align: center;" th:text="'Appeal by ' + ${appeal.discordUsername}">Appeal by Username</h1>
<section class="columnSection">
<div class="columnContainer">
<div>
<h2>User information</h2>
<ul>
<li><strong>Username:</strong> <span th:text="${appeal.username}">username</span></li>
<li><strong>Username:</strong> <span th:text="${appeal.discordUsername}">username</span></li>
<li><strong>UUID:</strong> <span th:text="${appeal.uuid}">uuid</span></li>
<li><strong>Email:</strong> <span th:text="${appeal.email}">email</span></li>
<li><strong>Submitted at:</strong> <span th:text="${createdAt}">date</span></li>