Merge pull request #102 from xPaw/dupe-search

This commit is contained in:
ryo 2024-11-17 08:49:10 +09:00 committed by GitHub
commit 57b68651df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,8 +16,9 @@ export const searchBskyUser = async ({
userData.twAccountNameReplaceUnderscore,
userData.twDisplayName,
];
const uniqueSearchTerms = new Set(searchTerms);
for (const term of searchTerms) {
for (const term of uniqueSearchTerms) {
// one symbol is not a valid search term for bsky
if (!term || isOneSymbol(term)) {
continue;