streams/Zotlabs/Daemon/Cache_embeds.php

28 lines
402 B
PHP
Raw Normal View History

2019-01-29 23:18:35 +00:00
<?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.
2020-03-05 05:33:33 +00:00
$s = bbcode($item['body']);
$s = sslify($s);
2019-01-29 23:18:35 +00:00
}
}