diff --git a/packages/frontend/src/pages/clip.vue b/packages/frontend/src/pages/clip.vue index c925bac4d9..224bc51599 100644 --- a/packages/frontend/src/pages/clip.vue +++ b/packages/frontend/src/pages/clip.vue @@ -49,7 +49,7 @@ import { genEmbedCode } from '@/scripts/get-embed-code.js'; import { assertServerContext, serverContext } from '@/server-context.js'; // contextは非ログイン状態の情報しかないためログイン時は利用できない -const CTX_CLIP = $i && assertServerContext(serverContext, 'clip') ? serverContext.clip : null; +const CTX_CLIP = !$i && assertServerContext(serverContext, 'clip') ? serverContext.clip : null; const props = defineProps<{ clipId: string, diff --git a/packages/frontend/src/pages/note.vue b/packages/frontend/src/pages/note.vue index 6eca04db8d..e6b4a0b222 100644 --- a/packages/frontend/src/pages/note.vue +++ b/packages/frontend/src/pages/note.vue @@ -67,7 +67,7 @@ import { serverContext, assertServerContext } from '@/server-context.js'; import { $i } from '@/account.js'; // contextは非ログイン状態の情報しかないためログイン時は利用できない -const CTX_NOTE = $i && assertServerContext(serverContext, 'note') ? serverContext.note : null; +const CTX_NOTE = !$i && assertServerContext(serverContext, 'note') ? serverContext.note : null; const props = defineProps<{ noteId: string; diff --git a/packages/frontend/src/pages/user/index.vue b/packages/frontend/src/pages/user/index.vue index c5cda79935..4787db5dbe 100644 --- a/packages/frontend/src/pages/user/index.vue +++ b/packages/frontend/src/pages/user/index.vue @@ -54,7 +54,7 @@ const XGallery = defineAsyncComponent(() => import('./gallery.vue')); const XRaw = defineAsyncComponent(() => import('./raw.vue')); // contextは非ログイン状態の情報しかないためログイン時は利用できない -const CTX_USER = $i && assertServerContext(serverContext, 'user') ? serverContext.user : null; +const CTX_USER = !$i && assertServerContext(serverContext, 'user') ? serverContext.user : null; const props = withDefaults(defineProps<{ acct: string;