Commit 1d40ffe1 authored by Mario's avatar Mario

pixelfed does not like url in the activity - keep it in the object only


(cherry picked from commit 576ab2c0)
parent d7bcf6ed
......@@ -271,12 +271,15 @@ function asencode_item($i) {
$ret['location']['longitude'] = $l[1];
}
}
$ret['url'] = [
'type' => 'Link',
'rel' => 'alternate',
'type' => 'text/html',
'href' => $i['plink']
];
if($i['obj']) {
$ret['url'] = [
'type' => 'Link',
'rel' => 'alternate',
'type' => 'text/html',
'href' => $i['plink']
];
}
$ret['attributedTo'] = $i['author']['xchan_url'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment