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(