Fix issue URL in activity feed

This commit is contained in:
Teemu Patja 2017-03-01 10:35:16 +02:00
parent 07b61ee9c8
commit f125bd6244
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
2 changed files with 4 additions and 4 deletions

View File

@ -9,12 +9,12 @@
balance
issue-title
item-type
repo-owner
repo-name
issue-number] :as item}]
(let [issue-link [:a
{:href (issue-url repo-name issue-number)}
{:href (issue-url repo-owner repo-name issue-number)}
issue-title]]
(println item)
(case item-type
"new-bounty" [:p "Opened a bounty for " issue-link]
"claim-payout" [:p "Received " [:span.balance "ETH " balance]

View File

@ -28,5 +28,5 @@
(-> (js/moment.utc)
(.to js-time))))
(defn issue-url [repo number]
(str "https://github.com/" repo "/issues/" number))
(defn issue-url [owner repo number]
(str "https://github.com/" owner "/" repo "/issues/" number))