Pārlūkot izejas kodu

Update AP Inbox

Daniel Supernault 6 gadi atpakaļ
vecāks
revīzija
234f1df097

+ 1 - 1
app/Http/Controllers/SearchController.php

@@ -56,7 +56,7 @@ class SearchController extends Controller
                             ]
                             ]
                         ]];
                         ]];
                     } else if ($type == 'Note') {
                     } else if ($type == 'Note') {
-                        $item = Helpers::statusFirstOrFetch($tag, false);
+                        $item = Helpers::statusFetch($tag);
                         $tokens['posts'] = [[
                         $tokens['posts'] = [[
                             'count'  => 0,
                             'count'  => 0,
                             'url'    => $item->url(),
                             'url'    => $item->url(),

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

@@ -206,7 +206,7 @@ class Helpers {
 		return self::fetchFromUrl($url);
 		return self::fetchFromUrl($url);
 	}
 	}
 
 
-	public static function statusFirstOrFetch($url, $replyTo = true)
+	public static function statusFirstOrFetch($url, $replyTo = false)
 	{
 	{
 		$url = self::validateUrl($url);
 		$url = self::validateUrl($url);
 		if($url == false) {
 		if($url == false) {

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

@@ -151,7 +151,7 @@ class Inbox
         if(Status::whereUrl($url)->exists()) {
         if(Status::whereUrl($url)->exists()) {
             return;
             return;
         }
         }
-        Helpers::statusFirstOrFetch($url, false);
+        Helpers::statusFetch($url);
         return;
         return;
     }
     }