[mastodon-client] fix getDefaultPostPrivacy

This commit is contained in:
Laura Hausmann 2023-07-10 18:45:01 +02:00
parent a2d870a803
commit b9ae9717f3
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -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<Response<Entity.Status>> {