work on repeat/share for Hubzilla

This commit is contained in:
zotlabs
2019-02-06 17:26:09 -08:00
parent 518ceb53a8
commit 29c1797493
7 changed files with 130 additions and 60 deletions

22
Zotlabs/Module/Embed.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace Zotlabs\Module;
require_once('include/security.php');
require_once('include/bbcode.php');
class Embed extends \Zotlabs\Web\Controller {
function init() {
$post_id = ((argc() > 1) ? intval(argv(1)) : 0);
if(! $post_id)
killme();
echo '[share=' . $post_id . '][/share]';
killme();
}
}