]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Notifier.php
Merge pull request #12389 from annando/fatal
[friendica.git] / src / Worker / Notifier.php
index 10fe6e3abceb0ac2d7c2fa956f10657a8bada33a..c09faca89b27c033fce18894a934b94a6e22af89 100644 (file)
@@ -191,7 +191,7 @@ class Notifier
                        // when the original comment author does support the Diaspora protocol.
                        if ($thr_parent['author-link'] && $target_item['parent-uri'] != $target_item['thr-parent']) {
                                $diaspora_delivery = Diaspora::isSupportedByContactUrl($thr_parent['author-link']);
-                               if ($diaspora_delivery &&  empty($target_item['signed_text'])) {
+                               if ($diaspora_delivery && empty($target_item['signed_text'])) {
                                        Logger::debug('Post has got no Diaspora signature, so there will be no Diaspora delivery', ['guid' => $target_item['guid'], 'uri-id' => $target_item['uri-id']]);
                                        $diaspora_delivery = false;
                                }
@@ -336,7 +336,7 @@ class Notifier
                                foreach ($items as $item) {
                                        $recipients[] = $item['contact-id'];
                                        // pull out additional tagged people to notify (if public message)
-                                       if ($public_message && strlen($item['inform'])) {
+                                       if ($public_message && $item['inform']) {
                                                $people = explode(',',$item['inform']);
                                                foreach ($people as $person) {
                                                        if (substr($person,0,4) === 'cid:') {