Unverified Commit 652ab839 authored by Hong Minhee's avatar Hong Minhee
Browse files

`Object.shares` property

parent 86dfb057
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -17,6 +17,13 @@ To be released.
     -  Added `ActorCallbackSetters.mapAlias()` method.
     -  Added `ActorAliasMapper` type.

 -  Added `shares` property to `Object` class in Activity Vocabulary API.

     -  Added `Object.sharesId` property.
     -  Added `Object.getShares()` method.
     -  `new Object()` constructor now accepts `shares` option.
     -  `Object.clone()` method now accepts `shares` option.

 -  Added `emojiReactions` property to `Object` class in Activity Vocabulary
    API.

+373 −110

File changed.

Preview size limit exceeded, changes collapsed.

+165 −0

File changed.

Preview size limit exceeded, changes collapsed.

+16 −0
Original line number Diff line number Diff line
@@ -202,6 +202,22 @@ properties:
  range:
  - "https://www.w3.org/ns/activitystreams#Collection"

- singularName: shares
  functional: true
  compactName: shares
  uri: "https://www.w3.org/ns/activitystreams#shares"
  description: |
    Every object *may* have a `shares` collection. This is a list of all
    {@link Announce} activities with this object as the `object` property,
    added as a [side effect]. The `shares` collection *must* be either
    an {@link OrderedCollection} or a {@link Collection} and *may* be filtered
    on privileges of an authenticated user or as appropriate
    when no authentication is given.

    [side effect]: https://www.w3.org/TR/activitypub/#announce-activity-inbox
  range:
  - "https://www.w3.org/ns/activitystreams#Collection"

- singularName: emojiReactions
  functional: true
  compactName: emojiReactions