aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-31 14:45:42 -0800
committerzotlabs <mike@macgirvin.com>2017-12-31 14:45:42 -0800
commitce38350e003cc7c8925f2fe3054bc7fb277e29a0 (patch)
treedcbb59a4692f70b11356a70c5b454cc2d5800ae1 /include/zot.php
parent45923f408fcbb10f469c6cd654c696d1b7da70a1 (diff)
downloadvolse-hubzilla-ce38350e003cc7c8925f2fe3054bc7fb277e29a0.tar.gz
volse-hubzilla-ce38350e003cc7c8925f2fe3054bc7fb277e29a0.tar.bz2
volse-hubzilla-ce38350e003cc7c8925f2fe3054bc7fb277e29a0.zip
this should finish up hubzilla issue #113
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index 6c0d92a42..8e3d03ad8 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3745,6 +3745,15 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
* @TODO
* We also need to import local photos if a custom photo is selected
*/
+
+ if((strpos($profile['thumb'],'/photo/profile/l/') !== false) || intval($profile['is_default'])) {
+ $profile['photo'] = z_root() . '/photo/profile/l/' . $channel['channel_id'];
+ $profile['thumb'] = z_root() . '/photo/profile/m/' . $channel['channel_id'];
+ }
+ else {
+ $profile['photo'] = z_root() . '/photo/' . basename($profile['photo']);
+ $profile['thumb'] = z_root() . '/photo/' . basename($profile['thumb']);
+ }
}
if(count($clean)) {