From e3980a6d87e0ca7eff824821340152a0ed50a688 Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 25 Aug 2021 21:18:05 +0200 Subject: [PATCH] Use HTTPRequestOptions constants for HTTPClient::get() --- pumpio/pumpio.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index a74aa4fa..d93aa16d 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -20,6 +20,7 @@ use Friendica\Model\Group; use Friendica\Model\Item; use Friendica\Model\Post; use Friendica\Model\User; +use Friendica\Network\HTTPRequestOptions; use Friendica\Protocol\Activity; use Friendica\Protocol\ActivityNamespace; use Friendica\Util\ConfigFileLoader; @@ -1593,7 +1594,7 @@ function pumpio_fetchallcomments(App $a, $uid, $id) function pumpio_reachable($url) { - return DI::httpRequest()->get($url, ['timeout' => 10])->isSuccess(); + return DI::httpRequest()->get($url, [HTTPRequestOptions::TIMEOUT => 10])->isSuccess(); } /* -- 2.39.5