diff options
author | zotlabs <mike@macgirvin.com> | 2020-05-05 19:36:57 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2020-05-05 19:39:09 -0700 |
commit | 7a0d9a449492ff3b5ef97b997310ed26ec1f53e4 (patch) | |
tree | ffeea3d1898760f313df4bd5d80e9558b1b98e0c /Zotlabs/Storage/BasicAuth.php | |
parent | 6a0ac591d161df1b3a1d6182915ed01cfee95b0a (diff) | |
download | volse-hubzilla-7a0d9a449492ff3b5ef97b997310ed26ec1f53e4.tar.gz volse-hubzilla-7a0d9a449492ff3b5ef97b997310ed26ec1f53e4.tar.bz2 volse-hubzilla-7a0d9a449492ff3b5ef97b997310ed26ec1f53e4.zip |
issue generating photo thumbnails when uploaded via davfs
Diffstat (limited to 'Zotlabs/Storage/BasicAuth.php')
-rw-r--r-- | Zotlabs/Storage/BasicAuth.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zotlabs/Storage/BasicAuth.php b/Zotlabs/Storage/BasicAuth.php index a5c01fbb7..3a48f5004 100644 --- a/Zotlabs/Storage/BasicAuth.php +++ b/Zotlabs/Storage/BasicAuth.php @@ -2,6 +2,7 @@ namespace Zotlabs\Storage; +use App; use Sabre\DAV; use Sabre\HTTP\RequestInterface; use Sabre\HTTP\ResponseInterface; @@ -128,6 +129,16 @@ class BasicAuth extends DAV\Auth\Backend\AbstractBasic { $this->channel_name = $r['channel_address']; $this->channel_id = $r['channel_id']; $this->channel_hash = $this->observer = $r['channel_hash']; + + if ($this->observer) { + $r = q("select * from xchan where xchan_hash = '%s' limit 1", + dbesc($this->observer) + ); + if ($r) { + App::set_observer(array_shift($r)); + } + } + $_SESSION['uid'] = $r['channel_id']; $_SESSION['account_id'] = $r['channel_account_id']; $_SESSION['authenticated'] = true; |