mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
24 lines
623 B
Ruby
24 lines
623 B
Ruby
# frozen_string_literal: true
|
|
|
|
class WrapstodonController < ApplicationController
|
|
include WebAppControllerConcern
|
|
include Authorization
|
|
include AccountOwnedConcern
|
|
|
|
vary_by 'Accept, Accept-Language, Cookie'
|
|
|
|
before_action :set_generated_annual_report
|
|
|
|
skip_before_action :require_functional!, only: :show, unless: :limited_federation_mode?
|
|
|
|
def show
|
|
expires_in 10.seconds, public: true if current_account.nil?
|
|
end
|
|
|
|
private
|
|
|
|
def set_generated_annual_report
|
|
@generated_annual_report = GeneratedAnnualReport.find_by!(account: @account, year: params[:year], share_key: params[:share_key])
|
|
end
|
|
end
|