diff options
author | zotlabs <mike@macgirvin.com> | 2017-09-16 01:06:44 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-09-16 01:06:44 -0700 |
commit | 991db806466d114b4ec179af9930e859bb21843b (patch) | |
tree | f3d8a5f09ba9c5b36c9bc8e0176b3d11cba732cf /include/channel.php | |
parent | b1876ac14fc4f9b7e39989ef7e69c8135a25c13f (diff) | |
parent | cb3fb0049f64a92668bc94746dc55cc905683699 (diff) | |
download | volse-hubzilla-991db806466d114b4ec179af9930e859bb21843b.tar.gz volse-hubzilla-991db806466d114b4ec179af9930e859bb21843b.tar.bz2 volse-hubzilla-991db806466d114b4ec179af9930e859bb21843b.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
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 |