Merge pull request #16 from kawamataryo/bugfix/search-pure-emoji-display-name

🐛 fix #15. skip when there is no search term
This commit is contained in:
ryo 2023-09-30 07:30:49 +09:00 committed by GitHub
commit 9f50292c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,9 @@ export const searchAndInsertBskyUsers = async (
// Loop over search parameters and break if a user is found
for (const term of searchTerms) {
if (!term) {
continue
}
const [searchResult] = await agent.searchUser({
term: term,
limit: 1,