diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-21 10:06:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 10:06:03 +0200 |
commit | 5e908c5a95a64a4d48e35516723955ac61a15c4d (patch) | |
tree | 8987d9204c221ac5d9030c82672f31e24264f2e4 /app/javascript/mastodon/features/account_timeline/index.js | |
parent | 23d367f544485eaeed888c707012a8282bbb5806 (diff) |
Fix case-sensitive look-up for profiles in web UI (#19397)
Diffstat (limited to 'app/javascript/mastodon/features/account_timeline/index.js')
-rw-r--r-- | app/javascript/mastodon/features/account_timeline/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/account_timeline/index.js b/app/javascript/mastodon/features/account_timeline/index.js index bfb5f7c80..525837c72 100644 --- a/app/javascript/mastodon/features/account_timeline/index.js +++ b/app/javascript/mastodon/features/account_timeline/index.js @@ -19,11 +19,12 @@ import { connectTimeline, disconnectTimeline } from 'mastodon/actions/timelines' import LimitedAccountHint from './components/limited_account_hint'; import { getAccountHidden } from 'mastodon/selectors'; import { fetchFeaturedTags } from '../../actions/featured_tags'; +import { normalizeForLookup } from 'mastodon/reducers/accounts_map'; const emptyList = ImmutableList(); const mapStateToProps = (state, { params: { acct, id, tagged }, withReplies = false }) => { - const accountId = id || state.getIn(['accounts_map', acct]); + const accountId = id || state.getIn(['accounts_map', normalizeForLookup(acct)]); if (!accountId) { return { |