diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index d89705f23..d75045f07 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -30,16 +30,11 @@ class ArticlesController < ApplicationController @articles.where(featured: true).includes(:user) end - unless @articles&.any? - not_found - end + not_found unless @articles&.any? set_surrogate_key_header "feed" set_cache_control_headers(10.minutes.to_i, stale_while_revalidate: 30, stale_if_error: 1.day.to_i) - @allowed_tags = FEED_ALLOWED_TAGS - @allowed_attributes = FEED_ALLOWED_ATTRIBUTES - render layout: false, locals: { articles: @articles, user: @user,