mirror of
https://github.com/friendica/friendica
synced 2025-05-08 14:24:13 +02:00
Unified request for uid
This commit is contained in:
parent
85217941e3
commit
11c8dfe73a
6 changed files with 11 additions and 21 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue