aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-01-30 09:48:07 +0100
committerMario Vavti <mario@mariovavti.com>2019-01-30 09:48:07 +0100
commite64c5661da564426fa597e665451112177719aca (patch)
tree1d95547cea868a92e79d86dca076d98be8fe90e8 /Zotlabs
parent3b31dbaa169345e95580e40c809d3cf3f0b642c2 (diff)
parentb15421826d91d7344ad28a16f0be047c191d5ec4 (diff)
downloadvolse-hubzilla-e64c5661da564426fa597e665451112177719aca.tar.gz
volse-hubzilla-e64c5661da564426fa597e665451112177719aca.tar.bz2
volse-hubzilla-e64c5661da564426fa597e665451112177719aca.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Cache_embeds.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Cache_embeds.php b/Zotlabs/Daemon/Cache_embeds.php
new file mode 100644
index 000000000..08088abd6
--- /dev/null
+++ b/Zotlabs/Daemon/Cache_embeds.php
@@ -0,0 +1,27 @@
+<?php /** @file */
+
+namespace Zotlabs\Daemon;
+
+
+class Cache_embeds {
+
+ static public function run($argc,$argv) {
+
+ if(! $argc == 2)
+ return;
+
+ $c = q("select body from item where id = %d ",
+ dbesc(intval($argv[1]))
+ );
+
+ if(! $c)
+ return;
+
+ $item = $c[0];
+
+ // bbcode conversion by default processes embeds that aren't already cached.
+ // Ignore the returned html output.
+
+ bbcode($item['body']);
+ }
+}