diff --git a/webroot/js/app.js b/webroot/js/app.js index c83d6ca7c..0cb6d7174 100644 --- a/webroot/js/app.js +++ b/webroot/js/app.js @@ -831,7 +831,10 @@ export default class App extends Component { if (federation.enabled) { TAB_CONTENT.push({ - label: 'Followers', + label: html`Followers + ${federation.followerCount > 10 + ? `${' '}(${federation.followerCount})` + : null}`, content: html`<${Followers} />`, }); } diff --git a/webroot/js/components/fediverse-follow-modal.js b/webroot/js/components/fediverse-follow-modal.js index f601d0b18..369649af7 100644 --- a/webroot/js/components/fediverse-follow-modal.js +++ b/webroot/js/components/fediverse-follow-modal.js @@ -185,11 +185,7 @@ export function FediverseFollowButton({ serverName, federationInfo, onClick }) { <${ExternalActionButton} onClick=${handleClick} action=${fediverseFollowAction} - label=${`Follow ${ - federationInfo.followerCount > 10 - ? ` (${federationInfo.followerCount})` - : '' - }`} + label="Follow" /> `;