comments: Duplicate logic and CGI hook from recentchanges to link user pages correctly