Update AP Helpers

This commit is contained in:
Daniel Supernault 2019-08-12 02:50:23 -06:00
parent dccaa2bd94
commit 8f60300022
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -220,7 +220,7 @@ class Helpers {
$id = (int) last(explode('/', $url)); $id = (int) last(explode('/', $url));
return Status::findOrFail($id); return Status::findOrFail($id);
} else { } else {
$cached = Status::whereUrl($url)->first(); $cached = Status::whereUri($url)->orWhere('url', $url)->first();
if($cached) { if($cached) {
return $cached; return $cached;
} }