Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: properly display global badges for anon users #5599

Merged
merged 5 commits into from
Sep 28, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Sep 20, 2024

From #5598. Badges didn't load at all in anonymous mode because the schemas of the json and the one expected in TwitchBadges.cpp didn't match.

I've also gone ahead and reduced the size of twitch-badges.json (stripped it to the stuff we need and deduplicated image URLs) and added a script to update the file. Using the Twitch CLI, the file can be updated:

twitch api get chat/badges/global | python scripts/update-badges.py

@pajlada pajlada changed the title fix: properly display shipped badges fix: properly display global badges for anon users Sep 28, 2024
@pajlada pajlada enabled auto-merge (squash) September 28, 2024 09:57
@pajlada pajlada merged commit edf18a7 into Chatterino:master Sep 28, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants