feat(labrinth): check privacy route (#7195)

* feat(labrinth): check privacy endpoint

* refactor(labrinth): remove duplicated code
This commit is contained in:
Sychic
2026-08-17 22:09:50 +00:00
committed by GitHub
parent 46d07163cd
commit 39c0951ecb
4 changed files with 105 additions and 15 deletions
@@ -16,6 +16,16 @@ pub struct UserPreferences {
pub social: SocialPreferences,
}
impl UserPreferences {
pub fn resolve(overrides: Option<PartialUserPreferences>) -> Self {
let mut preferences = Self::default();
if let Some(overrides) = overrides {
overrides.apply_to(&mut preferences);
}
preferences
}
}
#[derive(
Debug, Serialize, Deserialize, ToSchema, Default, PartialEq, Component,
)]