Links go to "/u/userid-None/" which 404s of course. They used to go to "/u/*anonymous/" but that 404s too.
We shouldn't provide links if the user is anonymous. Comments is a common place for this to occur, but also need to look out for ticket creators/assigned-to and wiki contributors, probably many more.
Closed #487.
je/42cc_4723Since this little pattern is repeated so often (render username, with href, but only if not anonymous), it would be great to see it rolled up into a macro. Unfortunately
user_link()is already taken, but one idea is to rename that toemail_link()(doesn't look like it's used in very many places), and create auser_link(user, avatar=False, size=16)macro. Ifavatar=True, calllib.gravatar_or_name(), otherwise just usedisplay_name.Closed #500. Rebased and force-pushed
je/42cc_4723