mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:15:11 +00:00
[MOD] Add width/height information when possible
This commit is contained in:
parent
09d38993bb
commit
d989331716
5 changed files with 103 additions and 3 deletions
|
|
@ -419,10 +419,13 @@ end_error:
|
|||
|
||||
if (oob_data)
|
||||
{
|
||||
FileInfo *info = FileInfoFromXMPP(stanza);
|
||||
mxc = ASReupload(args->config, oob_data->data, &mime);
|
||||
if (mxc)
|
||||
{
|
||||
content = MatrixCreateMedia(mxc, data->data, mime);
|
||||
content = MatrixCreateMedia(
|
||||
mxc, data->data, mime, info
|
||||
);
|
||||
|
||||
HashMapSet(content,
|
||||
"at.kappach.at.parsee.external",
|
||||
|
|
@ -436,6 +439,7 @@ end_error:
|
|||
);
|
||||
Free(mxc);
|
||||
}
|
||||
FileInfoFree(info);
|
||||
Free(mime);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue