~cytrogen/masto-fe

023673c0d9956065f29d9c080d5a0c27460a39f6 — Claire 2 years ago 6b7c473
[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>
1 files changed, 1 insertions(+), 0 deletions(-)

M app/javascript/flavours/glitch/components/status.jsx
M app/javascript/flavours/glitch/components/status.jsx => app/javascript/flavours/glitch/components/status.jsx +1 -0
@@ 792,6 792,7 @@ class Status extends ImmutablePureComponent {
          tabIndex={0}
          data-featured={featured ? 'true' : null}
          aria-label={textForScreenReader(intl, status, rebloggedByText, !status.get('hidden'))}
          data-nosnippet={status.getIn(['account', 'noindex'], true) || undefined}
        >
          {!muted && prepend}