nicolium: support GoToSocial' web_include_boosts

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-10 16:28:03 +01:00
parent 50342b12a2
commit ba62a98acb
5 changed files with 27 additions and 1 deletions

View File

@ -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),

View File

@ -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
*/

View File

@ -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.