feat: add imeta hash

This commit is contained in:
Kieran 2023-12-10 17:19:09 +00:00
parent 735d5fd5a5
commit d167579348
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 20 additions and 13 deletions

View File

@ -215,6 +215,9 @@ export function NoteCreator() {
if (rx.metadata.width && rx.metadata.height) {
imeta.push(`dim ${rx.metadata.width}x${rx.metadata.height}`);
}
if (rx.metadata.hash) {
imeta.push(`x ${rx.metadata.hash}`);
}
v.extraTags.push(imeta);
}
} else if (rx?.error) {

View File

@ -62,6 +62,9 @@ export default async function VoidCatUpload(
const ret = {
url: resultUrl,
metadata: {
hash: rsp.file?.metadata?.digest,
},
} as UploadResult;
if (publisher) {

View File

@ -27,6 +27,7 @@ export interface UploadResult {
blurhash?: string;
width?: number;
height?: number;
hash?: string;
};
}