]> git.mxchange.org Git - friendica.git/blobdiff - mod/repair_ostatus.php
Merge remote-tracking branch 'upstream/develop' into user-contact
[friendica.git] / mod / repair_ostatus.php
index 0d30fc298dea1c83be9183906b7a2aa23dc801e9..bc6b177f9528b8a896ca320dbcd435ec50b11067 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -70,7 +70,7 @@ function repair_ostatus_content(App $a) {
 
        $o .= "<p>".DI::l10n()->t("Keep this window open until done.")."</p>";
 
-       Contact::createFromProbe($a->user, $r[0]["url"], true);
+       Contact::createFromProbeForUser($a->getLoggedInUserId(), $r[0]["url"]);
 
        DI::page()['htmlhead'] = '<meta http-equiv="refresh" content="1; URL=' . DI::baseUrl() . '/repair_ostatus?counter='.$counter.'">';