[Self-Hosted] Unable to share themes

(#657) Bug Fixed self-hosting theming

Summary

In theme studio domain.tld/theme-studio I can create a theme, but when sharing it I get a 401 unauthorized. I expect to be able to share the theme and receive a sharable URL for others to install it.

Steps to reproduce

  1. Go to Theme Studio in account > appearance > themes
  2. Go to Quick CSS and create an empty tag e.g. .test {}
  3. Click Share

Environment

Version: v1.0 (selfhosted) OS: Linux (CachyOS) Browser: Zen (Firefox) Device: Desktop PC

Logs or screenshots

image [22:30:07] [ShareThemeModal] [Error] Failed to create theme share link: HttpError: [401] POST /users/@me/themes Confirmed by ternera in #self-hosting image
  • 610911338-3d792b82-286d-42bd-8271-4d91bb8b291e.png

    610911338-3d792b82-286d-42bd-8271-4d91bb8b291e.png

    624×281 | 15 kB

  • 610911370-6592ad3e-6028-4aa2-b60f-a676127546aa.png

    610911370-6592ad3e-6028-4aa2-b60f-a676127546aa.png

    539×779 | 562 kB

2 comments

Sign in with Fluxer to comment and vote.
Comment by @pekempy
RexSystem 1 vote originally by @pekempy on GitHub OP
I set Claude on it to see and it came back with this change in index.tsx Tested and working, but not familiar enough with the codebase to be confident PRing it in considering it's AI, but it might be a start for someone else to clean up as needed image
  • 610913185-2ec4ca61-149f-46e8-af10-e74f9d12ce71.png

    610913185-2ec4ca61-149f-46e8-af10-e74f9d12ce71.png

    1065×247 | 59 kB