]> git.mxchange.org Git - friendica.git/commitdiff
Merge remote-tracking branch 'upstream/develop' into 1501-api-speedup
authorMichael Vogel <icarus@dabo.de>
Sun, 1 Feb 2015 12:33:26 +0000 (13:33 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 1 Feb 2015 12:33:26 +0000 (13:33 +0100)
include/api.php
include/socgraph.php

index 2d3c31af0c3f7a32209d702d2d8dd315d619541e..c8a313ce198e764187d505ca3d61c6f077001b3e 100644 (file)
                // 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']),
index 07bbee32ac013938f47b0e96f473b790b5607cb7..2738f8a70f3814b758a4f75f63d21ea4c696b00c 100644 (file)
@@ -20,6 +20,9 @@ require_once('include/datetime.php');
 
 
 function poco_load($cid,$uid = 0,$zcid = 0,$url = null) {
+
+       require_once("include/html2bbcode.php");
+
        $a = get_app();
 
        if($cid) {
@@ -107,7 +110,7 @@ function poco_load($cid,$uid = 0,$zcid = 0,$url = null) {
                        $location = $entry->currentLocation;
 
                if(isset($entry->aboutMe))
-                       $about = $entry->aboutMe;
+                       $about = html2bbcode($entry->aboutMe);
 
                if(isset($entry->gender))
                        $gender = $entry->gender;