Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Move follower count to tab title. Closes #1698

Gabe Kangas65bc0f341b3c
diff --git a/webroot/js/app.js b/webroot/js/app.js
index c83d6ca7c4..0cb6d71749 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 f601d0b189..369649af79 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"
/>
</span>
`;