seaofclouds/tweet — Issue #221: Add "user_name", make a distinction between "user" and "user_name"
Author: baloneysandwiches
Created: 2012-03-07 19:47:45+00:00
State: open

First, thanks for much for all this work. You guys are truly Monsters of Reg Ex! I have been fiddling with this script for a whole day now trying to get it to do what I want, and I'm finally there, but I have a few suggestions to help the next guy. I've parceled them out individually for ease of reference.

First, it's my understanding that as of late last year twitter makes the user_name (as distinct from the user) available on the search API. This is useful info, because sometimes (most of the time) I'm not going to recognize a tweeter from their "user" string alone. The terminology is a bit confusing, and the plug-in's use of the term "screen_name" only adds to the confusion. I suggest replacing line 179 with something cleaner and more complete:

o.user = item.from_user || item.user.screen_name;
o.user_name = item.from_user_name;