diff options
author | francis <francis> | 2008-09-14 01:47:47 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-14 01:47:47 +0000 |
commit | cb4ccafb1cfcf9128a2fc5f184130046c73866b7 (patch) | |
tree | 3d31d42c4bc66dd8bc44eeb919e63c33090e1cce /app/controllers/user_controller.rb | |
parent | 46b67f840244a6b3e10527645a18c7c97c06ccba (diff) |
Note
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 88169d1e4..a50a21bca 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user_controller.rb,v 1.58 2008-09-14 01:44:49 francis Exp $ +# $Id: user_controller.rb,v 1.59 2008-09-14 01:47:47 francis Exp $ class UserController < ApplicationController # Show page about a user @@ -23,6 +23,9 @@ class UserController < ApplicationController @is_you = !@user.nil? && @user.id == @display_user.id # Use search query for this so can collapse and paginate easily + # XXX really should just use SQL query here rather than Xapian. Partly + # will be more accurate, as will include backpage'd requests which + # don't appear in Xapian. @xapian_requests = perform_search([InfoRequestEvent], 'requested_by:' + @display_user.url_name, 'newest', 'request_collapse') @xapian_comments = perform_search([InfoRequestEvent], 'commented_by:' + @display_user.url_name, 'newest', nil) if (@page > 1) |