Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
651 B
Referenced Files
None
Subscribers
None
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,

File Metadata

Mime Type
text/x-diff
Expires
Thu, Oct 29, 8:00 AM (2 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1797755
Default Alt Text
(651 B)

Event Timeline