Likely bug with user entities - expanded_url can be nil


Hey there,

This looks like it’s probably a bug. If a user sets their profile url to (i.e. for me) then the user’s entities will report the expanded_url as nil.

{:url=>{:urls=>[{:url=>“”, :expanded_url=>nil, :display_url=>“”, :indices=>[0, 21]}]}

If this is by design (I hope not), then the twitter text library (the js one is the one I noticed this in) needs to be updated to handle expanded_url being nil.




Hi Tim,

Thank you for the report. I will forward this to the team and keep you posted.