mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-12 23:38:20 +00:00
12 lines
286 B
Ruby
12 lines
286 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::CollectionSerializer < REST::BaseCollectionSerializer
|
|
belongs_to :account, serializer: REST::AccountSerializer
|
|
|
|
has_many :items, serializer: REST::CollectionItemSerializer
|
|
|
|
def items
|
|
object.items_for(current_user&.account)
|
|
end
|
|
end
|