Unverified Commit 827a378d authored by Hong Minhee's avatar Hong Minhee
Browse files

`Actor.successor` property

parent ea3ddff6
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -16,6 +16,25 @@ To be released.

 -  Added `EmojiReact` class to Activity Vocabulary API.  [[FEP-c0e0]]

 -  Added `successor` property to the `Actor` types in the Activity
    Vocabulary API.

     -  Added `Application.successor` property.
     -  `new Application()` constructor now accepts `successor` option.
     -  `Application.clone()` method now accepts `successor` option.
     -  Added `Group.successor` property.
     -  `new Group()` constructor now accepts `successor` option.
     -  `Group.clone()` method now accepts `successor` option.
     -  Added `Organization.successor` property.
     -  `new Organization()` constructor now accepts `successor` option.
     -  `Organization.clone()` method now accepts `successor` option.
     -  Added `Person.successor` property.
     -  `new Person()` constructor now accepts `successor` option.
     -  `Person.clone()` method now accepts `successor` option.
     -  Added `Service.successor` property.
     -  `new Service()` constructor now accepts `successor` option.
     -  `Service.clone()` method now accepts `successor` option.

 -  Added `DidService` class to Activity Vocabulary API.
    [[FEP-9091], [#146]]

+2 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ property.
> | [`hreflang`]           | `Link.language`                   |
> | [`inReplyTo`]          | `Object.getReplyTargets()`        |
> | [`isCat`]              | `Application.cat`/`Group.cat`/`Organization.cat`/`Person.cat`/`Service.cat` |
> | [`movedTo`]            | `Application.successor`/`Group.successor`/`Organization.successor`/`Person.successor`/`Service.successor` |
> | [`oneOf`]              | `Question.getExclusiveOptions()`  |
> | [`orderedItems`]       | `OrderedCollection.getItems()`    |
> | [`publicKeyMultibase`] | `Multikey.publicKey`              |
@@ -111,6 +112,7 @@ property.
[`hreflang`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-hreflang
[`inReplyTo`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-inreplyto
[`isCat`]: https://misskey-hub.net/ns#iscat
[`movedTo`]: https://swicg.github.io/miscellany/#movedTo
[`oneOf`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-oneof
[`orderedItems`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-items
[`publicKeyMultibase`]: https://www.w3.org/TR/controller-document/#dfn-publickeymultibase
+1255 −20

File changed.

Preview size limit exceeded, changes collapsed.

+8 −0
Original line number Diff line number Diff line
@@ -190,6 +190,10 @@ test("handleActor()", async () => {
          "@type": "@id",
        },
        manuallyApprovesFollowers: "as:manuallyApprovesFollowers",
        movedTo: {
          "@id": "as:movedTo",
          "@type": "@id",
        },
        featured: {
          "@id": "toot:featured",
          "@type": "@id",
@@ -290,6 +294,10 @@ test("handleActor()", async () => {
          "@type": "@id",
        },
        manuallyApprovesFollowers: "as:manuallyApprovesFollowers",
        movedTo: {
          "@id": "as:movedTo",
          "@type": "@id",
        },
        featured: {
          "@id": "toot:featured",
          "@type": "@id",
+15 −0
Original line number Diff line number Diff line
@@ -1051,6 +1051,7 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  cat: true
@@ -1106,6 +1107,7 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  cat: true
@@ -1161,6 +1163,7 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  cat: true
@@ -2797,6 +2800,7 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  cat: true
@@ -2852,6 +2856,7 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  cat: true
@@ -2907,6 +2912,7 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  cat: true
@@ -4825,6 +4831,7 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  cat: true
@@ -4880,6 +4887,7 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  cat: true
@@ -4935,6 +4943,7 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  cat: true
@@ -5101,6 +5110,7 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  cat: true
@@ -5156,6 +5166,7 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  cat: true
@@ -5211,6 +5222,7 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  cat: true
@@ -6118,6 +6130,7 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  cat: true
@@ -6173,6 +6186,7 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  cat: true
@@ -6228,6 +6242,7 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  cat: true
Loading