mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
Add constructors to a couple of Mastodon API value objects
This commit is contained in:
parent
c86cc83524
commit
e0ea51818e
3 changed files with 39 additions and 43 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Module\Api\Mastodon;
|
||||
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
use Friendica\Module\BaseApi;
|
||||
use Friendica\Object\Api\Mastodon\Instance as InstanceEntity;
|
||||
|
||||
|
@ -35,6 +36,6 @@ class Instance extends BaseApi
|
|||
*/
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
System::jsonExit(InstanceEntity::get());
|
||||
System::jsonExit(new InstanceEntity(DI::config(), $this->baseUrl, DI::dba()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue