From 66c80d2add297070eadbf794fe16d6c4fda8388b Mon Sep 17 00:00:00 2001
From: Andreas Nedbal <git@pixelde.su>
Date: Mon, 10 Oct 2022 23:14:30 +0200
Subject: [PATCH] Use appropriate image sizes and lazy loading in inbox entry

---
 app/views/inbox/_entry.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/inbox/_entry.haml b/app/views/inbox/_entry.haml
index 421f3532..2a1b6e0b 100644
--- a/app/views/inbox/_entry.haml
+++ b/app/views/inbox/_entry.haml
@@ -3,7 +3,7 @@
     .media
       - unless i.question.author_is_anonymous
         %a.pull-left{ href: user_path(i.question.user) }
-          %img.answerbox__question-user-avatar.avatar-md{ src: i.question.user.profile_picture.url(:medium) }
+          %img.answerbox__question-user-avatar.avatar-md{ src: i.question.user.profile_picture.url(:small), loading: :lazy }
       .media-body
         %h6.text-muted.media-heading.answerbox__question-user
           - if i.question.author_is_anonymous