Move ACCEPT constants to own "enum" class
This commit is contained in:
parent
c700645385
commit
73c3b21665
35 changed files with 144 additions and 138 deletions
|
|
@ -41,7 +41,7 @@ use Friendica\Model\Mail;
|
|||
use Friendica\Model\Post;
|
||||
use Friendica\Model\Tag;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Network\HTTPClient\Client\HttpClient;
|
||||
use Friendica\Network\HTTPClient\Client\HttpClientAccept;
|
||||
use Friendica\Network\Probe;
|
||||
use Friendica\Util\Crypto;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
|
@ -1060,7 +1060,7 @@ class Diaspora
|
|||
|
||||
Logger::info("Fetch post from ".$source_url);
|
||||
|
||||
$envelope = DI::httpClient()->fetch($source_url, 0, HttpClient::ACCEPT_MAGIC);
|
||||
$envelope = DI::httpClient()->fetch($source_url, 0, HttpClientAccept::MAGIC);
|
||||
if ($envelope) {
|
||||
Logger::info("Envelope was fetched.");
|
||||
$x = self::verifyMagicEnvelope($envelope);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue