Don't show trending statuses in public web UI

This commit is contained in:
Jeremy Kescher 2022-11-06 01:13:19 +01:00
parent 41f1a81ab7
commit da8c3bed5c
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940
3 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,7 @@
# frozen_string_literal: true
class Api::V1::Trends::StatusesController < Api::BaseController
before_action :require_user!, only: [:show], if: :require_auth?
before_action :set_statuses
after_action :insert_pagination_headers

View file

@ -55,9 +55,9 @@ class NavigationPanel extends React.Component {
)}
{showTrends ? (
<ColumnLink transparent to='/explore' icon='hashtag' text={intl.formatMessage(messages.explore)} />
(signedIn || timelinePreview) ? <ColumnLink transparent to='/explore' icon='hashtag' text={intl.formatMessage(messages.explore)} /> : <></>
) : (
<ColumnLink transparent to='/search' icon='search' text={intl.formatMessage(messages.search)} />
(signedIn || timelinePreview) ? <ColumnLink transparent to='/search' icon='search' text={intl.formatMessage(messages.search)} /> : <></>
)}
{(signedIn || timelinePreview) && (

View file

@ -59,9 +59,9 @@ class NavigationPanel extends React.Component {
)}
{showTrends ? (
<ColumnLink transparent to='/explore' icon='hashtag' text={intl.formatMessage(messages.explore)} />
(signedIn || timelinePreview) ? <ColumnLink transparent to='/explore' icon='hashtag' text={intl.formatMessage(messages.explore)} /> : <></>
) : (
<ColumnLink transparent to='/search' icon='search' text={intl.formatMessage(messages.search)} />
(signedIn || timelinePreview) ? <ColumnLink transparent to='/search' icon='search' text={intl.formatMessage(messages.search)} /> : <></>
)}
{(signedIn || timelinePreview) && (