aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 3afc70b28..8ad114a4d 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -292,7 +292,7 @@ class Activity {
$ret = [
'id' => z_root() . '/' . $id,
'type' => $type,
- 'totalItems' => $total,
+ 'totalItems' => count($items),
];
}
@@ -312,9 +312,6 @@ class Activity {
if ($t) {
$x[] = $t;
}
- if ($t) {
- $x[] = $t;
- }
}
if ($type === 'OrderedCollection') {
$ret['orderedItems'] = $x;