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;
function pumpio_reachable($url)
{
- return DI::httpRequest()->get($url, ['timeout' => 10])->isSuccess();
+ return DI::httpRequest()->get($url, [HTTPRequestOptions::TIMEOUT => 10])->isSuccess();
}
/*