# social.coves.embed.imagesWithAttachment

> Images with an external link or a quoted post. At most eight images total across both galleries. Comments allow only a quoted-post attachment.

- Kind: object
- Authority: embed.coves.social
- Lexicon: 1
- Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.embed.imagesWithAttachment)
- [Schema JSON](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.embed.imagesWithAttachment/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.embed.imagesWithAttachment/analytics)

## Object (`social.coves.embed.imagesWithAttachment`)

Type: object

### Properties

- `attachment` (union, required)
  - One of: `social.coves.embed.external`, `social.coves.embed.post`
- `images` (ref, required)
  - Reference: `social.coves.embed.images`

## #view (`social.coves.embed.imagesWithAttachment#view`)

Type: object

Images and attachment as served by the AppView. Image URLs are projected from blob references; Coves quotes retain only their strong reference. Every #image placement in the served record resolves to an image in the main images gallery, never the attachment. Images without a placement render as a gallery after the body.

### Properties

- `attachment` (union, required)
  - One of: `social.coves.embed.external#viewExternal`, `social.coves.embed.post#view`
- `images` (ref, required)
  - Reference: `social.coves.embed.images#view`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Images with an external link or a quoted post. At most eight images total across both galleries. Comments allow only a quoted-post attachment.",
      "properties": {
        "attachment": {
          "refs": [
            "social.coves.embed.external",
            "social.coves.embed.post"
          ],
          "type": "union"
        },
        "images": {
          "ref": "social.coves.embed.images",
          "type": "ref"
        }
      },
      "required": [
        "images",
        "attachment"
      ],
      "type": "object"
    },
    "view": {
      "description": "Images and attachment as served by the AppView. Image URLs are projected from blob references; Coves quotes retain only their strong reference. Every #image placement in the served record resolves to an image in the main images gallery, never the attachment. Images without a placement render as a gallery after the body.",
      "properties": {
        "attachment": {
          "refs": [
            "social.coves.embed.external#viewExternal",
            "social.coves.embed.post#view"
          ],
          "type": "union"
        },
        "images": {
          "ref": "social.coves.embed.images#view",
          "type": "ref"
        }
      },
      "required": [
        "images",
        "attachment"
      ],
      "type": "object"
    }
  },
  "id": "social.coves.embed.imagesWithAttachment",
  "lexicon": 1
}
```
