From d8d97d4d829a868c57a512677bc3770e30476f42 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 15 Aug 2020 19:41:25 -0500 Subject: [UI] Exclude Mentions tab on own profile --- .../flavours/glitch/features/account_timeline/components/header.js | 2 +- app/views/accounts/show.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 938d854eb..9da86e09a 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,7 @@ export default class Header extends ImmutablePureComponent { {!hideTabs && (
- + { (account.get('id') !== me) && () } { (account.get('id') === me || account.get('show_replies')) && () } diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index 461262f60..3400bfcd5 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -30,7 +30,7 @@ .account__section-headline = active_link_to t('accounts.posts_tab_heading'), short_account_url(@account) = active_link_to t('accounts.threads'), short_account_threads_url(@account) - - if @account.present? + - if current_account.present? && @account.id != current_account.id = active_link_to t('accounts.mentions'), short_account_mentions_url(@account) - if @account.show_replies? = active_link_to t('accounts.posts_with_replies'), short_account_with_replies_url(@account) -- cgit