From 462f171a5bb163e2639bb3b0812f1a984441ed81 Mon Sep 17 00:00:00 2001 From: blek Date: Sat, 21 Oct 2023 12:06:21 +1000 Subject: [PATCH] add branding emoji property --- filed/config/filed.toml.example | 4 ++++ filed/src/config/types.rs | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/filed/config/filed.toml.example b/filed/config/filed.toml.example index fb54b40..c23a7a1 100644 --- a/filed/config/filed.toml.example +++ b/filed/config/filed.toml.example @@ -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="" \ No newline at end of file diff --git a/filed/src/config/types.rs b/filed/src/config/types.rs index 1252504..5e767c8 100644 --- a/filed/src/config/types.rs +++ b/filed/src/config/types.rs @@ -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, } }