mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(post): author edit reason was missing
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -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>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user