Use feature detection for frontendConfigurations

This commit is contained in:
Alex Gleason
2022-04-19 18:33:13 -05:00
parent 29b28edee5
commit b72f398bad
3 changed files with 33 additions and 16 deletions

View File

@@ -144,6 +144,7 @@ const getInstanceFeatures = (instance: Instance) => {
pepe: v.software === TRUTHSOCIAL,
accountLocation: v.software === TRUTHSOCIAL,
accountWebsite: v.software === TRUTHSOCIAL,
frontendConfigurations: v.software === PLEROMA,
// FIXME: long-term this shouldn't be a feature,
// but for now we want it to be overrideable in the build