mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-10 14:11:22 -06:00
Only search unique terms
This commit is contained in:
parent
be2779da79
commit
a84e11ad2a
@ -16,8 +16,9 @@ export const searchBskyUser = async ({
|
|||||||
userData.twAccountNameReplaceUnderscore,
|
userData.twAccountNameReplaceUnderscore,
|
||||||
userData.twDisplayName,
|
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
|
// one symbol is not a valid search term for bsky
|
||||||
if (!term || isOneSymbol(term)) {
|
if (!term || isOneSymbol(term)) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user