{"action":"created","comment":{"url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/comments/49044718","id":49044718,"diff_hunk":"@@ -25,6 +25,12 @@ class User(BaseDocument):\n     paste_likes_count = mongoengine.IntField(default=0)\n     pastes_count = mongoengine.IntField(default=0)\n \n+    watched_users = mongoengine.ListField(mongoengine.ReferenceField('User'))\n+\n+    @property\n+    def pastes_count(self):","path":"daimaduan/models/base.py","position":7,"original_position":7,"commit_id":"b256a6d8c05b1eebeb8f197ec9ae7ca3c7942efa","original_commit_id":"b256a6d8c05b1eebeb8f197ec9ae7ca3c7942efa","user":{"login":"david-xie","id":100747,"avatar_url":"https://avatars.githubusercontent.com/u/100747?v=3","gravatar_id":"","url":"https://api.github.com/users/david-xie","html_url":"https://github.com/david-xie","followers_url":"https://api.github.com/users/david-xie/followers","following_url":"https://api.github.com/users/david-xie/following{/other_user}","gists_url":"https://api.github.com/users/david-xie/gists{/gist_id}","starred_url":"https://api.github.com/users/david-xie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-xie/subscriptions","organizations_url":"https://api.github.com/users/david-xie/orgs","repos_url":"https://api.github.com/users/david-xie/repos","events_url":"https://api.github.com/users/david-xie/events{/privacy}","received_events_url":"https://api.github.com/users/david-xie/received_events","type":"User","site_admin":false},"body":"这个函数应该去掉啊. 第26行不就是`pastes_count`吗?","created_at":"2016-01-07T06:14:08Z","updated_at":"2016-01-07T06:14:08Z","html_url":"https://github.com/DoubleCiti/daimaduan.com/pull/152#discussion_r49044718","pull_request_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/152","_links":{"self":{"href":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/comments/49044718"},"html":{"href":"https://github.com/DoubleCiti/daimaduan.com/pull/152#discussion_r49044718"},"pull_request":{"href":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/152"}}},"pull_request":{"url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/152","id":55092947,"html_url":"https://github.com/DoubleCiti/daimaduan.com/pull/152","diff_url":"https://github.com/DoubleCiti/daimaduan.com/pull/152.diff","patch_url":"https://github.com/DoubleCiti/daimaduan.com/pull/152.patch","issue_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/issues/152","number":152,"state":"open","locked":false,"title":"[#57] user can watch other user.","user":{"login":"liul85","id":1312723,"avatar_url":"https://avatars.githubusercontent.com/u/1312723?v=3","gravatar_id":"","url":"https://api.github.com/users/liul85","html_url":"https://github.com/liul85","followers_url":"https://api.github.com/users/liul85/followers","following_url":"https://api.github.com/users/liul85/following{/other_user}","gists_url":"https://api.github.com/users/liul85/gists{/gist_id}","starred_url":"https://api.github.com/users/liul85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liul85/subscriptions","organizations_url":"https://api.github.com/users/liul85/orgs","repos_url":"https://api.github.com/users/liul85/repos","events_url":"https://api.github.com/users/liul85/events{/privacy}","received_events_url":"https://api.github.com/users/liul85/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-05T13:50:28Z","updated_at":"2016-01-07T06:14:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8947a21e46f8eab0562c6528c9d328bd85993aee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/152/commits","review_comments_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/152/comments","review_comment_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/issues/152/comments","statuses_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/statuses/b256a6d8c05b1eebeb8f197ec9ae7ca3c7942efa","head":{"label":"liul85:feature/watch_user","ref":"feature/watch_user","sha":"b256a6d8c05b1eebeb8f197ec9ae7ca3c7942efa","user":{"login":"liul85","id":1312723,"avatar_url":"https://avatars.githubusercontent.com/u/1312723?v=3","gravatar_id":"","url":"https://api.github.com/users/liul85","html_url":"https://github.com/liul85","followers_url":"https://api.github.com/users/liul85/followers","following_url":"https://api.github.com/users/liul85/following{/other_user}","gists_url":"https://api.github.com/users/liul85/gists{/gist_id}","starred_url":"https://api.github.com/users/liul85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liul85/subscriptions","organizations_url":"https://api.github.com/users/liul85/orgs","repos_url":"https://api.github.com/users/liul85/repos","events_url":"https://api.github.com/users/liul85/events{/privacy}","received_events_url":"https://api.github.com/users/liul85/received_events","type":"User","site_admin":false},"repo":{"id":41522508,"name":"daimaduan.com","full_name":"liul85/daimaduan.com","owner":{"login":"liul85","id":1312723,"avatar_url":"https://avatars.githubusercontent.com/u/1312723?v=3","gravatar_id":"","url":"https://api.github.com/users/liul85","html_url":"https://github.com/liul85","followers_url":"https://api.github.com/users/liul85/followers","following_url":"https://api.github.com/users/liul85/following{/other_user}","gists_url":"https://api.github.com/users/liul85/gists{/gist_id}","starred_url":"https://api.github.com/users/liul85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liul85/subscriptions","organizations_url":"https://api.github.com/users/liul85/orgs","repos_url":"https://api.github.com/users/liul85/repos","events_url":"https://api.github.com/users/liul85/events{/privacy}","received_events_url":"https://api.github.com/users/liul85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liul85/daimaduan.com","description":"source code of daimaduan.com","fork":true,"url":"https://api.github.com/repos/liul85/daimaduan.com","forks_url":"https://api.github.com/repos/liul85/daimaduan.com/forks","keys_url":"https://api.github.com/repos/liul85/daimaduan.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liul85/daimaduan.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liul85/daimaduan.com/teams","hooks_url":"https://api.github.com/repos/liul85/daimaduan.com/hooks","issue_events_url":"https://api.github.com/repos/liul85/daimaduan.com/issues/events{/number}","events_url":"https://api.github.com/repos/liul85/daimaduan.com/events","assignees_url":"https://api.github.com/repos/liul85/daimaduan.com/assignees{/user}","branches_url":"https://api.github.com/repos/liul85/daimaduan.com/branches{/branch}","tags_url":"https://api.github.com/repos/liul85/daimaduan.com/tags","blobs_url":"https://api.github.com/repos/liul85/daimaduan.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liul85/daimaduan.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liul85/daimaduan.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/liul85/daimaduan.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liul85/daimaduan.com/statuses/{sha}","languages_url":"https://api.github.com/repos/liul85/daimaduan.com/languages","stargazers_url":"https://api.github.com/repos/liul85/daimaduan.com/stargazers","contributors_url":"https://api.github.com/repos/liul85/daimaduan.com/contributors","subscribers_url":"https://api.github.com/repos/liul85/daimaduan.com/subscribers","subscription_url":"https://api.github.com/repos/liul85/daimaduan.com/subscription","commits_url":"https://api.github.com/repos/liul85/daimaduan.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/liul85/daimaduan.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/liul85/daimaduan.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/liul85/daimaduan.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/liul85/daimaduan.com/contents/{+path}","compare_url":"https://api.github.com/repos/liul85/daimaduan.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liul85/daimaduan.com/merges","archive_url":"https://api.github.com/repos/liul85/daimaduan.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liul85/daimaduan.com/downloads","issues_url":"https://api.github.com/repos/liul85/daimaduan.com/issues{/number}","pulls_url":"https://api.github.com/repos/liul85/daimaduan.com/pulls{/number}","milestones_url":"https://api.github.com/repos/liul85/daimaduan.com/milestones{/number}","notifications_url":"https://api.github.com/repos/liul85/daimaduan.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liul85/daimaduan.com/labels{/name}","releases_url":"https://api.github.com/repos/liul85/daimaduan.com/releases{/id}","created_at":"2015-08-28T02:31:16Z","updated_at":"2015-11-06T15:25:02Z","pushed_at":"2016-01-07T06:08:29Z","git_url":"git://github.com/liul85/daimaduan.com.git","ssh_url":"git@github.com:liul85/daimaduan.com.git","clone_url":"https://github.com/liul85/daimaduan.com.git","svn_url":"https://github.com/liul85/daimaduan.com","homepage":null,"size":335,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DoubleCiti:master","ref":"master","sha":"2123fdf131ddc8fe3d67db85321cff251bc98834","user":{"login":"DoubleCiti","id":1917327,"avatar_url":"https://avatars.githubusercontent.com/u/1917327?v=3","gravatar_id":"","url":"https://api.github.com/users/DoubleCiti","html_url":"https://github.com/DoubleCiti","followers_url":"https://api.github.com/users/DoubleCiti/followers","following_url":"https://api.github.com/users/DoubleCiti/following{/other_user}","gists_url":"https://api.github.com/users/DoubleCiti/gists{/gist_id}","starred_url":"https://api.github.com/users/DoubleCiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoubleCiti/subscriptions","organizations_url":"https://api.github.com/users/DoubleCiti/orgs","repos_url":"https://api.github.com/users/DoubleCiti/repos","events_url":"https://api.github.com/users/DoubleCiti/events{/privacy}","received_events_url":"https://api.github.com/users/DoubleCiti/received_events","type":"Organization","site_admin":false},"repo":{"id":41431760,"name":"daimaduan.com","full_name":"DoubleCiti/daimaduan.com","owner":{"login":"DoubleCiti","id":1917327,"avatar_url":"https://avatars.githubusercontent.com/u/1917327?v=3","gravatar_id":"","url":"https://api.github.com/users/DoubleCiti","html_url":"https://github.com/DoubleCiti","followers_url":"https://api.github.com/users/DoubleCiti/followers","following_url":"https://api.github.com/users/DoubleCiti/following{/other_user}","gists_url":"https://api.github.com/users/DoubleCiti/gists{/gist_id}","starred_url":"https://api.github.com/users/DoubleCiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoubleCiti/subscriptions","organizations_url":"https://api.github.com/users/DoubleCiti/orgs","repos_url":"https://api.github.com/users/DoubleCiti/repos","events_url":"https://api.github.com/users/DoubleCiti/events{/privacy}","received_events_url":"https://api.github.com/users/DoubleCiti/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoubleCiti/daimaduan.com","description":"source code of daimaduan.com","fork":false,"url":"https://api.github.com/repos/DoubleCiti/daimaduan.com","forks_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/forks","keys_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/teams","hooks_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/hooks","issue_events_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/issues/events{/number}","events_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/events","assignees_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/assignees{/user}","branches_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/branches{/branch}","tags_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/tags","blobs_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/statuses/{sha}","languages_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/languages","stargazers_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/stargazers","contributors_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/contributors","subscribers_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/subscribers","subscription_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/subscription","commits_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/contents/{+path}","compare_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/merges","archive_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/downloads","issues_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/issues{/number}","pulls_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls{/number}","milestones_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/milestones{/number}","notifications_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/labels{/name}","releases_url":"https://api.github.com/repos/DoubleCiti/daimaduan.com/releases{/id}","created_at":"2015-08-26T14:54:30Z","updated_at":"2015-12-22T07:24:58Z","pushed_at":"2016-01-07T06:08:29Z","git_url":"git://github.com/DoubleCiti/daimaduan.com.git","ssh_url":"git@github.com:DoubleCiti/daimaduan.com.git","clone_url":"https://github.com/DoubleCiti/daimaduan.com.git","svn_url":"https://github.com/DoubleCiti/daimaduan.com","homepage":null,"size":418,"stargazers_count":41,"watchers_count":41,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":27,"forks":9,"open_issues":27,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/152"},"html":{"href":"https://github.com/DoubleCiti/daimaduan.com/pull/152"},"issue":{"href":"https://api.github.com/repos/DoubleCiti/daimaduan.com/issues/152"},"comments":{"href":"https://api.github.com/repos/DoubleCiti/daimaduan.com/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoubleCiti/daimaduan.com/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/DoubleCiti/daimaduan.com/statuses/b256a6d8c05b1eebeb8f197ec9ae7ca3c7942efa"}}}}