From 5e02a7958ffaba4e229b4475f5e9e5a8d52d341e Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 27 Jul 2019 00:18:02 +0200 Subject: [PATCH] Implement AP remote follow (fixes #15) --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 8dd51fc..34678dc 100644 --- a/app.py +++ b/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]}, }