GitHub PullRequestReviewCommentEvent at 2014-04-26 00:13:13
Repository: diaspora
Actor: houndci
Payload: {"comment":{"url":"https://api.github.com/repos/outcircle/diaspora/pulls/comments/12021328","id":12021328,"diff_hunk":"@@ -0,0 +1,69 @@\n+class ArticlesController < ApplicationController\n+\n+\tbefore_filter :authenticate_user! , :except => :show \n+\tbefore_filter -> {@css_framework = :bootstrap} , only: [:show]\n+\trespond_to :html\n+\trespond_to :json, :only => [:index]\n+\n+\tdef index\n+\t\t#binding.pry\n+    #@person = Person.find_from_guid_or_username({:id => params[:person_id]})\n+    @person = Person.find(params[:person_id])\n+    \n+    @articles = @person.articles.paginate(:page => params[:page], :per_page => 10)\n+    \n+    unless params[:format] == \"json\" # hovercard\n+      if current_user\n+        @block = current_user.blocks.where(:person_id => @person.id).first\n+        @contact = current_user.contact_for(@person)\n+        if @contact && !params[:only_posts]\n+          @contacts_of_contact_count = @contact.contacts.count\n+          @contacts_of_contact = @contact.contacts.limit(8)\n+        else\n+          @contact ||= Contact.new\n+        end\n+      end\n+    end\n+    \n+    respond_to do |format|\n+      format.all do\n+        respond_with @person, :locals => {:post_type => :all}\n+      end\n+    end\n+\tend\n+\n+\tdef show\n+\t\t@article = current_user.articles.find(params[:id])\n+\tend\n+\n+\tdef new\n+  \t@article = current_user.articles.new()\n+\n+\tend\n+\n+\tdef create\n+\t\t@article = current_user.articles.build(article_params)\n+\t\t@article.save\n+\n+\t\tredirect_to person_blog_articles_path(current_user)\n+\tend\n+\n+\tdef edit\n+\t\t\n+\tend\n+\n+\tdef update\n+\t\t\n+\tend\n+\n+\tdef destroy","path":"app/controllers/articles_controller.rb","position":59,"original_position":59,"commit_id":"5549d42855f150ef8f6ecd9a1d1dd74821cc39f4","original_commit_id":"5549d42855f150ef8f6ecd9a1d1dd74821cc39f4","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","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":"Tab detected.","created_at":"2014-04-26T00:13:13Z","updated_at":"2014-04-26T00:13:13Z","html_url":"https://github.com/outcircle/diaspora/pull/8#discussion_r12021328","pull_request_url":"https://api.github.com/repos/outcircle/diaspora/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/outcircle/diaspora/pulls/comments/12021328"},"html":{"href":"https://github.com/outcircle/diaspora/pull/8#discussion_r12021328"},"pull_request":{"href":"https://api.github.com/repos/outcircle/diaspora/pulls/8"}}}}