Skip to content
Browse files

fix person feed user_hash bug.

  • Loading branch information...
1 parent dfbfd20 commit 4ce856f96d9b272716f66452d523cde8b21d02da @chloerei chloerei committed
Showing with 2 additions and 0 deletions.
  1. +1 −0 app/controllers/people_controller.rb
  2. +1 −0 test/functional/people_controller_test.rb
View
1 app/controllers/people_controller.rb
@@ -28,6 +28,7 @@ def topics
respond_with(@topics) do |format|
format.html
format.rss do
+ @user_hash[@person.id] = @person
@channel_link = person_url(:username => @person.username)
render 'topics/topics', :layout => false
end
View
1 test/functional/people_controller_test.rb
@@ -3,6 +3,7 @@
class PeopleControllerTest < ActionController::TestCase
def setup
@user = create_user
+ @topic = @user.topics.create :title => 'title', :content => 'content', :tags => 'tag1 tag2'
create_site_config
end

0 comments on commit 4ce856f

Please sign in to comment.
Something went wrong with that request. Please try again.