PostMetadataCommon: {
    attributes?: MetadataAttribute[];
    contentWarning?: ContentWarning;
    encryptedWith?: PublicationEncryptionStrategy;
    hideFromFeed?: boolean;
    id: string;
    locale: Locale;
    tags?: Tag[];
}

Common fields of a Lens post.

Type declaration

  • Optional attributes?: MetadataAttribute[]

    A bag of attributes that can be used to store any kind of metadata that is not currently supported by the standard. Over time, common attributes will be added to the standard and their usage as arbitrary attributes will be discouraged.

  • Optional contentWarning?: ContentWarning

    Specify a content warning.

  • Optional encryptedWith?: PublicationEncryptionStrategy

    The encryption strategy used to encrypt the post.

    If not present, the post is presumed to be unencrypted.

  • Optional hideFromFeed?: boolean

    Determine if the post should not be shown in any feed.

    Default Value

    false
    
  • id: string

    A unique identifier that in storages like IPFS ensures the uniqueness of the metadata URI.

    Use a UUID if unsure.

  • locale: Locale

    The locale of the metadata.

  • Optional tags?: Tag[]

    An arbitrary list of tags.