aboutsummaryrefslogtreecommitdiff
path: root/test/web/activity_pub
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-11 12:50:25 +0200
committerlain <lain@soykaf.club>2020-05-11 12:50:25 +0200
commitf01abaff3751f0e76de0f126b41efe801768c3f8 (patch)
treeef96b382256ff02145b0a03a534d45c8d6440198 /test/web/activity_pub
parenta6283bbae13a873af969336bd4e62011777a1a70 (diff)
downloadpleroma-1754-bio-length-stable.tar.gz
User: Truncate bios when updating a remote user.1754-bio-length-stable
Diffstat (limited to 'test/web/activity_pub')
-rw-r--r--test/web/activity_pub/activity_pub_controller_test.exs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs
index c418232da..153adc703 100644
--- a/test/web/activity_pub/activity_pub_controller_test.exs
+++ b/test/web/activity_pub/activity_pub_controller_test.exs
@@ -310,7 +310,11 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
end
describe "/inbox" do
+ clear_config([:instance, :user_bio_length])
+
test "it inserts an incoming activity into the database", %{conn: conn} do
+ Pleroma.Config.put([:instance, :user_bio_length], 1)
+
data = File.read!("test/fixtures/mastodon-post-activity.json") |> Poison.decode!()
conn =