]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact/Introduction.php
Merge pull request #12674 from nupplaphil/bug/config_typesafe
[friendica.git] / src / Model / Contact / Introduction.php
index 7b2f7ebc507178e5325ce829163df9b4059cb626..d78673665037ea51c9226e01f9fc2080c057b263 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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);
+                               }
                        }
                }
        }