-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle username changes #50
Comments
We could add it, but the mentions plugin is just a transparent layer. It does not record the pids containing mentions, so this would add significant complexity to the plugin if we wanted to handle username changes... |
How about we store user IDs in the raw post content for mentions? IE post content has @123 stored and when its rendered it gets replaced by the username of uid 123. Obviously its a breaking change. |
That might work, although we'd want to use a syntax that wouldn't normally be a regular username 😄 @~12345 |
Probably want to avoid syntax that markdown understands as well, I can already sense the potential explosions :D |
For this to work we need to change what we insert into the composer |
Bumping. The crux of the problem here is I have a strong stance against parsing on the way in. Right now, for UX purposes, the end user sees something like The solution would probably have to be some sort of one-time exception to this informal rule... The syntax would be something like For history purposes, we wouldn't want to replace the mention text in old posts (unless it was just the The other complicating factor is that this plugin is super old and has a lot of built-up logic over the years that needs unwinding 😑 |
The syntax would be something like @123|mention, where if the user puts @mention, then it is changed to @123|mention prior to saving. The canonical syntax would be @123, which we'd replace the uid with the username While this solution does solve the problem, But can be resolved that at the end of the mention I did not understand why history has value, when the mention does not direct you anywhere ... |
Huh? Mentions link you to their user page. |
I wonder if NodeBB have a hook in case of username modification.
In that case, it would be usefull to change all post mentions to the new username.
The text was updated successfully, but these errors were encountered: