sforkowany z mirror/soapbox
Merge branch 'features-rebased' into 'develop'
Features: SOAPBOX --> REBASED See merge request soapbox-pub/soapbox!1950ads-account
commit
8c7dc570a6
|
@ -49,7 +49,8 @@ export const TRUTHSOCIAL = 'TruthSocial';
|
||||||
* Rebased, the recommended backend for Soapbox.
|
* Rebased, the recommended backend for Soapbox.
|
||||||
* @see {@link https://gitlab.com/soapbox-pub/rebased}
|
* @see {@link https://gitlab.com/soapbox-pub/rebased}
|
||||||
*/
|
*/
|
||||||
export const SOAPBOX = 'soapbox';
|
// NOTE: Rebased is named 'soapbox' for legacy reasons.
|
||||||
|
export const REBASED = 'soapbox';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* glitch-soc, fork of Mastodon with a number of experimental features.
|
* glitch-soc, fork of Mastodon with a number of experimental features.
|
||||||
|
@ -105,7 +106,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
* @see PATCH /api/v1/accounts/update_credentials
|
* @see PATCH /api/v1/accounts/update_credentials
|
||||||
*/
|
*/
|
||||||
accountLocation: any([
|
accountLocation: any([
|
||||||
v.software === PLEROMA && v.build === SOAPBOX && gte(v.version, '2.4.50'),
|
v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'),
|
||||||
v.software === TRUTHSOCIAL,
|
v.software === TRUTHSOCIAL,
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
@ -179,7 +180,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
* @see POST /api/v1/accounts
|
* @see POST /api/v1/accounts
|
||||||
* @see PATCH /api/v1/accounts/update_credentials
|
* @see PATCH /api/v1/accounts/update_credentials
|
||||||
*/
|
*/
|
||||||
birthdays: v.software === PLEROMA && v.build === SOAPBOX && gte(v.version, '2.4.50'),
|
birthdays: v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'),
|
||||||
|
|
||||||
/** Whether people who blocked you are visible through the API. */
|
/** Whether people who blocked you are visible through the API. */
|
||||||
blockersVisible: features.includes('blockers_visible'),
|
blockersVisible: features.includes('blockers_visible'),
|
||||||
|
@ -380,7 +381,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
*/
|
*/
|
||||||
mastodonAdmin: any([
|
mastodonAdmin: any([
|
||||||
v.software === MASTODON && gte(v.compatVersion, '2.9.1'),
|
v.software === MASTODON && gte(v.compatVersion, '2.9.1'),
|
||||||
v.software === PLEROMA && v.build === SOAPBOX && gte(v.version, '2.4.50'),
|
v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -504,7 +505,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
* @see POST /api/v1/statuses
|
* @see POST /api/v1/statuses
|
||||||
*/
|
*/
|
||||||
quotePosts: any([
|
quotePosts: any([
|
||||||
v.software === PLEROMA && [SOAPBOX, AKKOMA].includes(v.build!) && gte(v.version, '2.4.50'),
|
v.software === PLEROMA && [REBASED, AKKOMA].includes(v.build!) && gte(v.version, '2.4.50'),
|
||||||
instance.feature_quote === true,
|
instance.feature_quote === true,
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
@ -520,7 +521,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
*/
|
*/
|
||||||
removeFromFollowers: any([
|
removeFromFollowers: any([
|
||||||
v.software === MASTODON && gte(v.compatVersion, '3.5.0'),
|
v.software === MASTODON && gte(v.compatVersion, '3.5.0'),
|
||||||
v.software === PLEROMA && v.build === SOAPBOX && gte(v.version, '2.4.50'),
|
v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
reportMultipleStatuses: any([
|
reportMultipleStatuses: any([
|
||||||
|
|
Ładowanie…
Reference in New Issue