mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-04 05:53:07 -05:00
[Glitch] Add data-nosnippet
attribute to remote posts and local posts with noindex
Port c3a42e1280759ea28bee11f241aef892b148bf6a to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
6b7c47311d
commit
023673c0d9
@ -792,6 +792,7 @@ class Status extends ImmutablePureComponent {
|
|||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
data-featured={featured ? 'true' : null}
|
data-featured={featured ? 'true' : null}
|
||||||
aria-label={textForScreenReader(intl, status, rebloggedByText, !status.get('hidden'))}
|
aria-label={textForScreenReader(intl, status, rebloggedByText, !status.get('hidden'))}
|
||||||
|
data-nosnippet={status.getIn(['account', 'noindex'], true) || undefined}
|
||||||
>
|
>
|
||||||
{!muted && prepend}
|
{!muted && prepend}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user