This commit is contained in:
syuilo 2024-08-26 09:37:08 +09:00
parent 8775d9f707
commit 5e5208f94e
4 changed files with 0 additions and 12 deletions

View file

@ -58,8 +58,6 @@ const props = defineProps<{
clipId: string; clipId: string;
}>(); }>();
onActivated(redirectIfNotEmbedPage);
const embedParams = inject<ParsedEmbedParams>('embedParams', defaultEmbedParams); const embedParams = inject<ParsedEmbedParams>('embedParams', defaultEmbedParams);
const clip = ref<Misskey.entities.Clip | null>(null); const clip = ref<Misskey.entities.Clip | null>(null);

View file

@ -22,8 +22,6 @@ const props = defineProps<{
noteId: string; noteId: string;
}>(); }>();
onActivated(redirectIfNotEmbedPage);
provide('EMBED_ORIGINAL_ENTITY_URL', `/notes/${props.noteId}`); provide('EMBED_ORIGINAL_ENTITY_URL', `/notes/${props.noteId}`);
const note = ref<Misskey.entities.Note | null>(null); const note = ref<Misskey.entities.Note | null>(null);

View file

@ -55,10 +55,6 @@ const props = defineProps<{
tag: string; tag: string;
}>(); }>();
redirectIfNotEmbedPage();
onActivated(redirectIfNotEmbedPage);
const embedParams = inject<ParsedEmbedParams>('embedParams', defaultEmbedParams); const embedParams = inject<ParsedEmbedParams>('embedParams', defaultEmbedParams);
const pagination = computed(() => ({ const pagination = computed(() => ({

View file

@ -65,10 +65,6 @@ const props = defineProps<{
username: string; username: string;
}>(); }>();
redirectIfNotEmbedPage();
onActivated(redirectIfNotEmbedPage);
const embedParams = inject<ParsedEmbedParams>('embedParams', defaultEmbedParams); const embedParams = inject<ParsedEmbedParams>('embedParams', defaultEmbedParams);
const user = ref<Misskey.entities.UserLite | null>(null); const user = ref<Misskey.entities.UserLite | null>(null);