mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
Apply suggestions
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
9c6f6bcb95
commit
0209892631
2 changed files with 7 additions and 1 deletions
|
@ -45,6 +45,7 @@ class Accounts extends BaseApi
|
|||
if (empty($request['account_ids']) || empty($this->parameters['id'])) {
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
}
|
||||
|
||||
return Group::removeMembers($this->parameters['id'], $request['account_ids']);
|
||||
}
|
||||
|
||||
|
@ -59,6 +60,7 @@ class Accounts extends BaseApi
|
|||
if (empty($request['account_ids']) || empty($this->parameters['id'])) {
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
}
|
||||
|
||||
return Group::addMembers($this->parameters['id'], $request['account_ids']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue