]> 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 6ceba80553fbe40be7417cfb657b43217a307c7b..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
  *
@@ -28,7 +28,7 @@ use Friendica\Model\Contact;
 function repair_ostatus_content(App $a) {
 
        if (! local_user()) {
-               notice(DI::l10n()->t('Permission denied.') . EOL);
+               notice(DI::l10n()->t('Permission denied.'));
                DI::baseUrl()->redirect('ostatus_repair');
                // NOTREACHED
        }
@@ -70,7 +70,7 @@ function repair_ostatus_content(App $a) {
 
        $o .= "<p>".DI::l10n()->t("Keep this window open until done.")."</p>";
 
-       Contact::createFromProbe($uid, $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.'">';