diff options
author | friendica <info@friendica.com> | 2012-10-23 21:24:23 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-23 21:24:23 -0700 |
commit | 968b9ce1af797ad422e26eb35bd58fc4ebd8c4b3 (patch) | |
tree | d95c068957657b11ba08ea67052454b0cdf8b593 /include | |
parent | 8e8482355baa55a5c9e3cb3553eecf5a733e2897 (diff) | |
download | volse-hubzilla-968b9ce1af797ad422e26eb35bd58fc4ebd8c4b3.tar.gz volse-hubzilla-968b9ce1af797ad422e26eb35bd58fc4ebd8c4b3.tar.bz2 volse-hubzilla-968b9ce1af797ad422e26eb35bd58fc4ebd8c4b3.zip |
more heavy lifting
Diffstat (limited to 'include')
-rw-r--r-- | include/ItemObject.php | 2 | ||||
-rw-r--r-- | include/activities.php | 2 | ||||
-rw-r--r-- | include/conversation.php | 4 | ||||
-rw-r--r-- | include/identity.php | 6 | ||||
-rw-r--r-- | include/nav.php | 7 |
5 files changed, 10 insertions, 11 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php index 2d62224fc..8571c6d84 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -141,7 +141,7 @@ class Item extends BaseObject { else $profile_avatar = (((strlen($item['author-avatar'])) && $diff_author) ? $item['author-avatar'] : $a->get_cached_avatar_image($this->get_data_value('thumb'))); - $profile_avatar = $item['author']['xchan_photo']; + $profile_avatar = $item['author']['xchan_photo_m']; $locate = array('location' => $item['location'], 'coord' => $item['coord'], 'html' => ''); call_hooks('render_location',$locate); diff --git a/include/activities.php b/include/activities.php index 20b198976..d9a39e2d8 100644 --- a/include/activities.php +++ b/include/activities.php @@ -56,7 +56,7 @@ function profile_activity($changed, $value) { $links = array(); $links[] = array('rel' => 'alternate', 'type' => 'text/html', 'href' => $self[0]['profile'] . '?tab=profile'); - $links[] = array('rel' => 'photo', 'type' => /*FIXME*/ 'image/jpeg', 'href' => $self[0]['xchan_photo']); + $links[] = array('rel' => 'photo', 'type' => $self[0]['xchan_photo_mimetype'], 'href' => $self[0]['xchan_photo_l']); $arr['object'] = json_encode(array( 'type' => ACTIVITY_OBJ_PROFILE, diff --git a/include/conversation.php b/include/conversation.php index 7f1973d0d..98e8c3694 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -441,7 +441,7 @@ function prepare_threads_body($a, $items, $cmnt_tpl, $page_writeable, $mode, $pr else $profile_avatar = (((strlen($item['author-avatar'])) && $diff_author) ? $item['author-avatar'] : $a->get_cached_avatar_image($thumb)); - $profile_avatar = $item['author']['xchan_photo']; + $profile_avatar = $item['author']['xchan_photo_m']; $profile_link = zrl($item['author']['xchan_profile']); $profile_name = $item['author']['xchan_name']; @@ -1204,7 +1204,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') { - $profile_avatar = $item['author']['xchan_photo']; + $profile_avatar = $item['author']['xchan_photo_m']; $profile_link = zrl($item['author']['xchan_profile']); $profile_name = $item['author']['xchan_name']; diff --git a/include/identity.php b/include/identity.php index ac033edf4..559d4c424 100644 --- a/include/identity.php +++ b/include/identity.php @@ -110,12 +110,14 @@ function create_identity($arr) { $newuid = $ret['channel']['channel_id']; - $r = q("insert into xchan ( xchan_hash, xchan_guid, xchan_guid_sig, xchan_pubkey, xchan_photo, xchan_addr, xchan_profile, xchan_name, xchan_network, xchan_photo_date, xchan_name_date ) values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", + $r = q("insert into xchan ( xchan_hash, xchan_guid, xchan_guid_sig, xchan_pubkey, xchan_photo_l, xchan_photo_m, xchan_photo_s, xchan_addr, xchan_profile, xchan_name, xchan_network, xchan_photo_date, xchan_name_date ) values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", dbesc($hash), dbesc($ret['channel']['channel_guid']), dbesc($sig), dbesc($key['pubkey']), - dbesc($a->get_baseurl() . "/photo/profile/{$newuid}"), + dbesc($a->get_baseurl() . "/photo/profile/l/{$newuid}"), + dbesc($a->get_baseurl() . "/photo/profile/m/{$newuid}"), + dbesc($a->get_baseurl() . "/photo/profile/s/{$newuid}"), dbesc($ret['channel']['channel_address'] . '@' . $a->get_hostname()), dbesc(z_root() . '/profile/' . $ret['channel']['channel_address']), dbesc($ret['channel']['channel_name']), diff --git a/include/nav.php b/include/nav.php index 5c6c7cd14..c3ef7f52d 100644 --- a/include/nav.php +++ b/include/nav.php @@ -56,11 +56,8 @@ function nav(&$a) { $nav['usermenu'][] = Array('photos/' . $channel['channel_address'], t('Photos'), "", t('Your photos')); $nav['usermenu'][] = Array('events/', t('Events'), "", t('Your events')); - // user info - $r = q("SELECT micro FROM contact WHERE uid=%d AND self=1", intval($channel['channel_id'])); - - $userinfo = array( - 'icon' => $xchan[0]['xchan_photo'], + $userinfo = array( + 'icon' => $xchan[0]['xchan_photo_s'], 'name' => $channel['channel_name'], ); |