{"action":"created","comment":{"url":"https://api.github.com/repos/pump-io/pump.io/pulls/comments/149272968","pull_request_review_id":74640463,"id":149272968,"diff_hunk":"@@ -0,0 +1,71 @@\n+// as2.js\n+//\n+// conversion routine for AS1 -> AS2\n+//\n+// Copyright 2017 AJ Jordan <alex@strugee.net>\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+\"use strict\";\n+\n+var _ = require(\"lodash\");\n+\n+\n+var toAS2 = function(obj) {\n+    var as2 = _.cloneDeep(obj);\n+\n+    as2[\"@id\"] = as2.id;\n+    delete as2.id;\n+\n+    if (as2.verb === \"post\") {","path":"lib/as2.js","position":30,"original_position":30,"commit_id":"d6ad7d15660662980ac0d47e2f7f7797fe656d15","original_commit_id":"d6ad7d15660662980ac0d47e2f7f7797fe656d15","user":{"login":"vxcamiloxv","id":14242544,"avatar_url":"https://avatars0.githubusercontent.com/u/14242544?v=4","gravatar_id":"","url":"https://api.github.com/users/vxcamiloxv","html_url":"https://github.com/vxcamiloxv","followers_url":"https://api.github.com/users/vxcamiloxv/followers","following_url":"https://api.github.com/users/vxcamiloxv/following{/other_user}","gists_url":"https://api.github.com/users/vxcamiloxv/gists{/gist_id}","starred_url":"https://api.github.com/users/vxcamiloxv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vxcamiloxv/subscriptions","organizations_url":"https://api.github.com/users/vxcamiloxv/orgs","repos_url":"https://api.github.com/users/vxcamiloxv/repos","events_url":"https://api.github.com/users/vxcamiloxv/events{/privacy}","received_events_url":"https://api.github.com/users/vxcamiloxv/received_events","type":"User","site_admin":false},"body":"If you change the verb, need to change this [#L145](https://github.com/pump-io/pump.io/blob/master/lib/model/activity.js#L145) or change the name of `Activity.prototype.apply[Method]`","created_at":"2017-11-07T05:05:16Z","updated_at":"2017-11-07T05:05:16Z","html_url":"https://github.com/pump-io/pump.io/pull/1483#discussion_r149272968","pull_request_url":"https://api.github.com/repos/pump-io/pump.io/pulls/1483","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/pump-io/pump.io/pulls/comments/149272968"},"html":{"href":"https://github.com/pump-io/pump.io/pull/1483#discussion_r149272968"},"pull_request":{"href":"https://api.github.com/repos/pump-io/pump.io/pulls/1483"}}},"pull_request":{"url":"https://api.github.com/repos/pump-io/pump.io/pulls/1483","id":148818072,"html_url":"https://github.com/pump-io/pump.io/pull/1483","diff_url":"https://github.com/pump-io/pump.io/pull/1483.diff","patch_url":"https://github.com/pump-io/pump.io/pull/1483.patch","issue_url":"https://api.github.com/repos/pump-io/pump.io/issues/1483","number":1483,"state":"open","locked":false,"title":"ActivityStreams 2.0","user":{"login":"strugee","id":911174,"avatar_url":"https://avatars0.githubusercontent.com/u/911174?v=4","gravatar_id":"","url":"https://api.github.com/users/strugee","html_url":"https://github.com/strugee","followers_url":"https://api.github.com/users/strugee/followers","following_url":"https://api.github.com/users/strugee/following{/other_user}","gists_url":"https://api.github.com/users/strugee/gists{/gist_id}","starred_url":"https://api.github.com/users/strugee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strugee/subscriptions","organizations_url":"https://api.github.com/users/strugee/orgs","repos_url":"https://api.github.com/users/strugee/repos","events_url":"https://api.github.com/users/strugee/events{/privacy}","received_events_url":"https://api.github.com/users/strugee/received_events","type":"User","site_admin":false},"body":"Resolves #851","created_at":"2017-10-26T01:26:25Z","updated_at":"2017-11-07T05:05:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8aabed1bc8eccb12e243ea166b00f70756c67e5","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/pump-io/pump.io/pulls/1483/commits","review_comments_url":"https://api.github.com/repos/pump-io/pump.io/pulls/1483/comments","review_comment_url":"https://api.github.com/repos/pump-io/pump.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pump-io/pump.io/issues/1483/comments","statuses_url":"https://api.github.com/repos/pump-io/pump.io/statuses/d6ad7d15660662980ac0d47e2f7f7797fe656d15","head":{"label":"pump-io:as2","ref":"as2","sha":"d6ad7d15660662980ac0d47e2f7f7797fe656d15","user":{"login":"pump-io","id":22403382,"avatar_url":"https://avatars3.githubusercontent.com/u/22403382?v=4","gravatar_id":"","url":"https://api.github.com/users/pump-io","html_url":"https://github.com/pump-io","followers_url":"https://api.github.com/users/pump-io/followers","following_url":"https://api.github.com/users/pump-io/following{/other_user}","gists_url":"https://api.github.com/users/pump-io/gists{/gist_id}","starred_url":"https://api.github.com/users/pump-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pump-io/subscriptions","organizations_url":"https://api.github.com/users/pump-io/orgs","repos_url":"https://api.github.com/users/pump-io/repos","events_url":"https://api.github.com/users/pump-io/events{/privacy}","received_events_url":"https://api.github.com/users/pump-io/received_events","type":"Organization","site_admin":false},"repo":{"id":2314534,"name":"pump.io","full_name":"pump-io/pump.io","owner":{"login":"pump-io","id":22403382,"avatar_url":"https://avatars3.githubusercontent.com/u/22403382?v=4","gravatar_id":"","url":"https://api.github.com/users/pump-io","html_url":"https://github.com/pump-io","followers_url":"https://api.github.com/users/pump-io/followers","following_url":"https://api.github.com/users/pump-io/following{/other_user}","gists_url":"https://api.github.com/users/pump-io/gists{/gist_id}","starred_url":"https://api.github.com/users/pump-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pump-io/subscriptions","organizations_url":"https://api.github.com/users/pump-io/orgs","repos_url":"https://api.github.com/users/pump-io/repos","events_url":"https://api.github.com/users/pump-io/events{/privacy}","received_events_url":"https://api.github.com/users/pump-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pump-io/pump.io","description":"Social server with an ActivityStreams API","fork":false,"url":"https://api.github.com/repos/pump-io/pump.io","forks_url":"https://api.github.com/repos/pump-io/pump.io/forks","keys_url":"https://api.github.com/repos/pump-io/pump.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pump-io/pump.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pump-io/pump.io/teams","hooks_url":"https://api.github.com/repos/pump-io/pump.io/hooks","issue_events_url":"https://api.github.com/repos/pump-io/pump.io/issues/events{/number}","events_url":"https://api.github.com/repos/pump-io/pump.io/events","assignees_url":"https://api.github.com/repos/pump-io/pump.io/assignees{/user}","branches_url":"https://api.github.com/repos/pump-io/pump.io/branches{/branch}","tags_url":"https://api.github.com/repos/pump-io/pump.io/tags","blobs_url":"https://api.github.com/repos/pump-io/pump.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pump-io/pump.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pump-io/pump.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/pump-io/pump.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pump-io/pump.io/statuses/{sha}","languages_url":"https://api.github.com/repos/pump-io/pump.io/languages","stargazers_url":"https://api.github.com/repos/pump-io/pump.io/stargazers","contributors_url":"https://api.github.com/repos/pump-io/pump.io/contributors","subscribers_url":"https://api.github.com/repos/pump-io/pump.io/subscribers","subscription_url":"https://api.github.com/repos/pump-io/pump.io/subscription","commits_url":"https://api.github.com/repos/pump-io/pump.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/pump-io/pump.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/pump-io/pump.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/pump-io/pump.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/pump-io/pump.io/contents/{+path}","compare_url":"https://api.github.com/repos/pump-io/pump.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pump-io/pump.io/merges","archive_url":"https://api.github.com/repos/pump-io/pump.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pump-io/pump.io/downloads","issues_url":"https://api.github.com/repos/pump-io/pump.io/issues{/number}","pulls_url":"https://api.github.com/repos/pump-io/pump.io/pulls{/number}","milestones_url":"https://api.github.com/repos/pump-io/pump.io/milestones{/number}","notifications_url":"https://api.github.com/repos/pump-io/pump.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pump-io/pump.io/labels{/name}","releases_url":"https://api.github.com/repos/pump-io/pump.io/releases{/id}","deployments_url":"https://api.github.com/repos/pump-io/pump.io/deployments","created_at":"2011-09-02T15:07:31Z","updated_at":"2017-11-06T21:12:27Z","pushed_at":"2017-11-06T14:03:41Z","git_url":"git://github.com/pump-io/pump.io.git","ssh_url":"git@github.com:pump-io/pump.io.git","clone_url":"https://github.com/pump-io/pump.io.git","svn_url":"https://github.com/pump-io/pump.io","homepage":"http://pump.io/","size":10933,"stargazers_count":1669,"watchers_count":1669,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":319,"mirror_url":null,"archived":false,"open_issues_count":607,"forks":319,"open_issues":607,"watchers":1669,"default_branch":"master"}},"base":{"label":"pump-io:master","ref":"master","sha":"5bf9335efe8d01f1a211bff24fb2a665e7f9c629","user":{"login":"pump-io","id":22403382,"avatar_url":"https://avatars3.githubusercontent.com/u/22403382?v=4","gravatar_id":"","url":"https://api.github.com/users/pump-io","html_url":"https://github.com/pump-io","followers_url":"https://api.github.com/users/pump-io/followers","following_url":"https://api.github.com/users/pump-io/following{/other_user}","gists_url":"https://api.github.com/users/pump-io/gists{/gist_id}","starred_url":"https://api.github.com/users/pump-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pump-io/subscriptions","organizations_url":"https://api.github.com/users/pump-io/orgs","repos_url":"https://api.github.com/users/pump-io/repos","events_url":"https://api.github.com/users/pump-io/events{/privacy}","received_events_url":"https://api.github.com/users/pump-io/received_events","type":"Organization","site_admin":false},"repo":{"id":2314534,"name":"pump.io","full_name":"pump-io/pump.io","owner":{"login":"pump-io","id":22403382,"avatar_url":"https://avatars3.githubusercontent.com/u/22403382?v=4","gravatar_id":"","url":"https://api.github.com/users/pump-io","html_url":"https://github.com/pump-io","followers_url":"https://api.github.com/users/pump-io/followers","following_url":"https://api.github.com/users/pump-io/following{/other_user}","gists_url":"https://api.github.com/users/pump-io/gists{/gist_id}","starred_url":"https://api.github.com/users/pump-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pump-io/subscriptions","organizations_url":"https://api.github.com/users/pump-io/orgs","repos_url":"https://api.github.com/users/pump-io/repos","events_url":"https://api.github.com/users/pump-io/events{/privacy}","received_events_url":"https://api.github.com/users/pump-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pump-io/pump.io","description":"Social server with an ActivityStreams API","fork":false,"url":"https://api.github.com/repos/pump-io/pump.io","forks_url":"https://api.github.com/repos/pump-io/pump.io/forks","keys_url":"https://api.github.com/repos/pump-io/pump.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pump-io/pump.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pump-io/pump.io/teams","hooks_url":"https://api.github.com/repos/pump-io/pump.io/hooks","issue_events_url":"https://api.github.com/repos/pump-io/pump.io/issues/events{/number}","events_url":"https://api.github.com/repos/pump-io/pump.io/events","assignees_url":"https://api.github.com/repos/pump-io/pump.io/assignees{/user}","branches_url":"https://api.github.com/repos/pump-io/pump.io/branches{/branch}","tags_url":"https://api.github.com/repos/pump-io/pump.io/tags","blobs_url":"https://api.github.com/repos/pump-io/pump.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pump-io/pump.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pump-io/pump.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/pump-io/pump.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pump-io/pump.io/statuses/{sha}","languages_url":"https://api.github.com/repos/pump-io/pump.io/languages","stargazers_url":"https://api.github.com/repos/pump-io/pump.io/stargazers","contributors_url":"https://api.github.com/repos/pump-io/pump.io/contributors","subscribers_url":"https://api.github.com/repos/pump-io/pump.io/subscribers","subscription_url":"https://api.github.com/repos/pump-io/pump.io/subscription","commits_url":"https://api.github.com/repos/pump-io/pump.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/pump-io/pump.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/pump-io/pump.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/pump-io/pump.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/pump-io/pump.io/contents/{+path}","compare_url":"https://api.github.com/repos/pump-io/pump.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pump-io/pump.io/merges","archive_url":"https://api.github.com/repos/pump-io/pump.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pump-io/pump.io/downloads","issues_url":"https://api.github.com/repos/pump-io/pump.io/issues{/number}","pulls_url":"https://api.github.com/repos/pump-io/pump.io/pulls{/number}","milestones_url":"https://api.github.com/repos/pump-io/pump.io/milestones{/number}","notifications_url":"https://api.github.com/repos/pump-io/pump.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pump-io/pump.io/labels{/name}","releases_url":"https://api.github.com/repos/pump-io/pump.io/releases{/id}","deployments_url":"https://api.github.com/repos/pump-io/pump.io/deployments","created_at":"2011-09-02T15:07:31Z","updated_at":"2017-11-06T21:12:27Z","pushed_at":"2017-11-06T14:03:41Z","git_url":"git://github.com/pump-io/pump.io.git","ssh_url":"git@github.com:pump-io/pump.io.git","clone_url":"https://github.com/pump-io/pump.io.git","svn_url":"https://github.com/pump-io/pump.io","homepage":"http://pump.io/","size":10933,"stargazers_count":1669,"watchers_count":1669,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":319,"mirror_url":null,"archived":false,"open_issues_count":607,"forks":319,"open_issues":607,"watchers":1669,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pump-io/pump.io/pulls/1483"},"html":{"href":"https://github.com/pump-io/pump.io/pull/1483"},"issue":{"href":"https://api.github.com/repos/pump-io/pump.io/issues/1483"},"comments":{"href":"https://api.github.com/repos/pump-io/pump.io/issues/1483/comments"},"review_comments":{"href":"https://api.github.com/repos/pump-io/pump.io/pulls/1483/comments"},"review_comment":{"href":"https://api.github.com/repos/pump-io/pump.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pump-io/pump.io/pulls/1483/commits"},"statuses":{"href":"https://api.github.com/repos/pump-io/pump.io/statuses/d6ad7d15660662980ac0d47e2f7f7797fe656d15"}},"author_association":"OWNER"}}
{"actor":{"display_login":"vxcamiloxv"}}