fix: removed the determination of the X account name on the Bluesky side

This commit is contained in:
kawamataryo 2024-11-25 08:03:53 +09:00
parent 3c2f18930c
commit a3ad477bae

View File

@ -34,7 +34,7 @@ export const isSimilarUser = (
) {
return {
isSimilar: true,
type: BSKY_USER_MATCH_TYPE.HANDLE,
type: BSKY_USER_MATCH_TYPE.DESCRIPTION,
};
}
}
@ -75,22 +75,6 @@ export const isSimilarUser = (
};
}
if (
bskyProfile.description
?.toLocaleLowerCase()
.includes(`@${lowerCaseNames.accountName}`) &&
!["pfp ", "pfp: ", "pfp by "].some((t) =>
bskyProfile.description
.toLocaleLowerCase()
.includes(`${t}@${lowerCaseNames.accountName}`),
)
) {
return {
isSimilar: true,
type: BSKY_USER_MATCH_TYPE.DESCRIPTION,
};
}
return {
isSimilar: false,
type: BSKY_USER_MATCH_TYPE.NONE,