diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-08 07:15:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-08 07:15:50 +0200 |
commit | d4b0aa74500419730525025b05513235aa477841 (patch) | |
tree | 1064fdec55966b0b6a291f7901aef1608305577d /app/javascript/mastodon/features/hashtag_timeline/index.js | |
parent | d84c53e76932abf79e07c8abe46c81acb77300d8 (diff) |
Fix trying to connect to streaming API when logged out in web UI (#19316)
Diffstat (limited to 'app/javascript/mastodon/features/hashtag_timeline/index.js')
-rw-r--r-- | app/javascript/mastodon/features/hashtag_timeline/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/hashtag_timeline/index.js b/app/javascript/mastodon/features/hashtag_timeline/index.js index 7069e0341..dee4181a8 100644 --- a/app/javascript/mastodon/features/hashtag_timeline/index.js +++ b/app/javascript/mastodon/features/hashtag_timeline/index.js @@ -96,6 +96,12 @@ class HashtagTimeline extends React.PureComponent { } _subscribe (dispatch, id, tags = {}, local) { + const { signedIn } = this.context.identity; + + if (!signedIn) { + return; + } + let any = (tags.any || []).map(tag => tag.value); let all = (tags.all || []).map(tag => tag.value); let none = (tags.none || []).map(tag => tag.value); |