mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update AP Inbox
This commit is contained in:
parent
8ad46b8c32
commit
234f1df097
3 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ class SearchController extends Controller
|
|||
]
|
||||
]];
|
||||
} else if ($type == 'Note') {
|
||||
$item = Helpers::statusFirstOrFetch($tag, false);
|
||||
$item = Helpers::statusFetch($tag);
|
||||
$tokens['posts'] = [[
|
||||
'count' => 0,
|
||||
'url' => $item->url(),
|
||||
|
|
|
@ -206,7 +206,7 @@ class Helpers {
|
|||
return self::fetchFromUrl($url);
|
||||
}
|
||||
|
||||
public static function statusFirstOrFetch($url, $replyTo = true)
|
||||
public static function statusFirstOrFetch($url, $replyTo = false)
|
||||
{
|
||||
$url = self::validateUrl($url);
|
||||
if($url == false) {
|
||||
|
|
|
@ -151,7 +151,7 @@ class Inbox
|
|||
if(Status::whereUrl($url)->exists()) {
|
||||
return;
|
||||
}
|
||||
Helpers::statusFirstOrFetch($url, false);
|
||||
Helpers::statusFetch($url);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue