fix(post): author edit reason was missing

This commit is contained in:
Tom (plebeius.eth)
2024-06-24 17:52:41 +02:00
parent cc5ec37015
commit 0783374a30
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -197,11 +197,11 @@ const PostMessage = ({ post }: PostProps) => {
<span className={styles.editedInfo}>
{showOriginal && <Markdown content={original?.content} />}
<br />
(Edited at {getFormattedDate(edit?.timestamp)},{' '}
Comment edited at {getFormattedDate(edit?.timestamp)}. {reason && 'Reason: "' + reason + '". '}
<span className={styles.showOriginal} onClick={() => setShowOriginal(!showOriginal)}>
{showOriginal ? 'hide original' : 'show original'}
Click here
</span>
)
{showOriginal ? ' to hide the original.' : ' to show the original.'}
</span>
)}
</>
+3 -3
View File
@@ -154,11 +154,11 @@ const PostMessageMobile = ({ post }: PostProps) => {
<span className={styles.editedInfo}>
{showOriginal && <Markdown content={original?.content} />}
<br />
(Edited at {getFormattedDate(edit?.timestamp)},{' '}
Comment edited at {getFormattedDate(edit?.timestamp)}. {reason && 'Reason: "' + reason + '". '}
<span className={styles.showOriginal} onClick={() => setShowOriginal(!showOriginal)}>
{showOriginal ? 'hide original' : 'show original'}
Click here
</span>
)
{showOriginal ? ' to hide the original.' : ' to show the original.'}
</span>
)}
</>