]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Feed.php
Fix receiving non public posts from AP
[friendica.git] / src / Protocol / Feed.php
index e0f06782625c5707be3d7b33c284f920c87b9db2..c4cb62a7109e10ead727ab5ce8519090d7806c7f 100644 (file)
@@ -74,24 +74,24 @@ class Feed
        public static function consume($xml, array $importer, array $contact, &$hub)
        {
                if ($contact['network'] === Protocol::OSTATUS) {
-                       Logger::log('Consume OStatus messages ', Logger::DEBUG);
+                       Logger::info('Consume OStatus messages');
                        OStatus::import($xml, $importer, $contact, $hub);
 
                        return;
                }
 
                if ($contact['network'] === Protocol::FEED) {
-                       Logger::log('Consume feeds', Logger::DEBUG);
+                       Logger::info('Consume feeds');
                        self::import($xml, $importer, $contact);
 
                        return;
                }
 
                if ($contact['network'] === Protocol::DFRN) {
-                       Logger::log('Consume DFRN messages', Logger::DEBUG);
+                       Logger::info('Consume DFRN messages');
                        $dfrn_importer = DFRN::getImporter($contact['id'], $importer['uid']);
                        if (!empty($dfrn_importer)) {
-                               Logger::log('Now import the DFRN feed');
+                               Logger::info('Now import the DFRN feed');
                                DFRN::import($xml, $dfrn_importer, true);
                                return;
                        }
@@ -528,7 +528,7 @@ class Feed
 
                                // We always strip the title since it will be added in the page information
                                $item["title"] = "";
-                               $item["body"] = $item["body"] . add_page_info($item["plink"], false, $preview, ($contact["fetch_further_information"] == 2), $contact["ffi_keyword_denylist"]);
+                               $item["body"] = $item["body"] . add_page_info($item["plink"], false, $preview, ($contact["fetch_further_information"] == 2), $contact["ffi_keyword_denylist"] ?? '');
                                $taglist = get_page_keywords($item["plink"], $preview, ($contact["fetch_further_information"] == 2), $contact["ffi_keyword_denylist"]);
                                $item["object-type"] = Activity\ObjectType::BOOKMARK;
                                unset($item["attach"]);