]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact/Introduction.php
Merge pull request #12576 from MrPetovan/bug/warnings
[friendica.git] / src / Model / Contact / Introduction.php
index 7b2f7ebc507178e5325ce829163df9b4059cb626..902726413ce138799c7e04bbc3f7f18978634f29 100644 (file)
@@ -122,7 +122,10 @@ class Introduction
                        }
 
                        if ($protocol == Protocol::ACTIVITYPUB) {
-                               ActivityPub\Transmitter::sendContactReject($contact['url'], $contact['hub-verify'], $contact['uid']);
+                               $owner = User::getOwnerDataById($contact['uid']);
+                               if ($owner) {
+                                       ActivityPub\Transmitter::sendContactReject($contact['url'], $contact['hub-verify'], $owner);
+                               }
                        }
                }
        }