diff options
author | friendica <info@friendica.com> | 2013-06-05 19:35:04 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-05 19:35:04 -0700 |
commit | f18a909eefbc491bbdef68f0fc03d14af4b32191 (patch) | |
tree | c04c56c78ff0ea9ee781b744253da862b268707a | |
parent | e65449ee11a0f83bc57e8e028182672a2b4682a4 (diff) | |
download | volse-hubzilla-f18a909eefbc491bbdef68f0fc03d14af4b32191.tar.gz volse-hubzilla-f18a909eefbc491bbdef68f0fc03d14af4b32191.tar.bz2 volse-hubzilla-f18a909eefbc491bbdef68f0fc03d14af4b32191.zip |
set default channel to new import if a default channel wasn't already set
-rw-r--r-- | mod/import.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/import.php b/mod/import.php index 0c91cf118..d1b3216d0 100644 --- a/mod/import.php +++ b/mod/import.php @@ -114,6 +114,8 @@ function import_post(&$a) { // reset $channel = $r[0]; + set_default_login_identity($a->get_account(),$channel['channel_id'],false); + if($data['photo']) { require_once('include/photo/photo_driver.php'); import_channel_photo(base64url_decode($data['photo']['data']),$data['photo']['type'],get_account_id,$channel['channel_id']); |