{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/30871609","id":30871609,"diff_hunk":"@@ -0,0 +1,33 @@\n+class Event < ActiveRecord::Base\n+  include Diaspora::Federated::Base\n+  include Diaspora::Guid\n+\n+  belongs_to :status_message\n+  has_many :event_participations\n+\n+  xml_attr :name\n+  xml_attr :date\n+  xml_attr :location\n+\n+  delegate :author, :author_id, :diaspora_handle, :public?, :subscribers, to: :status_message\n+\n+  validates :name, presence: true\n+  validates :date, presence: true\n+  validates :location, presence: true\n+\n+  self.include_root_in_json = false\n+\n+  def as_json(options={})\n+    {\n+      :event_id => self.id,","path":"app/models/event.rb","position":22,"original_position":22,"commit_id":"83d29615cd30b2d785892c532b68e635e20e1074","original_commit_id":"83d29615cd30b2d785892c532b68e635e20e1074","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Align the elements of a hash literal if they span more than one line.<br>Redundant `self` detected.","created_at":"2015-05-22T06:15:50Z","updated_at":"2015-05-22T06:15:50Z","html_url":"https://github.com/diaspora/diaspora/pull/5979#discussion_r30871609","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5979","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/30871609"},"html":{"href":"https://github.com/diaspora/diaspora/pull/5979#discussion_r30871609"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5979"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/5979","id":36003121,"html_url":"https://github.com/diaspora/diaspora/pull/5979","diff_url":"https://github.com/diaspora/diaspora/pull/5979.diff","patch_url":"https://github.com/diaspora/diaspora/pull/5979.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/5979","number":5979,"state":"open","locked":false,"title":"[WIP] Issue #1359: Create/view events","user":{"login":"efstrian","id":11241058,"avatar_url":"https://avatars.githubusercontent.com/u/11241058?v=3","gravatar_id":"","url":"https://api.github.com/users/efstrian","html_url":"https://github.com/efstrian","followers_url":"https://api.github.com/users/efstrian/followers","following_url":"https://api.github.com/users/efstrian/following{/other_user}","gists_url":"https://api.github.com/users/efstrian/gists{/gist_id}","starred_url":"https://api.github.com/users/efstrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efstrian/subscriptions","organizations_url":"https://api.github.com/users/efstrian/orgs","repos_url":"https://api.github.com/users/efstrian/repos","events_url":"https://api.github.com/users/efstrian/events{/privacy}","received_events_url":"https://api.github.com/users/efstrian/received_events","type":"User","site_admin":false},"body":"This is far from finished, but we opened a pull request so as to get some feedback. No actual functionality here, but we do this now so that going back is easier if the implementation of the events as part of status messages (like polls) is not approved. Any comment is welcome!","created_at":"2015-05-22T06:15:42Z","updated_at":"2015-05-22T06:15:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c474d9eba301452f7eb5247b582cc3b53f4d1a36","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5979/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5979/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/5979/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/83d29615cd30b2d785892c532b68e635e20e1074","head":{"label":"ATSE-TheBeginners:1359-basic-events","ref":"1359-basic-events","sha":"83d29615cd30b2d785892c532b68e635e20e1074","user":{"login":"ATSE-TheBeginners","id":11647334,"avatar_url":"https://avatars.githubusercontent.com/u/11647334?v=3","gravatar_id":"","url":"https://api.github.com/users/ATSE-TheBeginners","html_url":"https://github.com/ATSE-TheBeginners","followers_url":"https://api.github.com/users/ATSE-TheBeginners/followers","following_url":"https://api.github.com/users/ATSE-TheBeginners/following{/other_user}","gists_url":"https://api.github.com/users/ATSE-TheBeginners/gists{/gist_id}","starred_url":"https://api.github.com/users/ATSE-TheBeginners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATSE-TheBeginners/subscriptions","organizations_url":"https://api.github.com/users/ATSE-TheBeginners/orgs","repos_url":"https://api.github.com/users/ATSE-TheBeginners/repos","events_url":"https://api.github.com/users/ATSE-TheBeginners/events{/privacy}","received_events_url":"https://api.github.com/users/ATSE-TheBeginners/received_events","type":"Organization","site_admin":false},"repo":{"id":34337303,"name":"diaspora","full_name":"ATSE-TheBeginners/diaspora","owner":{"login":"ATSE-TheBeginners","id":11647334,"avatar_url":"https://avatars.githubusercontent.com/u/11647334?v=3","gravatar_id":"","url":"https://api.github.com/users/ATSE-TheBeginners","html_url":"https://github.com/ATSE-TheBeginners","followers_url":"https://api.github.com/users/ATSE-TheBeginners/followers","following_url":"https://api.github.com/users/ATSE-TheBeginners/following{/other_user}","gists_url":"https://api.github.com/users/ATSE-TheBeginners/gists{/gist_id}","starred_url":"https://api.github.com/users/ATSE-TheBeginners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATSE-TheBeginners/subscriptions","organizations_url":"https://api.github.com/users/ATSE-TheBeginners/orgs","repos_url":"https://api.github.com/users/ATSE-TheBeginners/repos","events_url":"https://api.github.com/users/ATSE-TheBeginners/events{/privacy}","received_events_url":"https://api.github.com/users/ATSE-TheBeginners/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ATSE-TheBeginners/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora","forks_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/forks","keys_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/teams","hooks_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/hooks","issue_events_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/events","assignees_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/tags","blobs_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/languages","stargazers_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/stargazers","contributors_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/contributors","subscribers_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/subscribers","subscription_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/subscription","commits_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/merges","archive_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/downloads","issues_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/releases{/id}","created_at":"2015-04-21T16:00:03Z","updated_at":"2015-04-21T16:00:09Z","pushed_at":"2015-05-22T05:57:35Z","git_url":"git://github.com/ATSE-TheBeginners/diaspora.git","ssh_url":"git@github.com:ATSE-TheBeginners/diaspora.git","clone_url":"https://github.com/ATSE-TheBeginners/diaspora.git","svn_url":"https://github.com/ATSE-TheBeginners/diaspora","homepage":"https://diasporafoundation.org/","size":100078,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"diaspora:develop","ref":"develop","sha":"4093a1bdd3a0dee35739512a253ebdedfb3402f1","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":"Distributed and contextual social networking","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}","created_at":"2010-09-15T05:20:04Z","updated_at":"2015-05-21T18:54:19Z","pushed_at":"2015-05-22T06:15:43Z","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":254607,"stargazers_count":10044,"watchers_count":10044,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2587,"mirror_url":null,"open_issues_count":392,"forks":2587,"open_issues":392,"watchers":10044,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5979"},"html":{"href":"https://github.com/diaspora/diaspora/pull/5979"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/5979"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/5979/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5979/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5979/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/83d29615cd30b2d785892c532b68e635e20e1074"}}}}