gnu-social/components/FreeNetwork/Controller/HostMeta.php

28 lines
663 B
PHP
Raw Normal View History

<?php
2021-12-26 09:48:16 +00:00
declare(strict_types = 1);
/**
* @author James Walker <james@status.net>
* @author Craig Andrews <candrews@integralblue.com>
* @author Mikael Nordfeldth <mmn@hethane.se>
*/
namespace Component\FreeNetwork\Controller;
use App\Core\Event;
use Component\FreeNetwork\Util\Discovery;
use Component\FreeNetwork\Util\XrdController;
class HostMeta extends XrdController
{
protected string $default_mimetype = Discovery::JRD_MIMETYPE;
public function setXRD()
{
2022-01-14 14:30:55 +00:00
if (Event::handle('StartHostMetaLinks', [&$this->xrd->links]) !== Event::stop) {
Event::handle('EndHostMetaLinks', [&$this->xrd->links]);
}
}
}