Update AP Inbox, fix url bug

pull/1668/head
Daniel Supernault 6 years ago
parent 76a2d38275
commit 6e4a56236e
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -130,7 +130,7 @@ class Inbox
} }
$inReplyTo = $activity['inReplyTo']; $inReplyTo = $activity['inReplyTo'];
$url = $activity['id']; $url = isset($activity['url']) ? $activity['url'] : $activity['id'];
Helpers::statusFirstOrFetch($url, true); Helpers::statusFirstOrFetch($url, true);
return; return;
@ -148,7 +148,7 @@ class Inbox
return; return;
} }
$url = $activity['id']; $url = isset($activity['url']) ? $activity['url'] : $activity['id'];
if(Status::whereUrl($url)->exists()) { if(Status::whereUrl($url)->exists()) {
return; return;
} }

Loading…
Cancel
Save