From 82dbdf7c70dddeb88fd698c20bdba83e847a8109 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 26 Jan 2021 10:07:41 +0100 Subject: fix issues in Activity::encode_item_collection() after recent changes --- Zotlabs/Lib/Activity.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Zotlabs') 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; -- cgit v1.2.3