add branding emoji property

This commit is contained in:
blek 2023-10-21 12:06:21 +10:00
parent 2df56a67ea
commit 462f171a5b
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,10 @@ instance_name="blek! File"
# Leave a blank string to disable
instance_motto="A minute file sharing service"
# Instance emoji.
# Used as the icon where icon images are not available
instance_emoji="🌠"
# URL of the instance.
# You must set this to a valid URL
instance_url=""

View File

@ -57,6 +57,11 @@ pub struct Branding {
/// Instance motto
#[serde(default)]
pub instance_motto: String,
/// Instance emoji, displayed like this:
/// 🌠 blek! File
#[serde(default)]
pub instance_emoji: char,
/// Instance URL (not the bind URL). Must be Some(...)
#[serde(default)]
@ -68,6 +73,7 @@ impl Default for Branding {
Branding {
instance_name: "blek! File".into(),
instance_motto: "A minute file sharing".into(),
instance_emoji: '🌠',
instance_url: None,
}
}