Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed character encoding, added mentions, and retweets

  • Loading branch information...
commit ff87749f8a96f7edbd16d28b1fa0a65f3a15c992 1 parent ed09e38
@moomerman authored
Showing with 19 additions and 0 deletions.
  1. +15 −0 sinitter.rb
  2. +4 −0 views/layout.erb
View
15 sinitter.rb
@@ -32,6 +32,21 @@
erb :timeline
end
+get '/mentions' do
+ @tweets = @client.mentions
+ erb:timeline
+end
+
+get '/retweets' do
+ @tweets = @client.retweets_of_me
+ erb:timeline
+end
+
+get '/retweeted' do
+ @tweets = @client.retweeted_by_me
+ erb:timeline
+end
+
post '/update' do
@client.update(params[:update])
redirect '/timeline'
View
4 views/layout.erb
@@ -2,6 +2,7 @@
<head>
<title>Sinitter - Twitter OAuth Demo Application</title>
<link href="/main.css" media="screen" rel="Stylesheet" type="text/css" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
@@ -21,6 +22,9 @@
<% if @user %>
|
<a href='/timeline'>Timeline</a> |
+ <a href='/mentions'>Mentions</a> |
+ <a href='/retweets'>Retweets of me</a> |
+ <a href='/retweeted'>Retweets by me</a> |
<a href='/messages'>Direct Messages</a> |
<a href='/disconnect'>Logout</a>
<% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.