From dc8365ff53ccdd34e97423eb1649b624379eb515 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 20 Jul 2018 12:14:11 +0200 Subject: [PATCH] Allow content negotiation for the note permalink --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 00a290a..9f1ea47 100644 --- a/app.py +++ b/app.py @@ -842,6 +842,9 @@ def _build_thread(data, include_children=True): @app.route("/note/") def note_by_id(note_id): + if is_api_request(): + return redirect(url_for('outbox_activity', item_id=note_id)) + data = DB.activities.find_one( {"box": Box.OUTBOX.value, "remote_id": back.activity_url(note_id)} )