. * */ use Friendica\App; use Friendica\Core\Protocol; use Friendica\Core\Session; use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Contact; function repair_ostatus_content(App $a) { if (!Session::getLocalUser()) { DI::sysmsg()->addNotice(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; }