mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-22 14:58:16 +00:00
12 lines
301 B
Ruby
12 lines
301 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::AnnualReportSerializer < ActiveModel::Serializer
|
|
include RoutingHelper
|
|
|
|
attributes :year, :data, :schema_version, :share_url
|
|
|
|
def share_url
|
|
public_wrapstodon_url(object.account, object.year, object.share_key) if object.share_key.present?
|
|
end
|
|
end
|