get_channel(); $i = q("select * from item where id = %d and uid = %d limit 1", intval($item_id), intval(local_channel()) ); if(! $i) return; $i = fetch_post_tags($i); $item = $i[0]; $terms = get_terms_oftype($item['term'],TERM_BOOKMARK); if($terms && (! $item['item_restrict'])) { require_once('include/bookmarks.php'); $s = q("select * from xchan where xchan_hash = '%s' limit 1", dbesc($item['author_xchan']) ); if(! $s) { logger('mod_bookmarks: author lookup failed.'); killme(); } foreach($terms as $t) { bookmark_add($u,$s[0],$t,$item['item_private']); info( t('Bookmark added') . EOL); } } killme(); } function bookmarks_content(&$a) { if(! local_channel()) { notice( t('Permission denied.') . EOL); return; } require_once('include/menu.php'); require_once('include/conversation.php'); $channel = $a->get_channel(); $o = profile_tabs($a,true,$channel['channel_address']); $o .= '