parent
47975d0fcc
commit
29c38c1f83
|
@ -27,7 +27,7 @@
|
||||||
<StatusContent :isStatusInOwnThread :isStatusInNotification
|
<StatusContent :isStatusInOwnThread :isStatusInNotification
|
||||||
:originalStatus :uuid shown="{{showContent}}"/>
|
:originalStatus :uuid shown="{{showContent}}"/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if originalStatus.media_attachments && originalStatus.media_attachments.length}}
|
{{#if showMedia }}
|
||||||
<StatusMediaAttachments :originalStatus :uuid
|
<StatusMediaAttachments :originalStatus :uuid
|
||||||
on:recalculateHeight />
|
on:recalculateHeight />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -206,6 +206,11 @@
|
||||||
},
|
},
|
||||||
spoilerShown: ($spoilersShown, uuid) => !!$spoilersShown[uuid],
|
spoilerShown: ($spoilersShown, uuid) => !!$spoilersShown[uuid],
|
||||||
replyShown: ($repliesShown, uuid) => !!$repliesShown[uuid],
|
replyShown: ($repliesShown, uuid) => !!$repliesShown[uuid],
|
||||||
|
showMedia: (originalStatus, isStatusInNotification) => {
|
||||||
|
return !isStatusInNotification
|
||||||
|
&& originalStatus.media_attachments
|
||||||
|
&& originalStatus.media_attachments.length
|
||||||
|
},
|
||||||
ariaLabel: (originalAccount, originalStatus, visibility) => {
|
ariaLabel: (originalAccount, originalStatus, visibility) => {
|
||||||
return (visibility === 'direct' ? 'Direct message' : 'Status') +
|
return (visibility === 'direct' ? 'Direct message' : 'Status') +
|
||||||
` by ${originalAccount.display_name || originalAccount.username}`
|
` by ${originalAccount.display_name || originalAccount.username}`
|
||||||
|
|
Loading…
Reference in New Issue