From 0e9024949b9a793969f5f535c1ae6e909f642c65 Mon Sep 17 00:00:00 2001 From: Michatec <121869403+Michatec@users.noreply.github.com> Date: Sun, 23 Nov 2025 10:53:37 +0100 Subject: [PATCH] Fix comments Gravatar not shown --- templates/feed.html | 8 ++++++-- templates/my_posts.html | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/templates/feed.html b/templates/feed.html index abd7fa8..986e137 100644 --- a/templates/feed.html +++ b/templates/feed.html @@ -105,9 +105,13 @@ {% for comment in post.comments %}
{% if comment.user.profile_pic and comment.user.profile_pic != 'default.png' %} - {{ comment.user.username }}: + {% if comment.user.profile_pic.startswith('http') %} + Profile Picture{{ comment.user.username }}: + {% else %} + Profile Picture{{ comment.user.username }}: + {% endif %} {% else %} - {{ comment.user.username }}: + {{ comment.user.username }}: {% endif %} {{ comment.content }} {% if comment.user_id == current_user.id %} diff --git a/templates/my_posts.html b/templates/my_posts.html index 24dccbf..eb41fcf 100644 --- a/templates/my_posts.html +++ b/templates/my_posts.html @@ -76,9 +76,13 @@ {% for comment in post.comments %}
{% if comment.user.profile_pic and comment.user.profile_pic != 'default.png' %} - {{ comment.user.username }}: + {% if comment.user.profile_pic.startswith('http') %} + Profile Picture{{ comment.user.username }}: + {% else %} + Profile Picture{{ comment.user.username }}: + {% endif %} {% else %} - {{ comment.user.username }}: + {{ comment.user.username }}: {% endif %} {% if comment.user_id == current_user.id %}