diff --git a/packages/backend/src/server/web/views/clip.pug b/packages/backend/src/server/web/views/clip.pug index 7ad666fd9..12e402616 100644 --- a/packages/backend/src/server/web/views/clip.pug +++ b/packages/backend/src/server/web/views/clip.pug @@ -12,16 +12,12 @@ block desc meta(name='description' content= clip.description) block og - meta(property='og:type' content='article') - meta(property='og:title' content= title) - meta(property='og:description' content= clip.description) - meta(property='og:url' content= url) - meta(property='og:image' content= avatarUrl) + meta(property='og:type' content='website') + meta(property='og:title' content=title) + meta(property='og:description' content=clip.description) + meta(property='og:url' content=url) + meta(property='og:image' content=avatarUrl) block meta if profile.noCrawle meta(name='robots' content='noindex') - - meta(name='misskey:user-username' content=user.username) - meta(name='misskey:user-id' content=user.id) - meta(name='misskey:clip-id' content=clip.id) diff --git a/packages/backend/src/server/web/views/note.pug b/packages/backend/src/server/web/views/note.pug index 0d9f50d89..ae5cc0363 100644 --- a/packages/backend/src/server/web/views/note.pug +++ b/packages/backend/src/server/web/views/note.pug @@ -13,10 +13,12 @@ block desc meta(name='description' content= summary) block og - meta(property='og:type' content='article') - meta(property='og:title' content= title) + meta(property='og:type' content='article') + meta(property='og:article:published_time' content=note.createdAt.toISOString()) + meta(property='og:article:author:username' content=user.username) + meta(property='og:title' content= title) meta(property='og:description' content= summary) - meta(property='og:url' content= url) + meta(property='og:url' content= url) for opengraphTag in filesOpengraph meta(property=opengraphTag[0] content=opengraphTag[1]) @@ -24,10 +26,6 @@ block meta if user.host || isRenote || profile.noCrawle meta(name='robots' content='noindex') - meta(name='misskey:user-username' content=user.username) - meta(name='misskey:user-id' content=user.id) - meta(name='misskey:note-id' content=note.id) - if note.prev link(rel='prev' href=`${config.url}/notes/${note.prev}`) if note.next diff --git a/packages/backend/src/server/web/views/page.pug b/packages/backend/src/server/web/views/page.pug index 03af5cb86..54859e53e 100644 --- a/packages/backend/src/server/web/views/page.pug +++ b/packages/backend/src/server/web/views/page.pug @@ -12,16 +12,13 @@ block desc meta(name='description' content= page.summary) block og - meta(property='og:type' content='article') - meta(property='og:title' content= title) - meta(property='og:description' content= page.summary) - meta(property='og:url' content= url) - meta(property='og:image' content= page.eyeCatchingImage ? page.eyeCatchingImage.thumbnailUrl : avatarUrl) + meta(property='og:type' content='article') + meta(property='og:article:author:username' content=user.username) + meta(property='og:title' content=title) + meta(property='og:description' content=page.summary) + meta(property='og:url' content=url) + meta(property='og:image' content=page.eyeCatchingImage ? page.eyeCatchingImage.thumbnailUrl : avatarUrl) block meta if profile.noCrawle meta(name='robots' content='noindex') - - meta(name='misskey:user-username' content=user.username) - meta(name='misskey:user-id' content=user.id) - meta(name='misskey:page-id' content=page.id) diff --git a/packages/backend/src/server/web/views/user.pug b/packages/backend/src/server/web/views/user.pug index 119993fdb..dfcae89ec 100644 --- a/packages/backend/src/server/web/views/user.pug +++ b/packages/backend/src/server/web/views/user.pug @@ -11,19 +11,16 @@ block desc meta(name='description' content= profile.description) block og - meta(property='og:type' content='blog') - meta(property='og:title' content= title) + meta(property='og:type' content='profile') + meta(property='og:profile:username' content=user.username) meta(property='og:description' content= profile.description) - meta(property='og:url' content= url) - meta(property='og:image' content= avatarUrl) + meta(property='og:url' content=url) + meta(property='og:image' content=avatarUrl) block meta if user.host || profile.noCrawle meta(name='robots' content='noindex') - meta(name='misskey:user-username' content=user.username) - meta(name='misskey:user-id' content=user.id) - if profile.twitter meta(name='twitter:creator' content=`@${profile.twitter.screenName}`)