|
|
@ -4,7 +4,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
|
|
|
include RoutingHelper
|
|
|
|
include RoutingHelper
|
|
|
|
|
|
|
|
|
|
|
|
attributes :uri, :title, :description, :email,
|
|
|
|
attributes :uri, :title, :description, :email,
|
|
|
|
:version, :urls, :stats, :thumbnail, :max_chars
|
|
|
|
:version, :urls, :stats, :thumbnail, :max_toot_chars
|
|
|
|
|
|
|
|
|
|
|
|
def uri
|
|
|
|
def uri
|
|
|
|
Rails.configuration.x.local_domain
|
|
|
|
Rails.configuration.x.local_domain
|
|
|
@ -30,7 +30,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
|
|
|
full_asset_url(instance_presenter.thumbnail.file.url) if instance_presenter.thumbnail
|
|
|
|
full_asset_url(instance_presenter.thumbnail.file.url) if instance_presenter.thumbnail
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def max_chars
|
|
|
|
def max_toot_chars
|
|
|
|
StatusLengthValidator::MAX_CHARS
|
|
|
|
StatusLengthValidator::MAX_CHARS
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|