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("@"):
|
if not profile.startswith("@"):
|
||||||
profile = f"@{profile}"
|
profile = f"@{profile}"
|
||||||
return redirect(
|
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
|
cached = False
|
||||||
q = {
|
q = {
|
||||||
"box": Box.OUTBOX.value,
|
"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]},
|
"type": {"$in": [ActivityType.CREATE.value, ActivityType.ANNOUNCE.value]},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue