{"action":"created","comment":{"url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/comments/137578526","pull_request_review_id":61265844,"id":137578526,"diff_hunk":"@@ -61,8 +61,11 @@ export default class extends Collection {\n         // don't add excluded ids or your own id\n         const notExcluded = excludeList.indexOf(mod.id) === -1 && mod.id !== app.profile.id;\n         // don't add if not a mod or the mod data is missing\n+        // don't add if the currency doesn't match the network\n+        const cur = !!app.serverConfig.testnet ? 'tBTC' : 'BTC';","path":"js/collections/Moderators.js","position":5,"original_position":5,"commit_id":"b806b1a713f0b20966665ed4cc069e53661802d5","original_commit_id":"b806b1a713f0b20966665ed4cc069e53661802d5","user":{"login":"rmisio","id":794517,"avatar_url":"https://avatars1.githubusercontent.com/u/794517?v=4","gravatar_id":"","url":"https://api.github.com/users/rmisio","html_url":"https://github.com/rmisio","followers_url":"https://api.github.com/users/rmisio/followers","following_url":"https://api.github.com/users/rmisio/following{/other_user}","gists_url":"https://api.github.com/users/rmisio/gists{/gist_id}","starred_url":"https://api.github.com/users/rmisio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmisio/subscriptions","organizations_url":"https://api.github.com/users/rmisio/orgs","repos_url":"https://api.github.com/users/rmisio/repos","events_url":"https://api.github.com/users/rmisio/events{/privacy}","received_events_url":"https://api.github.com/users/rmisio/received_events","type":"User","site_admin":false},"body":"Could you use `app.serverConfig.cryptoCurrency` to determine the currency as opposed to the testnet flag? That would make it more robust once we start handling other crypto currency values.","created_at":"2017-09-07T15:48:02Z","updated_at":"2017-09-07T15:50:29Z","html_url":"https://github.com/OpenBazaar/openbazaar-desktop/pull/764#discussion_r137578526","pull_request_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/764","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/comments/137578526"},"html":{"href":"https://github.com/OpenBazaar/openbazaar-desktop/pull/764#discussion_r137578526"},"pull_request":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/764"}}},"pull_request":{"url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/764","id":139200926,"html_url":"https://github.com/OpenBazaar/openbazaar-desktop/pull/764","diff_url":"https://github.com/OpenBazaar/openbazaar-desktop/pull/764.diff","patch_url":"https://github.com/OpenBazaar/openbazaar-desktop/pull/764.patch","issue_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/764","number":764,"state":"open","locked":false,"title":"Don't show moderators that have the wrong currency","user":{"login":"jjeffryes","id":1584275,"avatar_url":"https://avatars0.githubusercontent.com/u/1584275?v=4","gravatar_id":"","url":"https://api.github.com/users/jjeffryes","html_url":"https://github.com/jjeffryes","followers_url":"https://api.github.com/users/jjeffryes/followers","following_url":"https://api.github.com/users/jjeffryes/following{/other_user}","gists_url":"https://api.github.com/users/jjeffryes/gists{/gist_id}","starred_url":"https://api.github.com/users/jjeffryes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjeffryes/subscriptions","organizations_url":"https://api.github.com/users/jjeffryes/orgs","repos_url":"https://api.github.com/users/jjeffryes/repos","events_url":"https://api.github.com/users/jjeffryes/events{/privacy}","received_events_url":"https://api.github.com/users/jjeffryes/received_events","type":"User","site_admin":false},"body":"This will check the currency accepted by a mod, and not show moderators that use the wrong currency (BTC vs. tBTC) for the network (mainnet vs. testnet).","created_at":"2017-09-04T18:54:19Z","updated_at":"2017-09-07T15:50:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f6b4b3a01b01608b05d718cefb3d892e87d84e1","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/764/commits","review_comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/764/comments","review_comment_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/764/comments","statuses_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/statuses/b806b1a713f0b20966665ed4cc069e53661802d5","head":{"label":"OpenBazaar:checkModCurrency","ref":"checkModCurrency","sha":"b806b1a713f0b20966665ed4cc069e53661802d5","user":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars0.githubusercontent.com/u/7438770?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":61640921,"name":"openbazaar-desktop","full_name":"OpenBazaar/openbazaar-desktop","owner":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars0.githubusercontent.com/u/7438770?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenBazaar/openbazaar-desktop","description":"OpenBazaar 2.0 Desktop Client (talks to openbazaar-go server daemon)","fork":false,"url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop","forks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/forks","keys_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/teams","hooks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/hooks","issue_events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/events","assignees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/tags","blobs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/languages","stargazers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/stargazers","contributors_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/contributors","subscribers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/subscribers","subscription_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/subscription","commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/merges","archive_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/downloads","issues_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/labels{/name}","releases_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/deployments","created_at":"2016-06-21T14:34:19Z","updated_at":"2017-09-06T21:26:55Z","pushed_at":"2017-09-07T14:52:41Z","git_url":"git://github.com/OpenBazaar/openbazaar-desktop.git","ssh_url":"git@github.com:OpenBazaar/openbazaar-desktop.git","clone_url":"https://github.com/OpenBazaar/openbazaar-desktop.git","svn_url":"https://github.com/OpenBazaar/openbazaar-desktop","homepage":"","size":10885,"stargazers_count":146,"watchers_count":146,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":137,"forks":41,"open_issues":137,"watchers":146,"default_branch":"master"}},"base":{"label":"OpenBazaar:master","ref":"master","sha":"29365f9d181cb8f3eab308b03bdbfc87d95360fa","user":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars0.githubusercontent.com/u/7438770?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":61640921,"name":"openbazaar-desktop","full_name":"OpenBazaar/openbazaar-desktop","owner":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars0.githubusercontent.com/u/7438770?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenBazaar/openbazaar-desktop","description":"OpenBazaar 2.0 Desktop Client (talks to openbazaar-go server daemon)","fork":false,"url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop","forks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/forks","keys_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/teams","hooks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/hooks","issue_events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/events","assignees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/tags","blobs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/languages","stargazers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/stargazers","contributors_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/contributors","subscribers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/subscribers","subscription_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/subscription","commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/merges","archive_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/downloads","issues_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/labels{/name}","releases_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/deployments","created_at":"2016-06-21T14:34:19Z","updated_at":"2017-09-06T21:26:55Z","pushed_at":"2017-09-07T14:52:41Z","git_url":"git://github.com/OpenBazaar/openbazaar-desktop.git","ssh_url":"git@github.com:OpenBazaar/openbazaar-desktop.git","clone_url":"https://github.com/OpenBazaar/openbazaar-desktop.git","svn_url":"https://github.com/OpenBazaar/openbazaar-desktop","homepage":"","size":10885,"stargazers_count":146,"watchers_count":146,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":137,"forks":41,"open_issues":137,"watchers":146,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/764"},"html":{"href":"https://github.com/OpenBazaar/openbazaar-desktop/pull/764"},"issue":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/764"},"comments":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/764/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/764/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/764/commits"},"statuses":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/statuses/b806b1a713f0b20966665ed4cc069e53661802d5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rmisio"}}