diff --git a/packages/frontend-embed/src/pages/note.vue b/packages/frontend-embed/src/pages/note.vue index 918583ecc..6f6c8c0f6 100644 --- a/packages/frontend-embed/src/pages/note.vue +++ b/packages/frontend-embed/src/pages/note.vue @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only @@ -27,6 +27,8 @@ const serverContext = inject(DI.serverContext)!; const note = ref(null); +const prohibited = ref(false); + if (assertServerContext(serverContext, 'note')) { note.value = serverContext.note; } else { @@ -36,6 +38,11 @@ if (assertServerContext(serverContext, 'note')) { return null; }); } + +if (note.value?.url != null || note.value?.uri != null) { + // リモートサーバーのノートは弾く + prohibited.value = true; +}