fix: if condition

This commit is contained in:
Marie 2023-12-31 04:09:44 +01:00
parent fc6581b948
commit 07f06d7ed6

View file

@ -379,7 +379,7 @@ export class ImportNotesProcessorService {
const followers = toot.to.some((str: string) => str.includes('/followers'));
if (toot.directMessage || (!toot.to.includes('https://www.w3.org/ns/activitystreams#Public') || !followers)) return;
if (toot.directMessage || !toot.to.includes('https://www.w3.org/ns/activitystreams#Public') && !followers) return;
const visibility = followers ? 'followers' : 'public';