twitter-archive / twitter-text-rb

A library that does auto linking and extraction of usernames, lists and hashtags in tweets
613 stars 133 forks source link

Conform to the Developer Display Requirements when linking usernames #93

Closed jalada closed 11 years ago

jalada commented 11 years ago

The Developer Display Requirements state (in a roundabout way) that the "@" symbol and the username must link to the Twitter profile (not just the username), but autolink only links the username, not the @ symbol as well.

Background: We're trying to get Site Streams access and this was raised as an issue via email.

jakl commented 11 years ago

Is this what you needed? twttr.txt.autoLink('@asdf', { usernameIncludeSymbol: true })

jakl commented 11 years ago

You can quickly test this in the javascript console on tweetdeck

jalada commented 11 years ago

Thanks, looks like that's it; was hard to spot at first glance.

jakl commented 11 years ago

Thanks for pointing out the style guide - maybe this should be default now.