From 17e26157318dd64e41e50522e9e5af64300683f0 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 3 Dec 2024 22:36:26 +0100 Subject: fix: fix uploader avatar in hearted comments --- src/frontend/tubo/comments/views.cljs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/frontend/tubo/comments/views.cljs b/src/frontend/tubo/comments/views.cljs index b148f46..6d558e4 100644 --- a/src/frontend/tubo/comments/views.cljs +++ b/src/frontend/tubo/comments/views.cljs @@ -67,7 +67,7 @@ (defn comments [{:keys [comments next-page]} - {:keys [uploader-name uploader-avatar url]}] + {:keys [uploader-name uploader-avatars url]}] (let [pagination-loading? @(rf/subscribe [:show-pagination-loading]) service-color @(rf/subscribe [:service-color])] [:div.flex.flex-col.py-4 @@ -83,7 +83,9 @@ [comment-item (assoc comment :author-name uploader-name - :author-avatar uploader-avatar)]] + :author-avatar (-> uploader-avatars + last + :url))]] (when (and replies show-replies) [:div {:style {:marginLeft "32px"}} (for [[i reply] (map-indexed vector (:items replies))] @@ -91,7 +93,9 @@ [comment-item (assoc reply :author-name uploader-name - :author-avatar uploader-avatar)])])])]) + :author-avatar (-> uploader-avatars + last + :url))])])])]) (when (:url next-page) (if pagination-loading? [layout/loading-icon service-color] -- cgit v1.2.3