diff options
| author | Marie <marie@kaifa.ch> | 2023-12-31 22:41:35 +0100 |
|---|---|---|
| committer | Marie <marie@kaifa.ch> | 2023-12-31 22:41:35 +0100 |
| commit | 18051505332cd274acbe74ad9c4e1ec3e16d6629 (patch) | |
| tree | af34d53dc9a316764c463de16a22576ab43fe732 /packages/backend/src/queue | |
| parent | chore: fix icons (diff) | |
| download | sharkey-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.ts | 2 |
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; |