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

Question class

parent 841d94c5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -71,8 +71,11 @@
    "nodeinfo",
    "phensley",
    "Pixelfed",
    "proto",
    "redirections",
    "rels",
    "RSA-PKCS",
    "RSASSA-PKCS1",
    "setext",
    "spki",
    "subproperty",
+2 −0
Original line number Diff line number Diff line
@@ -106,6 +106,8 @@ To be released.
     -  The `Context.sendActivity()` method's first parameter now accepts
        `SenderKeyPair[]` as well.

 -  Added `Question` class to Activity Vocabulary API.

 -  Added `context` option to `Object.toJsonLd()` method.  This applies to
    any subclasses of the `Object` class too.

+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ lists the activity types that Fedify provides:
 -  [`Follow`](https://jsr.io/@fedify/fedify/doc/vocab/~/Follow)
 -  [`Ignore`](https://jsr.io/@fedify/fedify/doc/vocab/~/Ignore)
 -  [`Like`](https://jsr.io/@fedify/fedify/doc/vocab/~/Like)
 -  [`Question`](https://jsr.io/@fedify/fedify/doc/vocab/~/Question)
 -  [`Reject`](https://jsr.io/@fedify/fedify/doc/vocab/~/Reject)
 -  [`Remove`](https://jsr.io/@fedify/fedify/doc/vocab/~/Remove)
 -  [`Undo`](https://jsr.io/@fedify/fedify/doc/vocab/~/Undo)
+471 −9

File changed.

Preview size limit exceeded, changes collapsed.

+114 −0
Original line number Diff line number Diff line
@@ -4017,6 +4017,120 @@ snapshot[`Deno.inspect(Profile) [auto] 3`] = `
}'
`;

snapshot[`Deno.inspect(Question) [auto] 1`] = `
'Question {
  id: URL "https://example.com/",
  attachments: [ Object {}, Link {}, PropertyValue {} ],
  attributions: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  audience: Object {},
  contents: [ "hello", <en> "hello" ],
  contexts: [ Object {}, Link {} ],
  names: [ "hello", <en> "hello" ],
  endTime: 2024-03-03T08:30:06.796196096Z,
  generators: [ Object {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
  published: 2024-03-03T08:30:06.796196096Z,
  replies: Collection {},
  startTime: 2024-03-03T08:30:06.796196096Z,
  summaries: [ "hello", <en> "hello" ],
  tags: [ Object {}, Link {} ],
  updated: 2024-03-03T08:30:06.796196096Z,
  urls: [ URL "https://example.com/", Link {} ],
  to: Object {},
  bto: Object {},
  cc: Object {},
  bcc: Object {},
  mediaType: "hello",
  duration: PT1H,
  sensitive: true,
  proof: DataIntegrityProof {},
  actors: [ Application {}, Group {}, Organization {}, Person {}, Service {} ],
  object: Object {},
  exclusiveOptions: [ Object {} ],
  inclusiveOptions: [ Object {} ]
}'
`;

snapshot[`Deno.inspect(Question) [auto] 2`] = `
'Question {
  id: URL "https://example.com/",
  attachments: [ URL "https://example.com/" ],
  attribution: URL "https://example.com/",
  audience: URL "https://example.com/",
  contents: [ "hello", <en> "hello" ],
  contexts: [ URL "https://example.com/" ],
  names: [ "hello", <en> "hello" ],
  endTime: 2024-03-03T08:30:06.796196096Z,
  generators: [ URL "https://example.com/" ],
  icon: URL "https://example.com/",
  image: URL "https://example.com/",
  replyTarget: URL "https://example.com/",
  location: URL "https://example.com/",
  preview: URL "https://example.com/",
  published: 2024-03-03T08:30:06.796196096Z,
  replies: URL "https://example.com/",
  startTime: 2024-03-03T08:30:06.796196096Z,
  summaries: [ "hello", <en> "hello" ],
  tags: [ URL "https://example.com/" ],
  updated: 2024-03-03T08:30:06.796196096Z,
  urls: [ URL "https://example.com/", Link {} ],
  to: URL "https://example.com/",
  bto: URL "https://example.com/",
  cc: URL "https://example.com/",
  bcc: URL "https://example.com/",
  mediaType: "hello",
  duration: PT1H,
  sensitive: true,
  proof: URL "https://example.com/",
  actor: URL "https://example.com/",
  object: URL "https://example.com/",
  exclusiveOptions: [ URL "https://example.com/" ],
  inclusiveOptions: [ URL "https://example.com/" ]
}'
`;

snapshot[`Deno.inspect(Question) [auto] 3`] = `
'Question {
  id: URL "https://example.com/",
  attachments: [ Object {}, Object {} ],
  attributions: [ Application {}, Application {} ],
  audiences: [ Object {}, Object {} ],
  contents: [ "hello", "hello" ],
  contexts: [ Object {}, Object {} ],
  names: [ "hello", "hello" ],
  endTime: 2024-03-03T08:30:06.796196096Z,
  generators: [ Object {}, Object {} ],
  icons: [ Image {}, Image {} ],
  images: [ Image {}, Image {} ],
  replyTargets: [ Object {}, Object {} ],
  locations: [ Object {}, Object {} ],
  previews: [ Link {}, Link {} ],
  published: 2024-03-03T08:30:06.796196096Z,
  replies: Collection {},
  startTime: 2024-03-03T08:30:06.796196096Z,
  summaries: [ "hello", "hello" ],
  tags: [ Object {}, Object {} ],
  updated: 2024-03-03T08:30:06.796196096Z,
  urls: [ URL "https://example.com/", URL "https://example.com/" ],
  tos: [ Object {}, Object {} ],
  btos: [ Object {}, Object {} ],
  ccs: [ Object {}, Object {} ],
  bccs: [ Object {}, Object {} ],
  mediaType: "hello",
  duration: PT1H,
  sensitive: true,
  proofs: [ DataIntegrityProof {}, DataIntegrityProof {} ],
  actors: [ Application {}, Application {} ],
  objects: [ Object {}, Object {} ],
  exclusiveOptions: [ Object {}, Object {} ],
  inclusiveOptions: [ Object {}, Object {} ]
}'
`;

snapshot[`Deno.inspect(Reject) [auto] 1`] = `
'Reject {
  id: URL "https://example.com/",
Loading