diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 4625be47c..6a5d627a5 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -675,7 +675,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do def render("attachment_meta.json", %{ attachment: %{"url" => [%{"width" => width, "height" => height} | _]} }) - when is_integer(width) and is_integer(height) do + when is_integer(width) and is_integer(height) and width > 0 and height > 0 do %{ original: %{ width: width,