// get last public wall message
$lastwall = q("SELECT `item`.*, `i`.`contact-id` as `reply_uid`, `i`.`author-link` AS `item-author`
FROM `item`, `item` as `i`
- WHERE `item`.`contact-id` = %d
+ WHERE `item`.`contact-id` = %d AND `item`.`uid` = %d
AND ((`item`.`author-link` IN ('%s', '%s')) OR (`item`.`owner-link` IN ('%s', '%s')))
AND `i`.`id` = `item`.`parent`
AND `item`.`type`!='activity'
ORDER BY `item`.`created` DESC
LIMIT 1",
intval($user_info['cid']),
+ intval(api_user()),
dbesc($user_info['url']),
dbesc(normalise_link($user_info['url'])),
dbesc($user_info['url']),
function poco_load($cid,$uid = 0,$zcid = 0,$url = null) {
+
+ require_once("include/html2bbcode.php");
+
$a = get_app();
if($cid) {
$location = $entry->currentLocation;
if(isset($entry->aboutMe))
- $about = $entry->aboutMe;
+ $about = html2bbcode($entry->aboutMe);
if(isset($entry->gender))
$gender = $entry->gender;