Skip to content

Restore Actor type. #646

@steve-bate

Description

@steve-bate

The Actor type was removed in #277.

The Actor type currently serves as a base class for the five primary Actor types. It does not, however, define any actor specific properties and it would be highly unlikely for an implementation to use the Actor type directly.

The same reasoning would also apply to Document although that type was not removed.

The Actor would be very useful for identifying custom actor types as an actor (using an as:type array). Currently, there is no way to do that unless the actor type is closely related to one of the five primary Actor types. I'm guessing the original thinking was based on single-value types instead of type arrays.

Example:

{
  "@context": [
       "https://www.w3.org/ns/activitystreams",
       "https://server.example/actors"
  ],
  "type":  ["example:ExampleActor", "Actor"],
  "name": "Example actor"
}

Having the Actor type would allow a server to process a document like this more effectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Next versionThings that should probably be resolved in a next version of AS2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions