3 require_once('bbcode.php');
5 function share_init(&$a) {
7 $post_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
8 if((! $post_id) || (! local_user()))
11 $r = q("SELECT * FROM `item` WHERE `id` = %d LIMIT 1",
14 if(! count($r) || $r[0]['private'])
19 $o .= '♲ <a href="' . $r[0]['author-link'] . '">' . $r[0]['author-name'] . '</a><br />';
21 $o .= '<strong>' . $r[0]['title'] . '</strong><br />';
22 $o .= bbcode($r[0]['body'], true);