]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Image.php
Remove DI dependency in Object\Api\Mastodon\Instance
[friendica.git] / src / Content / Image.php
index 6adfa9dd761481e4f5c79a15f5e549032e7a3fd4..cc2fd5122c3f5353a8fe5b8021c4c143d228dcea 100644 (file)
@@ -39,7 +39,7 @@ class Image
                                $media = Renderer::replaceMacros(Renderer::getMarkupTemplate('content/image/single_with_height_allocation.tpl'), [
                                        '$image' => $PostMediaImages[0],
                                        '$allocated_height' => $PostMediaImages[0]->getAllocatedHeight(),
-                                       '$allocated_width' => ($PostMediaImages[0]->previewWidth ?? $PostMediaImages[0]->width) . 'px',
+                                       '$allocated_max_width' => ($PostMediaImages[0]->previewWidth ?? $PostMediaImages[0]->width) . 'px',
                                ]);
                        }
                } else {