Fix SEGV faults when account_id is not set, but account_url is

master
teknomunk 5 months ago
parent eec6d2b80a
commit 84e48e3392

@ -250,6 +250,9 @@ static struct account* account_load_from_id( int id, int recurse_limit )
if( !a->banner ) {
a->banner = aformat( "https://%s/server/default-banner.blob", g_server->domain );
}
if( !a->account_id ) {
a->account_id = strdup(a->account_url);
}
if( a->id == owner_account_id ) {
a->local = true;

Loading…
Cancel
Save