mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
DG IZ finding albums by person_id
This commit is contained in:
@@ -27,7 +27,7 @@ class Album
|
||||
|
||||
def self.mine_or_friends(friend_param, current_user)
|
||||
if friend_param
|
||||
Album.where(:person_id => current_user.friend_ids)
|
||||
Album.find_by_person_id(current_user.friend_ids)
|
||||
else
|
||||
current_user.person.albums
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user