mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:50:11 +00:00
Renamed functions
This commit is contained in:
parent
591619e1d3
commit
a696b7f427
5 changed files with 7 additions and 7 deletions
|
@ -26,7 +26,7 @@ use Friendica\Database\DBA;
|
|||
|
||||
class ListEntity extends BaseFactory
|
||||
{
|
||||
public function create(int $id)
|
||||
public function createFromGroupId(int $id)
|
||||
{
|
||||
$group = DBA::selectFirst('group', ['name'], ['id' => $id, 'deleted' => false]);
|
||||
return new \Friendica\Object\Api\Mastodon\ListEntity($id, $group['name'] ?? '', 'list');
|
||||
|
|
|
@ -29,7 +29,7 @@ use Friendica\Model\Notification as ModelNotification;
|
|||
|
||||
class Notification extends BaseFactory
|
||||
{
|
||||
public function create(int $id)
|
||||
public function createFromNotifyId(int $id)
|
||||
{
|
||||
$notification = DBA::selectFirst('notify', [], ['id' => $id]);
|
||||
if (!DBA::isResult($notification)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue