mirror of
https://github.com/friendica/friendica
synced 2025-04-25 05:10:11 +00:00
Renamed functions
This commit is contained in:
parent
591619e1d3
commit
a696b7f427
5 changed files with 7 additions and 7 deletions
|
@ -60,7 +60,7 @@ class Lists extends BaseApi
|
|||
|
||||
$groups = DBA::select('group', ['id'], ['uid' => $uid, 'deleted' => false]);
|
||||
while ($group = DBA::fetch($groups)) {
|
||||
$lists[] = DI::mstdnList()->create($group['id']);
|
||||
$lists[] = DI::mstdnList()->createFromGroupId($group['id']);
|
||||
}
|
||||
DBA::close($groups);
|
||||
} else {
|
||||
|
@ -68,7 +68,7 @@ class Lists extends BaseApi
|
|||
if (!DBA::exists('group',['uid' => $uid, 'deleted' => false])) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
$lists = DI::mstdnList()->create($id);
|
||||
$lists = DI::mstdnList()->createFromGroupId($id);
|
||||
}
|
||||
|
||||
System::jsonExit($lists);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue