From 7480e27c0c3a08ba0af941d77ed56f398b6d067e Mon Sep 17 00:00:00 2001 From: Johann150 Date: Wed, 1 Feb 2023 11:27:27 +0100 Subject: [PATCH] server: remove twitter links from HTML templates Since the twitter integration has been removed, this will never be true and can therefore be removed. --- packages/backend/src/server/web/views/clip.pug | 4 ---- packages/backend/src/server/web/views/note.pug | 4 ---- packages/backend/src/server/web/views/page.pug | 4 ---- 3 files changed, 12 deletions(-) diff --git a/packages/backend/src/server/web/views/clip.pug b/packages/backend/src/server/web/views/clip.pug index 4c692bf59..7ad666fd9 100644 --- a/packages/backend/src/server/web/views/clip.pug +++ b/packages/backend/src/server/web/views/clip.pug @@ -25,7 +25,3 @@ block meta meta(name='misskey:user-username' content=user.username) meta(name='misskey:user-id' content=user.id) meta(name='misskey:clip-id' content=clip.id) - - // todo - if user.twitter - meta(name='twitter:creator' content=`@${user.twitter.screenName}`) diff --git a/packages/backend/src/server/web/views/note.pug b/packages/backend/src/server/web/views/note.pug index 65696ea13..37e8f8a41 100644 --- a/packages/backend/src/server/web/views/note.pug +++ b/packages/backend/src/server/web/views/note.pug @@ -27,10 +27,6 @@ block meta meta(name='misskey:user-id' content=user.id) meta(name='misskey:note-id' content=note.id) - // todo - if user.twitter - meta(name='twitter:creator' content=`@${user.twitter.screenName}`) - 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 4219e76a5..03af5cb86 100644 --- a/packages/backend/src/server/web/views/page.pug +++ b/packages/backend/src/server/web/views/page.pug @@ -25,7 +25,3 @@ block meta meta(name='misskey:user-username' content=user.username) meta(name='misskey:user-id' content=user.id) meta(name='misskey:page-id' content=page.id) - - // todo - if user.twitter - meta(name='twitter:creator' content=`@${user.twitter.screenName}`)