<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
// It should never happen that we arrive here
return [];
}
+
+ /**
+ * Resubscribe to all relay servers
+ */
+ public static function reSubscribe()
+ {
+ foreach (self::getList() as $server) {
+ $success = ActivityPub\Transmitter::sendRelayFollow($server['url']);
+ Logger::debug('Resubscribed', ['profile' => $server['url'], 'success' => $success]);
+ }
+ }
}