]> git.mxchange.org Git - friendica.git/commitdiff
Set allocated max width for inline images we have dimensions of
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 7 Oct 2023 21:13:36 +0000 (17:13 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 7 Oct 2023 21:13:36 +0000 (17:13 -0400)
src/Model/Item.php

index 457d76ec78c271f31e83b939ed424000503336a2..27bb58c78e9b9b3fd1ee7cb507afaa7dd0b323e1 100644 (file)
@@ -3307,6 +3307,7 @@ class Item
                                        return Renderer::replaceMacros(Renderer::getMarkupTemplate('content/image/single_with_height_allocation.tpl'), [
                                                '$image' => $PostMedia,
                                                '$allocated_height' => $PostMedia->getAllocatedHeight(),
+                                               '$allocated_max_width' => ($PostMedia->previewWidth ?? $PostMedia->width) . 'px',
                                        ]);
                                }, $s);
                        } else {