app/controllers/home_controller.rb
# for rss feeds, load the user's tag filters if a token is passed
for rss feeds, load the user's tag filters if a token is passed
for rss feeds load the user ' s tag filters if a token is passed
def recent
    @stories, @show_more = get_from_cache(recent: true) {
      scope = if page == 1
        stories.recent
      else
        stories.newest
      end
      paginate scope
    }
    @heading = @title = "Recent Stories"
    @cur_url = "/recent"
    @rss_link = { :title => "RSS 2.0 - Newest Items",
      :href => "/newest.rss#{@user ? "?token=#{@user.rss_token}" : ""}" }
    render :action => "index"
  end
def recent @stories , @show_more = get_from_cache ( recent : true ) { scope = if page == 1 stories . recent else stories . newest end paginate scope } @heading = @title = "Recent Stories" @cur_url = "/recent" @rss_link = { :title => "RSS 2.0 - Newest Items" , :href => "/newest.rss#{@user ? "?token=#{@user.rss_token}" : ""}" } render :action => "index" end
for rss feeds, load the user's tag filters if a token is passed
for rss feeds load the user ' s tag filters if a token is passed
# our content changes every page load, so point at /newest.rss to be stable