diff options
| author | taiy <53635909+taiyme@users.noreply.github.com> | 2024-05-01 15:29:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-01 15:29:38 +0900 |
| commit | 9f66f229537915f47da8e6e08e92a78be390f454 (patch) | |
| tree | 8436dd317082f7f8b484ca5dd1b4477b6d68fd3a /packages/frontend/src/scripts/get-note-menu.ts | |
| parent | enhance(frontend): add contact page (diff) | |
| download | sharkey-9f66f229537915f47da8e6e08e92a78be390f454.tar.gz sharkey-9f66f229537915f47da8e6e08e92a78be390f454.tar.bz2 sharkey-9f66f229537915f47da8e6e08e92a78be390f454.zip | |
fix(frontend): 連合なしの状態の読み書きができない問題 (#13777)
* fix: 連合なしの状態の読み書きができない問題
* update changelog
* fix types: https://github.com/misskey-dev/misskey/pull/13777#discussion_r1585901601
Diffstat (limited to 'packages/frontend/src/scripts/get-note-menu.ts')
| -rw-r--r-- | packages/frontend/src/scripts/get-note-menu.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index 87921bc67f..2cd21c1edc 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -492,10 +492,9 @@ export function getNoteMenu(props: { }; } -type Visibility = 'public' | 'home' | 'followers' | 'specified'; +type Visibility = (typeof Misskey.noteVisibilities)[number]; -// defaultStore.state.visibilityがstringなためstringも受け付けている -function smallerVisibility(a: Visibility | string, b: Visibility | string): Visibility { +function smallerVisibility(a: Visibility, b: Visibility): Visibility { if (a === 'specified' || b === 'specified') return 'specified'; if (a === 'followers' || b === 'followers') return 'followers'; if (a === 'home' || b === 'home') return 'home'; |