Refactor controllers for statuses, accounts, and more (#11249)
This commit is contained in:
parent
f14776475d
commit
63c7fe8e48
41 changed files with 299 additions and 289 deletions
|
@ -7,6 +7,8 @@ class ActivityPub::CollectionSerializer < ActivityPub::Serializer
|
|||
super
|
||||
end
|
||||
|
||||
cache key: 'collection', expires_in: 3.minutes
|
||||
|
||||
attribute :id, if: -> { object.id.present? }
|
||||
attribute :type
|
||||
attribute :total_items, if: -> { object.size.present? }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue