diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-01-26 10:07:41 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-01-26 10:07:41 +0100 |
commit | 82dbdf7c70dddeb88fd698c20bdba83e847a8109 (patch) | |
tree | 8011b0356fc6e5128ca54f419bc60cd05785ac5d /Zotlabs/Lib | |
parent | 4cf05891d7790716f273aaceb59db248d27b80cb (diff) | |
download | volse-hubzilla-82dbdf7c70dddeb88fd698c20bdba83e847a8109.tar.gz volse-hubzilla-82dbdf7c70dddeb88fd698c20bdba83e847a8109.tar.bz2 volse-hubzilla-82dbdf7c70dddeb88fd698c20bdba83e847a8109.zip |
fix issues in Activity::encode_item_collection() after recent changes
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 5 |
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; |