forked from GNUsocial/gnu-social
only count post-notices (i.e. don't include activity-notices in statuses_count in the API)
This commit is contained in:
parent
9a75778b29
commit
e10691abea
@ -824,6 +824,7 @@ class Profile extends Managed_DataObject
|
|||||||
|
|
||||||
$notices = new Notice();
|
$notices = new Notice();
|
||||||
$notices->profile_id = $this->id;
|
$notices->profile_id = $this->id;
|
||||||
|
$notices->whereAdd("verb = '".ActivityVerb::POST."'");
|
||||||
$cnt = (int) $notices->count('distinct id');
|
$cnt = (int) $notices->count('distinct id');
|
||||||
|
|
||||||
if (!empty($c)) {
|
if (!empty($c)) {
|
||||||
@ -1696,4 +1697,4 @@ class Profile extends Managed_DataObject
|
|||||||
{
|
{
|
||||||
return $this->getUser()->getConnectedApps($offset, $limit);
|
return $this->getUser()->getConnectedApps($offset, $limit);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user