Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hotsh/rstat.us
Browse files Browse the repository at this point in the history
  • Loading branch information
dominic committed Mar 24, 2011
2 parents 3b2d25f + 178031f commit d7b86c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rstatus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ class Rstatus < Sinatra::Base
if current_user.following? feed_url
# which means it exists
feed = Feed.first(:remote_url => feed_url)
if feed.nil? and feed_url[0] == "/"
feed_id = feed_url[/^\/feeds\/(.+)$/,1]
feed = Feed.first(:id => feed_id)
end

flash[:notice] = "You're already following #{feed.author.username}."
if feed.local
Expand Down

0 comments on commit d7b86c5

Please sign in to comment.