The code powering m.abunchtell.com https://m.abunchtell.com
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

25 Zeilen
464 B

  1. # frozen_string_literal: true
  2. class ActivityPub::RemoveSerializer < ActivityPub::Serializer
  3. include RoutingHelper
  4. attributes :type, :actor, :target
  5. attribute :proper_object, key: :object
  6. def type
  7. 'Remove'
  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.account, :featured)
  17. end
  18. end