Merge branch 'develop-patch-51d8' into 'develop'

Dictate Pleroma Chat and Quote Post compatibility by advertised features in the api

See merge request soapbox-pub/soapbox!2334
useentities-spread
Alex Gleason 2023-03-10 01:41:46 +00:00
commit 074c3429cd
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -262,7 +262,7 @@ const getInstanceFeatures = (instance: Instance) => {
*/
chats: any([
v.software === TRUTHSOCIAL,
v.software === PLEROMA && gte(v.version, '2.1.0') && v.build !== AKKOMA,
features.includes('pleroma_chat_messages'),
]),
/**
@ -679,6 +679,7 @@ const getInstanceFeatures = (instance: Instance) => {
*/
quotePosts: any([
v.software === PLEROMA && [REBASED, AKKOMA].includes(v.build!) && gte(v.version, '2.4.50'),
features.includes('quote_posting'),
instance.feature_quote === true,
]),