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 newest
    @stories, @show_more = get_from_cache(newest: true) {
      paginate stories.newest
    }
    @heading = @title = "Newest Stories"
    @cur_url = "/newest"
    @rss_link = { :title => "RSS 2.0 - Newest Items",
      :href => "/newest.rss#{@user ? "?token=#{@user.rss_token}" : ""}" }
    respond_to do |format|
      format.html { render :action => "index" }
      format.rss {
        if @user && params[:token].present?
          @title += " - Private feed for #{@user.username}"
        end
        render :action => "rss", :layout => false
      }
      format.json { render :json => @stories }
    end
  end
def newest @stories , @show_more = get_from_cache ( newest : true ) { paginate stories . newest } @heading = @title = "Newest Stories" @cur_url = "/newest" @rss_link = { :title => "RSS 2.0 - Newest Items" , :href => "/newest.rss#{@user ? "?token=#{@user.rss_token}" : ""}" } respond_to do | format | format . html { render :action => "index" } format . rss { if @user && params [ :token ] . present? @title += " - Private feed for #{@user.username}" end render :action => "rss" , :layout => false } format . json { render :json => @stories } end 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