diff options
author | Mario <mario@mariovavti.com> | 2019-05-03 08:36:58 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-05-03 08:36:58 +0200 |
commit | 6da4dfe605cc5dcffaf14f53549a61c0240e31bf (patch) | |
tree | 3107de4b8f3ac28e65c2896fecb7e4245bf8da0a /Zotlabs/Module | |
parent | b35961c53cde75b133411882e35c76ef4ffd35f3 (diff) | |
parent | 7b4cb31a10a3ad4b9c0c671014074362fa19cb6c (diff) | |
download | volse-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')
-rw-r--r-- | Zotlabs/Module/Apschema.php | 56 | ||||
-rw-r--r-- | Zotlabs/Module/React.php | 8 |
2 files changed, 64 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 diff --git a/Zotlabs/Module/React.php b/Zotlabs/Module/React.php index 3920301f5..f80b04a3f 100644 --- a/Zotlabs/Module/React.php +++ b/Zotlabs/Module/React.php @@ -59,6 +59,14 @@ class React extends \Zotlabs\Web\Controller { $n['body'] = "\n\n[zmg=32x32]" . z_root() . '/images/emoji/' . $emoji . '.png[/zmg]' . "\n\n"; $n['author_xchan'] = $channel['channel_hash']; + $n['tgt_type'] = 'Image'; + $n['target'] = [ + 'type' => 'Image', + 'name' => $emoji, + 'url' => z_root() . '/images/emoji/' . $emoji . '.png' + ]; + + $x = item_store($n); retain_item($postid); |