mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 05:23:17 +00:00
Merge pull request #1668 from pixelfed/staging
Update AP Inbox, fix url bug
This commit is contained in:
commit
7af9dcd2ec
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue