aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Embed.php
diff options
context:
space:
mode:
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();
+
+ }
+
+}