mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 07:06:07 +09:00
[mastodon-client] fix getDefaultPostPrivacy
This commit is contained in:
parent
a2d870a803
commit
b9ae9717f3
@ -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'))
|
if (!res.data || (res.data != 'public' && res.data != 'home' && res.data != 'followers' && res.data != 'specified'))
|
||||||
return 'public';
|
return 'public';
|
||||||
return this.converter.visibility(res.data);
|
return this.converter.visibility(res.data);
|
||||||
});
|
}).catch(_ => 'public')
|
||||||
}
|
}
|
||||||
|
|
||||||
public async unfavouriteStatus(id: string): Promise<Response<Entity.Status>> {
|
public async unfavouriteStatus(id: string): Promise<Response<Entity.Status>> {
|
||||||
|
Loading…
Reference in New Issue
Block a user