summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkPherox <admin@mail.kr-kp.com>2019-08-26 02:00:41 +0900
committerkPherox <admin@mail.kr-kp.com>2019-08-26 02:06:52 +0900
commitd74efde94e3526b45dc9b31d9d48ffce14203ffa (patch)
tree8f7b2dc0adc11dbdb513481cf02a712cb534c8bf
parent3549cd9754f95b17a2be2eb76d9bb6c38bdbf288 (diff)
Update test for custom profile fields
-rw-r--r--test/web/activity_pub/transmogrifier_test.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs
index 629c76c97..0661d5d7c 100644
--- a/test/web/activity_pub/transmogrifier_test.exs
+++ b/test/web/activity_pub/transmogrifier_test.exs
@@ -563,6 +563,14 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
%{"name" => "foo", "value" => "updated"},
%{"name" => "foo1", "value" => "updated"}
]
+
+ update_data = put_in(update_data, ["object", "attachment"], [])
+
+ {:ok, _} = Transmogrifier.handle_incoming(update_data)
+
+ user = User.get_cached_by_ap_id(user.ap_id)
+
+ assert User.Info.fields(user.info) == []
end
test "it works for incoming update activities which lock the account" do