From 83a667347dad05df66a1e0b17510a38c0cd632c8 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Mon, 10 May 2021 10:31:19 -0700 Subject: [PATCH] Add rel="nofollow" to hardcoded outbound links --- templates/post.html | 6 +++--- templates/utils.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/post.html b/templates/post.html index 761af06..a9d5979 100644 --- a/templates/post.html +++ b/templates/post.html @@ -87,14 +87,14 @@

{{ image.caption }}

{% if image.outbound_url.len() > 0 %} -

{{ image.outbound_url }} +

{{ image.outbound_url }} {% endif %}

{%- endfor %} {% else if post.post_type == "link" %} - {{ post.media.url }} + {{ post.media.url }} {% endif %} @@ -103,7 +103,7 @@

{{ post.upvote_ratio }}% Upvoted

diff --git a/templates/utils.html b/templates/utils.html index 78667a1..5d3e0c5 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -111,7 +111,7 @@ {% call render_hls_notification(format!("{}%23{}", &self.url[1..].replace("&", "%26"), post.id)) %} {% endif %} {% else if post.post_type != "self" %} - + {% if post.thumbnail.url.is_empty() %} Thumbnail