2018-08-23 06:04:37 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Zotlabs\Module;
|
|
|
|
|
|
|
|
|
|
|
|
class Apschema extends \Zotlabs\Web\Controller {
|
|
|
|
|
|
|
|
function init() {
|
|
|
|
|
|
|
|
$base = z_root();
|
|
|
|
|
|
|
|
$arr = [
|
|
|
|
'@context' => [
|
2019-04-10 07:20:41 +00:00
|
|
|
'zot' => z_root() . '/apschema#',
|
|
|
|
'id' => '@id',
|
|
|
|
'type' => '@type',
|
|
|
|
'ostatus' => 'http://ostatus.org#',
|
|
|
|
'conversation' => 'ostatus:conversation',
|
|
|
|
'sensitive' => 'as:sensitive',
|
|
|
|
'inheritPrivacy' => 'as:inheritPrivacy',
|
|
|
|
'commentPolicy' => 'zot:commentPolicy',
|
|
|
|
'topicalCollection' => 'zot:topicalCollection',
|
2019-04-11 06:45:24 +00:00
|
|
|
'eventRepeat' => 'zot:eventRepeat',
|
2019-05-03 02:39:08 +00:00
|
|
|
'emojiReaction' => 'zot:emojiReaction',
|
2019-05-28 23:42:32 +00:00
|
|
|
'expires' => 'zot:expires',
|
2019-06-19 02:21:31 +00:00
|
|
|
'directMessage' => 'zot:directMessage',
|
2018-08-23 06:04:37 +00:00
|
|
|
]
|
|
|
|
];
|
|
|
|
|
|
|
|
header('Content-Type: application/ld+json');
|
|
|
|
echo json_encode($arr,JSON_UNESCAPED_SLASHES);
|
|
|
|
killme();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|