From 5cc0391093109a99504d27415a53712421c8e95f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 22 Jan 2009 20:22:06 +0100 Subject: [PATCH] Change to only show local posters in top posting section --- lib/topposterssection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/topposterssection.php b/lib/topposterssection.php index 1163738180..7a3d46aa5f 100644 --- a/lib/topposterssection.php +++ b/lib/topposterssection.php @@ -50,6 +50,7 @@ class TopPostersSection extends ProfileSection { $qry = 'SELECT profile.*, count(*) as value ' . 'FROM profile JOIN notice ON profile.id = notice.profile_id ' . + (common_config('public', 'localonly') ? 'WHERE is_local = 1 ' : '') . 'GROUP BY profile.id ' . 'ORDER BY value DESC ';