diff --git a/packages/backend/src/server/web/views/note.pug b/packages/backend/src/server/web/views/note.pug index bbc02db46a..dae0a82d5e 100644 --- a/packages/backend/src/server/web/views/note.pug +++ b/packages/backend/src/server/web/views/note.pug @@ -8,7 +8,6 @@ block vars - const isImage = note.files.length !== 0 && note.files[0].type.startsWith('image'); - const isVideo = note.files.length !== 0 && note.files[0].type.startsWith('video'); - const imageUrl = isImage ? note.files[0].url : isVideo ? note.files[0].thumbnailUrl : avatarUrl; - - const isEmbed = embed; block title = `${title} | ${instanceName}` diff --git a/packages/client/src/pages/note.embed.vue b/packages/client/src/pages/note.embed.vue index 1f2989ce2e..dcc4a02261 100644 --- a/packages/client/src/pages/note.embed.vue +++ b/packages/client/src/pages/note.embed.vue @@ -1,34 +1,25 @@