correct watcher, live updates for unread

This commit is contained in:
Sam
2013-05-30 16:49:11 +10:00
parent 6ad86aa305
commit d20056ad0e
4 changed files with 14 additions and 8 deletions

View File

@@ -48,13 +48,13 @@ puts "Simulating activity for user id #{user.id}: #{user.name}"
while true
# puts "Creating a random topi"
puts "Creating a random topic"
# category = Category.where(secure: false).order('random()').first
# PostCreator.create(user, raw: sentence, title: sentence[0..50].strip, category: category.name)
category = Category.where(secure: false).order('random()').first
PostCreator.create(user, raw: sentence, title: sentence[0..50].strip, category: category.name)
puts "creating random reply"
PostCreator.create(user, raw: sentence, topic_id: last_topics.sample)
sleep 3
sleep 10
end