[dw-free] top 1000 syn accounts page is empty
[commit: http://hg.dwscoalition.org/dw-free/rev/d4c9f7b788dd]
http://bugs.dwscoalition.org/show_bug.cgi?id=422
SynSuck updated for WTF.
Patch by
mark.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=422
SynSuck updated for WTF.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
Files modified:
- cgi-bin/LJ/SynSuck.pm
-------------------------------------------------------------------------------- diff -r c75b23d04ba1 -r d4c9f7b788dd cgi-bin/LJ/SynSuck.pm --- a/cgi-bin/LJ/SynSuck.pm Sat Mar 07 08:40:24 2009 +0000 +++ b/cgi-bin/LJ/SynSuck.pm Sat Mar 07 09:09:26 2009 +0000 @@ -426,9 +426,8 @@ sub process_content { # update reader count while we're changing things, but not # if feed is stale (minimize DB work for inactive things) - if ($newcount || ! defined $readers) { - $readers = $dbh->selectrow_array("SELECT COUNT(*) FROM friends WHERE ". - "friendid=?", undef, $userid); + if ( $newcount || ! defined $readers ) { + $readers = $su->watched_by_userids; } # if readers are gone, don't check for a whole day --------------------------------------------------------------------------------