use owner login as a fallback for revoke card (can be different display name than rep owner)

This commit is contained in:
Rob Culliton 2018-05-17 11:03:31 -04:00
parent 92a012c2ed
commit a9282f503a
No known key found for this signature in database
GPG Key ID: 6FDEF60B3DC84D94
3 changed files with 3 additions and 1 deletions

View File

@ -521,6 +521,7 @@ SELECT
r.owner AS repo_owner,
r.owner_avatar_url AS repo_owner_avatar_url,
o.address AS owner_address,
o.login AS owner_login,
u.address AS payout_address
FROM users o, repositories r, issues i LEFT OUTER JOIN users u ON u.login = i.winner_login
WHERE

View File

@ -76,6 +76,7 @@
:type :item-type
:repo_name :repo-name
:repo_owner :repo-owner
:owner_login :owner-login
:issue_number :issue-number
:issue_id :issue-id
:value_usd :value-usd

View File

@ -328,7 +328,7 @@
"Paid out to " [:span.pg-med.fw5 "@" (or (:winner_login bounty)
;; use repo owner for revoked bounties
;; where no winner login is set
(:repo-owner bounty))]]]
(:owner-login bounty))]]]
[small-card-balances bounty]]])
(defn expandable-bounty-list [bounty-component bounties]