add support to "alsoKnownAs" property
add "aliases" config option in me.yml
This commit is contained in:
@@ -73,6 +73,8 @@ with open(os.path.join(KEY_DIR, "me.yml")) as f:
|
|||||||
PROFILE_METADATA = conf.get("profile_metadata", {})
|
PROFILE_METADATA = conf.get("profile_metadata", {})
|
||||||
HIDE_FOLLOWING = conf.get("hide_following", True)
|
HIDE_FOLLOWING = conf.get("hide_following", True)
|
||||||
|
|
||||||
|
ALIASES = conf.get('aliases', [])
|
||||||
|
|
||||||
# Theme-related config
|
# Theme-related config
|
||||||
theme_conf = conf.get("theme", {})
|
theme_conf = conf.get("theme", {})
|
||||||
THEME_STYLE = ThemeStyle(theme_conf.get("style", DEFAULT_THEME_STYLE))
|
THEME_STYLE = ThemeStyle(theme_conf.get("style", DEFAULT_THEME_STYLE))
|
||||||
@@ -162,6 +164,7 @@ ME = {
|
|||||||
"url": ICON_URL,
|
"url": ICON_URL,
|
||||||
},
|
},
|
||||||
"publicKey": KEY.to_dict(),
|
"publicKey": KEY.to_dict(),
|
||||||
|
"alsoKnownAs": ALIASES,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Default emojis, space-separated, update `me.yml` to customize emojis
|
# Default emojis, space-separated, update `me.yml` to customize emojis
|
||||||
|
@@ -4,12 +4,16 @@ domain: 'your-domain.tld'
|
|||||||
https: true
|
https: true
|
||||||
summary: 'your summary'
|
summary: 'your summary'
|
||||||
icon_url: 'https://you-avatar-url'
|
icon_url: 'https://you-avatar-url'
|
||||||
|
pass: '<bcrypt password hash>'
|
||||||
#favicon_url: '/static/favicon.png'
|
#favicon_url: '/static/favicon.png'
|
||||||
#pass: '<bcrypt password hash>'
|
|
||||||
#profile_metadata:
|
#profile_metadata:
|
||||||
# name1: 'value'
|
# name1: 'value'
|
||||||
# name2: 'value2'
|
# name2: 'value2'
|
||||||
hide_following: true
|
#hide_following: true
|
||||||
|
#manually_approves_followers: false
|
||||||
|
#aliases:
|
||||||
|
# - "http://example.com/users/name"
|
||||||
|
# - ...
|
||||||
#theme:
|
#theme:
|
||||||
# style: "light" #or "dark"
|
# style: "light" #or "dark"
|
||||||
# color: "#1d781d" # (green, default for light)
|
# color: "#1d781d" # (green, default for light)
|
||||||
|
Reference in New Issue
Block a user