Document a method

This commit is contained in:
Raphael Sofaer 2011-08-10 17:31:18 -07:00
parent 8086b9a9d4
commit 20523f99af

View file

@ -22,11 +22,14 @@ module Diaspora
if notification = Notification.where(:target_id => person.id).first
notification.update_attributes(:unread=>false)
end
register_post_visibilities(contact)
contact
end
# This puts the last 100 public posts by the passed in contact into the user's stream.
# @param [Contact] contact
# @return [void]
def register_post_visibilities(contact)
#should have select here, but proven hard to test
posts = Post.where(:author_id => contact.person_id, :public => true).limit(100)