Skip to content

Commit

Permalink
profile-id -> uuid-d
Browse files Browse the repository at this point in the history
  • Loading branch information
humorless committed Sep 15, 2024
1 parent e162559 commit 740cf3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/co/gaiwan/compass/html/profiles.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@
(o/defstyled profile-detail :div#detail
[c/image-frame :w-100px {t/--arc-thickness "7%"}]
[:.details
[:.bio :mt-2]
[:.links :my-2]
[:.link :w-full :flex :flex-1 :py-1 :font-size-3]
[:.link-type :w-12 :px-2]
[:.link-ref :flex-grow :px-2]]
[:.contact-card :my-2]
[:.contact-card :my-6 :shadow-3
{:background-color t/--surface-2
:padding t/--size-3
:border-radius t/--size-2}]
([{:public-profile/keys [name hidden?]
:user/keys [uuid] :as user} viewer]
[:<>
Expand Down
2 changes: 1 addition & 1 deletion src/co/gaiwan/compass/html/sessions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
[:<>
[c/image-frame {:profile/image (user/avatar-css-value p)}]
[:div.details
[:a {:href (url-for :profile/show {:profile-id (:user/uuid p)})}
[:a {:href (url-for :profile/show {:user-uuid (:user/uuid p)})}
[:div.profile-name (:public-profile/name p)]]]]))

(o/defstyled session-detail :div
Expand Down
2 changes: 1 addition & 1 deletion src/co/gaiwan/compass/routes/profiles.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
;; (log/debug :debug {:req req})
{:html/body
[h/profile-detail
(if-let [profile-id (get-in req [:path-params :profile-id])]
(if-let [profile-id (get-in req [:path-params :user-uuid])]
(db/entity [:user/uuid (parse-uuid profile-id)])
(:identity req)) (:identity req)]})

Expand Down

0 comments on commit 740cf3b

Please sign in to comment.