diff --git a/app.py b/app.py index a3938a7..bc16091 100644 --- a/app.py +++ b/app.py @@ -508,9 +508,7 @@ def outbox(): @app.route("/emoji/") def ap_emoji(name): if name in EMOJIS: - return activitypubify( - **{**EMOJIS[name].to_dict(), "@context": config.DEFAULT_CTX} - ) + return activitypubify(**{**EMOJIS[name], "@context": config.DEFAULT_CTX}) abort(404) diff --git a/blueprints/admin.py b/blueprints/admin.py index 3bae40e..79993df 100644 --- a/blueprints/admin.py +++ b/blueprints/admin.py @@ -265,7 +265,9 @@ def admin_new() -> _Response: thread=thread, visibility=ap.Visibility, emojis=config.EMOJIS.split(" "), - custom_emojis=EMOJIS_BY_NAME, + custom_emojis={ + name: ap.Emoji(**dat) for name, dat in EMOJIS_BY_NAME.items() + }, ) )