Pārlūkot izejas kodu

Update AP Helpers

Daniel Supernault 5 gadi atpakaļ
vecāks
revīzija
8f60300022
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/Util/ActivityPub/Helpers.php

+ 1 - 1
app/Util/ActivityPub/Helpers.php

@@ -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;
 			}
 			}