Unverified Commit 72b4d6d0 authored by Hong Minhee's avatar Hong Minhee
Browse files

`Object.likes` property

parent 652ab839
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -24,6 +24,13 @@ To be released.
     -  `new Object()` constructor now accepts `shares` option.
     -  `Object.clone()` method now accepts `shares` option.

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

     -  Added `Object.likesId` property.
     -  Added `Object.getLikes()` method.
     -  `new Object()` constructor now accepts `likes` option.
     -  `Object.clone()` method now accepts `likes` option.

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

+375 −112

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
@@ -218,6 +218,22 @@ properties:
  range:
  - "https://www.w3.org/ns/activitystreams#Collection"

- singularName: likes
  functional: true
  compactName: likes
  uri: "https://www.w3.org/ns/activitystreams#likes"
  description: |
    Every object *may* have a `likes` collection. This is a list of all
    {@link Like} activities with this object as the `object` property,
    added as a [side effect]. The `likes` 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