diff --git a/fep/2277/fep-2277.md b/fep/2277/fep-2277.md index b25eccb..75a9a9a 100644 --- a/fep/2277/fep-2277.md +++ b/fep/2277/fep-2277.md @@ -44,10 +44,10 @@ Unfortunately, definitions provided in the specification are not precise. The la One way to divide objects into distinct classes is to look at their properties and their connections to other objects (indicated by their properties). This approach can be used to define 5 core types: - Object -- Link - Actor - Activity - Collection +- Link The next section specifies an algorithm that classifies any ActivityPub object as one of these core types by analyzing object's shape. This technique is often referred to as [duck typing][DuckTyping]. @@ -55,9 +55,9 @@ The next section specifies an algorithm that classifies any ActivityPub object a The following algorithm can be used to determine the core type of the object: +1. If object has `href` property, return `Link`. 1. If object has `inbox` and `outbox` properties, return `Actor`. 1. If object has `actor` property, return `Activity`. -1. If object has `href` property, return `Link`. 1. If object has `items`, `orderedItems` or `totalItems` property, return `Collection`. 1. Otherwise, return `Object`.