$esUser = Foundry::user($this->joomlaId);
$esUser->alias='';
$esUser->save();
Correct. This will only fix future registrations. I'm not sure how that alias field is supposed to be set normally. I don't see any option in the admin area or the user profile area for a user to update that, so I'm assuming it should always be blank. If that's the case, I'd recommend running a SQL query, like:Also let me know is there any way to change the aliases set for the old user, as I assume whatever code changes you suggest now, will apply to the new registrations only.
UPDATE jos_social_users SET alias = ""
UPDATE jos_social_users SET alias = "" WHERE user_id = 123
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.