grain.social is a photo sharing platform built on atproto.

feat: update exifView schema to require 'uri', 'cid', and embed raw exif record

Changed files
+10 -4
__generated__
types
social
grain
photo
lexicons
social
grain
photo
src
lib
+4 -1
__generated__/lexicons.ts
··· 4313 }, 4314 exifView: { 4315 type: 'object', 4316 - required: ['photo', 'createdAt'], 4317 properties: { 4318 uri: { 4319 type: 'string', ··· 4326 photo: { 4327 type: 'string', 4328 format: 'at-uri', 4329 }, 4330 createdAt: { 4331 type: 'string',
··· 4313 }, 4314 exifView: { 4315 type: 'object', 4316 + required: ['uri', 'cid', 'photo', 'record', 'createdAt'], 4317 properties: { 4318 uri: { 4319 type: 'string', ··· 4326 photo: { 4327 type: 'string', 4328 format: 'at-uri', 4329 + }, 4330 + record: { 4331 + type: 'unknown', 4332 }, 4333 createdAt: { 4334 type: 'string',
+3 -2
__generated__/types/social/grain/photo/defs.ts
··· 42 43 export interface ExifView { 44 $type?: 'social.grain.photo.defs#exifView' 45 - uri?: string 46 - cid?: string 47 photo: string 48 createdAt: string 49 dateTimeOriginal?: string 50 exposureTime?: string
··· 42 43 export interface ExifView { 44 $type?: 'social.grain.photo.defs#exifView' 45 + uri: string 46 + cid: string 47 photo: string 48 + record: { [_ in string]: unknown } 49 createdAt: string 50 dateTimeOriginal?: string 51 exposureTime?: string
+2 -1
lexicons/social/grain/photo/defs.json
··· 36 }, 37 "exifView": { 38 "type": "object", 39 - "required": ["photo", "createdAt"], 40 "properties": { 41 "uri": { "type": "string", "format": "at-uri" }, 42 "cid": { "type": "string", "format": "cid" }, 43 "photo": { "type": "string", "format": "at-uri" }, 44 "createdAt": { "type": "string", "format": "datetime" }, 45 "dateTimeOriginal": { "type": "string" }, 46 "exposureTime": { "type": "string" },
··· 36 }, 37 "exifView": { 38 "type": "object", 39 + "required": ["uri", "cid", "photo", "record", "createdAt"], 40 "properties": { 41 "uri": { "type": "string", "format": "at-uri" }, 42 "cid": { "type": "string", "format": "cid" }, 43 "photo": { "type": "string", "format": "at-uri" }, 44 + "record": { "type": "unknown" }, 45 "createdAt": { "type": "string", "format": "datetime" }, 46 "dateTimeOriginal": { "type": "string" }, 47 "exposureTime": { "type": "string" },
+1
src/lib/photo.ts
··· 96 ? formatExposureTime(deserializedExif.exposureTime) 97 : undefined, 98 $type: "social.grain.photo.defs#exifView", 99 }; 100 } 101
··· 96 ? formatExposureTime(deserializedExif.exposureTime) 97 : undefined, 98 $type: "social.grain.photo.defs#exifView", 99 + record: exif, 100 }; 101 } 102