Hide interaction menu items for non-same-instance statuses

This commit is contained in:
Lim Chee Aun 2023-03-14 14:11:40 +08:00
parent 2a80c42c87
commit 5882228b97

View file

@ -399,7 +399,7 @@ function Status({
</MenuItem>
)}
{(!isSizeLarge || !!editedAt) && <MenuDivider />}
{!isSizeLarge && (
{!isSizeLarge && sameInstance && (
<>
<MenuItem onClick={replyStatus}>
<Icon icon="reply" />
@ -471,7 +471,7 @@ function Status({
<span>Translate</span>
</MenuItem>
)}
{(!isSizeLarge || enableTranslate) && <MenuDivider />}
{((!isSizeLarge && sameInstance) || enableTranslate) && <MenuDivider />}
<MenuItem href={url} target="_blank">
<Icon icon="external" />
<small class="menu-double-lines">{nicePostURL(url)}</small>