From 5bb7707649e691a5f38890499e1dfc7cdc14a5a8 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 10 Jul 2023 18:45:01 +0200 Subject: [PATCH] [mastodon-client] fix getDefaultPostPrivacy --- packages/megalodon/src/misskey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index 026b8e9b7..ca418439e 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -1541,7 +1541,7 @@ export default class Misskey implements MegalodonInterface { if (!res.data || (res.data != 'public' && res.data != 'home' && res.data != 'followers' && res.data != 'specified')) return 'public'; return this.converter.visibility(res.data); - }); + }).catch(_ => 'public') } public async unfavouriteStatus(id: string): Promise> {