From 3ba607a00363a7039e02e954064c2fca3c340d70 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 8 Apr 2024 14:53:54 +0200 Subject: [PATCH] fix 500 error --- files/templates/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/post.html b/files/templates/post.html index 7c2046097..136d88dd9 100644 --- a/files/templates/post.html +++ b/files/templates/post.html @@ -148,7 +148,7 @@ {% endif %} {% endif %} - {% if p.url.startswith('https://old.reddit.com/r/') %} + {% if p.url and p.url.startswith('https://old.reddit.com/r/') %} {% endif %}