diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2021-03-03 18:04:06 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2021-03-25 13:03:41 +0300 |
commit | 3adb43cc20751540ea590645b31b985807684202 (patch) | |
tree | 5c90e74689605d5fb09368f383309bf20031d573 /test/support | |
parent | d1d2744ee3e6015064cf50ac5725bfe45b682466 (diff) | |
download | pleroma-3adb43cc20751540ea590645b31b985807684202.tar.gz |
refetch user on incoming add/remove activity
if featured_address is nil
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/factory.ex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex index 883cedf3c..867076d6a 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -41,7 +41,7 @@ defmodule Pleroma.Factory do urls = if attrs[:local] == false do - base_domain = Enum.random(["domain1.com", "domain2.com", "domain3.com"]) + base_domain = attrs[:domain] || Enum.random(["domain1.com", "domain2.com", "domain3.com"]) ap_id = "https://#{base_domain}/users/#{user.nickname}" @@ -60,6 +60,8 @@ defmodule Pleroma.Factory do } end + attrs = Map.delete(attrs, :domain) + user |> Map.put(:raw_bio, user.bio) |> Map.merge(urls) |