Merge branch 'muting_with_duration' into 'develop'
Support mutes duration See merge request soapbox-pub/soapbox!913
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user