mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Implement AP remote follow (fixes #15)
This commit is contained in:
parent
c3a2643d63
commit
5e02a7958f
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
@ -759,7 +759,7 @@ def remote_follow():
|
|||
if not profile.startswith("@"):
|
||||
profile = f"@{profile}"
|
||||
return redirect(
|
||||
get_remote_follow_template(profile).format(uri=f"{USERNAME}@{DOMAIN}")
|
||||
get_remote_follow_template(profile).format(uri=ID)
|
||||
)
|
||||
|
||||
|
||||
|
@ -1098,7 +1098,7 @@ def nodeinfo():
|
|||
cached = False
|
||||
q = {
|
||||
"box": Box.OUTBOX.value,
|
||||
"meta.deleted": False, # TODO(tsileo): retrieve deleted and expose tombstone
|
||||
"meta.deleted": False,
|
||||
"type": {"$in": [ActivityType.CREATE.value, ActivityType.ANNOUNCE.value]},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue