mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Improved relay post processing
This commit is contained in:
parent
a1b5ec94fb
commit
5afa4fa838
8 changed files with 153 additions and 100 deletions
|
@ -43,6 +43,7 @@ use Friendica\Protocol\Feed;
|
|||
use Friendica\Protocol\Salmon;
|
||||
use Friendica\Util\Crypto;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\HTTPSignature;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\Strings;
|
||||
use Friendica\Util\XML;
|
||||
|
@ -1860,7 +1861,7 @@ class Probe
|
|||
unset($baseParts['query']);
|
||||
unset($baseParts['fragment']);
|
||||
|
||||
return Network::unparseURL($baseParts);
|
||||
return Network::unparseURL((array)$baseParts);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2132,7 +2133,7 @@ class Probe
|
|||
*/
|
||||
private static function updateFromOutbox(string $feed, array $data): string
|
||||
{
|
||||
$outbox = ActivityPub::fetchContent($feed);
|
||||
$outbox = HTTPSignature::fetch($feed);
|
||||
if (empty($outbox)) {
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue