Fix the note URL issue

This commit is contained in:
Thomas Sileo 2018-06-23 01:14:35 +02:00
parent be68208056
commit 5ce3d57faf

View file

@ -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(