AttachmentValidator: Handle empty mediatypes
[akkoma] / test / web / activity_pub / object_validator_test.exs
index a79e50a29e812d83246ca9123ff9d50ec8101490..ed6b84e8eb09d4336b41e5e8499eeffe89c82c99 100644 (file)
@@ -15,8 +15,8 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidatorTest do
   describe "attachments" do
     test "works with honkerific attachments" do
       attachment = %{
-        "mediaType" => "image/jpeg",
-        "name" => "298p3RG7j27tfsZ9RQ.jpg",
+        "mediaType" => "",
+        "name" => "",
         "summary" => "298p3RG7j27tfsZ9RQ.jpg",
         "type" => "Document",
         "url" => "https://honk.tedunangst.com/d/298p3RG7j27tfsZ9RQ.jpg"