aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-05-01 21:45:12 +0200
committerMax Kostikov <max@kostikov.co>2019-05-01 21:45:12 +0200
commitcbe35281b9964666ffef559d8fa7c9f803701f7f (patch)
treee1e9c16b7db8637e36104cca783692bf0b55dfe2
parent1e7e2bd34f0535beb64dbe4ca53d8a20ae4e9a6b (diff)
parent51a0fc45e2a9e95ce37dbe9a792d4281e0baf07b (diff)
downloadvolse-hubzilla-cbe35281b9964666ffef559d8fa7c9f803701f7f.tar.gz
volse-hubzilla-cbe35281b9964666ffef559d8fa7c9f803701f7f.tar.bz2
volse-hubzilla-cbe35281b9964666ffef559d8fa7c9f803701f7f.zip
Merge branch 'dev' into 'dev'
Add AS threaded comments support See merge request hubzilla/core!1618
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 9df7db169..12194664b 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -310,7 +310,7 @@ class Activity {
$ret['attributedTo'] = $i['author']['xchan_url'];
if($i['id'] != $i['parent']) {
- $ret['inReplyTo'] = ((strpos($i['parent_mid'],'http') === 0) ? $i['parent_mid'] : z_root() . '/item/' . urlencode($i['parent_mid']));
+ $ret['inReplyTo'] = ((strpos($i['thr_parent'],'http') === 0) ? $i['thr_parent'] : z_root() . '/item/' . urlencode($i['thr_parent']));
}
if($i['mimetype'] === 'text/bbcode') {
@@ -509,7 +509,7 @@ class Activity {
}
if($i['id'] != $i['parent']) {
- $ret['inReplyTo'] = ((strpos($i['parent_mid'],'http') === 0) ? $i['parent_mid'] : z_root() . '/item/' . urlencode($i['parent_mid']));
+ $ret['inReplyTo'] = ((strpos($i['thr_parent'],'http') === 0) ? $i['thr_parent'] : z_root() . '/item/' . urlencode($i['thr_parent']));
$reply = true;
if($i['item_private']) {