upd: add home as a visibility for mastodon imports

This commit is contained in:
Marie 2023-12-31 06:32:39 +01:00
parent 07f06d7ed6
commit b700fadbe3

View file

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