]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
hide magic self subscription
authorEvan Prodromou <evan@prodromou.name>
Tue, 22 Jul 2008 16:35:11 +0000 (12:35 -0400)
committerEvan Prodromou <evan@prodromou.name>
Tue, 22 Jul 2008 16:35:11 +0000 (12:35 -0400)
darcs-hash:20080722163511-84dde-3ac60595640e545335cc13d120f3e99ba5d1f513.gz

actions/showstream.php

index 87858e14b35ee3c593a5fe41335bf482e7e02c20..c05e30c39255aab606fdb571d1634d6743268006 100644 (file)
@@ -271,11 +271,11 @@ class ShowstreamAction extends StreamAction {
                // XXX: WORM cache this
                $subs = DB_DataObject::factory('subscription');
                $subs->subscriber = $profile->id;
-               $subs_count = (int) $subs->count();
+               $subs_count = (int) $subs->count() - 1;
 
                $subbed = DB_DataObject::factory('subscription');
                $subbed->subscribed = $profile->id;
-               $subbed_count = (int) $subbed->count();
+               $subbed_count = (int) $subbed->count() - 1;
 
                $notices = DB_DataObject::factory('notice');
                $notices->profile_id = $profile->id;