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 upvoted
    @stories, @show_more = get_from_cache(upvoted: true, user: @user) {
      paginate @user.upvoted_stories.order('votes.id DESC')
    }
    @heading = @title = "Your Upvoted Stories"
    @cur_url = "/upvoted"
    @rss_link = { :title => "RSS 2.0 - Your Upvoted Stories",
      :href => "/upvoted.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 upvoted @stories , @show_more = get_from_cache ( upvoted : true , user : @user ) { paginate @user . upvoted_stories . order ( 'votes.id DESC' ) } @heading = @title = "Your Upvoted Stories" @cur_url = "/upvoted" @rss_link = { :title => "RSS 2.0 - Your Upvoted Stories" , :href => "/upvoted.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