fix: visibility check on masto import

Originally from PR #288
This commit is contained in:
Marie 2023-12-31 22:41:35 +01:00
parent 6a46e30f67
commit 1805150533
1 changed files with 1 additions and 1 deletions

View File

@ -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;