From 49d38209a3a736ccb2b6422e5f13e73c5228c3b4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 4 Apr 2019 02:22:50 +0900 Subject: [PATCH] =?UTF-8?q?Meta=E3=81=AB=E6=8A=95=E7=A8=BF=E3=82=84?= =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E3=81=AEID=E3=82=92?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/web/views/note.pug | 4 ++++ src/server/web/views/user.pug | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/server/web/views/note.pug b/src/server/web/views/note.pug index 875d67e2f..dd6dda258 100644 --- a/src/server/web/views/note.pug +++ b/src/server/web/views/note.pug @@ -19,6 +19,10 @@ block og meta(property='og:image' content= user.avatarUrl) block meta + meta(name='misskey:user-username' content=user.username) + meta(name='misskey:user-id' content=user.id) + meta(name='misskey:note-id' content=note.id) + meta(name='twitter:card' content='summary') if user.twitter diff --git a/src/server/web/views/user.pug b/src/server/web/views/user.pug index 04109c687..3f32933f5 100644 --- a/src/server/web/views/user.pug +++ b/src/server/web/views/user.pug @@ -19,6 +19,9 @@ block og meta(property='og:image' content= img) block meta + meta(name='misskey:user-username' content=user.username) + meta(name='misskey:user-id' content=user.id) + meta(name='twitter:card' content='summary') if user.twitter