privacy_controller.rb 369 B

12345678910111213141516171819
  1. # frozen_string_literal: true
  2. class PrivacyController < ApplicationController
  3. include WebAppControllerConcern
  4. skip_before_action :require_functional!
  5. before_action :set_instance_presenter
  6. def show
  7. expires_in 0, public: true if current_account.nil?
  8. end
  9. private
  10. def set_instance_presenter
  11. @instance_presenter = InstancePresenter.new
  12. end
  13. end