aboutsummaryrefslogtreecommitdiff
path: root/test/user_test.exs
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/user_test.exs
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/user_test.exs')
-rw-r--r--test/user_test.exs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/user_test.exs b/test/user_test.exs
index e63c44360..368bdae12 100644
--- a/test/user_test.exs
+++ b/test/user_test.exs
@@ -570,7 +570,10 @@ defmodule Pleroma.UserTest do
assert fetched_user == "not found nonexistant"
end
+ clear_config([:instance, :user_bio_length])
+
test "updates an existing user, if stale" do
+ Pleroma.Config.put([:instance, :user_bio_length], 1)
a_week_ago = NaiveDateTime.add(NaiveDateTime.utc_now(), -604_800)
orig_user =