{"action":"created","issue":{"url":"https://api.github.com/repos/brave/browser-laptop/issues/3217","repository_url":"https://api.github.com/repos/brave/browser-laptop","labels_url":"https://api.github.com/repos/brave/browser-laptop/issues/3217/labels{/name}","comments_url":"https://api.github.com/repos/brave/browser-laptop/issues/3217/comments","events_url":"https://api.github.com/repos/brave/browser-laptop/issues/3217/events","html_url":"https://github.com/brave/browser-laptop/issues/3217","id":171552181,"number":3217,"title":"when calculating payments, ledger should account for user site exclusions","user":{"login":"diracdeltas","id":549654,"avatar_url":"https://avatars.githubusercontent.com/u/549654?v=3","gravatar_id":"","url":"https://api.github.com/users/diracdeltas","html_url":"https://github.com/diracdeltas","followers_url":"https://api.github.com/users/diracdeltas/followers","following_url":"https://api.github.com/users/diracdeltas/following{/other_user}","gists_url":"https://api.github.com/users/diracdeltas/gists{/gist_id}","starred_url":"https://api.github.com/users/diracdeltas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diracdeltas/subscriptions","organizations_url":"https://api.github.com/users/diracdeltas/orgs","repos_url":"https://api.github.com/users/diracdeltas/repos","events_url":"https://api.github.com/users/diracdeltas/events{/privacy}","received_events_url":"https://api.github.com/users/diracdeltas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mrose17","id":400552,"avatar_url":"https://avatars.githubusercontent.com/u/400552?v=3","gravatar_id":"","url":"https://api.github.com/users/mrose17","html_url":"https://github.com/mrose17","followers_url":"https://api.github.com/users/mrose17/followers","following_url":"https://api.github.com/users/mrose17/following{/other_user}","gists_url":"https://api.github.com/users/mrose17/gists{/gist_id}","starred_url":"https://api.github.com/users/mrose17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrose17/subscriptions","organizations_url":"https://api.github.com/users/mrose17/orgs","repos_url":"https://api.github.com/users/mrose17/repos","events_url":"https://api.github.com/users/mrose17/events{/privacy}","received_events_url":"https://api.github.com/users/mrose17/received_events","type":"User","site_admin":false},"assignees":[{"login":"mrose17","id":400552,"avatar_url":"https://avatars.githubusercontent.com/u/400552?v=3","gravatar_id":"","url":"https://api.github.com/users/mrose17","html_url":"https://github.com/mrose17","followers_url":"https://api.github.com/users/mrose17/followers","following_url":"https://api.github.com/users/mrose17/following{/other_user}","gists_url":"https://api.github.com/users/mrose17/gists{/gist_id}","starred_url":"https://api.github.com/users/mrose17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrose17/subscriptions","organizations_url":"https://api.github.com/users/mrose17/orgs","repos_url":"https://api.github.com/users/mrose17/repos","events_url":"https://api.github.com/users/mrose17/events{/privacy}","received_events_url":"https://api.github.com/users/mrose17/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/brave/browser-laptop/milestones/27","html_url":"https://github.com/brave/browser-laptop/milestones/Brave%20Ledger%20Integration","labels_url":"https://api.github.com/repos/brave/browser-laptop/milestones/27/labels","id":1884607,"number":27,"title":"Brave Ledger Integration","description":"Complete integration of the browser with the Brave Ledger","creator":{"login":"mrose17","id":400552,"avatar_url":"https://avatars.githubusercontent.com/u/400552?v=3","gravatar_id":"","url":"https://api.github.com/users/mrose17","html_url":"https://github.com/mrose17","followers_url":"https://api.github.com/users/mrose17/followers","following_url":"https://api.github.com/users/mrose17/following{/other_user}","gists_url":"https://api.github.com/users/mrose17/gists{/gist_id}","starred_url":"https://api.github.com/users/mrose17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrose17/subscriptions","organizations_url":"https://api.github.com/users/mrose17/orgs","repos_url":"https://api.github.com/users/mrose17/repos","events_url":"https://api.github.com/users/mrose17/events{/privacy}","received_events_url":"https://api.github.com/users/mrose17/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":14,"state":"open","created_at":"2016-07-15T00:34:06Z","updated_at":"2016-08-17T06:42:26Z","due_on":"2016-08-13T07:00:00Z","closed_at":null},"comments":4,"created_at":"2016-08-17T01:03:27Z","updated_at":"2016-08-17T06:54:17Z","closed_at":"2016-08-17T06:42:18Z","body":"@mrose17 to check whether the user has disabled `hostname` for ledger payments in `app/ledger.js`, you can do:\r\n```\r\nconst AppStore = require('../js/stores/appStore')\r\nconst siteSetting = AppStore.getState().get('siteSettings').get(`https?://${hostname}`)\r\nconst disabled = siteSetting && siteSetting.get('ledgerPayments') === false\r\n```\r\n\r\nrequires the ledger-delta-rebase branch for now"},"comment":{"url":"https://api.github.com/repos/brave/browser-laptop/issues/comments/240328625","html_url":"https://github.com/brave/browser-laptop/issues/3217#issuecomment-240328625","issue_url":"https://api.github.com/repos/brave/browser-laptop/issues/3217","id":240328625,"user":{"login":"diracdeltas","id":549654,"avatar_url":"https://avatars.githubusercontent.com/u/549654?v=3","gravatar_id":"","url":"https://api.github.com/users/diracdeltas","html_url":"https://github.com/diracdeltas","followers_url":"https://api.github.com/users/diracdeltas/followers","following_url":"https://api.github.com/users/diracdeltas/following{/other_user}","gists_url":"https://api.github.com/users/diracdeltas/gists{/gist_id}","starred_url":"https://api.github.com/users/diracdeltas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diracdeltas/subscriptions","organizations_url":"https://api.github.com/users/diracdeltas/orgs","repos_url":"https://api.github.com/users/diracdeltas/repos","events_url":"https://api.github.com/users/diracdeltas/events{/privacy}","received_events_url":"https://api.github.com/users/diracdeltas/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T06:54:17Z","updated_at":"2016-08-17T06:54:17Z","body":"@mrose17 actually i got it from the UI spec v3\r\n![screen shot 2016-08-16 at 11 53 14 pm](https://cloud.githubusercontent.com/assets/549654/17727214/bb8736a6-640c-11e6-8499-4b3e4d8349c3.png)\r\n"}}
{"actor":{"display_login":"diracdeltas"}}