From ca7bd4996403fac432f1594d8552c727c44b360a Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 22 Feb 2023 11:20:32 +0000 Subject: Activity: do not force new thread if the announce is from a group actor --- Zotlabs/Lib/Activity.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index a17648147..93432c5ee 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2518,7 +2518,11 @@ class Activity { if ($act->type === 'Announce') { $s['author_xchan'] = self::get_attributed_to_actor_url($act); $s['mid'] = $act->obj['id']; - $s['parent_mid'] = $act->obj['id']; + + // Do not force new thread if the announce is from a group actor + if ($act->actor['type'] !== 'Group') { + $s['parent_mid'] = $act->obj['id']; + } } // we will need a hook here to extract magnet links e.g. peertube -- cgit v1.2.3