diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-05-24 07:57:46 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-05-24 09:59:17 +0200 |
commit | dd374eaebfd6452f3a4a184efdb3a531aec88130 (patch) | |
tree | 515b8a48c24dc1b6431ad5b30482ecdf997234f1 | |
parent | 8715f74d29298aebbe32add6cca9820660fd1128 (diff) | |
download | volse-hubzilla-dd374eaebfd6452f3a4a184efdb3a531aec88130.tar.gz volse-hubzilla-dd374eaebfd6452f3a4a184efdb3a531aec88130.tar.bz2 volse-hubzilla-dd374eaebfd6452f3a4a184efdb3a531aec88130.zip |
get channel from photo uid
(cherry picked from commit 9ea483d1dc01fa9439e6f261d04f1b97fb1302a3)
-rw-r--r-- | Zotlabs/Photo/PhotoDriver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Photo/PhotoDriver.php b/Zotlabs/Photo/PhotoDriver.php index bacf926ff..146ef0ae4 100644 --- a/Zotlabs/Photo/PhotoDriver.php +++ b/Zotlabs/Photo/PhotoDriver.php @@ -509,7 +509,7 @@ abstract class PhotoDriver { $arr['imgscale'] = $scale; if(boolval(get_config('system','filesystem_storage_thumbnails', 0)) && $scale > 0) { - $channel = \App::get_channel(); + $channel = channelx_by_n($arr['uid']); $arr['os_storage'] = 1; $arr['os_syspath'] = 'store/' . $channel['channel_address'] . '/' . $arr['os_path'] . '-' . $scale; if(! $this->saveImage($arr['os_syspath'])) |