Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: search API type_: "Users" does not filter on listing_type: "Local" #4146

Closed
4 tasks done
tgxn opened this issue Nov 11, 2023 · 0 comments
Closed
4 tasks done
Labels
bug Something isn't working

Comments

@tgxn
Copy link
Contributor

tgxn commented Nov 11, 2023

Requirements

  • Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Summary

image

When browsing or calling the API directly with listing_type it returns users from all instances:
image

Steps to Reproduce

  1. https://lemmy.ml/api/v3/search?q=dess&listing_type=Local&type_=Users

should not show remote users

Technical Details

listing_type is not used in SearchType::Users
https://github.com/LemmyNet/lemmy/blob/main/crates/apub/src/api/search.rs#L102

Version

main branch

Lemmy Instance URL

No response

@tgxn tgxn added the bug Something isn't working label Nov 11, 2023
@tgxn tgxn changed the title [Bug]: search API type_: "Users" does not filter on listing_type: "Local" [Bug]: search API type_: "Users" does not filter on listing_type: "Local" Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant