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') %}
+
{{ comment.user.username }}:
+ {% else %}
+
{{ 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') %}
+
{{ comment.user.username }}:
+ {% else %}
+
{{ comment.user.username }}:
+ {% endif %}
{% else %}
-
{{ comment.user.username }}:
+
{{ comment.user.username }}:
{% endif %}
{% if comment.user_id == current_user.id %}