]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Diaspora.php
Log the command, not the module
[friendica.git] / src / Protocol / Diaspora.php
index 4c053a47c996961419c425ab622c41b66a661e9f..70fd0f1f8d9acb06f8d66d6bb21f922c7fa7a140 100644 (file)
@@ -1060,7 +1060,7 @@ class Diaspora
 
                Logger::info("Fetch post from ".$source_url);
 
-               $envelope = DI::httpClient()->fetch($source_url, 0, HttpClientAccept::MAGIC);
+               $envelope = DI::httpClient()->fetch($source_url, HttpClientAccept::MAGIC);
                if ($envelope) {
                        Logger::info("Envelope was fetched.");
                        $x = self::verifyMagicEnvelope($envelope);
@@ -4101,10 +4101,10 @@ class Diaspora
                        'author-id'  => $author,
                        'owner-id'   => $author,
                        'body'       => $post,
-                       'allow_cid'  => $owner['allow_cid'],
-                       'allow_gid'  => $owner['allow_gid'],
-                       'deny_cid'   => $owner['deny_cid'],
-                       'deny_gid'   => $owner['deny_gid'],
+                       'allow_cid'  => $owner['allow_cid'] ?? '',
+                       'allow_gid'  => $owner['allow_gid']?? '',
+                       'deny_cid'   => $owner['deny_cid'] ?? '',
+                       'deny_gid'   => $owner['deny_gid'] ?? '',
                ];
 
                if (!empty($item['allow_cid'] . $item['allow_gid'] . $item['deny_cid'] . $item['deny_gid'])) {