From d88e88f3737c56d5583afc069b411c32e1fa75df Mon Sep 17 00:00:00 2001 From: XLor Date: Sat, 3 Feb 2024 01:34:15 +0800 Subject: [PATCH] feat: also use Twitter --- components/BangumiResult.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/BangumiResult.vue b/components/BangumiResult.vue index d387b84..77821ce 100644 --- a/components/BangumiResult.vue +++ b/components/BangumiResult.vue @@ -9,7 +9,9 @@ const props = defineProps<{ }>(); function inferTwitter(person: PersonInformation) { - const twitter = person.infobox?.filter((ib) => ib.key === '推特'); + const twitter = person.infobox?.filter( + (ib) => ib.key === '推特' || (ib.key as string).toLowerCase() === 'twitter' + ); return twitter?.[0]?.value as string | undefined; }