diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-10-13 20:21:25 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-13 20:21:25 +0900 |
| commit | 45d42b8641585cbe582e4c2a95e03ef511df00be (patch) | |
| tree | c9c68a5aa21852022da175f558372bec065ad3e2 /packages/frontend/src/scripts | |
| parent | :art: (diff) | |
| download | sharkey-45d42b8641585cbe582e4c2a95e03ef511df00be.tar.gz sharkey-45d42b8641585cbe582e4c2a95e03ef511df00be.tar.bz2 sharkey-45d42b8641585cbe582e4c2a95e03ef511df00be.zip | |
feat: ユーザーの名前に禁止ワードを設定できるように (#14756)
* wip
* :art:
* Enhance: モデレーター以上は制限の影響を受けないように
* refactor
* better error handling
* fix
* Revert "better error handling"
This reverts commit 5670b29cfa18a3894d0c2abfe0e5ef862e3b9ffa.
* error handling
* エラーが出ないのを修正
* translation
* Update Changelog
* status code
* :v:
* モデレーター以上は影響ないことを明記
* :art:
* update changelog
* spdx
* Update update.ts
* refactor
* eliminate `screen name`
* remove untracked file
---------
Co-authored-by: KanariKanaru <93921745+kanarikanaru@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/scripts')
| -rw-r--r-- | packages/frontend/src/scripts/get-note-menu.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index 4ffa0ab94d..c1846b0589 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -245,13 +245,10 @@ export function getNoteMenu(props: { function togglePin(pin: boolean): void { os.apiWithDialog(pin ? 'i/pin' : 'i/unpin', { noteId: appearNote.id, - }, undefined, null, res => { - if (res.id === '72dab508-c64d-498f-8740-a8eec1ba385a') { - os.alert({ - type: 'error', - text: i18n.ts.pinLimitExceeded, - }); - } + }, undefined, { + '72dab508-c64d-498f-8740-a8eec1ba385a': { + text: i18n.ts.pinLimitExceeded, + }, }); } |