Support Pleroma/GoToSocial-specific status visibilities

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-07-26 21:55:17 +02:00
parent 57efcaf35c
commit f476e743c2
13 changed files with 125 additions and 31 deletions

View File

@ -634,6 +634,15 @@ const getInstanceFeatures = (instance: Instance) => {
v.software === GOTOSOCIAL,
]),
/**
* Ability to post statuses that don't federate.
* @see POST /api/v1/statuses
*/
localOnlyStatuses: federation.enabled && any([
v.software === GOTOSOCIAL,
v.software === PLEROMA,
]),
/**
* Can sign in using username instead of e-mail address.
*/
@ -699,6 +708,12 @@ const getInstanceFeatures = (instance: Instance) => {
v.software === GOTOSOCIAL,
]),
/**
* Ability to post statuses only to accounts with mutual relationship.
* @see POST /api/v1/statuses
*/
mutualsOnlyStatuses: v.software === GOTOSOCIAL,
/**
* Add private notes to accounts.
* @see POST /api/v1/accounts/:id/note
@ -881,7 +896,10 @@ const getInstanceFeatures = (instance: Instance) => {
* @see POST /api/v1/user/password_change
* @see POST /api/v1/accounts/delete_account
*/
security: any([v.software === PLEROMA, v.software === GOTOSOCIAL]),
security: any([
v.software === PLEROMA,
v.software === GOTOSOCIAL,
]),
/**
* Ability to manage account sessions.