aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-09-15 16:30:14 +0200
committergit-marijus <mario@mariovavti.com>2017-09-15 16:30:14 +0200
commit663802e6992858c026a4e9b325575bc064cc687d (patch)
tree1889ae84e99fa9c7c39a504a25aca3d492a7ecc7 /include/channel.php
parent4c5722c766643af368f600abb93a44fc72d27c11 (diff)
parent67348547765876faa847fa53f92d37a6b4bc4aa5 (diff)
downloadvolse-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.php12
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