Unverified Commit f75c19cf authored by Hong Minhee's avatar Hong Minhee
Browse files

`Actor.cat` property (`misskey:isCat`)

parent 0c06abe6
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -102,6 +102,24 @@ To be released.
     -  The first parameter of the `InboxListener` callback type became
        `InboxContext` (was `Context`).

 -  Added `cat` property to `Actor` type in Activity Vocabulary API.

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

 -  The `Context.parseUri()` method's parameter type became `URL | null`
    (was `URL`).

+2 −0
Original line number Diff line number Diff line
@@ -96,6 +96,7 @@ property.
> | [`attributedTo`]       | `Object.getAttributions()`        |
> | [`hreflang`]           | `Link.language`                   |
> | [`inReplyTo`]          | `Object.getReplyTargets()`        |
> | [`isCat`]              | `Application.cat`/`Group.cat`/`Organization.cat`/`Person.cat`/`Service.cat` |
> | [`oneOf`]              | `Question.getExclusiveOptions()`  |
> | [`orderedItems`]       | `OrderedCollection.getItems()`    |
> | [`publicKeyMultibase`] | `Multikey.publicKey`              |
@@ -109,6 +110,7 @@ property.
[`attributedTo`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-attributedto
[`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
[`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
+532 −22

File changed.

Preview size limit exceeded, changes collapsed.

+4 −0
Original line number Diff line number Diff line
@@ -202,6 +202,8 @@ test("handleActor()", async () => {
        schema: "http://schema.org#",
        PropertyValue: "schema:PropertyValue",
        value: "schema:value",
        misskey: "https://misskey-hub.net/ns#",
        isCat: "misskey:isCat",
      },
    ],
    id: "https://example.com/users/someone",
@@ -296,6 +298,8 @@ test("handleActor()", async () => {
        schema: "http://schema.org#",
        PropertyValue: "schema:PropertyValue",
        value: "schema:value",
        misskey: "https://misskey-hub.net/ns#",
        isCat: "misskey:isCat",
      },
    ],
    id: "https://example.com/users/someone",
+30 −15
Original line number Diff line number Diff line
@@ -907,7 +907,8 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ]
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  cat: true
}'
`;

@@ -960,7 +961,8 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  alias: URL "https://example.com/"
  alias: URL "https://example.com/",
  cat: true
}'
`;

@@ -1013,7 +1015,8 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Application {} ]
  aliases: [ Application {}, Application {} ],
  cat: true
}'
`;

@@ -2647,7 +2650,8 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ]
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  cat: true
}'
`;

@@ -2700,7 +2704,8 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  alias: URL "https://example.com/"
  alias: URL "https://example.com/",
  cat: true
}'
`;

@@ -2753,7 +2758,8 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Application {} ]
  aliases: [ Application {}, Application {} ],
  cat: true
}'
`;

@@ -4669,7 +4675,8 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ]
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  cat: true
}'
`;

@@ -4722,7 +4729,8 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  alias: URL "https://example.com/"
  alias: URL "https://example.com/",
  cat: true
}'
`;

@@ -4775,7 +4783,8 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Application {} ]
  aliases: [ Application {}, Application {} ],
  cat: true
}'
`;

@@ -4939,7 +4948,8 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ]
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  cat: true
}'
`;

@@ -4992,7 +5002,8 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  alias: URL "https://example.com/"
  alias: URL "https://example.com/",
  cat: true
}'
`;

@@ -5045,7 +5056,8 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Application {} ]
  aliases: [ Application {}, Application {} ],
  cat: true
}'
`;

@@ -5950,7 +5962,8 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ]
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  cat: true
}'
`;

@@ -6003,7 +6016,8 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  alias: URL "https://example.com/"
  alias: URL "https://example.com/",
  cat: true
}'
`;

@@ -6056,7 +6070,8 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = `
  suspended: true,
  memorial: true,
  indexable: true,
  aliases: [ Application {}, Application {} ]
  aliases: [ Application {}, Application {} ],
  cat: true
}'
`;

Loading