mediaまわりの修正

This commit is contained in:
kakkokari-gtyih
2024-06-03 19:05:17 +09:00
parent 87c75af182
commit 1c35bf32bb
11 changed files with 60 additions and 25 deletions

View File

@@ -44,6 +44,7 @@ const props = defineProps<{
}>();
const mock = inject<boolean>('mock', false);
const inEmbedPage = inject<boolean>('EMBED_PAGE', false);
const emit = defineEmits<{
(ev: 'reactionToggled', emoji: string, newCount: number): void;
@@ -140,7 +141,7 @@ onMounted(() => {
if (!props.isInitial) anime();
});
if (!mock) {
if (!mock && !inEmbedPage) {
useTooltip(buttonEl, async (showing) => {
const reactions = await misskeyApiGet('notes/reactions', {
noteId: props.note.id,