add support to "alsoKnownAs" property

add "aliases" config option in me.yml
This commit is contained in:
Fabio
2020-03-27 13:11:52 +01:00
parent 32964a413b
commit 7ec61e9b7f
2 changed files with 9 additions and 2 deletions

View File

@@ -73,6 +73,8 @@ with open(os.path.join(KEY_DIR, "me.yml")) as f:
PROFILE_METADATA = conf.get("profile_metadata", {})
HIDE_FOLLOWING = conf.get("hide_following", True)
ALIASES = conf.get('aliases', [])
# Theme-related config
theme_conf = conf.get("theme", {})
THEME_STYLE = ThemeStyle(theme_conf.get("style", DEFAULT_THEME_STYLE))
@@ -162,6 +164,7 @@ ME = {
"url": ICON_URL,
},
"publicKey": KEY.to_dict(),
"alsoKnownAs": ALIASES,
}
# Default emojis, space-separated, update `me.yml` to customize emojis

View File

@@ -4,12 +4,16 @@ domain: 'your-domain.tld'
https: true
summary: 'your summary'
icon_url: 'https://you-avatar-url'
pass: '<bcrypt password hash>'
#favicon_url: '/static/favicon.png'
#pass: '<bcrypt password hash>'
#profile_metadata:
# name1: 'value'
# name2: 'value2'
hide_following: true
#hide_following: true
#manually_approves_followers: false
#aliases:
# - "http://example.com/users/name"
# - ...
#theme:
# style: "light" #or "dark"
# color: "#1d781d" # (green, default for light)