aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Apschema.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-05-03 08:36:58 +0200
committerMario <mario@mariovavti.com>2019-05-03 08:36:58 +0200
commit6da4dfe605cc5dcffaf14f53549a61c0240e31bf (patch)
tree3107de4b8f3ac28e65c2896fecb7e4245bf8da0a /Zotlabs/Module/Apschema.php
parentb35961c53cde75b133411882e35c76ef4ffd35f3 (diff)
parent7b4cb31a10a3ad4b9c0c671014074362fa19cb6c (diff)
downloadvolse-hubzilla-6da4dfe605cc5dcffaf14f53549a61c0240e31bf.tar.gz
volse-hubzilla-6da4dfe605cc5dcffaf14f53549a61c0240e31bf.tar.bz2
volse-hubzilla-6da4dfe605cc5dcffaf14f53549a61c0240e31bf.zip
Merge branch 'unfriend_delete_posts_bug' into 'dev'
Unfriend delete posts bug See merge request hubzilla/core!1624
Diffstat (limited to 'Zotlabs/Module/Apschema.php')
-rw-r--r--Zotlabs/Module/Apschema.php56
1 files changed, 56 insertions, 0 deletions
diff --git a/Zotlabs/Module/Apschema.php b/Zotlabs/Module/Apschema.php
new file mode 100644
index 000000000..5b249bfe8
--- /dev/null
+++ b/Zotlabs/Module/Apschema.php
@@ -0,0 +1,56 @@
+<?php
+
+namespace Zotlabs\Module;
+
+
+class Apschema extends \Zotlabs\Web\Controller {
+
+ function init() {
+
+ $base = z_root();
+
+ $arr = [
+ '@context' => [
+ 'zot' => z_root() . '/apschema#',
+ 'id' => '@id',
+ 'type' => '@type',
+ 'commentPolicy' => 'as:commentPolicy',
+ 'meData' => 'zot:meData',
+ 'meDataType' => 'zot:meDataType',
+ 'meEncoding' => 'zot:meEncoding',
+ 'meAlgorithm' => 'zot:meAlgorithm',
+ 'meCreator' => 'zot:meCreator',
+ 'meSignatureValue' => 'zot:meSignatureValue',
+ 'locationAddress' => 'zot:locationAddress',
+ 'locationPrimary' => 'zot:locationPrimary',
+ 'locationDeleted' => 'zot:locationDeleted',
+ 'nomadicLocation' => 'zot:nomadicLocation',
+ 'nomadicHubs' => 'zot:nomadicHubs',
+ 'emojiReaction' => 'zot:emojiReaction',
+
+ 'magicEnv' => [
+ '@id' => 'zot:magicEnv',
+ '@type' => '@id'
+ ],
+
+ 'nomadicLocations' => [
+ '@id' => 'zot:nomadicLocations',
+ '@type' => '@id'
+ ],
+
+ 'ostatus' => 'http://ostatus.org#',
+ 'conversation' => 'ostatus:conversation'
+
+ ]
+ ];
+
+ header('Content-Type: application/ld+json');
+ echo json_encode($arr,JSON_UNESCAPED_SLASHES);
+ killme();
+
+ }
+
+
+
+
+} \ No newline at end of file