Do not match handle in description if it has "pfp" (profile pic) immediately before it in the description, as it's likely just giving credit to the account we are trying to match.

If an artist made their own pfp, they will not bother mentioning it.
This commit is contained in:
lowercase_donkey 2023-11-19 01:48:18 -05:00
parent 99d1565b87
commit c534c2c671

View File

@ -39,7 +39,7 @@ export const isSimilarUser = (names: Names, bskyProfile: ProfileView | undefined
}
}
if (bskyProfile.description?.toLocaleLowerCase().includes(`@${lowerCaseNames.accountName}`)) {
if (bskyProfile.description?.toLocaleLowerCase().includes(`@${lowerCaseNames.accountName}`) && !bskyProfile.description?.toLocaleLowerCase().includes(`pfp @${lowerCaseNames.accountName}`)) {
return {
isSimilar: true,
type: BSKY_USER_MATCH_TYPE.DESCRIPTION,