{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/comments/23087966","id":23087966,"diff_hunk":"@@ -203,6 +203,7 @@ module.exports = function(req, res, next) {\n \t\t\t\tmode: 'compact',\n \t\t\t\ttitle: streamRequest.getHumanReadableTitle(),\n \t\t\t\tq: streamRequest.q,\n+\t\t\t\tsafeQ: encodeURIComponent(streamRequest.q),","path":"server/controllers/search.js","position":4,"original_position":4,"commit_id":"9da3c3364503275914fe474b7c9521e5ec32d771","original_commit_id":"9da3c3364503275914fe474b7c9521e5ec32d771","user":{"login":"matthew-andrews","id":825088,"avatar_url":"https://avatars.githubusercontent.com/u/825088?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-andrews","html_url":"https://github.com/matthew-andrews","followers_url":"https://api.github.com/users/matthew-andrews/followers","following_url":"https://api.github.com/users/matthew-andrews/following{/other_user}","gists_url":"https://api.github.com/users/matthew-andrews/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-andrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-andrews/subscriptions","organizations_url":"https://api.github.com/users/matthew-andrews/orgs","repos_url":"https://api.github.com/users/matthew-andrews/repos","events_url":"https://api.github.com/users/matthew-andrews/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-andrews/received_events","type":"User","site_admin":false},"body":"ok for now, but maybe useful as a helper in the long temr? ","created_at":"2015-01-16T15:51:46Z","updated_at":"2015-01-16T15:51:46Z","html_url":"https://github.com/Financial-Times/next-dobi/pull/255#discussion_r23087966","pull_request_url":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/255","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/comments/23087966"},"html":{"href":"https://github.com/Financial-Times/next-dobi/pull/255#discussion_r23087966"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/255","id":27514259,"html_url":"https://github.com/Financial-Times/next-dobi/pull/255","diff_url":"https://github.com/Financial-Times/next-dobi/pull/255.diff","patch_url":"https://github.com/Financial-Times/next-dobi/pull/255.patch","issue_url":"https://api.github.com/repos/Financial-Times/next-dobi/issues/255","number":255,"state":"open","locked":false,"title":"Pagination fix","user":{"login":"wheresrhys","id":447559,"avatar_url":"https://avatars.githubusercontent.com/u/447559?v=3","gravatar_id":"","url":"https://api.github.com/users/wheresrhys","html_url":"https://github.com/wheresrhys","followers_url":"https://api.github.com/users/wheresrhys/followers","following_url":"https://api.github.com/users/wheresrhys/following{/other_user}","gists_url":"https://api.github.com/users/wheresrhys/gists{/gist_id}","starred_url":"https://api.github.com/users/wheresrhys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheresrhys/subscriptions","organizations_url":"https://api.github.com/users/wheresrhys/orgs","repos_url":"https://api.github.com/users/wheresrhys/repos","events_url":"https://api.github.com/users/wheresrhys/events{/privacy}","received_events_url":"https://api.github.com/users/wheresrhys/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-16T15:50:12Z","updated_at":"2015-01-16T15:51:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62767f910fb73f0d83babcc519f2b5f9823a1aa6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/255/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/255/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Financial-Times/next-dobi/issues/255/comments","statuses_url":"https://api.github.com/repos/Financial-Times/next-dobi/statuses/9da3c3364503275914fe474b7c9521e5ec32d771","head":{"label":"Financial-Times:pagination-fix","ref":"pagination-fix","sha":"9da3c3364503275914fe474b7c9521e5ec32d771","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":24595604,"name":"next-dobi","full_name":"Financial-Times/next-dobi","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-dobi","description":"Streams","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-dobi","forks_url":"https://api.github.com/repos/Financial-Times/next-dobi/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-dobi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-dobi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-dobi/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-dobi/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-dobi/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-dobi/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-dobi/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-dobi/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-dobi/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-dobi/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-dobi/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-dobi/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-dobi/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-dobi/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-dobi/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-dobi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-dobi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-dobi/issues/comments/{number}","contents_url":"https://api.github.com/repos/Financial-Times/next-dobi/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-dobi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-dobi/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-dobi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-dobi/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-dobi/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-dobi/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-dobi/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-dobi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-dobi/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-dobi/releases{/id}","created_at":"2014-09-29T13:09:59Z","updated_at":"2015-01-16T15:16:25Z","pushed_at":"2015-01-16T15:50:08Z","git_url":"git://github.com/Financial-Times/next-dobi.git","ssh_url":"git@github.com:Financial-Times/next-dobi.git","clone_url":"https://github.com/Financial-Times/next-dobi.git","svn_url":"https://github.com/Financial-Times/next-dobi","homepage":"","size":8428,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"e915ce0521e7a61e150f06a8319b8f30ea5b5a93","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":24595604,"name":"next-dobi","full_name":"Financial-Times/next-dobi","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-dobi","description":"Streams","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-dobi","forks_url":"https://api.github.com/repos/Financial-Times/next-dobi/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-dobi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-dobi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-dobi/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-dobi/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-dobi/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-dobi/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-dobi/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-dobi/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-dobi/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-dobi/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-dobi/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-dobi/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-dobi/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-dobi/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-dobi/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-dobi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-dobi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-dobi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-dobi/issues/comments/{number}","contents_url":"https://api.github.com/repos/Financial-Times/next-dobi/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-dobi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-dobi/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-dobi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-dobi/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-dobi/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-dobi/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-dobi/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-dobi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-dobi/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-dobi/releases{/id}","created_at":"2014-09-29T13:09:59Z","updated_at":"2015-01-16T15:16:25Z","pushed_at":"2015-01-16T15:50:08Z","git_url":"git://github.com/Financial-Times/next-dobi.git","ssh_url":"git@github.com:Financial-Times/next-dobi.git","clone_url":"https://github.com/Financial-Times/next-dobi.git","svn_url":"https://github.com/Financial-Times/next-dobi","homepage":"","size":8428,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/255"},"html":{"href":"https://github.com/Financial-Times/next-dobi/pull/255"},"issue":{"href":"https://api.github.com/repos/Financial-Times/next-dobi/issues/255"},"comments":{"href":"https://api.github.com/repos/Financial-Times/next-dobi/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/next-dobi/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/next-dobi/statuses/9da3c3364503275914fe474b7c9521e5ec32d771"}}}}