Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r16151: LJSV-878 (ESN refactoring, part 1): use ...

Committer: ailyin
LJSV-878 (ESN refactoring, part 1): use correct method of counting subs

U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2010-01-27 10:52:34 UTC (rev 16150)
+++ trunk/cgi-bin/LJ/User.pm	2010-01-27 11:04:06 UTC (rev 16151)
@@ -3365,7 +3365,7 @@
 # this is the count used to check the maximum subscription count
 sub active_inbox_subscription_count {
     my $u = shift;
-    return scalar ( grep { $_->active && $_->enabled } $u->find_subscriptions(method => 'Inbox') );
+    return $u->subscriptions_count;
 }
 
 sub max_subscriptions {

Tags: andy, livejournal, pm
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments