mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 02:35:39 +03:00
Use readOnly, respect CWs for statuses in notifications
This commit is contained in:
parent
03e5c3ff54
commit
6a6162ec6e
2 changed files with 6 additions and 4 deletions
|
@ -334,14 +334,14 @@ function Notification({
|
|||
<Status
|
||||
status={actualStatus}
|
||||
size="s"
|
||||
previewMode
|
||||
readOnly
|
||||
allowContextMenu
|
||||
/>
|
||||
) : (
|
||||
<Status
|
||||
statusID={actualStatusID}
|
||||
size="s"
|
||||
previewMode
|
||||
readOnly
|
||||
allowContextMenu
|
||||
/>
|
||||
)}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue