. * */ use Friendica\App; use Friendica\Core\Protocol; use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Contact; function repair_ostatus_content(App $a) { if (!local_user()) { notice(DI::l10n()->t('Permission denied.')); DI::baseUrl()->redirect('ostatus_repair'); // NOTREACHED } $o = '
' . $counter . '/' . $total . ': ' . $contact[0]['url'] . '
'; $o .= '' . DI::l10n()->t('Keep this window open until done.') . '
'; Contact::createFromProbeForUser($a->getLoggedInUserId(), $contact[0]['url']); DI::page()['htmlhead'] = ''; return $o; }