aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-24 09:57:46 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-24 09:57:46 +0200
commit9ea483d1dc01fa9439e6f261d04f1b97fb1302a3 (patch)
tree34ac6408f4934a19d726cefd6949838cec57f8e6
parentb1813df61a36b4265be63e89802f652955807517 (diff)
downloadvolse-hubzilla-9ea483d1dc01fa9439e6f261d04f1b97fb1302a3.tar.gz
volse-hubzilla-9ea483d1dc01fa9439e6f261d04f1b97fb1302a3.tar.bz2
volse-hubzilla-9ea483d1dc01fa9439e6f261d04f1b97fb1302a3.zip
get channel from photo uid
-rw-r--r--Zotlabs/Photo/PhotoDriver.php2
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']))