Unverified Commit 2e6bbbe4 authored by Hong Minhee's avatar Hong Minhee
Browse files

`Actor.followedMessage`

parent f3ae1273
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -21,6 +21,24 @@ To be released.
     -  Added `formatSemVer()` function.
     -  Added `parseSemVer()` function.

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

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

 -  Added more log messages using the [LogTape] library.  Currently the below
    logger categories are used:

+18 −16
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ property.
> Some of the properties in Activity Vocabulary have been renamed in Fedify:
>
> | Original name                | Accessor in Fedify                |
> |------------------------|-----------------------------------|
> |------------------------------|-----------------------------------|
> | [`alsoKnownAs`]              | `Application.getAliases()`/`Group.getAliases()`/`Organization.getAliases()`/`Person.getAliases()`/`Service.getAliases()` |
> | [`anyOf`]                    | `Question.getInclusiveOptions()`  |
> | [`attributedTo`]             | `Object.getAttributions()`        |
@@ -104,6 +104,7 @@ property.
> | [`publicKeyPem`]             | `CryptographicKey.publicKey`      |
> | [`quoteUri`]                 | `Article.quoteUrl`/`ChatMessage.quoteUrl`/`Note.quoteUrl`/`Question.quoteUrl` |
> | [`votersCount`]              | `Question.voters`                 |
> | [`_misskey_followedMessage`] | `Application.followedMessage`/`Group.followedMessage`/`Organization.followedMessage`/`Person.followedMessage`/`Service.followedMessage` |
> | [`_misskey_quote`]           | `Article.quoteUrl`/`ChatMessage.quoteUrl`/`Note.quoteUrl`/`Question.quoteUrl` |

[`alsoKnownAs`]: https://www.w3.org/TR/did-core/#dfn-alsoknownas
@@ -119,6 +120,7 @@ property.
[`publicKeyPem`]: https://web.archive.org/web/20221218063101/https://web-payments.org/vocabs/security#publicKey
[`quoteUri`]: https://github.com/fedibird/mastodon?tab=readme-ov-file#quotes
[`votersCount`]: https://docs.joinmastodon.org/spec/activitypub/#poll-specific-properties
[`_misskey_followedMessage`]: https://misskey-hub.net/ns#_misskey_followedmessage
[`_misskey_quote`]: https://misskey-hub.net/ns#_misskey_quote


+516 −21

File changed.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Diff line number Diff line
@@ -211,6 +211,7 @@ test("handleActor()", async () => {
        PropertyValue: "schema:PropertyValue",
        value: "schema:value",
        misskey: "https://misskey-hub.net/ns#",
        _misskey_followedMessage: "misskey:_misskey_followedMessage",
        isCat: "misskey:isCat",
      },
    ],
@@ -315,6 +316,7 @@ test("handleActor()", async () => {
        PropertyValue: "schema:PropertyValue",
        value: "schema:value",
        misskey: "https://misskey-hub.net/ns#",
        _misskey_followedMessage: "misskey:_misskey_followedMessage",
        isCat: "misskey:isCat",
      },
    ],
+15 −0
Original line number Diff line number Diff line
@@ -1054,6 +1054,7 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = `
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  followedMessage: "hello",
  cat: true
}'
`;
@@ -1110,6 +1111,7 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = `
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  followedMessage: "hello",
  cat: true
}'
`;
@@ -1166,6 +1168,7 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = `
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  followedMessage: "hello",
  cat: true
}'
`;
@@ -2803,6 +2806,7 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = `
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  followedMessage: "hello",
  cat: true
}'
`;
@@ -2859,6 +2863,7 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = `
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  followedMessage: "hello",
  cat: true
}'
`;
@@ -2915,6 +2920,7 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = `
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  followedMessage: "hello",
  cat: true
}'
`;
@@ -4834,6 +4840,7 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = `
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  followedMessage: "hello",
  cat: true
}'
`;
@@ -4890,6 +4897,7 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = `
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  followedMessage: "hello",
  cat: true
}'
`;
@@ -4946,6 +4954,7 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = `
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  followedMessage: "hello",
  cat: true
}'
`;
@@ -5113,6 +5122,7 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = `
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  followedMessage: "hello",
  cat: true
}'
`;
@@ -5169,6 +5179,7 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = `
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  followedMessage: "hello",
  cat: true
}'
`;
@@ -5225,6 +5236,7 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = `
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  followedMessage: "hello",
  cat: true
}'
`;
@@ -6133,6 +6145,7 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = `
  successor: Application {},
  aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  service: DidService {},
  followedMessage: "hello",
  cat: true
}'
`;
@@ -6189,6 +6202,7 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = `
  successor: URL "https://example.com/",
  alias: URL "https://example.com/",
  service: URL "https://example.com/",
  followedMessage: "hello",
  cat: true
}'
`;
@@ -6245,6 +6259,7 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = `
  successor: Application {},
  aliases: [ Application {}, Application {} ],
  services: [ DidService {}, DidService {} ],
  followedMessage: "hello",
  cat: true
}'
`;
Loading