aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-11-18 13:00:43 +0100
committerMax Kostikov <max@kostikov.co>2019-11-18 13:00:43 +0100
commit498c021aec25d845c67150475294066113de6d20 (patch)
treec8934c83f6519bf58f27f410683e06cc6615a6a0 /Zotlabs/Lib/Activity.php
parent5ee133843f166a58e0c6236e543204be8dae70d3 (diff)
parentef75d27afbbee4cfe7d4441269e350b8f7f432f9 (diff)
downloadvolse-hubzilla-498c021aec25d845c67150475294066113de6d20.tar.gz
volse-hubzilla-498c021aec25d845c67150475294066113de6d20.tar.bz2
volse-hubzilla-498c021aec25d845c67150475294066113de6d20.zip
Merge branch 'dev' into 'dev'
Dev sync See merge request kostikov/core!5
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index e41e165b1..08a8b8d03 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -609,9 +609,15 @@ class Activity {
}
if($i['id'] != $i['parent']) {
- $ret['inReplyTo'] = ((strpos($i['thr_parent'],'http') === 0) ? $i['thr_parent'] : z_root() . '/item/' . urlencode($i['thr_parent']));
$reply = true;
+ // inReplyTo needs to be set in the activity for followup actiions (Like, Dislike, Attend, Announce, etc.),
+ // but *not* for comments, where it should only be present in the object
+
+ if (! in_array($ret['type'],[ 'Create','Update' ])) {
+ $ret['inReplyTo'] = ((strpos($i['thr_parent'],'http') === 0) ? $i['thr_parent'] : z_root() . '/item/' . urlencode($i['thr_parent']));
+ }
+
if($i['item_private']) {
$d = q("select xchan_url, xchan_addr, xchan_name from item left join xchan on xchan_hash = author_xchan where id = %d limit 1",
intval($i['parent'])