aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-07 16:02:56 -0700
committerfriendica <info@friendica.com>2012-06-07 16:02:56 -0700
commitba2452a076c0635e94c6a0967b778df0df14eca7 (patch)
tree2fd57e8f38a29bb98c2f85502f9db214b29b34f9 /mod
parent67d8afb9d18df137fddc991443f9b796b5821210 (diff)
downloadvolse-hubzilla-ba2452a076c0635e94c6a0967b778df0df14eca7.tar.gz
volse-hubzilla-ba2452a076c0635e94c6a0967b778df0df14eca7.tar.bz2
volse-hubzilla-ba2452a076c0635e94c6a0967b778df0df14eca7.zip
png support for embedded private photos
Diffstat (limited to 'mod')
-rw-r--r--mod/msearch.php2
-rw-r--r--mod/photo.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/msearch.php b/mod/msearch.php
index 94def7d89..89de5b705 100644
--- a/mod/msearch.php
+++ b/mod/msearch.php
@@ -28,7 +28,7 @@ function msearch_post(&$a) {
$results[] = array(
'name' => $rr['name'],
'url' => $a->get_baseurl() . '/profile/' . $rr['nickname'],
- 'photo' => $a->get_baseurl() . '/photo/avatar/' . $rr['uid'] . 'jpg',
+ 'photo' => $a->get_baseurl() . '/photo/avatar/' . $rr['uid'] . '.jpg',
'tags' => str_replace(array(',',' '),array(' ',' '),$rr['pub_keywords'])
);
}
diff --git a/mod/photo.php b/mod/photo.php
index e8e74cfde..dee483d83 100644
--- a/mod/photo.php
+++ b/mod/photo.php
@@ -76,7 +76,7 @@ function photo_init(&$a) {
break;
}
- $uid = str_replace('.jpg', '', $person);
+ $uid = str_replace(array('.jpg','.png'),array('',''), $person);
$r = q("SELECT * FROM `photo` WHERE `scale` = %d AND `uid` = %d AND `profile` = 1 LIMIT 1",
intval($resolution),