mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Allow content negotiation for the note permalink
This commit is contained in:
parent
3e7b09b7a8
commit
dc8365ff53
1 changed files with 3 additions and 0 deletions
3
app.py
3
app.py
|
@ -842,6 +842,9 @@ def _build_thread(data, include_children=True):
|
|||
|
||||
@app.route("/note/<note_id>")
|
||||
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)}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue