Resolve frontend/backend contradiction for home visibility embeds
This now uses the same check from `packages/frontend/src/scripts/get-note-menu.ts`
This commit is contained in:
@@ -833,7 +833,7 @@ export class ClientServerService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (note == null) return;
|
if (note == null) return;
|
||||||
if (note.visibility !== 'public') return;
|
if (['specified', 'followers'].includes(note.visibility)) return;
|
||||||
if (note.userHost != null) return;
|
if (note.userHost != null) return;
|
||||||
|
|
||||||
const _note = await this.noteEntityService.pack(note, null, { detail: true });
|
const _note = await this.noteEntityService.pack(note, null, { detail: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user