Unverified Commit 90e7f03e authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix manuallyApprovesFollowers 2B shown in Mastodon

parent 85247759
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -66,6 +66,11 @@ To be released.
     -  Added `exportSpki()` function.
     -  Added `importSpki()` function.

 -  Fixed a bug that `Application.manuallyApprovesFollowers`,
    `Group.manuallyApprovesFollowers`, `Organization.manuallyApprovesFollowers`,
    `Person.manuallyApprovesFollowers`, and `Service.manuallyApprovesFollowers`
    properties were not properly displayed in Mastodon.

[@fedify/fedify]: https://www.npmjs.com/package/@fedify/fedify
[#24]: https://github.com/dahlia/fedify/discussions/24
[#29]: https://github.com/dahlia/fedify/issues/29
+5 −5
Original line number Diff line number Diff line
@@ -6425,7 +6425,7 @@ get indexable(): (boolean | null) {
    }
    return await jsonld.compact(
      values,
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      options
    );
  }
@@ -11273,7 +11273,7 @@ get indexable(): (boolean | null) {
    }
    return await jsonld.compact(
      values,
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      options
    );
  }
@@ -14440,7 +14440,7 @@ get indexable(): (boolean | null) {
    }
    return await jsonld.compact(
      values,
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      options
    );
  }
@@ -15951,7 +15951,7 @@ get indexable(): (boolean | null) {
    }
    return await jsonld.compact(
      values,
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      options
    );
  }
@@ -18964,7 +18964,7 @@ get indexable(): (boolean | null) {
    }
    return await jsonld.compact(
      values,
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",{\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}],
      options
    );
  }
+1 −0
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ Deno.test("handleActor()", async () => {
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1",
      {
        manuallyApprovesFollowers: "as:manuallyApprovesFollowers",
        discoverable: "toot:discoverable",
        indexable: "toot:indexable",
        memorial: "toot:memorial",
+2 −1
Original line number Diff line number Diff line
@@ -7,7 +7,8 @@ description: Describes a software application.
defaultContext:
- "https://www.w3.org/ns/activitystreams"
- "https://w3id.org/security/v1"
- toot: "http://joinmastodon.org/ns#"
- manuallyApprovesFollowers: "as:manuallyApprovesFollowers"
  toot: "http://joinmastodon.org/ns#"
  discoverable: "toot:discoverable"
  suspended: "toot:suspended"
  memorial: "toot:memorial"
+2 −1
Original line number Diff line number Diff line
@@ -7,7 +7,8 @@ description: Represents a formal or informal collective of Actors.
defaultContext:
- "https://www.w3.org/ns/activitystreams"
- "https://w3id.org/security/v1"
- toot: "http://joinmastodon.org/ns#"
- manuallyApprovesFollowers: "as:manuallyApprovesFollowers"
  toot: "http://joinmastodon.org/ns#"
  discoverable: "toot:discoverable"
  suspended: "toot:suspended"
  memorial: "toot:memorial"
Loading