I’ve just tried to share a link, and the shareable link Discource gave me was https://community.openstreetmap.org/t/official-statement-by-open-street-map-moderator/1054/4?u=someoneelse. In the context that I wanted to use it, the fact that that link included my userid wasn’t a problem, but I’d imagine that in most contexts it absolutely would.
Can the user be removed from share links by default?
It seems this is being discussed upstream:
It seems that a setting to switch this off will be available in the next Discourse version (2.9)
This is already implemented in the beta version
Once 2.9 moves to stable we will be able to remove it.