Support actor update

This commit is contained in:
Thomas Sileo
2019-09-08 16:55:24 +02:00
parent cc89b0b584
commit 7f4be2cbc2
7 changed files with 55 additions and 5 deletions

View File

@@ -69,6 +69,7 @@ with open(os.path.join(KEY_DIR, "me.yml")) as f:
ICON_URL = conf["icon_url"]
PASS = conf["pass"]
PROFILE_METADATA = conf.get("profile_metadata", {})
HIDE_FOLLOWING = conf.get("hide_following", True)
# Theme-related config
@@ -130,8 +131,8 @@ def _admin_jwt_token() -> str:
ADMIN_API_KEY = get_secret_key("admin_api_key", _admin_jwt_token)
attachments = []
if conf.get("profile_metadata"):
for key, value in conf["profile_metadata"].items():
if PROFILE_METADATA:
for key, value in PROFILE_METADATA.items():
attachments.append(
{"type": "PropertyValue", "name": key, "value": linkify(value)}
)
@@ -176,7 +177,7 @@ BLACKLIST = conf.get("blacklist", [])
DISABLE_WEBMENTIONS = conf.get("disable_webmentions", False)
# By default, we keep 14 of inbox data ; outbox is kept forever (along with bookmarked stuff, outbox replies, liked...)
DAYS_TO_KEEP = 14
DAYS_TO_KEEP = int(conf.get("days_to_keep", 14))
# Load custom emojis (stored in static/emojis)
_load_emojis(ROOT_DIR, BASE_URL)