Merge branch 'fedibird-quotes' into 'develop'
Fedibird: support quote posting See merge request soapbox-pub/soapbox-fe!1037
This commit is contained in:
commit
6ceecc08b2
1 changed files with 9 additions and 6 deletions
|
@ -11,11 +11,11 @@ export const MASTODON = 'Mastodon';
|
||||||
export const PLEROMA = 'Pleroma';
|
export const PLEROMA = 'Pleroma';
|
||||||
export const MITRA = 'Mitra';
|
export const MITRA = 'Mitra';
|
||||||
|
|
||||||
export const getFeatures = createSelector([
|
export const getFeatures = createSelector([instance => instance], instance => {
|
||||||
instance => parseVersion(instance.get('version')),
|
const v = parseVersion(instance.get('version'));
|
||||||
instance => instance.getIn(['pleroma', 'metadata', 'features'], ImmutableList()),
|
const features = instance.getIn(['pleroma', 'metadata', 'features'], ImmutableList());
|
||||||
instance => instance.getIn(['pleroma', 'metadata', 'federation'], ImmutableMap()),
|
const federation = instance.getIn(['pleroma', 'metadata', 'federation'], ImmutableMap());
|
||||||
], (v, features, federation) => {
|
|
||||||
return {
|
return {
|
||||||
bookmarks: any([
|
bookmarks: any([
|
||||||
v.software === MASTODON && gte(v.compatVersion, '3.1.0'),
|
v.software === MASTODON && gte(v.compatVersion, '3.1.0'),
|
||||||
|
@ -82,7 +82,10 @@ export const getFeatures = createSelector([
|
||||||
remoteInteractionsAPI: v.software === PLEROMA && gte(v.version, '2.4.50'),
|
remoteInteractionsAPI: v.software === PLEROMA && gte(v.version, '2.4.50'),
|
||||||
explicitAddressing: v.software === PLEROMA && gte(v.version, '1.0.0'),
|
explicitAddressing: v.software === PLEROMA && gte(v.version, '1.0.0'),
|
||||||
accountEndorsements: v.software === PLEROMA && gte(v.version, '2.4.50'),
|
accountEndorsements: v.software === PLEROMA && gte(v.version, '2.4.50'),
|
||||||
quotePosts: v.software === PLEROMA && gte(v.version, '2.4.50'),
|
quotePosts: any([
|
||||||
|
v.software === PLEROMA && gte(v.version, '2.4.50'),
|
||||||
|
instance.get('feature_quote') === true,
|
||||||
|
]),
|
||||||
birthdays: v.software === PLEROMA && gte(v.version, '2.4.50'),
|
birthdays: v.software === PLEROMA && gte(v.version, '2.4.50'),
|
||||||
ethereumLogin: v.software === MITRA,
|
ethereumLogin: v.software === MITRA,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue