{"action":"created","comment":{"url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments/60330973","id":60330973,"diff_hunk":"@@ -97,7 +97,8 @@ module.exports = bookshelf.Model.extend({\n   find: function (id, options) {\n     if (!id) return Promise.resolve(null)\n     if (isNaN(Number(id))) {\n-      return Tag.where({name: id}).fetch(options)\n+      return Tag.query(qb => qb.whereRaw('lower(name) = lower(?)', id))","path":"api/models/Tag.js","position":5,"original_position":5,"commit_id":"47e5fa3ab32a59ad298065ca109dde0198cb8e07","original_commit_id":"47e5fa3ab32a59ad298065ca109dde0198cb8e07","user":{"login":"robbiecarlton","id":891124,"avatar_url":"https://avatars.githubusercontent.com/u/891124?v=3","gravatar_id":"","url":"https://api.github.com/users/robbiecarlton","html_url":"https://github.com/robbiecarlton","followers_url":"https://api.github.com/users/robbiecarlton/followers","following_url":"https://api.github.com/users/robbiecarlton/following{/other_user}","gists_url":"https://api.github.com/users/robbiecarlton/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiecarlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiecarlton/subscriptions","organizations_url":"https://api.github.com/users/robbiecarlton/orgs","repos_url":"https://api.github.com/users/robbiecarlton/repos","events_url":"https://api.github.com/users/robbiecarlton/events{/privacy}","received_events_url":"https://api.github.com/users/robbiecarlton/received_events","type":"User","site_admin":false},"body":"Should I sanitize this?","created_at":"2016-04-19T23:43:47Z","updated_at":"2016-04-19T23:43:47Z","html_url":"https://github.com/Hylozoic/hylo-node/pull/117#discussion_r60330973","pull_request_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments/60330973"},"html":{"href":"https://github.com/Hylozoic/hylo-node/pull/117#discussion_r60330973"},"pull_request":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/117","id":67107828,"html_url":"https://github.com/Hylozoic/hylo-node/pull/117","diff_url":"https://github.com/Hylozoic/hylo-node/pull/117.diff","patch_url":"https://github.com/Hylozoic/hylo-node/pull/117.patch","issue_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/117","number":117,"state":"open","locked":false,"title":"(WIP) make tag.find case insensitive","user":{"login":"robbiecarlton","id":891124,"avatar_url":"https://avatars.githubusercontent.com/u/891124?v=3","gravatar_id":"","url":"https://api.github.com/users/robbiecarlton","html_url":"https://github.com/robbiecarlton","followers_url":"https://api.github.com/users/robbiecarlton/followers","following_url":"https://api.github.com/users/robbiecarlton/following{/other_user}","gists_url":"https://api.github.com/users/robbiecarlton/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiecarlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiecarlton/subscriptions","organizations_url":"https://api.github.com/users/robbiecarlton/orgs","repos_url":"https://api.github.com/users/robbiecarlton/repos","events_url":"https://api.github.com/users/robbiecarlton/events{/privacy}","received_events_url":"https://api.github.com/users/robbiecarlton/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-19T23:40:15Z","updated_at":"2016-04-19T23:43:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a07824d4c29d9ec5ddc645736a7e5a07f202f200","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/117/commits","review_comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/117/comments","review_comment_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/117/comments","statuses_url":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/47e5fa3ab32a59ad298065ca109dde0198cb8e07","head":{"label":"Hylozoic:case-insensitive-tags","ref":"case-insensitive-tags","sha":"47e5fa3ab32a59ad298065ca109dde0198cb8e07","user":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"repo":{"id":25898898,"name":"hylo-node","full_name":"Hylozoic/hylo-node","owner":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Hylozoic/hylo-node","description":"The Hylo API.","fork":false,"url":"https://api.github.com/repos/Hylozoic/hylo-node","forks_url":"https://api.github.com/repos/Hylozoic/hylo-node/forks","keys_url":"https://api.github.com/repos/Hylozoic/hylo-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hylozoic/hylo-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hylozoic/hylo-node/teams","hooks_url":"https://api.github.com/repos/Hylozoic/hylo-node/hooks","issue_events_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/events{/number}","events_url":"https://api.github.com/repos/Hylozoic/hylo-node/events","assignees_url":"https://api.github.com/repos/Hylozoic/hylo-node/assignees{/user}","branches_url":"https://api.github.com/repos/Hylozoic/hylo-node/branches{/branch}","tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/tags","blobs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Hylozoic/hylo-node/languages","stargazers_url":"https://api.github.com/repos/Hylozoic/hylo-node/stargazers","contributors_url":"https://api.github.com/repos/Hylozoic/hylo-node/contributors","subscribers_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscribers","subscription_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscription","commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hylozoic/hylo-node/contents/{+path}","compare_url":"https://api.github.com/repos/Hylozoic/hylo-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hylozoic/hylo-node/merges","archive_url":"https://api.github.com/repos/Hylozoic/hylo-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hylozoic/hylo-node/downloads","issues_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues{/number}","pulls_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Hylozoic/hylo-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Hylozoic/hylo-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hylozoic/hylo-node/labels{/name}","releases_url":"https://api.github.com/repos/Hylozoic/hylo-node/releases{/id}","deployments_url":"https://api.github.com/repos/Hylozoic/hylo-node/deployments","created_at":"2014-10-29T01:39:40Z","updated_at":"2016-03-10T07:24:30Z","pushed_at":"2016-04-19T23:43:14Z","git_url":"git://github.com/Hylozoic/hylo-node.git","ssh_url":"git@github.com:Hylozoic/hylo-node.git","clone_url":"https://github.com/Hylozoic/hylo-node.git","svn_url":"https://github.com/Hylozoic/hylo-node","homepage":"https://www.hylo.com/","size":1862,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":12,"default_branch":"master"}},"base":{"label":"Hylozoic:master","ref":"master","sha":"5076c6b7fc855b2d3cc7a6e8a17aa9a4e8753efc","user":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"repo":{"id":25898898,"name":"hylo-node","full_name":"Hylozoic/hylo-node","owner":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Hylozoic/hylo-node","description":"The Hylo API.","fork":false,"url":"https://api.github.com/repos/Hylozoic/hylo-node","forks_url":"https://api.github.com/repos/Hylozoic/hylo-node/forks","keys_url":"https://api.github.com/repos/Hylozoic/hylo-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hylozoic/hylo-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hylozoic/hylo-node/teams","hooks_url":"https://api.github.com/repos/Hylozoic/hylo-node/hooks","issue_events_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/events{/number}","events_url":"https://api.github.com/repos/Hylozoic/hylo-node/events","assignees_url":"https://api.github.com/repos/Hylozoic/hylo-node/assignees{/user}","branches_url":"https://api.github.com/repos/Hylozoic/hylo-node/branches{/branch}","tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/tags","blobs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Hylozoic/hylo-node/languages","stargazers_url":"https://api.github.com/repos/Hylozoic/hylo-node/stargazers","contributors_url":"https://api.github.com/repos/Hylozoic/hylo-node/contributors","subscribers_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscribers","subscription_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscription","commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hylozoic/hylo-node/contents/{+path}","compare_url":"https://api.github.com/repos/Hylozoic/hylo-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hylozoic/hylo-node/merges","archive_url":"https://api.github.com/repos/Hylozoic/hylo-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hylozoic/hylo-node/downloads","issues_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues{/number}","pulls_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Hylozoic/hylo-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Hylozoic/hylo-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hylozoic/hylo-node/labels{/name}","releases_url":"https://api.github.com/repos/Hylozoic/hylo-node/releases{/id}","deployments_url":"https://api.github.com/repos/Hylozoic/hylo-node/deployments","created_at":"2014-10-29T01:39:40Z","updated_at":"2016-03-10T07:24:30Z","pushed_at":"2016-04-19T23:43:14Z","git_url":"git://github.com/Hylozoic/hylo-node.git","ssh_url":"git@github.com:Hylozoic/hylo-node.git","clone_url":"https://github.com/Hylozoic/hylo-node.git","svn_url":"https://github.com/Hylozoic/hylo-node","homepage":"https://www.hylo.com/","size":1862,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/117"},"html":{"href":"https://github.com/Hylozoic/hylo-node/pull/117"},"issue":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/issues/117"},"comments":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/47e5fa3ab32a59ad298065ca109dde0198cb8e07"}}}}