set default channel to new import if a default channel wasn't already set

This commit is contained in:
friendica 2013-06-05 19:35:04 -07:00
parent e65449ee11
commit f18a909eef

View File

@ -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']);