Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 551d1b7

Browse files
committed
Metaに投稿やユーザーのIDを設定するように
1 parent 7ed1b69 commit 551d1b7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/server/web/views/note.pug

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ block og
1919
meta(property='og:image' content= user.avatarUrl)
2020

2121
block meta
22+
meta(name='misskey:user-username' content=user.username)
23+
meta(name='misskey:user-id' content=user.id)
24+
meta(name='misskey:note-id' content=note.id)
25+
2226
meta(name='twitter:card' content='summary')
2327

2428
if user.twitter

src/server/web/views/user.pug

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ block og
1919
meta(property='og:image' content= img)
2020

2121
block meta
22+
meta(name='misskey:user-username' content=user.username)
23+
meta(name='misskey:user-id' content=user.id)
24+
2225
meta(name='twitter:card' content='summary')
2326

2427
if user.twitter

0 commit comments

Comments
 (0)