1
0

upd: add new endpoint to mk api, add preferences to masto api

This commit is contained in:
Mar0xy
2023-09-25 04:55:11 +02:00
parent 035d600406
commit 871407ce53
5 changed files with 112 additions and 8 deletions
@@ -140,6 +140,16 @@ namespace MisskeyAPI {
}
}
export const userPreferences = (v: "public" | "unlisted" | "private" | "direct"): MegalodonEntity.Preferences => {
return {
"reading:expand:media": "default",
"reading:expand:spoilers": false,
"posting:default:language": "english",
"posting:default:sensitive": false,
"posting:default:visibility": v,
};
};
export const visibility = (v: 'public' | 'home' | 'followers' | 'specified'): 'public' | 'unlisted' | 'private' | 'direct' => {
switch (v) {
case 'public':