From 8ca9d016887f4d5b5af0f2d81711d59adc04aa18 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 16 Nov 2024 07:29:09 +0100 Subject: [PATCH] `webfinger`: Don't link self --- acrate-webfinger/src/webfinger.html.j2 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/acrate-webfinger/src/webfinger.html.j2 b/acrate-webfinger/src/webfinger.html.j2 index 3fcc79c..3c4f191 100644 --- a/acrate-webfinger/src/webfinger.html.j2 +++ b/acrate-webfinger/src/webfinger.html.j2 @@ -128,7 +128,16 @@ {% for link in links %}

- {{ link[0] }}{% if link[1] is not none %} ({{ link[1] }}){% endif %} + {% if link[0] != "self" %} + {{ link[0] }} + {% else %} + {{ link[0] }} + {% endif %} + {% if link[1] is not none %} + + ({{ link[1] }}) + + {% endif %}