mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
RS IZ my newest fix
This commit is contained in:
@@ -38,6 +38,9 @@ class Post
|
||||
self.where(:person_id => person.id).last
|
||||
end
|
||||
|
||||
def self.my_newest
|
||||
self.newest(User.first)
|
||||
end
|
||||
def self.newest_by_email(email)
|
||||
self.where(:person_id => Person.where(:email => email).first.id).last
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user