Unverified Commit 7a6a055d authored by Hong Minhee's avatar Hong Minhee
Browse files

Remove Link objects from icon and image properties

parent be47f4dd
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -35,6 +35,17 @@ To be released.
     -  `Object.clone()` method now accepts `icon` option.
     -  `Object.clone()` method now accepts `image` option.

 -  `Object`'s `icon` and `image` properties no more accept `Link` objects.

     -  `new Object()` constructor's `icon` option no more accepts `Link`
        object.
     -  `new Object()` constructor's `image` option no more accepts `Link`
        object.
     -  `Object.getIcons()` method no more yields `Link` objects.
     -  `Object.getImages()` method no more yields `Link` objects.
     -  `Object.clone()` method's `icon` option no more accepts `Link` object.
     -  `Object.clone()` method's `image` option no more accepts `Link` object.

 -  Now `lookupWebFinger()` follows redirections.

[Fresh]: https://fresh.deno.dev/
+246 −278

File changed.

Preview size limit exceeded, changes collapsed.

+76 −76
Original line number Diff line number Diff line
@@ -63,8 +63,8 @@ snapshot[`Deno.inspect(Accept) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -220,8 +220,8 @@ snapshot[`Deno.inspect(Activity) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -377,8 +377,8 @@ snapshot[`Deno.inspect(Add) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -534,8 +534,8 @@ snapshot[`Deno.inspect(Announce) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -691,8 +691,8 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -884,8 +884,8 @@ snapshot[`Deno.inspect(Article) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -1035,8 +1035,8 @@ snapshot[`Deno.inspect(Audio) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -1186,8 +1186,8 @@ snapshot[`Deno.inspect(Block) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -1343,8 +1343,8 @@ snapshot[`Deno.inspect(Collection) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -1509,8 +1509,8 @@ snapshot[`Deno.inspect(CollectionPage) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -1684,8 +1684,8 @@ snapshot[`Deno.inspect(Create) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -1841,8 +1841,8 @@ snapshot[`Deno.inspect(Delete) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -1998,8 +1998,8 @@ snapshot[`Deno.inspect(Dislike) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -2155,8 +2155,8 @@ snapshot[`Deno.inspect(Document) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -2556,8 +2556,8 @@ snapshot[`Deno.inspect(Event) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -2707,8 +2707,8 @@ snapshot[`Deno.inspect(Flag) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -2864,8 +2864,8 @@ snapshot[`Deno.inspect(Follow) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -3021,8 +3021,8 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -3214,8 +3214,8 @@ snapshot[`Deno.inspect(Ignore) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -3371,8 +3371,8 @@ snapshot[`Deno.inspect(Image) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -3522,8 +3522,8 @@ snapshot[`Deno.inspect(IntransitiveActivity) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -3679,8 +3679,8 @@ snapshot[`Deno.inspect(Like) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -4024,8 +4024,8 @@ snapshot[`Deno.inspect(Note) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -4175,8 +4175,8 @@ snapshot[`Deno.inspect(Object) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -4326,8 +4326,8 @@ snapshot[`Deno.inspect(OrderedCollection) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -4492,8 +4492,8 @@ snapshot[`Deno.inspect(OrderedCollectionPage) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -4670,8 +4670,8 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -4863,8 +4863,8 @@ snapshot[`Deno.inspect(Page) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -5014,8 +5014,8 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -5207,8 +5207,8 @@ snapshot[`Deno.inspect(Place) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -5376,8 +5376,8 @@ snapshot[`Deno.inspect(Profile) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -5530,8 +5530,8 @@ snapshot[`Deno.inspect(Reject) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -5687,8 +5687,8 @@ snapshot[`Deno.inspect(Relationship) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -5847,8 +5847,8 @@ snapshot[`Deno.inspect(Remove) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -6004,8 +6004,8 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -6197,8 +6197,8 @@ snapshot[`Deno.inspect(Undo) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -6354,8 +6354,8 @@ snapshot[`Deno.inspect(Update) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
@@ -6511,8 +6511,8 @@ snapshot[`Deno.inspect(Video) [auto] 1`] = `
  names: [ "hello", <en> "hello" ],
  endTime: Instant [Temporal.Instant] {},
  generators: [ Object {}, Link {} ],
  icons: [ Image {}, Link {} ],
  images: [ Image {}, Link {} ],
  icon: Image {},
  image: Image {},
  replyTargets: [ Object {}, Link {} ],
  locations: [ Object {}, Link {} ],
  previews: [ Link {}, Object {} ],
+0 −2
Original line number Diff line number Diff line
@@ -114,7 +114,6 @@ properties:
    (vertical) and should be suitable for presentation at a small size.
  range:
  - "https://www.w3.org/ns/activitystreams#Image"
  - "https://www.w3.org/ns/activitystreams#Link"

- pluralName: images
  singularName: image
@@ -126,7 +125,6 @@ properties:
    limitations assumed.
  range:
  - "https://www.w3.org/ns/activitystreams#Image"
  - "https://www.w3.org/ns/activitystreams#Link"

- pluralName: replyTargets
  singularName: replyTarget