From fb9efd9f4682f528b1832622d192b9b5544584a9 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 13 Jan 2025 18:06:05 +0000 Subject: make the interaction buttons actually work --- Digitigrade/Model/PushableModel.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Digitigrade/Model/PushableModel.php') diff --git a/Digitigrade/Model/PushableModel.php b/Digitigrade/Model/PushableModel.php index 9de3507..4df90c8 100644 --- a/Digitigrade/Model/PushableModel.php +++ b/Digitigrade/Model/PushableModel.php @@ -40,6 +40,8 @@ abstract class PushableModel extends FetchableModel implements \JsonSerializable */ public function publish() { foreach ($this->getRelevantServers() as $instance) { + if ($instance == null) // really this should not happen but i'm lazy so it might + continue; (new PushObject($this, $instance))->submit(); } } -- cgit v1.3