{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/76770001","id":76770001,"diff_hunk":"@@ -1,52 +1,164 @@\n // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later\n \n app.views.ConversationsForm = Backbone.View.extend({\n+  el: \".conversations-form-container\",\n \n   events: {\n-    \"keydown textarea#conversation_text\" : \"keyDown\",\n+    \"keydown textarea.conversation-message-text\": \"keyDown\",\n+    \"submit #conversation-new\": \"onSubmitForm\"\n   },\n \n   initialize: function(opts) {\n-    this.contacts = _.has(opts, \"contacts\") ? opts.contacts : null;\n-    if(!this.contacts || this.contacts.length === 0) {\n-      this.displayNoContactsMessage();\n-      return;\n+    this.conversationParticipants = [];\n+\n+    this.search = new app.views.SearchBase({\n+      el: this.$el.find(\"#new-conversation\"),\n+      typeaheadInput: this.getTypeaheadElement(),\n+      customSearch: true,\n+      autoselect: true,\n+      remoteRoute: \"/contacts\"","path":"app/assets/javascripts/app/views/conversations_form_view.js","position":24,"original_position":24,"commit_id":"699117b7ab72cfb6c664744cc55dfd5968dcff0b","original_commit_id":"699117b7ab72cfb6c664744cc55dfd5968dcff0b","user":{"login":"svbergerem","id":3798614,"avatar_url":"https://avatars.githubusercontent.com/u/3798614?v=3","gravatar_id":"","url":"https://api.github.com/users/svbergerem","html_url":"https://github.com/svbergerem","followers_url":"https://api.github.com/users/svbergerem/followers","following_url":"https://api.github.com/users/svbergerem/following{/other_user}","gists_url":"https://api.github.com/users/svbergerem/gists{/gist_id}","starred_url":"https://api.github.com/users/svbergerem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svbergerem/subscriptions","organizations_url":"https://api.github.com/users/svbergerem/orgs","repos_url":"https://api.github.com/users/svbergerem/repos","events_url":"https://api.github.com/users/svbergerem/events{/privacy}","received_events_url":"https://api.github.com/users/svbergerem/received_events","type":"User","site_admin":false},"body":"We should make sure that the route we use only returns mutual contacts.","created_at":"2016-08-30T10:33:13Z","updated_at":"2016-08-30T10:33:13Z","html_url":"https://github.com/diaspora/diaspora/pull/6917#discussion_r76770001","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6917","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/76770001"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6917#discussion_r76770001"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6917"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/6917","id":77447248,"html_url":"https://github.com/diaspora/diaspora/pull/6917","diff_url":"https://github.com/diaspora/diaspora/pull/6917.diff","patch_url":"https://github.com/diaspora/diaspora/pull/6917.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/6917","number":6917,"state":"open","locked":false,"title":"Port conversations backbone, use Typeahead pt. 2 and Bootstrap tag","user":{"login":"AugierLe42e","id":3429231,"avatar_url":"https://avatars.githubusercontent.com/u/3429231?v=3","gravatar_id":"","url":"https://api.github.com/users/AugierLe42e","html_url":"https://github.com/AugierLe42e","followers_url":"https://api.github.com/users/AugierLe42e/followers","following_url":"https://api.github.com/users/AugierLe42e/following{/other_user}","gists_url":"https://api.github.com/users/AugierLe42e/gists{/gist_id}","starred_url":"https://api.github.com/users/AugierLe42e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AugierLe42e/subscriptions","organizations_url":"https://api.github.com/users/AugierLe42e/orgs","repos_url":"https://api.github.com/users/AugierLe42e/repos","events_url":"https://api.github.com/users/AugierLe42e/events{/privacy}","received_events_url":"https://api.github.com/users/AugierLe42e/received_events","type":"User","site_admin":false},"body":"* [x] Fix cukes and Jasmine\r\n* [x] Write tests\r\n* [x] Fix cucumber\r\n\r\n![screen shot 2016-07-14 at 01 07 01](https://cloud.githubusercontent.com/assets/3429231/16839279/94e9601c-49ce-11e6-96ed-4ced6f2ac1d9.png)\r\n","created_at":"2016-07-14T12:24:24Z","updated_at":"2016-08-30T10:33:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a07ff2b398cecb816af63712046272a3da361b0c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6917/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6917/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/6917/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/699117b7ab72cfb6c664744cc55dfd5968dcff0b","head":{"label":"AugierLe42e:port-conversations-backbone","ref":"port-conversations-backbone","sha":"699117b7ab72cfb6c664744cc55dfd5968dcff0b","user":{"login":"AugierLe42e","id":3429231,"avatar_url":"https://avatars.githubusercontent.com/u/3429231?v=3","gravatar_id":"","url":"https://api.github.com/users/AugierLe42e","html_url":"https://github.com/AugierLe42e","followers_url":"https://api.github.com/users/AugierLe42e/followers","following_url":"https://api.github.com/users/AugierLe42e/following{/other_user}","gists_url":"https://api.github.com/users/AugierLe42e/gists{/gist_id}","starred_url":"https://api.github.com/users/AugierLe42e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AugierLe42e/subscriptions","organizations_url":"https://api.github.com/users/AugierLe42e/orgs","repos_url":"https://api.github.com/users/AugierLe42e/repos","events_url":"https://api.github.com/users/AugierLe42e/events{/privacy}","received_events_url":"https://api.github.com/users/AugierLe42e/received_events","type":"User","site_admin":false},"repo":{"id":25200087,"name":"diaspora","full_name":"AugierLe42e/diaspora","owner":{"login":"AugierLe42e","id":3429231,"avatar_url":"https://avatars.githubusercontent.com/u/3429231?v=3","gravatar_id":"","url":"https://api.github.com/users/AugierLe42e","html_url":"https://github.com/AugierLe42e","followers_url":"https://api.github.com/users/AugierLe42e/followers","following_url":"https://api.github.com/users/AugierLe42e/following{/other_user}","gists_url":"https://api.github.com/users/AugierLe42e/gists{/gist_id}","starred_url":"https://api.github.com/users/AugierLe42e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AugierLe42e/subscriptions","organizations_url":"https://api.github.com/users/AugierLe42e/orgs","repos_url":"https://api.github.com/users/AugierLe42e/repos","events_url":"https://api.github.com/users/AugierLe42e/events{/privacy}","received_events_url":"https://api.github.com/users/AugierLe42e/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AugierLe42e/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/AugierLe42e/diaspora","forks_url":"https://api.github.com/repos/AugierLe42e/diaspora/forks","keys_url":"https://api.github.com/repos/AugierLe42e/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AugierLe42e/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AugierLe42e/diaspora/teams","hooks_url":"https://api.github.com/repos/AugierLe42e/diaspora/hooks","issue_events_url":"https://api.github.com/repos/AugierLe42e/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/AugierLe42e/diaspora/events","assignees_url":"https://api.github.com/repos/AugierLe42e/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/AugierLe42e/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/AugierLe42e/diaspora/tags","blobs_url":"https://api.github.com/repos/AugierLe42e/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AugierLe42e/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AugierLe42e/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/AugierLe42e/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AugierLe42e/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/AugierLe42e/diaspora/languages","stargazers_url":"https://api.github.com/repos/AugierLe42e/diaspora/stargazers","contributors_url":"https://api.github.com/repos/AugierLe42e/diaspora/contributors","subscribers_url":"https://api.github.com/repos/AugierLe42e/diaspora/subscribers","subscription_url":"https://api.github.com/repos/AugierLe42e/diaspora/subscription","commits_url":"https://api.github.com/repos/AugierLe42e/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/AugierLe42e/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/AugierLe42e/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/AugierLe42e/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/AugierLe42e/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/AugierLe42e/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AugierLe42e/diaspora/merges","archive_url":"https://api.github.com/repos/AugierLe42e/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AugierLe42e/diaspora/downloads","issues_url":"https://api.github.com/repos/AugierLe42e/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/AugierLe42e/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/AugierLe42e/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/AugierLe42e/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AugierLe42e/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/AugierLe42e/diaspora/releases{/id}","deployments_url":"https://api.github.com/repos/AugierLe42e/diaspora/deployments","created_at":"2014-10-14T09:47:25Z","updated_at":"2016-01-15T14:53:06Z","pushed_at":"2016-08-27T10:06:38Z","git_url":"git://github.com/AugierLe42e/diaspora.git","ssh_url":"git@github.com:AugierLe42e/diaspora.git","clone_url":"https://github.com/AugierLe42e/diaspora.git","svn_url":"https://github.com/AugierLe42e/diaspora","homepage":"https://diasporafoundation.org/","size":100234,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"diaspora:develop","ref":"develop","sha":"e3b9816ccf11adc2189fe17393a00add1fec06c4","user":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"repo":{"id":911765,"name":"diaspora","full_name":"diaspora/diaspora","owner":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diaspora/diaspora","description":"A privacy-aware, distributed, open source social network.","fork":false,"url":"https://api.github.com/repos/diaspora/diaspora","forks_url":"https://api.github.com/repos/diaspora/diaspora/forks","keys_url":"https://api.github.com/repos/diaspora/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diaspora/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diaspora/diaspora/teams","hooks_url":"https://api.github.com/repos/diaspora/diaspora/hooks","issue_events_url":"https://api.github.com/repos/diaspora/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/diaspora/diaspora/events","assignees_url":"https://api.github.com/repos/diaspora/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/diaspora/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/diaspora/diaspora/tags","blobs_url":"https://api.github.com/repos/diaspora/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diaspora/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diaspora/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/diaspora/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/diaspora/diaspora/languages","stargazers_url":"https://api.github.com/repos/diaspora/diaspora/stargazers","contributors_url":"https://api.github.com/repos/diaspora/diaspora/contributors","subscribers_url":"https://api.github.com/repos/diaspora/diaspora/subscribers","subscription_url":"https://api.github.com/repos/diaspora/diaspora/subscription","commits_url":"https://api.github.com/repos/diaspora/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/diaspora/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/diaspora/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/diaspora/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/diaspora/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/diaspora/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diaspora/diaspora/merges","archive_url":"https://api.github.com/repos/diaspora/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diaspora/diaspora/downloads","issues_url":"https://api.github.com/repos/diaspora/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/diaspora/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/diaspora/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/diaspora/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diaspora/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/diaspora/diaspora/releases{/id}","deployments_url":"https://api.github.com/repos/diaspora/diaspora/deployments","created_at":"2010-09-15T05:20:04Z","updated_at":"2016-08-28T16:37:03Z","pushed_at":"2016-08-29T10:53:37Z","git_url":"git://github.com/diaspora/diaspora.git","ssh_url":"git@github.com:diaspora/diaspora.git","clone_url":"https://github.com/diaspora/diaspora.git","svn_url":"https://github.com/diaspora/diaspora","homepage":"https://diasporafoundation.org/","size":244009,"stargazers_count":10863,"watchers_count":10863,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2774,"mirror_url":null,"open_issues_count":381,"forks":2774,"open_issues":381,"watchers":10863,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6917"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6917"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6917"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6917/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6917/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6917/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/699117b7ab72cfb6c664744cc55dfd5968dcff0b"}}}}
{"actor":{"display_login":"svbergerem"}}