mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 11:14:28 +00:00
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):
|
def activity_url(self, obj_id):
|
||||||
"""URL for activity link."""
|
"""URL for activity link."""
|
||||||
# FIXME(tsileo): what about note `url`?
|
|
||||||
return f"{BASE_URL}/outbox/{obj_id}"
|
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
|
@ensure_it_is_me
|
||||||
def outbox_new(self, as_actor: ap.Person, activity: ap.BaseActivity) -> None:
|
def outbox_new(self, as_actor: ap.Person, activity: ap.BaseActivity) -> None:
|
||||||
DB.outbox.insert_one(
|
DB.outbox.insert_one(
|
||||||
|
|
Loading…
Reference in a new issue