diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-05-16 12:03:31 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-05-16 12:03:31 +0100 |
commit | 267f1ca46e45ca75234be8db9b74cb072e0cbe06 (patch) | |
tree | d349a92e93abfd401d97044e5772f21ce8af33cd /app/controllers/user_controller.rb | |
parent | 5739b9ee7924903da40b0c378b76a3131a8b294d (diff) |
Make it possible to view other people's activities on their own walls.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 72e9f63f1..ef013ad1e 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -119,11 +119,11 @@ class UserController < ApplicationController # All tracks for the user if @is_you @track_things = TrackThing.find(:all, :conditions => ["tracking_user_id = ? and track_medium = ?", @display_user.id, 'email_daily'], :order => 'created_at desc') - end - for track_thing in @track_things - # XXX factor out of track_mailer.rb - xapian_object = InfoRequest.full_search([InfoRequestEvent], track_thing.track_query, 'described_at', true, nil, 20, 1) - feed_results += xapian_object.results.map {|x| x[:model]} + for track_thing in @track_things + # XXX factor out of track_mailer.rb + xapian_object = InfoRequest.full_search([InfoRequestEvent], track_thing.track_query, 'described_at', true, nil, 20, 1) + feed_results += xapian_object.results.map {|x| x[:model]} + end end @feed_results = Array(feed_results).sort {|x,y| y.created_at <=> x.created_at}.first(20) |