mirror of
https://github.com/friendica/friendica
synced 2025-04-28 07:44:23 +02:00
Resubscribe to relay servers
This commit is contained in:
parent
a1871756ee
commit
b1a2de5cb5
3 changed files with 72 additions and 3 deletions
|
@ -341,4 +341,15 @@ class Relay
|
|||
// 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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue