From: hannes Date: Tue, 5 Jan 2016 14:19:33 +0000 (+0000) Subject: only count post-notices (i.e. don't include activity-notices in statuses_count in... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e10691abea2a9948e8f4b6d89e1c1c85993aa66c;p=quix0rs-gnu-social.git only count post-notices (i.e. don't include activity-notices in statuses_count in the API) --- diff --git a/classes/Profile.php b/classes/Profile.php index 945d1a74ca..65758f3e36 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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