From: Evan Prodromou Date: Thu, 22 Jan 2009 19:22:06 +0000 (+0100) Subject: Change to only show local posters in top posting section X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5cc0391093109a99504d27415a53712421c8e95f;p=quix0rs-gnu-social.git Change to only show local posters in top posting section --- 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 ';