aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-08-21 10:45:12 +0200
committerMario Vavti <mario@mariovavti.com>2023-08-21 10:45:12 +0200
commit0a3094fc9a708c4e83d6dd91250ac2105e21b03f (patch)
tree05b76fe25bfbd80b51444170df07feda712bbfda /Zotlabs/Lib/Activity.php
parent816bbad28a6292be1c697fe3ac4073f3f110dc10 (diff)
downloadvolse-hubzilla-0a3094fc9a708c4e83d6dd91250ac2105e21b03f.tar.gz
volse-hubzilla-0a3094fc9a708c4e83d6dd91250ac2105e21b03f.tar.bz2
volse-hubzilla-0a3094fc9a708c4e83d6dd91250ac2105e21b03f.zip
test refactor the previous commit
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 532bbba45..1158acb08 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2359,6 +2359,9 @@ class Activity {
$s['mid'] = $act->id;
$s['uuid'] = ((!empty($act->data['diaspora:guid'])) ? $act->data['diaspora:guid'] : uuid_from_url($s['mid']));
+ $s['parent_mid'] = $act->objprop('id') ?: $act->obj;
+
+/*
if ($act->objprop('inReplyTo')) {
$s['parent_mid'] = $act->objprop('inReplyTo');
}
@@ -2369,7 +2372,7 @@ class Activity {
logger('response activity without parent_mid or thr_parent');
return;
}
-
+*/
// over-ride the object timestamp with the activity
if (isset($act->data['published'])) {
@@ -3157,7 +3160,7 @@ class Activity {
return;
}
-/*
+
if ($parent[0]['parent_mid'] !== $item['parent_mid']) {
$item['thr_parent'] = $item['parent_mid'];
}
@@ -3165,7 +3168,7 @@ class Activity {
$item['thr_parent'] = $parent[0]['parent_mid'];
}
$item['parent_mid'] = $parent[0]['parent_mid'];
-*/
+
/*
*
@@ -3284,7 +3287,7 @@ class Activity {
$current_item = $item;
while ($current_item['parent_mid'] !== $current_item['mid']) {
- $n = self::fetch(((in_array($current_item['verb'], [ACTIVITY_LIKE, ACTIVITY_DISLIKE])) ? $current_item['thr_parent'] : $current_item['parent_mid']), $channel);
+ $n = self::fetch($current_item['parent_mid'], $channel);
if (!$n) {
break;