Skip to content

Commit

Permalink
fix: revert 推特
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Feb 3, 2024
1 parent 49ac590 commit f8d6695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/BangumiResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function inferLink(person: PersonInformation) {
}
function inferTwitter(person: PersonInformation) {
const twitter = person.infobox?.filter(
(ib) => ib.key === 'X (Twitter)' || (ib.key as string).toLowerCase() === 'twitter'
const twitter = person.infobox?.filter((ib) =>
['推特', 'X (Twitter)', 'Twitter'].includes(ib.key as string)
);
const name = twitter?.[0]?.value as string | undefined;
if (!name) return undefined;
Expand Down

0 comments on commit f8d6695

Please sign in to comment.