]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Relay.php
Fixed indenting
[friendica.git] / src / Protocol / Relay.php
index f50b73b7d707de5c6a20bd3d7023d7582770700c..8679bbec5bf1ee50f87fc8d49c1a5457d863ad9d 100644 (file)
@@ -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]);
+               }       
+       }
 }