Dont inline profile image, instead add endpoint to serve it

This commit is contained in:
Peter Stockings
2024-12-25 00:40:16 +11:00
parent 16e31963cc
commit 806e5105e7
4 changed files with 31 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
<div class="flex items-center justify-center mb-4">
{% if profile.profile_pic %}
<img src="data:image/jpeg;base64,{{ profile.profile_pic }}" alt="Profile Picture"
<img src="{{ url_for('user.profile_image', user_id=current_user.id) }}" alt="Profile Picture"
class="w-24 h-24 rounded-full border">
{% else %}
<img src="{{ url_for('static', filename='default.png') }}" alt="Default Profile Picture"