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
status={actualStatus} status={actualStatus}
size="s" size="s"
previewMode readOnly
allowContextMenu allowContextMenu
/> />
) : ( ) : (
<Status <Status
statusID={actualStatusID} statusID={actualStatusID}
size="s" size="s"
previewMode readOnly
allowContextMenu allowContextMenu
/> />
)} )}

View file

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