Code4HR / CutiesInHamptonRoads

This is a twitter bot that posts a random adoptable pet in Norfolk from Petfinder.com.
http://c4hrva.github.io/CutiesInHamptonRoads/
MIT License
6 stars 2 forks source link

Long breed names are causing tweets to go over 140 characters #30

Open lynnaloo opened 10 years ago

lynnaloo commented 10 years ago

"Status is over 140 characters" error is causing some animals to not be tweeted. This is because some of the breeds (and resulting hashtags) are too long. An example is "American Staffordshire Terrier."

Need to add some checks lengths of hashtags to prevent long tweets.

lynnaloo commented 10 years ago

I added some "sanitation" to remove some words and characters, but we still need to add some checks for really long breed names.