Merge branch 'master' of github.com:diaspora/diaspora_rails into pivots
Conflicts: app/models/user.rb
This commit is contained in:
commit
1685e0c28b
1 changed files with 3 additions and 2 deletions
|
|
@ -285,12 +285,13 @@ class User
|
||||||
|
|
||||||
def visible_person_by_id( id )
|
def visible_person_by_id( id )
|
||||||
id = ensure_bson id
|
id = ensure_bson id
|
||||||
return self if id == person.id
|
return self.person if id == self.person.id
|
||||||
friends.detect{|x| x.id == id }
|
friends.detect{|x| x.id == id }
|
||||||
end
|
end
|
||||||
|
|
||||||
def group_by_id( id )
|
def group_by_id( id )
|
||||||
groups.detect{|x| x.id == ensure_bson( id ) }
|
id = ensure_bson id
|
||||||
|
groups.detect{|x| x.id == id }
|
||||||
end
|
end
|
||||||
|
|
||||||
def tommy?
|
def tommy?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue