EditProfile: conditional features

This commit is contained in:
Alex Gleason
2022-04-16 21:16:01 -05:00
parent 39f6910d27
commit bc8e9254cf
2 changed files with 38 additions and 29 deletions

View File

@@ -142,6 +142,8 @@ const getInstanceFeatures = (instance: Instance) => {
trendingTruths: v.software === TRUTHSOCIAL,
trendingStatuses: v.software === MASTODON && gte(v.compatVersion, '3.5.0'),
pepe: v.software === TRUTHSOCIAL,
accountLocation: v.software === TRUTHSOCIAL,
accountWebsite: v.software === TRUTHSOCIAL,
// FIXME: long-term this shouldn't be a feature,
// but for now we want it to be overrideable in the build