Commit 15ccaf3a authored by Mario's avatar Mario

Merge branch 'cherry-pick-576ab2c0' into 'dev'

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

See merge request !337
parents b9194628 1d40ffe1
......@@ -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