]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Feed.php
Fixed:
[friendica.git] / src / Protocol / Feed.php
index 381d3f7f696631dde1acd40ba966a445aed18acb..65b0696effb5a3fd9b20dd8dc817c64a9507f8c8 100644 (file)
@@ -67,7 +67,7 @@ class Feed
                if ($dryRun) {
                        Logger::info("Test Atom/RSS feed");
                } else {
-                       Logger::info("Import Atom/RSS feed '" . $contact['name'] . "' (Contact " . $contact['id'] . ") for user " . $importer['uid']);
+                       Logger::info('Import Atom/RSS feed "' . $contact['name'] . '" (Contact ' . $contact['id'] . ') for user ' . $importer['uid']);
                }
 
                $xml = trim($xml);
@@ -313,7 +313,7 @@ class Feed
                                $item['uri'] = $guid;
 
                                // Don't use the GUID value directly but instead use it as a basis for the GUID
-                               $item['guid'] = Item::guidFromUri($guid, parse_url($guid, PHP_URL_HOST) ?? parse_url($item['plink'], PHP_URL_HOST) ?? '');
+                               $item['guid'] = Item::guidFromUri($guid, parse_url($guid, PHP_URL_HOST) ?? parse_url($item['plink'], PHP_URL_HOST));
                        }
 
                        if (empty($item['uri'])) {
@@ -379,7 +379,7 @@ class Feed
                                if (DBA::isResult($previous)) {
                                        // Use the creation date when the post had been stored. It can happen this date changes in the feed.
                                        $creation_dates[] = $previous['created'];
-                                       Logger::info("Item with uri " . $item['uri'] . " for user " . $importer['uid'] . " already existed under id " . $previous['id']);
+                                       Logger::info('Item with URI ' . $item['uri'] . ' for user ' . $importer['uid'] . ' already existed under id ' . $previous['id']);
                                        continue;
                                }
                                $creation_dates[] = DateTimeFormat::utc($item['created']);