enhance: uniform theme color (#8702)
* enhance: make theme color format uniform
All newly fetched instance theme colors will be uniformely formatted
as hashtag followed by 6 hexadecimal digits.
Colors are checked for validity and invalid colors are not handled.
* better input validation for own theme color
* migration to unify theme color formats
Fixes theme colors of other instances as well as the local instance.
* add changelog entry
Co-authored-by:
syuilo <Syuilotan@yahoo.co.jp>
Showing
- CHANGELOG.md 3 additions, 0 deletionsCHANGELOG.md
- packages/backend/migration/1652859567549-uniform-themecolor.js 38 additions, 0 deletions...ges/backend/migration/1652859567549-uniform-themecolor.js
- packages/backend/src/server/api/endpoints/admin/update-meta.ts 1 addition, 1 deletion...ges/backend/src/server/api/endpoints/admin/update-meta.ts
- packages/backend/src/services/fetch-instance-metadata.ts 5 additions, 9 deletionspackages/backend/src/services/fetch-instance-metadata.ts
Loading
Please register or sign in to comment