Renamed functions

This commit is contained in:
Michael 2021-05-09 18:44:08 +00:00
parent 591619e1d3
commit a696b7f427
5 changed files with 7 additions and 7 deletions

View file

@ -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);