aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Embed.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-02-07 09:34:22 +0100
committerMario Vavti <mario@mariovavti.com>2019-02-07 09:34:22 +0100
commitd70f0092f7369a87117898716893c16f8a09d4fe (patch)
treeadfa9afd69580d55af6daebcc388aa146a513f62 /Zotlabs/Module/Embed.php
parent860dead9851116617a275fbe08e861ce5d8642f9 (diff)
parent7f6e4a9744b7b5293e1f0d25db8bb3ad17cd256d (diff)
downloadvolse-hubzilla-d70f0092f7369a87117898716893c16f8a09d4fe.tar.gz
volse-hubzilla-d70f0092f7369a87117898716893c16f8a09d4fe.tar.bz2
volse-hubzilla-d70f0092f7369a87117898716893c16f8a09d4fe.zip
Merge remote-tracking branch 'mike/master' into dev
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();
+
+ }
+
+}