aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-03 22:36:26 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-03 22:36:26 +0100
commit17e26157318dd64e41e50522e9e5af64300683f0 (patch)
tree4eb8941ace476acb0cc10e6f73762ee32012d204 /src
parentaaa9984768ad73d5a46cedef0d4f77a1926e2a62 (diff)
fix: fix uploader avatar in hearted comments
Diffstat (limited to 'src')
-rw-r--r--src/frontend/tubo/comments/views.cljs10
1 files 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]