aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Embed.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-02-06 17:26:09 -0800
committerzotlabs <mike@macgirvin.com>2019-02-06 17:26:09 -0800
commit29c1797493f44d2677cab9b35ce6d879f020a15e (patch)
treed3b4531fc527eecea9acf5e6ebc4ae35cbd327da /Zotlabs/Module/Embed.php
parent518ceb53a8de5b4ee375947721d56f7a43621a61 (diff)
downloadvolse-hubzilla-29c1797493f44d2677cab9b35ce6d879f020a15e.tar.gz
volse-hubzilla-29c1797493f44d2677cab9b35ce6d879f020a15e.tar.bz2
volse-hubzilla-29c1797493f44d2677cab9b35ce6d879f020a15e.zip
work on repeat/share for Hubzilla
Diffstat (limited to 'Zotlabs/Module/Embed.php')
-rw-r--r--Zotlabs/Module/Embed.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/Zotlabs/Module/Embed.php b/Zotlabs/Module/Embed.php
new file mode 100644
index 000000000..77b9254dd
--- /dev/null
+++ b/Zotlabs/Module/Embed.php
@@ -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();
+
+ }
+
+}