add: anonymous username and anonymous avatar
This commit is contained in:
parent
a78ee0f8d2
commit
434f2ba00d
3 changed files with 53 additions and 3 deletions
|
@ -139,6 +139,12 @@ pub struct UserSettings {
|
|||
/// If questions from anonymous users are allowed. Requires `enable_questions`.
|
||||
#[serde(default)]
|
||||
pub allow_anonymous_questions: bool,
|
||||
/// The username used for anonymous users.
|
||||
#[serde(default)]
|
||||
pub anonymous_username: String,
|
||||
/// The URL of the avatar used for anonymous users.
|
||||
#[serde(default)]
|
||||
pub anonymous_avatar_url: String,
|
||||
}
|
||||
|
||||
impl Default for User {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue