From d88f3169c86bd43cacc80fced8f196e03a8da2bb Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 13 Feb 2026 08:22:19 +0000 Subject: [PATCH] fix possibly duplicated terms in activity object --- Zotlabs/Module/Item.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 2daf3c72b..c3ba2d893 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -1075,12 +1075,14 @@ class Item extends Controller { killme(); } + $post = item_store($datarray, $execflag); if ($post['success'] && intval($item_type) === ITEM_TYPE_POST) { $item = [$post['item']]; xchan_query($item); - $item = fetch_post_tags($item); + // TODO: fetch_post_tags() will add term and iconfig twice if called twice and it looks like they are already added here + //$item = fetch_post_tags($item); $encoded_item = Activity::build_packet(Activity::encode_activity($item[0]), $channel, false); ObjCache::Set($item[0]['mid'], $encoded_item);