From dc5526f4ae8c9d3a6f132b2bc72914b95e5286cc Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 18 Jul 2020 23:59:04 -0500 Subject: [Privacy, Federation, UI] Add options to allow Fediverse users to decide whether to include replies and unlisted posts on their profiles --- app/javascript/flavours/glitch/components/status.js | 1 + .../flavours/glitch/features/account_timeline/components/header.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'app/javascript') diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js index 021c75c76..3a6029b96 100644 --- a/app/javascript/flavours/glitch/components/status.js +++ b/app/javascript/flavours/glitch/components/status.js @@ -674,6 +674,7 @@ class Status extends ImmutablePureComponent { const selectorAttribs = { 'data-status-by': `@${status.getIn(['account', 'acct'])}`, 'data-nest-level': status.get('nest_level'), + 'data-nest-deep': status.get('nest_level') >= 15, }; if (prepend && account) { diff --git a/app/javascript/flavours/glitch/features/account_timeline/components/header.js b/app/javascript/flavours/glitch/features/account_timeline/components/header.js index d7edd43ab..527352497 100644 --- a/app/javascript/flavours/glitch/features/account_timeline/components/header.js +++ b/app/javascript/flavours/glitch/features/account_timeline/components/header.js @@ -125,7 +125,8 @@ export default class Header extends ImmutablePureComponent { {!hideTabs && (
- { account.get('id') === me && () } + { (account.get('id') === me || account.get('show_replies')) && + () }
)} -- cgit