]> git.mxchange.org Git - friendica.git/commitdiff
Items that were stored via "remote-self" hadn't contained a valid avatar picture.
authorMichael Vogel <icarus@dabo.de>
Fri, 2 Jan 2015 11:45:09 +0000 (12:45 +0100)
committerMichael Vogel <icarus@dabo.de>
Fri, 2 Jan 2015 11:45:09 +0000 (12:45 +0100)
include/items.php

index ed91fc7e4ed781393ab3f73eeae0b74a5de8867b..d6da0ed5a5c0f5b02d4c5964730cdab6d089588c 100644 (file)
@@ -2668,14 +2668,14 @@ function item_is_remote_self($contact, &$datarray) {
        $datarray2 = $datarray;
        logger('remote-self start - Contact '.$contact['url'].' - '.$contact['remote_self'].' Item '.print_r($datarray, true), LOGGER_DEBUG);
        if ($contact['remote_self'] == 2) {
-               $r = q("SELECT `id`,`url`,`name`,`photo`,`network` FROM `contact` WHERE `uid` = %d AND `self`",
+               $r = q("SELECT `id`,`url`,`name`,`thumb` FROM `contact` WHERE `uid` = %d AND `self`",
                        intval($contact['uid']));
                if (count($r)) {
                        $datarray['contact-id'] = $r[0]["id"];
 
                        $datarray['owner-name'] = $r[0]["name"];
                        $datarray['owner-link'] = $r[0]["url"];
-                       $datarray['owner-avatar'] = $r[0]["avatar"];
+                       $datarray['owner-avatar'] = $r[0]["thumb"];
 
                        $datarray['author-name']   = $datarray['owner-name'];
                        $datarray['author-link']   = $datarray['owner-link'];