[Glitch] Add data-nosnippet
attribute to remote posts and local posts with noindex
Port d8276ad1b4
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
52ce0a1c1d
commit
f188aa636c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue