summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2023-12-31 22:41:35 +0100
committerMarie <marie@kaifa.ch>2023-12-31 22:41:35 +0100
commit18051505332cd274acbe74ad9c4e1ec3e16d6629 (patch)
treeaf34d53dc9a316764c463de16a22576ab43fe732 /packages/backend/src/queue
parentchore: fix icons (diff)
downloadsharkey-18051505332cd274acbe74ad9c4e1ec3e16d6629.tar.gz
sharkey-18051505332cd274acbe74ad9c4e1ec3e16d6629.tar.bz2
sharkey-18051505332cd274acbe74ad9c4e1ec3e16d6629.zip
fix: visibility check on masto import
Originally from PR #288
Diffstat (limited to 'packages/backend/src/queue')
-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 1dc22404bf..03a0e951b3 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;