Use readOnly, respect CWs for statuses in notifications

This commit is contained in:
Lim Chee Aun 2024-02-23 18:07:42 +08:00
parent 03e5c3ff54
commit 6a6162ec6e
2 changed files with 6 additions and 4 deletions

View file

@ -334,14 +334,14 @@ function Notification({
<Status
status={actualStatus}
size="s"
previewMode
readOnly
allowContextMenu
/>
) : (
<Status
statusID={actualStatusID}
size="s"
previewMode
readOnly
allowContextMenu
/>
)}

View file

@ -1503,7 +1503,7 @@ function Status({
{size !== 'l' &&
(_deleted ? (
<span class="status-deleted-tag">Deleted</span>
) : url && !previewMode && !quoted ? (
) : url && !previewMode && !readOnly && !quoted ? (
<Link
to={instance ? `/${instance}/s/${id}` : `/s/${id}`}
onClick={(e) => {
@ -1551,7 +1551,9 @@ function Status({
/>
)}{' '}
<RelativeTime datetime={createdAtDate} format="micro" />
{!previewMode && <Icon icon="more2" class="more" />}
{!previewMode && !readOnly && (
<Icon icon="more2" class="more" />
)}
</Link>
) : (
// <Menu