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

Move LemmyContext into lemmy_utils crate #5200

Open
5 tasks done
Nutomic opened this issue Nov 13, 2024 · 0 comments
Open
5 tasks done

Move LemmyContext into lemmy_utils crate #5200

Nutomic opened this issue Nov 13, 2024 · 0 comments

Comments

@Nutomic
Copy link
Member

Nutomic commented Nov 13, 2024

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

Summary

This way context can be used in the entire codebase, at the moment it is only available in lemmy_api_common and crates that depend on it. Then we can make Settings private, and only expose it through context instead of a global constant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant