Commit 5cc03910 authored by Evan Prodromou's avatar Evan Prodromou

Change to only show local posters in top posting section

parent e9b3e4e7
......@@ -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 ';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment