set default channel to new import if a default channel wasn't already set
This commit is contained in:
parent
e65449ee11
commit
f18a909eef
@ -114,6 +114,8 @@ function import_post(&$a) {
|
|||||||
// reset
|
// reset
|
||||||
$channel = $r[0];
|
$channel = $r[0];
|
||||||
|
|
||||||
|
set_default_login_identity($a->get_account(),$channel['channel_id'],false);
|
||||||
|
|
||||||
if($data['photo']) {
|
if($data['photo']) {
|
||||||
require_once('include/photo/photo_driver.php');
|
require_once('include/photo/photo_driver.php');
|
||||||
import_channel_photo(base64url_decode($data['photo']['data']),$data['photo']['type'],get_account_id,$channel['channel_id']);
|
import_channel_photo(base64url_decode($data['photo']['data']),$data['photo']['type'],get_account_id,$channel['channel_id']);
|
||||||
|
Reference in New Issue
Block a user