phpBB3 importer: username_as_name setting doesn't apply to anonymous users

I would have expected username_as_name setting to apply to all users imported from phpBB - the importer modifies the usernames both for regular and anonymous users. However, this setting currently only applies to regular users, anonymous users always get an empty name.

Besides, wouldn’t it make sense to have “only if modified” as an option here? It would probably be best to set the original username as Discourse name only if original username and Discourse username aren’t the same.

1 Like

I wouldn’t call this a bug. :wink:
But yes, the “only if modified” sounds like a good idea.

1 Like

This is now fixed:
https://github.com/discourse/discourse/pull/4350

And the “only if modified” logic for names is implemented too:
https://github.com/discourse/discourse/pull/4349

4 Likes