diff options
author | Mario <mario@mariovavti.com> | 2025-05-21 09:24:48 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-05-21 09:24:48 +0000 |
commit | 6d306bc0b3077ab1cebcb48f50a25c76c9eb3002 (patch) | |
tree | ce1dd9393ba0def7594adbbfde8cae1211b8dc9a | |
parent | 813a5b36218a8eab650bba362d0862941f660a60 (diff) | |
download | volse-hubzilla-6d306bc0b3077ab1cebcb48f50a25c76c9eb3002.tar.gz volse-hubzilla-6d306bc0b3077ab1cebcb48f50a25c76c9eb3002.tar.bz2 volse-hubzilla-6d306bc0b3077ab1cebcb48f50a25c76c9eb3002.zip |
more return early if we have not got the required data
-rw-r--r-- | include/items.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index 182f5ff72..8a08516c1 100644 --- a/include/items.php +++ b/include/items.php @@ -5584,6 +5584,10 @@ function items_by_thr_parent(string $mid, int $parent): array function item_activity_xchans(string $mid, int $parent, string $verb): array { + if (!$mid && !$parent && !$verb) { + return []; + } + $observer_hash = get_observer_hash(); $parent_item = q("SELECT * FROM item WHERE id = %d", intval($parent) |