From b700fadbe32cc15912a072d638af55b4da849576 Mon Sep 17 00:00:00 2001 From: Marie Date: Sun, 31 Dec 2023 06:32:39 +0100 Subject: [PATCH] upd: add home as a visibility for mastodon imports --- .../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 9344467b58..6749001205 100644 --- a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts +++ b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts @@ -381,7 +381,7 @@ export class ImportNotesProcessorService { if (toot.directMessage || !toot.to.includes('https://www.w3.org/ns/activitystreams#Public') && !followers) return; - const visibility = followers ? 'followers' : 'public'; + const visibility = followers ? 'followers' : toot.cc.includes('https://www.w3.org/ns/activitystreams#Public') ? 'home' : 'public'; const date = new Date(toot.object.published); let text = undefined;