1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-28 23:08:25 +09:00
mastodon/app/controllers/privacy_controller.rb
Eugen Rochko a2ba011326
Change privacy policy to be rendered in web UI, add REST API (#19310)
Source string no longer localized, Markdown instead of raw HTML
2022-10-08 06:01:11 +02:00

12 lines
233 B
Ruby

# frozen_string_literal: true
class PrivacyController < ApplicationController
include WebAppControllerConcern
skip_before_action :require_functional!
def show
expires_in 0, public: true if current_account.nil?
end
end