add dimensions to data (#3616)

* add dimensions to data

* keep alt text

* put it in the right url

* just send the original height and width instead
zio/stable
Hailey 2024-04-18 21:32:25 -07:00 committed by GitHub
parent ba1c4834ab
commit c91f065be5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ export const ComposePost = observer(function ComposePost({
const onSelectGif = useCallback(
(gif: Gif) =>
setExtLink({
uri: gif.url,
uri: `${gif.url}?hh=${gif.images.original.height}&ww=${gif.images.original.width}`,
isLoading: true,
meta: {
url: gif.url,