|
|
|
@ -236,12 +236,17 @@ static struct account* account_load_from_id( int id, int recurse_limit )
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Handle account migration
|
|
|
|
|
if( a->replaced_by && a->replaced_by != a->id ) {
|
|
|
|
|
int new_id = a->replaced_by;
|
|
|
|
|
account_free(a);
|
|
|
|
|
return account_load_from_id( new_id, recurse_limit - 1 );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Sanity checks
|
|
|
|
|
if( !a->note ) {
|
|
|
|
|
a->note = strdup("");
|
|
|
|
|
}
|
|
|
|
|
if( !a->banner ) {
|
|
|
|
|
a->banner = aformat( "https://%s/server/default-banner.blob", g_server->domain );
|
|
|
|
|
}
|
|
|
|
|