The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

27 行
477 B

  1. # frozen_string_literal: true
  2. class ActivityPub::DeleteActorSerializer < ActivityPub::Serializer
  3. attributes :id, :type, :actor, :to
  4. attribute :virtual_object, key: :object
  5. def id
  6. [ActivityPub::TagManager.instance.uri_for(object), '#delete'].join
  7. end
  8. def type
  9. 'Delete'
  10. end
  11. def actor
  12. ActivityPub::TagManager.instance.uri_for(object)
  13. end
  14. def virtual_object
  15. actor
  16. end
  17. def to
  18. [ActivityPub::TagManager::COLLECTIONS[:public]]
  19. end
  20. end