* @param string $pattern
*
* @return array
- *
* @throws Exception
*/
public static function listByDomainPattern(string $pattern): array
* @param bool $undetected
*
* @return string
- *
* @throws Exception
*/
public static function getNextUpdateDate(bool $success, string $created = '', string $last_contact = '', bool $undetected = false): string
}
$serverdata['registered-users'] = $serverdata['registered-users'] ?? 0;
+ $serverdata['next_contact'] = self::getNextUpdateDate(true, '', '', in_array($serverdata['network'], [Protocol::PHANTOM, Protocol::FEED]));
+ $serverdata['last_contact'] = DateTimeFormat::utcNow();
+ $serverdata['failed'] = false;
// Numbers above a reasonable value (10 millions) are ignored
if ($serverdata['registered-users'] > 10000000) {
* @param string $server_url address of the server
*
* @return void
- *
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
private static function discoverRelay(string $server_url)
/**
* Parses NodeInfo2 protocol 1.0
*
- * @see https://github.com/jaywink/nodeinfo2/blob/master/PROTOCOL.md
- *
- * @param string $nodeinfo_url address of the nodeinfo path
+ * @param ICanHandleHttpResponses $httpResult
*
* @return array Server data
- *
+ * @see https://github.com/jaywink/nodeinfo2/blob/master/PROTOCOL.md
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
private static function parseNodeinfo210(ICanHandleHttpResponses $httpResult): array