Unverified Commit 87e2fd9d authored by Hong Minhee's avatar Hong Minhee
Browse files

Singular accessors for icon & image

parent b70fb74f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -26,6 +26,10 @@ To be released.
     -  Added `Context.getDocumentLoader()` method.
     -  Added `getAuthenticatedDocumentLoader()` function.

 -  Added `Object.getIcon()` method.

 -  Added `Object.getImage()` method.

 -  Now `lookupWebFinger()` follows redirections.

[Fresh]: https://fresh.deno.dev/
+360 −76

File changed.

Preview size limit exceeded, changes collapsed.

+76 −76
Original line number Diff line number Diff line
@@ -111,8 +111,8 @@ snapshot[`Deno.inspect(Accept) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -268,8 +268,8 @@ snapshot[`Deno.inspect(Activity) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -425,8 +425,8 @@ snapshot[`Deno.inspect(Add) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -582,8 +582,8 @@ snapshot[`Deno.inspect(Announce) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -751,8 +751,8 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -930,8 +930,8 @@ snapshot[`Deno.inspect(Article) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -1081,8 +1081,8 @@ snapshot[`Deno.inspect(Audio) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -1234,8 +1234,8 @@ snapshot[`Deno.inspect(Block) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -1394,8 +1394,8 @@ snapshot[`Deno.inspect(Collection) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -1563,8 +1563,8 @@ snapshot[`Deno.inspect(CollectionPage) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -1732,8 +1732,8 @@ snapshot[`Deno.inspect(Create) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -1889,8 +1889,8 @@ snapshot[`Deno.inspect(Delete) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -2046,8 +2046,8 @@ snapshot[`Deno.inspect(Dislike) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -2201,8 +2201,8 @@ snapshot[`Deno.inspect(Document) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -2602,8 +2602,8 @@ snapshot[`Deno.inspect(Event) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -2755,8 +2755,8 @@ snapshot[`Deno.inspect(Flag) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -2912,8 +2912,8 @@ snapshot[`Deno.inspect(Follow) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -3081,8 +3081,8 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -3262,8 +3262,8 @@ snapshot[`Deno.inspect(Ignore) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -3417,8 +3417,8 @@ snapshot[`Deno.inspect(Image) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -3570,8 +3570,8 @@ snapshot[`Deno.inspect(IntransitiveActivity) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -3727,8 +3727,8 @@ snapshot[`Deno.inspect(Like) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -4070,8 +4070,8 @@ snapshot[`Deno.inspect(Note) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -4221,8 +4221,8 @@ snapshot[`Deno.inspect(Object) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -4377,8 +4377,8 @@ snapshot[`Deno.inspect(OrderedCollection) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -4547,8 +4547,8 @@ snapshot[`Deno.inspect(OrderedCollectionPage) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -4730,8 +4730,8 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -4909,8 +4909,8 @@ snapshot[`Deno.inspect(Page) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -5074,8 +5074,8 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -5259,8 +5259,8 @@ snapshot[`Deno.inspect(Place) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -5423,8 +5423,8 @@ snapshot[`Deno.inspect(Profile) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -5578,8 +5578,8 @@ snapshot[`Deno.inspect(Reject) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -5736,8 +5736,8 @@ snapshot[`Deno.inspect(Relationship) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -5895,8 +5895,8 @@ snapshot[`Deno.inspect(Remove) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -6064,8 +6064,8 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -6245,8 +6245,8 @@ snapshot[`Deno.inspect(Undo) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -6402,8 +6402,8 @@ snapshot[`Deno.inspect(Update) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
@@ -6557,8 +6557,8 @@ snapshot[`Deno.inspect(Video) [auto] 2`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ URL "https://example.com/" ],
  icons: [ URL "https://example.com/" ],
  images: [ 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/",
+2 −0
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ properties:

- pluralName: icons
  singularName: icon
  singularAccessor: true
  uri: "https://www.w3.org/ns/activitystreams#icon"
  description: |
    Indicates an entity that describes an icon for this object.
@@ -117,6 +118,7 @@ properties:

- pluralName: images
  singularName: image
  singularAccessor: true
  uri: "https://www.w3.org/ns/activitystreams#image"
  description: |
    Indicates an entity that describes an image for this object.