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 index
    @stories, @show_more = get_from_cache(hottest: true) {
      paginate stories.hottest
    }
    @rss_link ||= { :title => "RSS 2.0",
      :href => "/rss#{@user ? "?token=#{@user.rss_token}" : ""}" }
    @comments_rss_link ||= { :title => "Comments - RSS 2.0",
      :href => "/comments.rss#{@user ? "?token=#{@user.rss_token}" : ""}" }
    @heading = @title = ""
    @cur_url = "/"
    respond_to do |format|
      format.html { render :action => "index" }
      format.rss {
        if @user
          @title = "Private feed for #{@user.username}"
          render :action => "rss", :layout => false
        else
          content = Rails.cache.fetch("rss", :expires_in => (60 * 2)) {
            render_to_string :action => "rss", :layout => false
          }
          render :plain => content, :layout => false
        end
      }
      format.json { render :json => @stories }
    end
  end
def index @stories , @show_more = get_from_cache ( hottest : true ) { paginate stories . hottest } @rss_link ||= { :title => "RSS 2.0" , :href => "/rss#{@user ? "?token=#{@user.rss_token}" : ""}" } @comments_rss_link ||= { :title => "Comments - RSS 2.0" , :href => "/comments.rss#{@user ? "?token=#{@user.rss_token}" : ""}" } @heading = @title = "" @cur_url = "/" respond_to do | format | format . html { render :action => "index" } format . rss { if @user @title = "Private feed for #{@user.username}" render :action => "rss" , :layout => false else content = Rails . cache . fetch ( "rss" , :expires_in => ( 60 * 2 ) ) { render_to_string :action => "rss" , :layout => false } render :plain => content , :layout => false end } 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