Skip to content

Commit

Permalink
Resolve frontend/backend contradiction for home visibility embeds
Browse files Browse the repository at this point in the history
This now uses the same check from `packages/frontend/src/scripts/get-note-menu.ts`
  • Loading branch information
CenTdemeern1 authored and kakkokari-gtyih committed Dec 9, 2024
1 parent dac3b1f commit b6b452d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/server/web/ClientServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ export class ClientServerService {
});

if (note == null) return;
if (note.visibility !== 'public') return;
if (['specified', 'followers'].includes(note.visibility)) return;
if (note.userHost != null) return;

const _note = await this.noteEntityService.pack(note, null, { detail: true });
Expand Down

0 comments on commit b6b452d

Please sign in to comment.