From 9ff8e969f44d3a48285bfeac367f55c4bc79058c Mon Sep 17 00:00:00 2001
From: krek0
Date: Thu, 7 May 2026 13:54:58 +0200
Subject: [PATCH] remove useless |saf tag
---
photologue/templates/photologue/gallery_detail.html | 2 +-
photologue/templates/photologue/photo_detail.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/photologue/templates/photologue/gallery_detail.html b/photologue/templates/photologue/gallery_detail.html
index c435f8d..cba9126 100755
--- a/photologue/templates/photologue/gallery_detail.html
+++ b/photologue/templates/photologue/gallery_detail.html
@@ -66,7 +66,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% endfor %}
{% endif %}
-{% if gallery.description %}{{ gallery.description|safe|linebreaksbr }}
{% endif %}
+{% if gallery.description %}{{ gallery.description|linebreaksbr }}
{% endif %}
{% if not guest_mode %}
diff --git a/photologue/templates/photologue/photo_detail.html b/photologue/templates/photologue/photo_detail.html
index a936847..0c40697 100644
--- a/photologue/templates/photologue/photo_detail.html
+++ b/photologue/templates/photologue/photo_detail.html
@@ -15,7 +15,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% trans "Published" %} {{ object.date_added }}
-{% if object.caption %}{{ object.caption|safe }}
{% endif %}
+{% if object.caption %}{{ object.caption }}
{% endif %}