forked from forks/microblog.pub
More bugfixes
This commit is contained in:
parent
40c847f1bd
commit
a8d571f2a3
2 changed files with 4 additions and 4 deletions
4
app.py
4
app.py
|
@ -508,9 +508,7 @@ def outbox():
|
||||||
@app.route("/emoji/<name>")
|
@app.route("/emoji/<name>")
|
||||||
def ap_emoji(name):
|
def ap_emoji(name):
|
||||||
if name in EMOJIS:
|
if name in EMOJIS:
|
||||||
return activitypubify(
|
return activitypubify(**{**EMOJIS[name], "@context": config.DEFAULT_CTX})
|
||||||
**{**EMOJIS[name].to_dict(), "@context": config.DEFAULT_CTX}
|
|
||||||
)
|
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -265,7 +265,9 @@ def admin_new() -> _Response:
|
||||||
thread=thread,
|
thread=thread,
|
||||||
visibility=ap.Visibility,
|
visibility=ap.Visibility,
|
||||||
emojis=config.EMOJIS.split(" "),
|
emojis=config.EMOJIS.split(" "),
|
||||||
custom_emojis=EMOJIS_BY_NAME,
|
custom_emojis={
|
||||||
|
name: ap.Emoji(**dat) for name, dat in EMOJIS_BY_NAME.items()
|
||||||
|
},
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue