{"action":"created","comment":{"url":"https://api.github.com/repos/Calligre/attendee-web/pulls/comments/92028945","pull_request_review_id":12537703,"id":92028945,"diff_hunk":"@@ -52,25 +55,58 @@ class NewsFeedStore extends EventEmitter {\n     }\n   }\n \n-  incrementLike() {\n-    console.log(\"TODO: incrementLike\");\n+  likePost(postId) {\n+    $.ajax({\n+      type: \"POST\",\n+      url: url + \"/api/social/\" + postId + \"/likes\",\n+      headers: {\n+        \"Authorization\": \"Bearer \" + AuthService.getToken()\n+      },\n+      contentType:\"application/json\",\n+      cache: false,\n+      statusCode: {","path":"src/js/stores/NewsFeedStore.jsx","position":84,"original_position":66,"commit_id":"8399835699aa3c484545e6d925587916102d11dd","original_commit_id":"8399835699aa3c484545e6d925587916102d11dd","user":{"login":"larajanecka","id":5514212,"avatar_url":"https://avatars.githubusercontent.com/u/5514212?v=3","gravatar_id":"","url":"https://api.github.com/users/larajanecka","html_url":"https://github.com/larajanecka","followers_url":"https://api.github.com/users/larajanecka/followers","following_url":"https://api.github.com/users/larajanecka/following{/other_user}","gists_url":"https://api.github.com/users/larajanecka/gists{/gist_id}","starred_url":"https://api.github.com/users/larajanecka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larajanecka/subscriptions","organizations_url":"https://api.github.com/users/larajanecka/orgs","repos_url":"https://api.github.com/users/larajanecka/repos","events_url":"https://api.github.com/users/larajanecka/events{/privacy}","received_events_url":"https://api.github.com/users/larajanecka/received_events","type":"User","site_admin":false},"body":"ooohhhhh I didn't know this was a thing. We need to use status code more.","created_at":"2016-12-12T20:07:30Z","updated_at":"2016-12-12T20:19:37Z","html_url":"https://github.com/Calligre/attendee-web/pull/48#discussion_r92028945","pull_request_url":"https://api.github.com/repos/Calligre/attendee-web/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/Calligre/attendee-web/pulls/comments/92028945"},"html":{"href":"https://github.com/Calligre/attendee-web/pull/48#discussion_r92028945"},"pull_request":{"href":"https://api.github.com/repos/Calligre/attendee-web/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/Calligre/attendee-web/pulls/48","id":95119498,"html_url":"https://github.com/Calligre/attendee-web/pull/48","diff_url":"https://github.com/Calligre/attendee-web/pull/48.diff","patch_url":"https://github.com/Calligre/attendee-web/pull/48.patch","issue_url":"https://api.github.com/repos/Calligre/attendee-web/issues/48","number":48,"state":"open","locked":false,"title":"Newsfeed","user":{"login":"ericljpemberton","id":5232841,"avatar_url":"https://avatars.githubusercontent.com/u/5232841?v=3","gravatar_id":"","url":"https://api.github.com/users/ericljpemberton","html_url":"https://github.com/ericljpemberton","followers_url":"https://api.github.com/users/ericljpemberton/followers","following_url":"https://api.github.com/users/ericljpemberton/following{/other_user}","gists_url":"https://api.github.com/users/ericljpemberton/gists{/gist_id}","starred_url":"https://api.github.com/users/ericljpemberton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericljpemberton/subscriptions","organizations_url":"https://api.github.com/users/ericljpemberton/orgs","repos_url":"https://api.github.com/users/ericljpemberton/repos","events_url":"https://api.github.com/users/ericljpemberton/events{/privacy}","received_events_url":"https://api.github.com/users/ericljpemberton/received_events","type":"User","site_admin":false},"body":"## News Feed Update\r\n\r\n#### Functionality\r\n\r\nShould look correct on pretty much any device.\r\nTested on Nexus 5x, Nexus 6p, iphone 5, iphone 6, iphone 6 plus, ipad, galaxy note 3 as well as a variety of laptop sizes\r\n\r\n#### Todo's\r\n\r\nI need to determine if a user has connected Facebook and/or Twitter (How can I find this info)\r\nI need to pop up a window to connect to them if they click on them when trying to make a post (do we have a component for this)\r\nEDIT: DONE... I need to create a full screen photo view window to see news feed posts\r\nStrictly limit characters to 140 for tweets. There is already a warning if a user is linking twitter and the post is over the limit but it needs to be enforced (cut off the text if it is over 140?)\r\nEDIT: DONE... Currently unable to add offset and limits to newsfeed queries (talking to Kyle atm)\r\nEDIT: DONE (A basic proof on concept has been created.... (Retweets need to be implemented \r\n  TODO: Currently Photo is not added... Depending on how we use photo urls, this could also be included (Are photo URLs deleted if the post is deleted?)\r\n\r\nIn the future there should probably be a spinner for when we post (as well as UI notification of success or failure) as well as a spinner for pagination and loading a photo.\r\n\r\n### Note\r\n\r\nI still need to divide things into more components...\r\n\r\n##### I also have no idea how this is going to go when merging into master... Might be a nightmare with all the merging I've already done\r\n","created_at":"2016-11-24T05:30:43Z","updated_at":"2016-12-12T20:19:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6aa20ca304b8353c16716697c5ee033c17ca5031","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Calligre/attendee-web/pulls/48/commits","review_comments_url":"https://api.github.com/repos/Calligre/attendee-web/pulls/48/comments","review_comment_url":"https://api.github.com/repos/Calligre/attendee-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Calligre/attendee-web/issues/48/comments","statuses_url":"https://api.github.com/repos/Calligre/attendee-web/statuses/8399835699aa3c484545e6d925587916102d11dd","head":{"label":"Calligre:Newsfeed","ref":"Newsfeed","sha":"8399835699aa3c484545e6d925587916102d11dd","user":{"login":"Calligre","id":19350741,"avatar_url":"https://avatars.githubusercontent.com/u/19350741?v=3","gravatar_id":"","url":"https://api.github.com/users/Calligre","html_url":"https://github.com/Calligre","followers_url":"https://api.github.com/users/Calligre/followers","following_url":"https://api.github.com/users/Calligre/following{/other_user}","gists_url":"https://api.github.com/users/Calligre/gists{/gist_id}","starred_url":"https://api.github.com/users/Calligre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calligre/subscriptions","organizations_url":"https://api.github.com/users/Calligre/orgs","repos_url":"https://api.github.com/users/Calligre/repos","events_url":"https://api.github.com/users/Calligre/events{/privacy}","received_events_url":"https://api.github.com/users/Calligre/received_events","type":"Organization","site_admin":false},"repo":{"id":61333042,"name":"attendee-web","full_name":"Calligre/attendee-web","owner":{"login":"Calligre","id":19350741,"avatar_url":"https://avatars.githubusercontent.com/u/19350741?v=3","gravatar_id":"","url":"https://api.github.com/users/Calligre","html_url":"https://github.com/Calligre","followers_url":"https://api.github.com/users/Calligre/followers","following_url":"https://api.github.com/users/Calligre/following{/other_user}","gists_url":"https://api.github.com/users/Calligre/gists{/gist_id}","starred_url":"https://api.github.com/users/Calligre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calligre/subscriptions","organizations_url":"https://api.github.com/users/Calligre/orgs","repos_url":"https://api.github.com/users/Calligre/repos","events_url":"https://api.github.com/users/Calligre/events{/privacy}","received_events_url":"https://api.github.com/users/Calligre/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Calligre/attendee-web","description":"Attendee web app.","fork":false,"url":"https://api.github.com/repos/Calligre/attendee-web","forks_url":"https://api.github.com/repos/Calligre/attendee-web/forks","keys_url":"https://api.github.com/repos/Calligre/attendee-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Calligre/attendee-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Calligre/attendee-web/teams","hooks_url":"https://api.github.com/repos/Calligre/attendee-web/hooks","issue_events_url":"https://api.github.com/repos/Calligre/attendee-web/issues/events{/number}","events_url":"https://api.github.com/repos/Calligre/attendee-web/events","assignees_url":"https://api.github.com/repos/Calligre/attendee-web/assignees{/user}","branches_url":"https://api.github.com/repos/Calligre/attendee-web/branches{/branch}","tags_url":"https://api.github.com/repos/Calligre/attendee-web/tags","blobs_url":"https://api.github.com/repos/Calligre/attendee-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Calligre/attendee-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Calligre/attendee-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/Calligre/attendee-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Calligre/attendee-web/statuses/{sha}","languages_url":"https://api.github.com/repos/Calligre/attendee-web/languages","stargazers_url":"https://api.github.com/repos/Calligre/attendee-web/stargazers","contributors_url":"https://api.github.com/repos/Calligre/attendee-web/contributors","subscribers_url":"https://api.github.com/repos/Calligre/attendee-web/subscribers","subscription_url":"https://api.github.com/repos/Calligre/attendee-web/subscription","commits_url":"https://api.github.com/repos/Calligre/attendee-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/Calligre/attendee-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/Calligre/attendee-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/Calligre/attendee-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/Calligre/attendee-web/contents/{+path}","compare_url":"https://api.github.com/repos/Calligre/attendee-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Calligre/attendee-web/merges","archive_url":"https://api.github.com/repos/Calligre/attendee-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Calligre/attendee-web/downloads","issues_url":"https://api.github.com/repos/Calligre/attendee-web/issues{/number}","pulls_url":"https://api.github.com/repos/Calligre/attendee-web/pulls{/number}","milestones_url":"https://api.github.com/repos/Calligre/attendee-web/milestones{/number}","notifications_url":"https://api.github.com/repos/Calligre/attendee-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Calligre/attendee-web/labels{/name}","releases_url":"https://api.github.com/repos/Calligre/attendee-web/releases{/id}","deployments_url":"https://api.github.com/repos/Calligre/attendee-web/deployments","created_at":"2016-06-16T23:51:40Z","updated_at":"2016-06-27T22:55:42Z","pushed_at":"2016-12-12T07:41:26Z","git_url":"git://github.com/Calligre/attendee-web.git","ssh_url":"git@github.com:Calligre/attendee-web.git","clone_url":"https://github.com/Calligre/attendee-web.git","svn_url":"https://github.com/Calligre/attendee-web","homepage":null,"size":9823,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":27,"forks":1,"open_issues":27,"watchers":0,"default_branch":"master"}},"base":{"label":"Calligre:master","ref":"master","sha":"654bbaf524cc4838ed34e0031115f07f9c6a8aa1","user":{"login":"Calligre","id":19350741,"avatar_url":"https://avatars.githubusercontent.com/u/19350741?v=3","gravatar_id":"","url":"https://api.github.com/users/Calligre","html_url":"https://github.com/Calligre","followers_url":"https://api.github.com/users/Calligre/followers","following_url":"https://api.github.com/users/Calligre/following{/other_user}","gists_url":"https://api.github.com/users/Calligre/gists{/gist_id}","starred_url":"https://api.github.com/users/Calligre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calligre/subscriptions","organizations_url":"https://api.github.com/users/Calligre/orgs","repos_url":"https://api.github.com/users/Calligre/repos","events_url":"https://api.github.com/users/Calligre/events{/privacy}","received_events_url":"https://api.github.com/users/Calligre/received_events","type":"Organization","site_admin":false},"repo":{"id":61333042,"name":"attendee-web","full_name":"Calligre/attendee-web","owner":{"login":"Calligre","id":19350741,"avatar_url":"https://avatars.githubusercontent.com/u/19350741?v=3","gravatar_id":"","url":"https://api.github.com/users/Calligre","html_url":"https://github.com/Calligre","followers_url":"https://api.github.com/users/Calligre/followers","following_url":"https://api.github.com/users/Calligre/following{/other_user}","gists_url":"https://api.github.com/users/Calligre/gists{/gist_id}","starred_url":"https://api.github.com/users/Calligre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calligre/subscriptions","organizations_url":"https://api.github.com/users/Calligre/orgs","repos_url":"https://api.github.com/users/Calligre/repos","events_url":"https://api.github.com/users/Calligre/events{/privacy}","received_events_url":"https://api.github.com/users/Calligre/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Calligre/attendee-web","description":"Attendee web app.","fork":false,"url":"https://api.github.com/repos/Calligre/attendee-web","forks_url":"https://api.github.com/repos/Calligre/attendee-web/forks","keys_url":"https://api.github.com/repos/Calligre/attendee-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Calligre/attendee-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Calligre/attendee-web/teams","hooks_url":"https://api.github.com/repos/Calligre/attendee-web/hooks","issue_events_url":"https://api.github.com/repos/Calligre/attendee-web/issues/events{/number}","events_url":"https://api.github.com/repos/Calligre/attendee-web/events","assignees_url":"https://api.github.com/repos/Calligre/attendee-web/assignees{/user}","branches_url":"https://api.github.com/repos/Calligre/attendee-web/branches{/branch}","tags_url":"https://api.github.com/repos/Calligre/attendee-web/tags","blobs_url":"https://api.github.com/repos/Calligre/attendee-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Calligre/attendee-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Calligre/attendee-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/Calligre/attendee-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Calligre/attendee-web/statuses/{sha}","languages_url":"https://api.github.com/repos/Calligre/attendee-web/languages","stargazers_url":"https://api.github.com/repos/Calligre/attendee-web/stargazers","contributors_url":"https://api.github.com/repos/Calligre/attendee-web/contributors","subscribers_url":"https://api.github.com/repos/Calligre/attendee-web/subscribers","subscription_url":"https://api.github.com/repos/Calligre/attendee-web/subscription","commits_url":"https://api.github.com/repos/Calligre/attendee-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/Calligre/attendee-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/Calligre/attendee-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/Calligre/attendee-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/Calligre/attendee-web/contents/{+path}","compare_url":"https://api.github.com/repos/Calligre/attendee-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Calligre/attendee-web/merges","archive_url":"https://api.github.com/repos/Calligre/attendee-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Calligre/attendee-web/downloads","issues_url":"https://api.github.com/repos/Calligre/attendee-web/issues{/number}","pulls_url":"https://api.github.com/repos/Calligre/attendee-web/pulls{/number}","milestones_url":"https://api.github.com/repos/Calligre/attendee-web/milestones{/number}","notifications_url":"https://api.github.com/repos/Calligre/attendee-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Calligre/attendee-web/labels{/name}","releases_url":"https://api.github.com/repos/Calligre/attendee-web/releases{/id}","deployments_url":"https://api.github.com/repos/Calligre/attendee-web/deployments","created_at":"2016-06-16T23:51:40Z","updated_at":"2016-06-27T22:55:42Z","pushed_at":"2016-12-12T07:41:26Z","git_url":"git://github.com/Calligre/attendee-web.git","ssh_url":"git@github.com:Calligre/attendee-web.git","clone_url":"https://github.com/Calligre/attendee-web.git","svn_url":"https://github.com/Calligre/attendee-web","homepage":null,"size":9823,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":27,"forks":1,"open_issues":27,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Calligre/attendee-web/pulls/48"},"html":{"href":"https://github.com/Calligre/attendee-web/pull/48"},"issue":{"href":"https://api.github.com/repos/Calligre/attendee-web/issues/48"},"comments":{"href":"https://api.github.com/repos/Calligre/attendee-web/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/Calligre/attendee-web/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/Calligre/attendee-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Calligre/attendee-web/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/Calligre/attendee-web/statuses/8399835699aa3c484545e6d925587916102d11dd"}}}}
{"actor":{"display_login":"larajanecka"}}