add: ability to require account to view profile

This commit is contained in:
trisua 2025-05-16 21:29:25 -04:00
parent dd4f8b6d58
commit 741fe1c986
4 changed files with 74 additions and 35 deletions

View file

@ -210,6 +210,9 @@ pub struct UserSettings {
/// The mime type of the user's banner.
#[serde(default = "mime_avif")]
pub banner_mime: String,
/// Require an account to view the user's profile.
#[serde(default)]
pub require_account: bool,
}
fn mime_avif() -> String {