mirror of
https://github.com/Michatec/MiniFaceBook.git
synced 2026-03-31 23:46:30 +02:00
Fix comments Gravatar not shown
This commit is contained in:
@@ -105,9 +105,13 @@
|
||||
{% for comment in post.comments %}
|
||||
<div class="mt-1">
|
||||
{% if comment.user.profile_pic and comment.user.profile_pic != 'default.png' %}
|
||||
<img src="{{ url_for('static', filename='profile_pics/' ~ comment.user.profile_pic) }}" class="rounded me-2" width="32"><b>{{ comment.user.username }}</b>:
|
||||
{% if comment.user.profile_pic.startswith('http') %}
|
||||
<img src="{{ comment.user.profile_pic }}" class="rounded me-2" width="32" alt="Profile Picture"><b>{{ comment.user.username }}</b>:
|
||||
{% else %}
|
||||
<img src="{{ url_for('static', filename='profile_pics/' ~ comment.user.profile_pic) }}" class="rounded me-2" width="32" alt="Profile Picture"><b>{{ comment.user.username }}</b>:
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<i class="bi bi-person me-1"></i><b>{{ comment.user.username }}</b>:
|
||||
<i class="bi bi-person-circle me-2"></i><b>{{ comment.user.username }}</b>:
|
||||
{% endif %}
|
||||
{{ comment.content }}
|
||||
{% if comment.user_id == current_user.id %}
|
||||
|
||||
Reference in New Issue
Block a user