upd: add additional checks for akkoma and pleroma

This commit is contained in:
Mar0xy 2023-11-12 22:27:20 +01:00
parent 5c38e6b824
commit 6170461dc5
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -280,6 +280,8 @@ export class ApRendererService {
const instance = await this.instancesRepository.findOneBy({ host: note.userHost }); const instance = await this.instancesRepository.findOneBy({ host: note.userHost });
if (instance && instance.softwareName === 'mastodon') isMastodon = true; if (instance && instance.softwareName === 'mastodon') isMastodon = true;
if (instance && instance.softwareName === 'akkoma') isMastodon = true;
if (instance && instance.softwareName === 'pleroma') isMastodon = true;
} }
} }