summaryrefslogtreecommitdiff
path: root/packages/backend/src
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2023-12-31 04:09:44 +0100
committerMarie <marie@kaifa.ch>2023-12-31 04:09:44 +0100
commit07f06d7ed6948c949aa273df29ff0ef11551d568 (patch)
tree0d48052c9cd45854ab550fc5fa8d1baf5bafc091 /packages/backend/src
parentfix: correct followers visibility on import (diff)
downloadsharkey-07f06d7ed6948c949aa273df29ff0ef11551d568.tar.gz
sharkey-07f06d7ed6948c949aa273df29ff0ef11551d568.tar.bz2
sharkey-07f06d7ed6948c949aa273df29ff0ef11551d568.zip
fix: if condition
Diffstat (limited to 'packages/backend/src')
-rw-r--r--packages/backend/src/queue/processors/ImportNotesProcessorService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
index 072567d05c..9344467b58 100644
--- a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
+++ b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
@@ -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';