about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorMeisam <39205857+MFTabriz@users.noreply.github.com>2022-12-15 17:04:52 +0100
committerGitHub <noreply@github.com>2022-12-15 17:04:52 +0100
commit059d64a59ea27c40ca6b5b9bf34487169d2a741f (patch)
treeb24868ca2794df5a288d4d9bf097dc54b653c5af /app
parent673c54f114be78e0588f2bb883f2962dbc7574a7 (diff)
set activation for tag follow button (#21629)
Co-authored-by: meisam <meisam@noreply.codeberg.org>
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/hashtag_timeline/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/hashtag_timeline/index.js b/app/javascript/mastodon/features/hashtag_timeline/index.js
index b635c3529..733f54ff3 100644
--- a/app/javascript/mastodon/features/hashtag_timeline/index.js
+++ b/app/javascript/mastodon/features/hashtag_timeline/index.js
@@ -194,7 +194,7 @@ class HashtagTimeline extends React.PureComponent {
       const following = tag.get('following');
 
       followButton = (
-        <button className={classNames('column-header__button')} onClick={this.handleFollow} disabled={!signedIn} title={intl.formatMessage(following ? messages.unfollowHashtag : messages.followHashtag)} aria-label={intl.formatMessage(following ? messages.unfollowHashtag : messages.followHashtag)}>
+        <button className={classNames('column-header__button')} onClick={this.handleFollow} disabled={!signedIn} active={following} title={intl.formatMessage(following ? messages.unfollowHashtag : messages.followHashtag)} aria-label={intl.formatMessage(following ? messages.unfollowHashtag : messages.followHashtag)}>
           <Icon id={following ? 'user-times' : 'user-plus'} fixedWidth className='column-header__icon' />
         </button>
       );