From f18a909eefbc491bbdef68f0fc03d14af4b32191 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 5 Jun 2013 19:35:04 -0700 Subject: set default channel to new import if a default channel wasn't already set --- mod/import.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod/import.php') 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']); -- cgit v1.2.3