if ($object->link && common_valid_http_url($object->link)) {
return $object->link;
}
- throw new ServerException("No author ID URI found.");
+ throw new ServerException(_m('No author ID URI found.'));
}
/**
if (!$homeuri) {
common_log(LOG_DEBUG, __METHOD__ . " empty actor profile URI: " . var_export($activity, true));
- throw new Exception('No profile URI.');
+ throw new Exception(_m('No profile URI.'));
}
$user = User::staticGet('uri', $homeuri);
if ($ptag) {
$local_user = User::staticGet('id', $ptag->tagger);
if (!empty($local_user)) {
- throw new Exception('Local people tag cannot be referenced as remote.');
+ throw new Exception(_m('Local list cannot be referenced as remote.'));
}
}
$oprofile->peopletag_id = $ptag->insert();
if (!$oprofile->peopletag_id) {
- throw new ServerException('Cannot save local people tag.');
+ throw new ServerException(_m('Cannot save local list.'));
}
}
if (!$result) {
common_log_db_error($oprofile, 'INSERT', __FILE__);
// TRANS: Exception. %s is a webfinger address.
- throw new Exception(sprintf(_m('Could not save ostatus_profile for "%s".'),$addr));
+ throw new Exception(sprintf(_m('Could not save OStatus profile for "%s".'),$addr));
}
self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), $oprofile->uri);