From 2dcb681426776b3b38650121a986b97518177f0e Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Fri, 19 Aug 2022 17:52:33 -0400 Subject: [PATCH] fix: default visibility-score to public --- packages/client/src/components/post-form.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/client/src/components/post-form.vue b/packages/client/src/components/post-form.vue index 22b6304de..a869921db 100644 --- a/packages/client/src/components/post-form.vue +++ b/packages/client/src/components/post-form.vue @@ -147,11 +147,10 @@ let imeText = $ref(''); // TODO: compat with misskey-js, should likely be moved into foundkey-js const visibilityScore = (a: string): string => { switch (a) { - case 'public': return 3; case 'home': return 2; case 'followers': return 1; case 'specified': return 0; - default: return 4; // invalid visiblity = always considered "too high" + default: return 3; // includes public } }; const minVisibility = (a: string, b: string): string => visibilityScore(b) > visibilityScore(a) ? a : b;