summaryrefslogtreecommitdiff
path: root/packages/backend/src/server
diff options
context:
space:
mode:
authorCenTdemeern1 <timo.herngreen@gmail.com>2024-12-08 17:51:28 +0100
committerCenTdemeern1 <timo.herngreen@gmail.com>2024-12-08 17:52:26 +0100
commit85bbfd2e2b72c633f756d6067315aaf9da8ff51a (patch)
treecb31ac01ef6831f27f20523491cc4b8aa8d1c4b3 /packages/backend/src/server
parentmerge: Fix Content-Length resetting for partial content length requests (!796) (diff)
downloadsharkey-85bbfd2e2b72c633f756d6067315aaf9da8ff51a.tar.gz
sharkey-85bbfd2e2b72c633f756d6067315aaf9da8ff51a.tar.bz2
sharkey-85bbfd2e2b72c633f756d6067315aaf9da8ff51a.zip
Resolve frontend/backend contradiction for home visibility embeds
This now uses the same check from `packages/frontend/src/scripts/get-note-menu.ts`
Diffstat (limited to 'packages/backend/src/server')
-rw-r--r--packages/backend/src/server/web/ClientServerService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts
index c14f6c9123..fbb8321730 100644
--- a/packages/backend/src/server/web/ClientServerService.ts
+++ b/packages/backend/src/server/web/ClientServerService.ts
@@ -833,7 +833,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 });