misc: fix reply reason

This commit is contained in:
Xyphyn committed 2023-08-10 17:19:49 -07:00
1 parent 39ef7f99fe
commit 939f7276f7
1 file changed
+6 -4
@@ -29,9 +29,11 @@
: item.post.removed
: false
$: replyReason = `Your submission${
privateMessage ? `in ${item?.post.name}` : ' '
}was removed for:\n${reason}`
const getReplyReason = (reason: string) => {
return `Your submission in *"${item?.post.name}"* was removed for:\n${reason}`
}
$: replyReason = getReplyReason(reason)
async function remove() {
if (!item) return
@@ -186,7 +188,7 @@
bind:value={reason}
/>
{#if !removed && !purge}
{#if !removed}
<Checkbox bind:checked={commentReason}>Reply with reason</Checkbox>
{#if commentReason}