AP fixes
(cherry picked from commit 3009c88d246ddcafabf1965f88c5ebd8fe1717fd)
This commit is contained in:
parent
c850a61a89
commit
a974d0d52d
@ -609,9 +609,15 @@ class Activity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($i['id'] != $i['parent']) {
|
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;
|
$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']) {
|
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",
|
$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'])
|
intval($i['parent'])
|
||||||
|
Reference in New Issue
Block a user