test: update twitterapi tests
[akkoma] / test / web / activity_pub / activity_pub_test.exs
index 48eed3f135e25654b36d7b2edfeafc631322f0cf..7895cf21d1882f73a74d7948292ca58a87413b43 100644 (file)
@@ -113,6 +113,17 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
       assert {:error, {:remote_limit_error, _}} = ActivityPub.insert(data)
     end
 
+    test "doesn't drop activities with content being null" do
+      data = %{
+        "ok" => true,
+        "object" => %{
+          "content" => nil
+        }
+      }
+
+      assert {:ok, _} = ActivityPub.insert(data)
+    end
+
     test "returns the activity if one with the same id is already in" do
       activity = insert(:note_activity)
       {:ok, new_activity} = ActivityPub.insert(activity.data)