No need to restrict friend's diary entries to public users
authorTom Hughes <tom@compton.nu>
Sat, 7 Jan 2012 11:51:59 +0000 (11:51 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 7 Jan 2012 11:54:07 +0000 (11:54 +0000)
app/controllers/diary_entry_controller.rb

index 5e4b68b73e15b0d3b961b7173695fea50c5dc201..2fd239a065369b0d83813baf2262ec40a9b54ed1 100644 (file)
@@ -103,7 +103,7 @@ class DiaryEntryController < ApplicationController
         @title = t 'diary_entry.list.title_friends'
         @entry_pages, @entries = paginate(:diary_entries, :include => :user,
                                           :conditions => {
-                                            :user_id => @user.friend_users.public,
+                                            :user_id => @user.friend_users,
                                             :visible => true
                                           },
                                           :order => 'created_at DESC',