public static function rawContent(array $parameters = [])
{
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
public static function rawContent(array $parameters = [])
{
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$self = User::getOwnerDataById($uid);
if (empty($self)) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->InternalError();
}
$cdata = Contact::getPublicAndUserContacID($self['id'], $uid);
if (empty($cdata)) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->InternalError();
}
// @todo Support the source property,
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
public static function rawContent(array $parameters = [])
{
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
System::jsonExit(DI::mstdnStatus()->createFromUriId($parameters['id'], self::getCurrentUserID()));
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$id = $parameters['id'];
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
// Return results older than id
$uid = self::getCurrentUserID();
if (empty($parameters['hashtag'])) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
// If true, return only local statuses. Defaults to false.
$response_type = $_REQUEST['response_type'] ?? '';
if ($response_type != 'code') {
Logger::warning('Wrong or missing response type', ['response_type' => $response_type]);
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$application = self::getApplication();
if (empty($application)) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
$request = $_REQUEST;
$token = self::createTokenForUser($application, $uid);
if (!$token) {
- DI::mstdnError()->RecordNotFound();
+ DI::mstdnError()->UnprocessableEntity();
}
DI::app()->redirect($application['redirect_uri'] . '?code=' . $token['code']);