The code powering m.abunchtell.com https://m.abunchtell.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

25 lignes
450 B

  1. # frozen_string_literal: true
  2. class ActivityPub::AddSerializer < ActiveModel::Serializer
  3. include RoutingHelper
  4. attributes :type, :actor, :target
  5. attribute :proper_object, key: :object
  6. def type
  7. 'Add'
  8. end
  9. def actor
  10. ActivityPub::TagManager.instance.uri_for(object.account)
  11. end
  12. def proper_object
  13. ActivityPub::TagManager.instance.uri_for(object)
  14. end
  15. def target
  16. account_collection_url(object, :featured)
  17. end
  18. end