mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update RemoteFollow pipeline
This commit is contained in:
parent
42daaa15b7
commit
d40af20013
1 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,7 @@ use Illuminate\Queue\SerializesModels;
|
|||
use Log;
|
||||
use Storage;
|
||||
use Zttp\Zttp;
|
||||
use App\Util\ActivityPub\Helpers;
|
||||
|
||||
class RemoteFollowImportRecent implements ShouldQueue
|
||||
{
|
||||
|
@ -60,9 +61,10 @@ class RemoteFollowImportRecent implements ShouldQueue
|
|||
|
||||
public function fetchOutbox($url = false)
|
||||
{
|
||||
Log::info(json_encode($url));
|
||||
$url = ($url == false) ? $this->actor['outbox'] : $url;
|
||||
|
||||
if(Helpers::validateUrl($url) == false) {
|
||||
return;
|
||||
}
|
||||
$response = Zttp::withHeaders([
|
||||
'User-Agent' => 'PixelFedBot v0.1 - https://pixelfed.org',
|
||||
])->get($url);
|
||||
|
|
Loading…
Reference in a new issue