]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/OStatus.php
Add uri as well
[friendica.git] / src / Protocol / OStatus.php
index 64e32f2ac458ca5d711d050b4879c084c47bc92d..bd6002392a5659b3d24950f924ec97ae2e93d106 100644 (file)
@@ -797,6 +797,7 @@ class OStatus
                }
 
                if ($xml != '') {
+                       $hub = '';
                        self::process($xml, $importer, $contact, $hub, $stored, false, Conversation::PULL);
                } else {
                        Logger::info('XML could not be fetched for URI: ' . $related_uri . ' - href: ' . $related);
@@ -937,7 +938,7 @@ class OStatus
                                                break;
 
                                        default:
-                                               Logger::warning('Unsupported rel=' . $attribute['rel'] . ', href=' . $attribute['href'] . ', object-type=' . $item['object-type']);
+                                               Logger::notice('Unsupported rel=' . $attribute['rel'] . ', href=' . $attribute['href'] . ', object-type=' . $item['object-type']);
                                }
                        }
                }
@@ -1168,10 +1169,6 @@ class OStatus
                                ];
                                XML::addElement($doc, $root, 'link', '', $attributes);
                                break;
-
-                       default:
-                               Logger::warning('Unsupported type', ['type' => $siteinfo['type'], 'url' => $siteinfo['url'] ?? '']);
-                               break;
                }
 
                if (!DI::config()->get('system', 'ostatus_not_attach_preview') && ($siteinfo['type'] != 'photo') && isset($siteinfo['image'])) {