From f188aa636cbc59efd7325114171b7fc1e16f7c47 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 25 Aug 2023 11:31:20 +0200 Subject: [PATCH] [Glitch] Add `data-nosnippet` attribute to remote posts and local posts with `noindex` Port d8276ad1b43681a90825a8c1f9d4bcc8b8f302c0 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/components/status.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/flavours/glitch/components/status.jsx b/app/javascript/flavours/glitch/components/status.jsx index d3d432ae05..36abc69930 100644 --- a/app/javascript/flavours/glitch/components/status.jsx +++ b/app/javascript/flavours/glitch/components/status.jsx @@ -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}