aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-15 09:43:39 +0000
committerMario <mario@mariovavti.com>2019-11-15 09:43:39 +0000
commit3009c88d246ddcafabf1965f88c5ebd8fe1717fd (patch)
treefb9a88031c27476d0509c5a1462450e75021a1d9
parentf3fa2d853ab04441e223b0074462bf11c6f99184 (diff)
downloadvolse-hubzilla-3009c88d246ddcafabf1965f88c5ebd8fe1717fd.tar.gz
volse-hubzilla-3009c88d246ddcafabf1965f88c5ebd8fe1717fd.tar.bz2
volse-hubzilla-3009c88d246ddcafabf1965f88c5ebd8fe1717fd.zip
AP fixes
-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'])