only count post-notices (i.e. don't include activity-notices in statuses_count in the API)

This commit is contained in:
hannes 2016-01-05 14:19:33 +00:00
parent 9a75778b29
commit e10691abea

View 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);
}
}
}