aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-01-26 10:07:41 +0100
committerMario Vavti <mario@mariovavti.com>2021-01-26 10:07:41 +0100
commit82dbdf7c70dddeb88fd698c20bdba83e847a8109 (patch)
tree8011b0356fc6e5128ca54f419bc60cd05785ac5d
parent4cf05891d7790716f273aaceb59db248d27b80cb (diff)
downloadvolse-hubzilla-82dbdf7c70dddeb88fd698c20bdba83e847a8109.tar.gz
volse-hubzilla-82dbdf7c70dddeb88fd698c20bdba83e847a8109.tar.bz2
volse-hubzilla-82dbdf7c70dddeb88fd698c20bdba83e847a8109.zip
fix issues in Activity::encode_item_collection() after recent changes
-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;