From 18051505332cd274acbe74ad9c4e1ec3e16d6629 Mon Sep 17 00:00:00 2001 From: Marie Date: Sun, 31 Dec 2023 22:41:35 +0100 Subject: [PATCH] fix: visibility check on masto import Originally from PR #288 --- .../backend/src/queue/processors/ImportNotesProcessorService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts index 1dc22404b..03a0e951b 100644 --- a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts +++ b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts @@ -382,7 +382,7 @@ export class ImportNotesProcessorService { if (toot.directMessage || !toot.to.includes('https://www.w3.org/ns/activitystreams#Public') && !followers) return; - const visibility = followers ? 'followers' : toot.cc.includes('https://www.w3.org/ns/activitystreams#Public') ? 'home' : 'public'; + const visibility = followers ? toot.cc.includes('https://www.w3.org/ns/activitystreams#Public') ? 'home' : 'followers' : 'public'; const date = new Date(toot.object.published); let text = undefined;