diff options
author | Mario <mario@mariovavti.com> | 2021-01-26 09:21:21 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-26 09:21:21 +0000 |
commit | 1c8d298f3f13ad358693d2ec8016e49043f2250f (patch) | |
tree | 0be219da32d5cf324915b0d15dd8e6b24d75a5ac | |
parent | 777af6e7ad6c6307567010cee262a0f1d8831083 (diff) | |
parent | 82dbdf7c70dddeb88fd698c20bdba83e847a8109 (diff) | |
download | volse-hubzilla-1c8d298f3f13ad358693d2ec8016e49043f2250f.tar.gz volse-hubzilla-1c8d298f3f13ad358693d2ec8016e49043f2250f.tar.bz2 volse-hubzilla-1c8d298f3f13ad358693d2ec8016e49043f2250f.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
-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; |