mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 20:28:52 +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
|
||||||
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
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue