mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 11:35:13 +00:00
13 lines
263 B
Ruby
13 lines
263 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ActivityPub::ContextSerializer < ActivityPub::Serializer
|
|
include RoutingHelper
|
|
|
|
attributes :id, :type, :attributed_to
|
|
|
|
has_one :first, serializer: ActivityPub::CollectionSerializer
|
|
|
|
def type
|
|
'Collection'
|
|
end
|
|
end
|