]> git.mxchange.org Git - friendica.git/commitdiff
Issue #13899: Fix error on postupdate (#13915)
authorMichael Vogel <icarus@dabo.de>
Sun, 18 Feb 2024 19:09:56 +0000 (20:09 +0100)
committerGitHub <noreply@github.com>
Sun, 18 Feb 2024 19:09:56 +0000 (20:09 +0100)
src/Model/Post/Engagement.php

index e5de964d04a85f003f958524dc347c3a4a591c0e..99940a784d8dac3d3ff14b02c9124580ba295a4b 100644 (file)
@@ -277,6 +277,9 @@ class Engagement
                $body = self::addResharers($body, $item['uri-id']);
 
                foreach ($receivers as $receiver) {
+                       if (empty($receiver)) {
+                               continue;
+                       }
                        $contact = Contact::getByURL($receiver, false, ['nick', 'addr', 'contact-type']);
                        if (empty($contact)) {
                                continue;