Unified request for uid

This commit is contained in:
Michael 2021-06-08 08:28:14 +00:00
parent 85217941e3
commit 11c8dfe73a
6 changed files with 11 additions and 21 deletions

View file

@ -38,6 +38,8 @@ class Accounts extends BaseApi
*/
public static function rawContent(array $parameters = [])
{
$uid = self::getCurrentUserID();
if (empty($parameters['id']) && empty($parameters['name'])) {
DI::mstdnError()->UnprocessableEntity();
}
@ -56,7 +58,7 @@ class Accounts extends BaseApi
}
}
$account = DI::mstdnAccount()->createFromContactId($id, self::getCurrentUserID());
$account = DI::mstdnAccount()->createFromContactId($id, $uid);
System::jsonExit($account);
}
}