Skip to content

Commit

Permalink
Metaに投稿やユーザーのIDを設定するように
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Apr 3, 2019
1 parent 7ed1b69 commit 551d1b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/web/views/note.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/server/web/views/user.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 551d1b7

Please sign in to comment.