mckerrj/TwitterApp — pull request #1 by kleids (2014-06-12 18:42:16+00:00)
Title: Twitkleids

This submission adds the functionality to view and follow a twitter conversation between two tweets if a conversation exists. The main page has been modified with an additional column that provides a link to view what the tweet is in response to. This link will only appear in the column when the tweet is a reply to a previous tweet. When a user clicks the link, they will be taken to a new page that displays the initial tweet and the response tweet.

The conversation feature was added by changing the tweet model to include the “in_reply_to_status_id_str” in the database. While parsing the twitter response for tweets, if the in_reply_to_status_id_str contains a value, a second call to twitter is made to get the single tweet with the corresponding ID. This new tweet text is stored in the database and a link is added to the table. When the link is clicked, the api is called to return that single tweet which now also contains the text data of the tweet it is responding to. These two text fields are displayed side by side to view the two tweets in a conversation.

Given more time, I would also like to identify twitter user mentions within tweets. This is a common feature of many twitter clients. It would give the user the ability to view the user(s) mentioned within the text. This would be executed by altering the text color of the mentioned user(s) and creating a link on that text. The link would load the twitter_user.html page and display the information of the mentioned user. This template already exists for the tweet author, so expanding the functionality of the page to display mentioned users seems intuitive and useful. (Below is an example. The twitter user YahooTech is mentioned in this tweet. The @YahooTech text has an altered color and an embedded link. The link takes you to the YahooTech user page.)

![capture](https://cloud.githubusercontent.com/assets/7385860/3262014/8bac7e20-f260-11e3-871e-4fac24a85077.PNG)