Skip to content

Commit 0651a7e

Browse files
committed
change the slack-instance to global, fix the lonly parens
1 parent 567592e commit 0651a7e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/clojurians_log/views.clj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@
178178
{:message/keys [user inst user text thread-ts ts] :as message}]
179179

180180
(let [{:user/keys [name slack-id]
181-
:user-profile/keys [display-name real-name image-48]} user
182-
slack-instance (:clojurians-log.application/slack-instance request)]
181+
:user-profile/keys [display-name real-name image-48]} user]
182+
(def slack-instance (:clojurians-log.application/slack-instance request))
183183

184184
;; things in the profile
185185
;; :image_512 :email :real_name_normalized :image_48 :image_192 :real_name :image_72 :image_24
@@ -298,10 +298,7 @@
298298
:user/slack-id [:a {:style "border: none; outline: 0; display: inline-block; padding: 8px 0px;
299299
color: white; background-color: #000; text-align: center; cursor: pointer;
300300
width: 100%; font-size: 18px;"
301-
:href (str "https://clojurians.slack.com//team/" v )} "let's talk on Slack"]
302-
)
303-
)
304-
]]])
301+
:href (str slack-instance "/team/" v )} "let's talk on Slack"]))]]])
305302

306303
(defn- sitemap-xml [{:data/keys [channel-day-tuples http-origin] :as context}]
307304
[:urlset {:xmlns "http://www.sitemaps.org/schemas/sitemap/0.9"}

0 commit comments

Comments
 (0)