diff options
author | Mario <mario@mariovavti.com> | 2023-02-22 11:20:32 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-02-22 11:20:32 +0000 |
commit | ca7bd4996403fac432f1594d8552c727c44b360a (patch) | |
tree | 177e999b882d10191440625671a66695bea5dba7 | |
parent | 352713726414d2e1dac1c06040bedbb84bb77db6 (diff) | |
download | volse-hubzilla-ca7bd4996403fac432f1594d8552c727c44b360a.tar.gz volse-hubzilla-ca7bd4996403fac432f1594d8552c727c44b360a.tar.bz2 volse-hubzilla-ca7bd4996403fac432f1594d8552c727c44b360a.zip |
Activity: do not force new thread if the announce is from a group actor
-rw-r--r-- | Zotlabs/Lib/Activity.php | 6 |
1 files changed, 5 insertions, 1 deletions
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 |