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

Get random community #4698

Open
5 tasks done
aeharding opened this issue May 4, 2024 · 0 comments
Open
5 tasks done

Get random community #4698

aeharding opened this issue May 4, 2024 · 0 comments
Labels
area: api enhancement New feature or request

Comments

@aeharding
Copy link

aeharding commented May 4, 2024

Requirements

  • Is this a feature request? 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 feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

I would like a way to fetch a random community

Describe the solution you'd like.

GET /api/v3/community/random?type_=All

Returns:

GetCommunityResponse

Describe alternatives you've considered.

There is no good alternative. You could get a random page of communities, but there is no way to determine the total number of federated communities for a site (you can only determine # of local communities in site aggregates).

Also, page # is being phased out in favor of page cursor (which is good, but will make the above workaround no longer possible)

Additional context

There is definite user interest for this feature with Voyager.

@aeharding aeharding added the enhancement New feature or request label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants