From f125bd62445a0dbed2f646df7b40ade765375ca8 Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Wed, 1 Mar 2017 10:35:16 +0200 Subject: [PATCH] Fix issue URL in activity feed --- src/cljs/commiteth/activity.cljs | 4 ++-- src/cljs/commiteth/common.cljs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cljs/commiteth/activity.cljs b/src/cljs/commiteth/activity.cljs index e8b7134..b39d100 100644 --- a/src/cljs/commiteth/activity.cljs +++ b/src/cljs/commiteth/activity.cljs @@ -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] diff --git a/src/cljs/commiteth/common.cljs b/src/cljs/commiteth/common.cljs index 6282668..c9b50f1 100644 --- a/src/cljs/commiteth/common.cljs +++ b/src/cljs/commiteth/common.cljs @@ -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))