diff options
author | git-marijus <mario@mariovavti.com> | 2017-09-15 16:30:14 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-09-15 16:30:14 +0200 |
commit | 663802e6992858c026a4e9b325575bc064cc687d (patch) | |
tree | 1889ae84e99fa9c7c39a504a25aca3d492a7ecc7 /include/channel.php | |
parent | 4c5722c766643af368f600abb93a44fc72d27c11 (diff) | |
parent | 67348547765876faa847fa53f92d37a6b4bc4aa5 (diff) | |
download | volse-hubzilla-663802e6992858c026a4e9b325575bc064cc687d.tar.gz volse-hubzilla-663802e6992858c026a4e9b325575bc064cc687d.tar.bz2 volse-hubzilla-663802e6992858c026a4e9b325575bc064cc687d.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev
Diffstat (limited to 'include/channel.php')
-rw-r--r-- | include/channel.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php index 213676f52..7072bb4ce 100644 --- a/include/channel.php +++ b/include/channel.php @@ -7,6 +7,7 @@ require_once('include/zot.php'); require_once('include/crypto.php'); require_once('include/menu.php'); require_once('include/perm_upgrade.php'); +require_once('include/photo/photo_driver.php'); /** * @brief Called when creating a new channel. @@ -273,6 +274,17 @@ function create_identity($arr) { return $ret; } + $a = q("select * from account where account_id = %d", + intval($arr['account_id']) + ); + + $z = [ 'account' => $a[0], 'channel' => $r[0], 'photo_url' => '' ]; + call_hooks('create_channel_photo',$z); + + if($z['photo_url']) { + import_channel_photo_from_url($z['photo_url'],$arr['account_id'],$r[0]['channel_id']); + } + if($role_permissions && array_key_exists('limits',$role_permissions)) $perm_limits = $role_permissions['limits']; else |