diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-31 14:45:42 -0800 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-01-03 12:16:05 +0100 |
commit | 301e5383c7d524ca7cbcfd8e65b02f7b3591fc75 (patch) | |
tree | 0867c6a5e37c40f1ed222335f7ac43e8839a8be8 /include/zot.php | |
parent | 66d0b4d0d57d98540e36e3a9f6fa5ccd84ea5ff9 (diff) | |
download | volse-hubzilla-301e5383c7d524ca7cbcfd8e65b02f7b3591fc75.tar.gz volse-hubzilla-301e5383c7d524ca7cbcfd8e65b02f7b3591fc75.tar.bz2 volse-hubzilla-301e5383c7d524ca7cbcfd8e65b02f7b3591fc75.zip |
this should finish up hubzilla issue #113
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 9 |
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)) { |