Document a method
This commit is contained in:
parent
8086b9a9d4
commit
20523f99af
1 changed files with 4 additions and 1 deletions
|
|
@ -27,6 +27,9 @@ module Diaspora
|
||||||
contact
|
contact
|
||||||
end
|
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)
|
def register_post_visibilities(contact)
|
||||||
#should have select here, but proven hard to test
|
#should have select here, but proven hard to test
|
||||||
posts = Post.where(:author_id => contact.person_id, :public => true).limit(100)
|
posts = Post.where(:author_id => contact.person_id, :public => true).limit(100)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue