From 30eb21203c1ef3f98d28b649f48269b36beea695 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 8 Sep 2019 09:51:30 +0200 Subject: [PATCH] Add support for CW, and tweak the new note form for mobile --- blueprints/api.py | 1 + templates/new.html | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/blueprints/api.py b/blueprints/api.py index e34a9bc..40bad69 100644 --- a/blueprints/api.py +++ b/blueprints/api.py @@ -432,6 +432,7 @@ def api_new_note() -> _Response: attributedTo=MY_PERSON.id, cc=list(set(cc)), to=list(set(to)), + summary=_user_api_arg("summary", default=""), content=content, tag=tags, source={"mediaType": "text/markdown", "content": source}, diff --git a/templates/new.html b/templates/new.html index f422de1..7db41b0 100644 --- a/templates/new.html +++ b/templates/new.html @@ -23,13 +23,15 @@
- {% for v in visibility %} {% endfor %} {% if reply %}{% endif %} +

+

{% for emoji in emojis %} {{ emoji | emojify | safe }} @@ -39,7 +41,7 @@ {% endfor %}

- + {% if request.args.get("question") == "1" %}