From f918094971eca49e6f8d5031fce2a6e90d0b52f0 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 23 Aug 2025 19:44:15 +0800 Subject: [PATCH] Don't show endorsements inside account sheet --- src/components/account-info.jsx | 7 +++- src/locales/en.po | 72 ++++++++++++++++----------------- 2 files changed, 42 insertions(+), 37 deletions(-) diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index e5191244..55cc9b39 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -1874,7 +1874,12 @@ function RelatedActions({ setRelationship(newRelationship); // Show endorsements if start following - if (newRelationship.following) { + if ( + showEndorsements && + supportsEndorsements && + !renderEndorsements && + newRelationship.following + ) { setRenderEndorsements('onlyOpenIfHasEndorsements'); } } diff --git a/src/locales/en.po b/src/locales/en.po index c4673aea..53e68f30 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -43,12 +43,12 @@ msgid "Mutual" msgstr "" #: src/components/account-block.jsx:204 -#: src/components/account-info.jsx:1907 +#: src/components/account-info.jsx:1912 msgid "Requested" msgstr "" #: src/components/account-block.jsx:208 -#: src/components/account-info.jsx:1898 +#: src/components/account-info.jsx:1903 msgid "Following" msgstr "" @@ -157,7 +157,7 @@ msgstr "" #: src/components/account-info.jsx:681 #: src/components/account-info.jsx:1806 -#: src/components/account-info.jsx:2332 +#: src/components/account-info.jsx:2337 msgid "Edit profile" msgstr "" @@ -338,7 +338,7 @@ msgstr "Show featured profiles" #: src/components/account-info.jsx:1462 #: src/components/account-info.jsx:1472 -#: src/components/account-info.jsx:2078 +#: src/components/account-info.jsx:2083 msgid "Add/Remove from Lists" msgstr "" @@ -444,24 +444,24 @@ msgstr "Withdraw follow request?" msgid "Unfollow @{0}?" msgstr "Unfollow @{0}?" -#: src/components/account-info.jsx:1901 +#: src/components/account-info.jsx:1906 msgid "Unfollow…" msgstr "" -#: src/components/account-info.jsx:1910 +#: src/components/account-info.jsx:1915 msgid "Withdraw…" msgstr "" -#: src/components/account-info.jsx:1917 -#: src/components/account-info.jsx:1921 +#: src/components/account-info.jsx:1922 +#: src/components/account-info.jsx:1926 #: src/pages/hashtag.jsx:265 msgid "Follow" msgstr "" -#: src/components/account-info.jsx:2018 -#: src/components/account-info.jsx:2073 -#: src/components/account-info.jsx:2207 -#: src/components/account-info.jsx:2327 +#: src/components/account-info.jsx:2023 +#: src/components/account-info.jsx:2078 +#: src/components/account-info.jsx:2212 +#: src/components/account-info.jsx:2332 #: src/components/account-sheet.jsx:38 #: src/components/compose.jsx:892 #: src/components/compose.jsx:2775 @@ -494,85 +494,85 @@ msgstr "" msgid "Close" msgstr "" -#: src/components/account-info.jsx:2023 +#: src/components/account-info.jsx:2028 msgid "Translated Bio" msgstr "" -#: src/components/account-info.jsx:2118 +#: src/components/account-info.jsx:2123 msgid "Unable to remove from list." msgstr "Unable to remove from list." -#: src/components/account-info.jsx:2119 +#: src/components/account-info.jsx:2124 msgid "Unable to add to list." msgstr "Unable to add to list." -#: src/components/account-info.jsx:2138 +#: src/components/account-info.jsx:2143 #: src/pages/lists.jsx:131 msgid "Unable to load lists." msgstr "" -#: src/components/account-info.jsx:2142 +#: src/components/account-info.jsx:2147 msgid "No lists." msgstr "" -#: src/components/account-info.jsx:2153 +#: src/components/account-info.jsx:2158 #: src/components/list-add-edit.jsx:41 #: src/pages/lists.jsx:62 msgid "New list" msgstr "" #. placeholder {0}: account?.username || account?.acct -#: src/components/account-info.jsx:2212 +#: src/components/account-info.jsx:2217 msgid "Private note about <0>@{0}" msgstr "" -#: src/components/account-info.jsx:2242 +#: src/components/account-info.jsx:2247 msgid "Unable to update private note." msgstr "Unable to update private note." -#: src/components/account-info.jsx:2265 -#: src/components/account-info.jsx:2563 +#: src/components/account-info.jsx:2270 +#: src/components/account-info.jsx:2568 msgid "Cancel" msgstr "" -#: src/components/account-info.jsx:2270 +#: src/components/account-info.jsx:2275 msgid "Save & close" msgstr "" -#: src/components/account-info.jsx:2387 +#: src/components/account-info.jsx:2392 msgid "Unable to update profile." msgstr "Unable to update profile." -#: src/components/account-info.jsx:2394 +#: src/components/account-info.jsx:2399 msgid "Header picture" msgstr "Header picture" -#: src/components/account-info.jsx:2446 +#: src/components/account-info.jsx:2451 msgid "Profile picture" msgstr "Profile picture" -#: src/components/account-info.jsx:2498 +#: src/components/account-info.jsx:2503 #: src/components/list-add-edit.jsx:106 msgid "Name" msgstr "" -#: src/components/account-info.jsx:2511 +#: src/components/account-info.jsx:2516 msgid "Bio" msgstr "" -#: src/components/account-info.jsx:2524 +#: src/components/account-info.jsx:2529 msgid "Extra fields" msgstr "" -#: src/components/account-info.jsx:2530 +#: src/components/account-info.jsx:2535 msgid "Label" msgstr "" -#: src/components/account-info.jsx:2533 +#: src/components/account-info.jsx:2538 msgid "Content" msgstr "" -#: src/components/account-info.jsx:2566 +#: src/components/account-info.jsx:2571 #: src/components/list-add-edit.jsx:152 #: src/components/shortcuts-settings.jsx:715 #: src/pages/filters.jsx:570 @@ -580,20 +580,20 @@ msgstr "" msgid "Save" msgstr "" -#: src/components/account-info.jsx:2620 +#: src/components/account-info.jsx:2625 msgid "username" msgstr "" -#: src/components/account-info.jsx:2624 +#: src/components/account-info.jsx:2629 msgid "server domain name" msgstr "" #. placeholder {0}: info.username -#: src/components/account-info.jsx:2690 +#: src/components/account-info.jsx:2695 msgid "Profiles featured by @{0}" msgstr "Profiles featured by @{0}" -#: src/components/account-info.jsx:2716 +#: src/components/account-info.jsx:2721 msgid "No featured profiles." msgstr "No featured profiles."