nicolium: don't show account lock state on statuses

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-09 15:25:38 +01:00
parent ae7b2b719e
commit d5cf46c029
4 changed files with 7 additions and 2 deletions

View File

@ -121,6 +121,7 @@ interface IAccount {
withDate?: boolean;
withLinkToProfile?: boolean;
withRelationship?: boolean;
withLocked?: boolean;
approvalStatus?: StatusApprovalStatus | null;
emoji?: string;
emojiUrl?: string;
@ -149,6 +150,7 @@ const Account = ({
withDate = false,
withLinkToProfile = true,
withRelationship = true,
withLocked = true,
approvalStatus,
emoji,
emojiUrl,
@ -309,7 +311,7 @@ const Account = ({
@{username}
</Text>
{!timestamp && account.locked && (
{withLocked && !timestamp && account.locked && (
<>
<Icon
src={require('@phosphor-icons/core/regular/lock.svg')}
@ -420,7 +422,7 @@ const Account = ({
@{username}
</Text>
{!timestamp && account.locked && (
{withLocked && !timestamp && account.locked && (
<>
<Icon
src={require('@phosphor-icons/core/regular/lock.svg')}

View File

@ -91,6 +91,7 @@ const QuotedStatus: React.FC<IQuotedStatus> = ({ status, onCancel, compose }) =>
withRelationship={false}
showAccountHoverCard={!compose}
withLinkToProfile={!compose}
withLocked={false}
/>
)}

View File

@ -619,6 +619,7 @@ const Status: React.FC<IStatus> = React.memo((props) => {
approvalStatus={actualStatus.approval_status}
avatarSize={avatarSize}
actionAlignment='top'
withLocked={false}
/>
</div>
)

View File

@ -111,6 +111,7 @@ const DetailedStatus: React.FC<IDetailedStatus> = ({
avatarSize={42}
hideActions
approvalStatus={actualStatus.approval_status}
withLocked={false}
/>
</div>
)}