Having the display_nickname column would be great, My nicknames are First.Last (from Active Directory) and this would take a lot of my custom patches out (which is a good thing!) Also we should finally get NICKNAME_FMT constant everywhere nickname validation is done :)
Craig: Catch me on IRC if you need help or testing :) +1 -Eric Helgeson 2009/8/4 Evan Prodromou <[email protected]> > Craig Andrews wrote: > > I would like to resolve http://laconi.ca/trac/ticket/1763 for our very > outspoken friend BUGabundo. > > > Don't. Sorry, BUGabundo, but we don't design the software specifically for > you. > > The issue is that laconica makes all nicknames lowercase. I created a > patch that allowed mixed case nicknames, but nicknames that differ in case > only are still considered equals. > > > You don't seem to check that. > > I can't think of any reason why laconica wouldn't have originally allowed > mixed case nicknames for display purposes... so I'm hesitant to apply this > patch without some feedback to make sure it's safe. > > > Don't apply it. I don't want to half-solve this problem. > > Here is the correct way to do nicknames: > > - 1-64 alphanum chars in any UTF-8 script + ".", "_", "-" (see Brenda's > great tag regexp for a good example) > - canonicalize nicknames by lowercasing and removing punctuation > (again, like tags) > - save "display" and "canonical" in user table ("BUGabundo" and > "bugabundo", "evan_d" and "evand") > - look up using canonical > - display using display version > - Don't allow registration when the canonical already exists > - Allow reference in text with anything that canonicalizes to canonical > ("@Evan", "@eVaN" and "@e_v_a_n" all work) > - Don't (*DON'T*!) change the text of @replies! > > Note that this change requires a database addition (I think we just add a > "display_nickname" column). > > -Evan > > -- > Evan Prodromou > CEO, Control Yourself, [email protected] - http://identi.ca/evan - > +1-514-554-3826 > > > _______________________________________________ > Laconica-dev mailing list > [email protected] > http://mail.laconi.ca/mailman/listinfo/laconica-dev > >
_______________________________________________ Laconica-dev mailing list [email protected] http://mail.laconi.ca/mailman/listinfo/laconica-dev
