]> git.mxchange.org Git - friendica.git/blobdiff - include/diaspora.php
Diaspora: Posts from Diaspora relais are transmitted the old way
[friendica.git] / include / diaspora.php
index cd857ba6bdb9868da06f2d0219e83d1e850a5100..f7dee831d8c198bd6db14595cfb5fa5507a0b1eb 100644 (file)
@@ -287,6 +287,11 @@ class Diaspora {
                        $public = true;
                        $author_link = str_replace('acct:','',$children->header->author_id);
                } else {
+                       // This happens with posts from a relais
+                       if (!$importer) {
+                               logger("This is no private post in the old format", LOGGER_DEBUG);
+                               return false;
+                       }
 
                        $encrypted_header = json_decode(base64_decode($children->encrypted_header));