Commit fc053d7e authored by Mario's avatar Mario

add diaspora:guid from friendica AP posts for deduplication

parent 9cc6a297
......@@ -1175,6 +1175,10 @@ function as_create_note($channel,$observer_hash,$act) {
$s['aid'] = $channel['channel_account_id'];
$s['uid'] = $channel['channel_id'];
$s['uuid'] = '';
// Friendica sends the diaspora guid in a nonstandard field via AP
if($act->obj['diaspora:guid'])
$s['uuid'] = $act->obj['diaspora:guid'];
$s['mid'] = urldecode($act->obj['id']);
$s['plink'] = urldecode($act->obj['id']);
......
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