fix: if condition
This commit is contained in:
parent
fc6581b948
commit
07f06d7ed6
|
@ -379,7 +379,7 @@ export class ImportNotesProcessorService {
|
||||||
|
|
||||||
const followers = toot.to.some((str: string) => str.includes('/followers'));
|
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';
|
const visibility = followers ? 'followers' : 'public';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue