{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/75251716","id":75251716,"diff_hunk":"@@ -1,15 +1,39 @@\n class PostPresenter < BasePresenter\n   include PostsHelper\n+  include MetaDataHelper\n \n   attr_accessor :post\n \n-  def initialize(post, current_user=nil)\n-    @post = post\n-    @current_user = current_user\n+  def initialize(presentable, current_user=nil)\n+    @post = presentable\n+    super\n   end\n \n   def as_json(_options={})\n-    @post.as_json(only: directly_retrieved_attributes).merge(non_directly_retrieved_attributes)\n+    @post.as_json(only: directly_retrieved_attributes)\n+         .merge(non_directly_retrieved_attributes)\n+  end","path":"app/presenters/post_presenter.rb","position":19,"original_position":19,"commit_id":"3455d065e56e6738212849310edc50449be29d1e","original_commit_id":"3455d065e56e6738212849310edc50449be29d1e","user":{"login":"diaspora-code-review","id":13334186,"avatar_url":"https://avatars.githubusercontent.com/u/13334186?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora-code-review","html_url":"https://github.com/diaspora-code-review","followers_url":"https://api.github.com/users/diaspora-code-review/followers","following_url":"https://api.github.com/users/diaspora-code-review/following{/other_user}","gists_url":"https://api.github.com/users/diaspora-code-review/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora-code-review/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora-code-review/subscriptions","organizations_url":"https://api.github.com/users/diaspora-code-review/orgs","repos_url":"https://api.github.com/users/diaspora-code-review/repos","events_url":"https://api.github.com/users/diaspora-code-review/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora-code-review/received_events","type":"User","site_admin":false},"body":"Align the elements of a hash literal if they span more than one line.","created_at":"2016-08-18T05:53:09Z","updated_at":"2016-08-18T05:53:09Z","html_url":"https://github.com/diaspora/diaspora/pull/6998#discussion_r75251716","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6998","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/75251716"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6998#discussion_r75251716"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6998"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/6998","id":81705144,"html_url":"https://github.com/diaspora/diaspora/pull/6998","diff_url":"https://github.com/diaspora/diaspora/pull/6998.diff","patch_url":"https://github.com/diaspora/diaspora/pull/6998.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/6998","number":6998,"state":"open","locked":false,"title":"6840 : meta tags update","user":{"login":"dhovart","id":764576,"avatar_url":"https://avatars.githubusercontent.com/u/764576?v=3","gravatar_id":"","url":"https://api.github.com/users/dhovart","html_url":"https://github.com/dhovart","followers_url":"https://api.github.com/users/dhovart/followers","following_url":"https://api.github.com/users/dhovart/following{/other_user}","gists_url":"https://api.github.com/users/dhovart/gists{/gist_id}","starred_url":"https://api.github.com/users/dhovart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhovart/subscriptions","organizations_url":"https://api.github.com/users/dhovart/orgs","repos_url":"https://api.github.com/users/dhovart/repos","events_url":"https://api.github.com/users/dhovart/events{/privacy}","received_events_url":"https://api.github.com/users/dhovart/received_events","type":"User","site_admin":false},"body":"Fixes #6840\r\n- Add opengraph and general meta tags to posts, profile and tags views.\r\n- Added a few methods to retrieve the meta data to the existing Person/Post presenter and created a TagPresenter (would like to get some feedback on my approach: I hope it makes sense for you to have a presenter  for a Stream::Tag, just the same as we have presenters for ActiveRecord models).\r\n- Introduced a MetaDatahelper\r\n- Moved the hardcoded contents already set for meta tags to config/defaults.yml\r\n\r\nHope I'm following your styleguides correctly and that my tests are good enough!","created_at":"2016-08-17T19:51:23Z","updated_at":"2016-08-18T05:53:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2763230f67b6b58fb39b6b949c4d35b8921196a4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6998/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6998/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/6998/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/3455d065e56e6738212849310edc50449be29d1e","head":{"label":"dhovart:6480-open-graph-meta-update","ref":"6480-open-graph-meta-update","sha":"3455d065e56e6738212849310edc50449be29d1e","user":{"login":"dhovart","id":764576,"avatar_url":"https://avatars.githubusercontent.com/u/764576?v=3","gravatar_id":"","url":"https://api.github.com/users/dhovart","html_url":"https://github.com/dhovart","followers_url":"https://api.github.com/users/dhovart/followers","following_url":"https://api.github.com/users/dhovart/following{/other_user}","gists_url":"https://api.github.com/users/dhovart/gists{/gist_id}","starred_url":"https://api.github.com/users/dhovart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhovart/subscriptions","organizations_url":"https://api.github.com/users/dhovart/orgs","repos_url":"https://api.github.com/users/dhovart/repos","events_url":"https://api.github.com/users/dhovart/events{/privacy}","received_events_url":"https://api.github.com/users/dhovart/received_events","type":"User","site_admin":false},"repo":{"id":65678836,"name":"diaspora","full_name":"dhovart/diaspora","owner":{"login":"dhovart","id":764576,"avatar_url":"https://avatars.githubusercontent.com/u/764576?v=3","gravatar_id":"","url":"https://api.github.com/users/dhovart","html_url":"https://github.com/dhovart","followers_url":"https://api.github.com/users/dhovart/followers","following_url":"https://api.github.com/users/dhovart/following{/other_user}","gists_url":"https://api.github.com/users/dhovart/gists{/gist_id}","starred_url":"https://api.github.com/users/dhovart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhovart/subscriptions","organizations_url":"https://api.github.com/users/dhovart/orgs","repos_url":"https://api.github.com/users/dhovart/repos","events_url":"https://api.github.com/users/dhovart/events{/privacy}","received_events_url":"https://api.github.com/users/dhovart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dhovart/diaspora","description":"A privacy-aware, distributed, open source social network.","fork":true,"url":"https://api.github.com/repos/dhovart/diaspora","forks_url":"https://api.github.com/repos/dhovart/diaspora/forks","keys_url":"https://api.github.com/repos/dhovart/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhovart/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhovart/diaspora/teams","hooks_url":"https://api.github.com/repos/dhovart/diaspora/hooks","issue_events_url":"https://api.github.com/repos/dhovart/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/dhovart/diaspora/events","assignees_url":"https://api.github.com/repos/dhovart/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/dhovart/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/dhovart/diaspora/tags","blobs_url":"https://api.github.com/repos/dhovart/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhovart/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhovart/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhovart/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhovart/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/dhovart/diaspora/languages","stargazers_url":"https://api.github.com/repos/dhovart/diaspora/stargazers","contributors_url":"https://api.github.com/repos/dhovart/diaspora/contributors","subscribers_url":"https://api.github.com/repos/dhovart/diaspora/subscribers","subscription_url":"https://api.github.com/repos/dhovart/diaspora/subscription","commits_url":"https://api.github.com/repos/dhovart/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhovart/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhovart/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhovart/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhovart/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/dhovart/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhovart/diaspora/merges","archive_url":"https://api.github.com/repos/dhovart/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhovart/diaspora/downloads","issues_url":"https://api.github.com/repos/dhovart/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/dhovart/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/dhovart/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/dhovart/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhovart/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/dhovart/diaspora/releases{/id}","deployments_url":"https://api.github.com/repos/dhovart/diaspora/deployments","created_at":"2016-08-14T17:45:52Z","updated_at":"2016-08-14T17:45:58Z","pushed_at":"2016-08-18T05:52:46Z","git_url":"git://github.com/dhovart/diaspora.git","ssh_url":"git@github.com:dhovart/diaspora.git","clone_url":"https://github.com/dhovart/diaspora.git","svn_url":"https://github.com/dhovart/diaspora","homepage":"https://diasporafoundation.org/","size":99217,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"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":"d022e51a0c68bece91503eeef29b0e73091c49c5","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-17T15:21:28Z","pushed_at":"2016-08-18T05:52:50Z","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":243784,"stargazers_count":10853,"watchers_count":10853,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2773,"mirror_url":null,"open_issues_count":379,"forks":2773,"open_issues":379,"watchers":10853,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6998"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6998"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6998"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6998/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6998/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6998/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/3455d065e56e6738212849310edc50449be29d1e"}}}}
{"actor":{"display_login":"diaspora-code-review"}}