From a572fd707a30a2bc914ac47bbae0f9b5956ceced Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Sat, 21 Dec 2019 17:20:44 +0100 Subject: [PATCH] :art: staff only link to manage trending tags and administrate user --- app/javascript/mastodon/components/status.js | 8 +++++++- .../features/ui/components/link_footer.js | 17 +++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index f1d70ed71..b4f865695 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -16,7 +16,7 @@ import { Audio, MediaGallery, Video } from '../features/ui/util/async-components import { HotKeys } from 'react-hotkeys'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; -import { displayMedia } from '../initial_state'; +import { displayMedia, isStaff } from '../initial_state'; // We use the component (and not the container) since we do not want // to use the progress bar to show download progress import Bundle from '../features/ui/components/bundle'; @@ -542,6 +542,12 @@ class Status extends ImmutablePureComponent { role='presentation' />
+ + {isStaff && (
+ + +
+ )} contactez nous -
  • + {isStaff && ( +
  • + + + + Trending hashtags +
    +
  • + + )} - - - Trending hashtags -
    - {invitesEnabled &&