aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-02 14:48:33 -0700
committerfriendica <info@friendica.com>2012-11-02 14:48:33 -0700
commit78884195bcbf57a9ebf92daf112d9332dbf2707e (patch)
treeed4eb03ee2793e9e2963ec91d358f91d6db41c5f /mod/photos.php
parent4fb898a0a336ac0843054b8c22dd26d695d718f7 (diff)
downloadvolse-hubzilla-78884195bcbf57a9ebf92daf112d9332dbf2707e.tar.gz
volse-hubzilla-78884195bcbf57a9ebf92daf112d9332dbf2707e.tar.bz2
volse-hubzilla-78884195bcbf57a9ebf92daf112d9332dbf2707e.zip
fixme note about discovered permission encryption
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/mod/photos.php b/mod/photos.php
index c90793d8c..ee9691e34 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -20,11 +20,17 @@ function photos_init(&$a) {
dbesc($nick)
);
- if(! ($r && count($r)))
+ if(! $r)
return;
$a->data['channel'] = $r[0];
+ $o .= '<div class="vcard">';
+ $o .= '<div class="fn">' . $a->data['channel']['channel_name'] . '</div>';
+ $o .= '<div id="profile-photo-wrapper"><img class="photo" style="width: 175px; height: 175px;" src="' . $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/l/' . $a->data['channel']['channel_id']) . '" alt="' . $a->data['channel']['channel_name'] . '" /></div>';
+ $o .= '</div>';
+
+
$sql_extra = permissions_sql($a->data['channel']['channel_id']);
$albums = q("SELECT distinct(`album`) AS `album` FROM `photo` WHERE `uid` = %d $sql_extra order by created desc",
@@ -34,11 +40,6 @@ function photos_init(&$a) {
if(count($albums)) {
$a->data['albums'] = $albums;
// FIXME
- $o .= '<div class="vcard">';
- $o .= '<div class="fn">' . $a->data['channel']['channel_name'] . '</div>';
- $o .= '<div id="profile-photo-wrapper"><img class="photo" style="width: 175px; height: 175px;" src="' . $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/l/' . $a->data['channel']['channel_id']) . '" alt="' . $a->data['channel']['channel_name'] . '" /></div>';
- $o .= '</div>';
-
$albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true);
if($albums_visible) {