mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2025-01-05 21:33:47 +01:00
Don't show trending statuses in public web UI
This commit is contained in:
parent
41f1a81ab7
commit
da8c3bed5c
3 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Api::V1::Trends::StatusesController < Api::BaseController
|
class Api::V1::Trends::StatusesController < Api::BaseController
|
||||||
|
before_action :require_user!, only: [:show], if: :require_auth?
|
||||||
before_action :set_statuses
|
before_action :set_statuses
|
||||||
|
|
||||||
after_action :insert_pagination_headers
|
after_action :insert_pagination_headers
|
||||||
|
|
|
@ -55,9 +55,9 @@ class NavigationPanel extends React.Component {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{showTrends ? (
|
{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) && (
|
{(signedIn || timelinePreview) && (
|
||||||
|
|
|
@ -59,9 +59,9 @@ class NavigationPanel extends React.Component {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{showTrends ? (
|
{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) && (
|
{(signedIn || timelinePreview) && (
|
||||||
|
|
Loading…
Reference in a new issue