nicolium: support GoToSocial' web_include_boosts
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -251,6 +251,7 @@ const untypedCredentialAccountSchema = v.pipe(v.any(), preprocessAccount, v.obje
|
||||
|
||||
also_known_as_uris: v.fallback(v.optional(v.array(v.string())), undefined),
|
||||
status_content_type: v.fallback(v.optional(v.string()), undefined),
|
||||
web_include_boosts: v.fallback(v.optional(v.boolean()), undefined),
|
||||
web_layout: v.fallback(v.optional(v.picklist(['microblog', 'gallery'])), undefined),
|
||||
web_visibility: v.fallback(v.optional(v.picklist(['public', 'unlisted', 'none'])), undefined),
|
||||
})), null),
|
||||
|
||||
@ -324,6 +324,11 @@ const getFeatures = (instance: Instance) => {
|
||||
v.software === GOTOSOCIAL,
|
||||
]),
|
||||
|
||||
/**
|
||||
* @see PATCH /api/v1/accounts/update_credentials
|
||||
*/
|
||||
accountWebIncludeBoosts: v.software === GOTOSOCIAL && gte(v.version, '0.21.0'),
|
||||
|
||||
/**
|
||||
* @see PATCH /api/v1/accounts/update_credentials
|
||||
*/
|
||||
|
||||
@ -142,6 +142,11 @@ interface UpdateCredentialsParams {
|
||||
* Requires features{@link Features.accountEnableRss}.
|
||||
*/
|
||||
enable_rss?: boolean;
|
||||
/**
|
||||
* Include boosts created by the account on the web view of the account.
|
||||
* Requires features{@link Features.accountWebIncludeBoosts}.
|
||||
*/
|
||||
web_include_boosts?: boolean;
|
||||
/**
|
||||
* Layout to use for the web view of the account.
|
||||
* - `microblog`: default, classic microblog layout.
|
||||
|
||||
Reference in New Issue
Block a user