commit 518e95dc99b4db03673a451d866c9f338ea7ef03
parent e40712ca9d3297fc755984ff8091c4628b337beb
Author: René Wagner <rwa@clttr.info>
Date: Fri, 6 Aug 2021 16:50:59 +0200
ensure that seed-requests use absolute URIs
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/serve/models.py b/serve/models.py
@@ -146,4 +146,6 @@ def compute_verbose(request_path):
def process_seed_request(seed_request):
with open(constants.SEED_REQUEST_FILE, "a") as seed_file:
+ if not seed_request.startswith("gemini://"):
+ seed_request = "gemini://{}".format(seed_request)
seed_file.write("{}\n".format(seed_request))
diff --git a/serve/templates/add_seed.gmi b/serve/templates/add_seed.gmi
@@ -2,3 +2,4 @@
Thank you for the addition! geminispace.info usually indexes new sites within a few days, at which point you should see yours ({{ seed_url }}) appearing in the search results!
+