feat: add imeta hash
This commit is contained in:
@ -215,6 +215,9 @@ export function NoteCreator() {
|
|||||||
if (rx.metadata.width && rx.metadata.height) {
|
if (rx.metadata.width && rx.metadata.height) {
|
||||||
imeta.push(`dim ${rx.metadata.width}x${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);
|
v.extraTags.push(imeta);
|
||||||
}
|
}
|
||||||
} else if (rx?.error) {
|
} else if (rx?.error) {
|
||||||
|
@ -62,6 +62,9 @@ export default async function VoidCatUpload(
|
|||||||
|
|
||||||
const ret = {
|
const ret = {
|
||||||
url: resultUrl,
|
url: resultUrl,
|
||||||
|
metadata: {
|
||||||
|
hash: rsp.file?.metadata?.digest,
|
||||||
|
},
|
||||||
} as UploadResult;
|
} as UploadResult;
|
||||||
|
|
||||||
if (publisher) {
|
if (publisher) {
|
||||||
|
@ -27,6 +27,7 @@ export interface UploadResult {
|
|||||||
blurhash?: string;
|
blurhash?: string;
|
||||||
width?: number;
|
width?: number;
|
||||||
height?: number;
|
height?: number;
|
||||||
|
hash?: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user