Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
DatabaseUtils: Fix case embed generator pushing proof to thumbnail wh…
Browse files Browse the repository at this point in the history
…en not in full mode
  • Loading branch information
RealEthanPlayzDev committed Apr 26, 2024
1 parent 6b65ba4 commit b7ce318
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/classes/dbUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class MeteoriumDatabaseUtilities {
});

// Set the attachment proof if any exist
embed.setThumbnail(caseData.AttachmentProof == "" ? null : caseData.AttachmentProof);
embed.setImage(caseData.AttachmentProof == "" ? null : caseData.AttachmentProof);

// Include requester?
if (inclRequester && requester)
Expand Down Expand Up @@ -178,7 +178,10 @@ export default class MeteoriumDatabaseUtilities {
{ name: "Moderator note", value: caseData.ModeratorNote == "" ? "N/A" : caseData.ModeratorNote },
{ name: "Removed", value: caseData.Removed ? "Yes" : "No" },
]);
embed.setImage(caseData.ModeratorAttachment == "" ? null : caseData.ModeratorAttachment);
if (caseData.ModeratorAttachment != "") {
embed.setImage(caseData.ModeratorAttachment == "" ? null : caseData.ModeratorAttachment);
embed.setThumbnail(caseData.AttachmentProof == "" ? null : caseData.AttachmentProof);
}
}

// Created at
Expand Down

0 comments on commit b7ce318

Please sign in to comment.