Fix the note URL issue
This commit is contained in:
parent
be68208056
commit
5ce3d57faf
1 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue