utils/features: don't call .get

This commit is contained in:
Alex Gleason 2022-03-30 16:30:04 -05:00
parent 0421be4aaa
commit ba7f99096c
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -21,7 +21,7 @@ export const MITRA = 'Mitra';
export const TRUTHSOCIAL = 'TruthSocial';
const getInstanceFeatures = (instance: Instance) => {
const v = parseVersion(instance.get('version'));
const v = parseVersion(instance.version);
const features = instance.pleroma.getIn(['metadata', 'features'], ImmutableList()) as ImmutableList<string>;
const federation = instance.pleroma.getIn(['metadata', 'federation'], ImmutableMap()) as ImmutableMap<string, any>;