aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-05 19:35:04 -0700
committerfriendica <info@friendica.com>2013-06-05 19:35:04 -0700
commitf18a909eefbc491bbdef68f0fc03d14af4b32191 (patch)
treec04c56c78ff0ea9ee781b744253da862b268707a /mod
parente65449ee11a0f83bc57e8e028182672a2b4682a4 (diff)
downloadvolse-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
Diffstat (limited to 'mod')
-rw-r--r--mod/import.php2
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']);