From 5ce3d57faf862f53945fd19f83cef37ec78b846d Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 23 Jun 2018 01:14:35 +0200 Subject: [PATCH] Fix the note URL issue --- activitypub.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/activitypub.py b/activitypub.py index a167360..d5a61ed 100644 --- a/activitypub.py +++ b/activitypub.py @@ -64,9 +64,12 @@ class MicroblogPubBackend(Backend): def activity_url(self, obj_id): """URL for activity link.""" - # FIXME(tsileo): what about note `url`? return f"{BASE_URL}/outbox/{obj_id}" + def note_url(self, obj_id): + """URL for activity link.""" + return f"{BASE_URL}/note/{obj_id}" + @ensure_it_is_me def outbox_new(self, as_actor: ap.Person, activity: ap.BaseActivity) -> None: DB.outbox.insert_one(