Merge branch 'muting_with_duration' into 'develop'

Support mutes duration

See merge request soapbox-pub/soapbox!913
This commit is contained in:
marcin mikołajczak
2022-11-04 16:29:08 +00:00
8 changed files with 95 additions and 6 deletions

View File

@@ -400,6 +400,15 @@ const getInstanceFeatures = (instance: Instance) => {
*/
muteStrangers: v.software === PLEROMA,
/**
* Ability to specify how long the account mute should last.
* @see PUT /api/v1/accounts/:id/mute
*/
mutesDuration: any([
v.software === PLEROMA && gte(v.version, '2.3.0'),
v.software === MASTODON && gte(v.compatVersion, '3.3.0'),
]),
/**
* Add private notes to accounts.
* @see POST /api/v1/accounts/:id/note