diff --git a/checkin_notes b/checkin_notes index 1312ba559a..8887c2b25c 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1721,3 +1721,14 @@ David 14 Feb 2012 client/ work_fetch.cpp + +David 15 Feb 2012 + - web: in user search, show most recent rather than oldest users + - web: don't show URL in account page if expavg_credit < 1. + This discourages a type of spam. + + html/ + inc/ + user.inc + user/ + user_search.php diff --git a/html/inc/user.inc b/html/inc/user.inc index 9667cb693d..ceb90b770c 100644 --- a/html/inc/user.inc +++ b/html/inc/user.inc @@ -312,7 +312,9 @@ function show_user_summary_public($user) { row2(tra("User ID"), $user->id); row2(tra("%1 member since", PROJECT), date_str($user->create_time)); row2(tra("Country"), $user->country); - if (strlen($user->url)) { + // don't show URL if user has no recent credit (spam suppression) + // + if (strlen($user->url) && $user->expavg_credit > 1) { row2(tra("URL"), "url\">http://$user->url"); } if (!no_computing()) { diff --git a/html/user/user_search.php b/html/user/user_search.php index c2a66f5593..b64e8ab031 100644 --- a/html/user/user_search.php +++ b/html/user/user_search.php @@ -121,7 +121,7 @@ function search_action() { $where .= " and has_profile=0"; } $fields = "id, create_time, name, country, total_credit, expavg_credit, teamid, url, has_profile, donated"; - $users = BoincUser::enum_fields($fields, $where, "limit 100"); + $users = BoincUser::enum_fields($fields, $where, "order by id desc limit 100"); $search_type = get_str('search_type', true); if ($search_type == 'date') { usort($users, 'compare_create_time');