-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: 新カスタム絵文字管理画面(β)の追加 #13473
base: develop
Are you sure you want to change the base?
feat: 新カスタム絵文字管理画面(β)の追加 #13473
Conversation
# Conflicts: # packages/misskey-js/src/api.types.ts # packages/misskey-js/src/autogen/apiClientJSDoc.ts # packages/misskey-js/src/autogen/endpoint.ts # packages/misskey-js/src/autogen/entities.ts # packages/misskey-js/src/autogen/models.ts # packages/misskey-js/src/autogen/types.ts
# Conflicts: # packages/frontend/package.json # packages/misskey-js/src/autogen/apiClientJSDoc.ts # packages/misskey-js/src/autogen/endpoint.ts # packages/misskey-js/src/autogen/entities.ts # packages/misskey-js/src/autogen/models.ts # packages/misskey-js/src/autogen/types.ts # pnpm-lock.yaml
# Conflicts: # packages/misskey-js/src/autogen/apiClientJSDoc.ts # packages/misskey-js/src/autogen/endpoint.ts # packages/misskey-js/src/autogen/entities.ts # packages/misskey-js/src/autogen/models.ts # packages/misskey-js/src/autogen/types.ts
# Conflicts: # packages/backend/src/core/CustomEmojiService.ts # packages/backend/src/server/api/endpoints/admin/emoji/update.ts # packages/frontend/src/components/global/MkStickyContainer.vue
Check Misskey JS autogenのCIがコケているのは、空白が1行無くて差分が発生しているからという理由っぽいです… |
const direction = sortKey.startsWith('-') ? 'DESC' : 'ASC'; | ||
const key = sortKey.replace(/^[+-]/, ''); | ||
builder.addOrderBy(`emoji.${key}`, direction); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copied from niri-la#239 (comment)
未知のsortKey
でSQL Injectionできないかが若干こわいのでfetchEmojisSortKeys
にsortKeyがあるかどうかをここでも確認したい気がする
もちろん API の json validation で弾いてるっぽいけど、念のためにここで確認したくなる
(将来別のAPI等が使うようになった際に API 側の実装を忘れる可能性を気にしてる)
What
カスタム絵文字の登録画面をリニューアルし、複数の絵文字に対して同時に登録・更新作業を行えるようにしました。
Why
resolve #10996
Additional info (optional)
既存のカスタム絵文字管理画面はそのままのこし、新画面はβ版の位置づけで追加しています(安定したら完全に置き換える考え)。
Checklist