Capitalize "tombstone"
authorMaxim Filippov <colixer@gmail.com>
Mon, 24 Dec 2018 17:09:18 +0000 (20:09 +0300)
committerMaxim Filippov <colixer@gmail.com>
Mon, 24 Dec 2018 17:09:18 +0000 (20:09 +0300)
lib/pleroma/object.ex
test/activity_test.exs
test/user_test.exs
test/web/activity_pub/activity_pub_test.exs
test/web/activity_pub/transmogrifier_test.exs
test/web/mastodon_api/mastodon_api_controller_test.exs

index 436cf6d5d994e940d35da565b989e2c45659b0c7..31f206c391a9097e523fca0348db96638b1eeda0 100644 (file)
@@ -65,7 +65,7 @@ defmodule Pleroma.Object do
   def get_tombstone(%Object{data: data}, deleted \\ DateTime.utc_now()) do
     %{
       id: data["id"],
-      type: "tombstone",
+      type: "Tombstone",
       deleted: deleted
     }
   end
index 87c9ddc50f5139707d6c4700e85268165bf2d80a..c47fe39dac9b2833f2e3f29e892a9bc024be9c32 100644 (file)
@@ -33,7 +33,7 @@ defmodule Pleroma.ActivityTest do
     assert Pleroma.Activity.get_tombstone(activity, deleted) == %{
              id: activity.data["object"]["id"],
              context: activity.data["context"],
-             type: "tombstone",
+             type: "Tombstone",
              published: activity.data["published"],
              deleted: deleted
            }
@@ -43,7 +43,7 @@ defmodule Pleroma.ActivityTest do
     activity = insert(:note_activity)
 
     {:ok, deleted} = Pleroma.Activity.swap_data_with_tombstone(activity)
-    assert deleted.data.type == "tombstone"
+    assert deleted.data.type == "Tombstone"
 
     found_activity = Repo.get(Activity, activity.id)
 
index 43a3687ecbdec9a859ebd317e8c6d5e4bf46354b..f7a003c289f100e7a0b3fb6d25b8d527e10b6ffd 100644 (file)
@@ -625,7 +625,7 @@ defmodule Pleroma.UserTest do
 
     # TODO: Remove favorites, repeats, delete activities.
 
-    assert Repo.get(Activity, activity.id).data["type"] == "tombstone"
+    assert Repo.get(Activity, activity.id).data["type"] == "Tombstone"
   end
 
   test "get_public_key_for_ap_id fetches a user that's not in the db" do
index 95731a868bcc5382afedf9151a3a952dbef4fe5e..4d16a87e2d36df7705bf236ac67dd3eb25abd0bc 100644 (file)
@@ -478,7 +478,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
 
       assert Repo.get(Activity, delete.id) != nil
 
-      assert Repo.get(Object, object.id).data["type"] == "tombstone"
+      assert Repo.get(Object, object.id).data["type"] == "Tombstone"
     end
   end
 
index 18a5ad3d0e7896a8273b3dd7b06e1ef092c0b0e8..8ab240dffde9bf718a0275d54929108207535ddd 100644 (file)
@@ -363,7 +363,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
 
       {:ok, %Activity{local: false}} = Transmogrifier.handle_incoming(data)
 
-      assert Repo.get(Activity, activity.id).data["type"] == "tombstone"
+      assert Repo.get(Activity, activity.id).data["type"] == "Tombstone"
     end
 
     test "it fails for incoming deletes with spoofed origin" do
index 6c6cc2a00eff62d0116ee0b7c4a50a57c4edf3d2..f1baa9953a68033b5bfe3aa1ec73cea7dd68fc10 100644 (file)
@@ -292,7 +292,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
 
       assert %{} = json_response(conn, 200)
 
-      assert Repo.get(Activity, activity.id).data["type"] == "tombstone"
+      assert Repo.get(Activity, activity.id).data["type"] == "Tombstone"
     end
 
     test "when you didn't create it", %{conn: conn} do