]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
only count post-notices (i.e. don't include activity-notices in statuses_count in...
authorhannes <h@nnesmannerhe.im>
Tue, 5 Jan 2016 14:19:33 +0000 (14:19 +0000)
committerhannes <h@nnesmannerhe.im>
Tue, 5 Jan 2016 14:19:33 +0000 (14:19 +0000)
classes/Profile.php

index 945d1a74ca2cb6b757318af3266bb82561a02ed6..65758f3e3615a21ce9ee9ad1d8a50f72510209c4 100644 (file)
@@ -824,6 +824,7 @@ class Profile extends Managed_DataObject
 
         $notices = new Notice();
         $notices->profile_id = $this->id;
+        $notices->whereAdd("verb = '".ActivityVerb::POST."'");        
         $cnt = (int) $notices->count('distinct id');
 
         if (!empty($c)) {
@@ -1696,4 +1697,4 @@ class Profile extends Managed_DataObject
     {
         return $this->getUser()->getConnectedApps($offset, $limit);
     }
-}
+}
\ No newline at end of file