forked from Kieran/snort
feat: add imeta hash
This commit is contained in:
parent
735d5fd5a5
commit
d167579348
@ -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) {
|
||||
|
@ -62,6 +62,9 @@ export default async function VoidCatUpload(
|
||||
|
||||
const ret = {
|
||||
url: resultUrl,
|
||||
metadata: {
|
||||
hash: rsp.file?.metadata?.digest,
|
||||
},
|
||||
} as UploadResult;
|
||||
|
||||
if (publisher) {
|
||||
|
@ -27,6 +27,7 @@ export interface UploadResult {
|
||||
blurhash?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
hash?: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user