Timeline for display_name isn't always there (should have OpenID name if needed)
Current License: CC BY-SA 2.5
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:39 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
May 31, 2010 at 16:05 | comment | added | Jonathan. | ok, but that situation is very rare, and in the rare instances that happens text like "Unknown User" can be displayed. If I'm not to rely on the display name then when there is the list of questions what should I use for the question's asker (owner) | |
May 31, 2010 at 11:02 | comment | added | YOU | @Jonathan, I inclined to agree that. And yes, I can't think of there is problem with returning username from OpenID too, and its true that its already on the site. Someone need to convince them to include that. But "every user has username" isn't true, take a look this question, superuser.com/questions/37449/what-is-and-in-a-directory , you would see nothing there (no userlink, no username, may be even no userid or its gone), so best thing is not to rely on the existance of the display_name on your program. | |
May 31, 2010 at 10:49 | comment | added | Jonathan. | I understand what everyone means by 2 names, but every user has a username, whether that's a display name or from OpenID, it's the name that appears under every question users ask. I don't understand why the API doesn't give the OID one when there no display name. It is already exposed on the site. And I could just go back to using a HTML parser and get everything from that, including the username. But this is long boring and takes up more of SO's bandwidth, and the user's download allowance. So there is no harm in returning the user's "username". | |
May 31, 2010 at 10:36 | comment | added | YOU | @Jonathan, its confusing, but there is two names, in Stack Overflow db, I think. one is display_name which user explicitly set, but since it is optional many people don't put it, so Stack Overflow get username info from OpenID string or from OpenID provider, but I think they don't want to expose that part, so until now, they are rejecting those requests. | |
May 31, 2010 at 10:17 | comment | added | Jonathan. | Ok so the newbie-25 guy has asked one question. In that question it says the person who wrote that question is newbie-25. He doesn't have a display name so instead of the API returning nothing for display-nane it should return newbie-25. | |
May 30, 2010 at 16:36 | history | answered | YOU | CC BY-SA 2.5 |