Removed legacy OMB. Use OStatus for remote profiles.

This commit is contained in:
Mikael Nordfeldth
2013-10-28 16:22:09 +01:00
parent e7a4ccb7b5
commit fcba540a14
61 changed files with 13 additions and 6278 deletions

View File

@@ -271,28 +271,6 @@ class TwitterImport
return false;
}
// check for remote profile
$remote_pro = Remote_profile::getKV('uri', $profileurl);
if (!($remote_pro instanceof Remote_profile)) {
$remote_pro = new Remote_profile();
$remote_pro->id = $id;
$remote_pro->uri = $profileurl;
$remote_pro->created = common_sql_now();
try {
$rid = $remote_pro->insert();
if (empty($rid)) {
throw new Exception('Failed insert');
}
} catch (Exception $e) {
common_log(LOG_WARNING, __METHOD__ . " Couldn't save remote profile: " . $e->getMessage());
common_log_db_error($profile, 'INSERT', __FILE__);
$profile->query("ROLLBACK");
return false;
}
}
$profile->query("COMMIT");
$this->updateAvatar($twuser, $profile);
return $profile;