Skip to content

Commit f8d6695

Browse files
committed
fix: revert 推特
1 parent 49ac590 commit f8d6695

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: components/BangumiResult.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ function inferLink(person: PersonInformation) {
3131
}
3232
3333
function inferTwitter(person: PersonInformation) {
34-
const twitter = person.infobox?.filter(
35-
(ib) => ib.key === 'X (Twitter)' || (ib.key as string).toLowerCase() === 'twitter'
34+
const twitter = person.infobox?.filter((ib) =>
35+
['推特', 'X (Twitter)', 'Twitter'].includes(ib.key as string)
3636
);
3737
const name = twitter?.[0]?.value as string | undefined;
3838
if (!name) return undefined;

0 commit comments

Comments
 (0)