Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85823662
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
651 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
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)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline