Blog avatars take priority over user photos
This commit is contained in:
parent
a46930b148
commit
61dce0f90f
|
@ -9,10 +9,10 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="blog-author">
|
<div class="blog-author">
|
||||||
{% if post["photo"] %}
|
{% if post["avatar"] %}
|
||||||
<img src="{{ post['photo_url'] }}/{{ post['photo'] }}">
|
|
||||||
{% elif post["avatar"] %}
|
|
||||||
<img src="/static/avatars/{{ post['avatar'] }}">
|
<img src="/static/avatars/{{ post['avatar'] }}">
|
||||||
|
{% elif post["photo"] %}
|
||||||
|
<img src="{{ post['photo_url'] }}/{{ post['photo'] }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="/static/avatars/default.png">
|
<img src="/static/avatars/default.png">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user