Skip to content

Commit

Permalink
feat: also use Twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Feb 2, 2024
1 parent 281e251 commit d88e88f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/BangumiResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
</script>
Expand Down

0 comments on commit d88e88f

Please sign in to comment.