Also purge bio and display name
This commit is contained in:
parent
d55faa2f8f
commit
c12c576ee2
@ -1591,7 +1591,9 @@ defmodule Pleroma.User do
|
|||||||
avatar: %{},
|
avatar: %{},
|
||||||
banner: %{},
|
banner: %{},
|
||||||
background: %{},
|
background: %{},
|
||||||
fields: []
|
fields: [],
|
||||||
|
bio: nil,
|
||||||
|
name: nil
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -160,7 +160,9 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
|
|||||||
user =
|
user =
|
||||||
insert(:user,
|
insert(:user,
|
||||||
avatar: %{"url" => [%{"href" => "https://someurl"}]},
|
avatar: %{"url" => [%{"href" => "https://someurl"}]},
|
||||||
banner: %{"url" => [%{"href" => "https://somebanner"}]}
|
banner: %{"url" => [%{"href" => "https://somebanner"}]},
|
||||||
|
bio: "Hello world!",
|
||||||
|
name: "A guy"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create some activities to check they got deleted later
|
# Create some activities to check they got deleted later
|
||||||
@ -201,6 +203,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
|
|||||||
assert user.note_count == 0
|
assert user.note_count == 0
|
||||||
assert user.follower_count == 0
|
assert user.follower_count == 0
|
||||||
assert user.following_count == 0
|
assert user.following_count == 0
|
||||||
|
assert user.bio == nil
|
||||||
|
assert user.name == nil
|
||||||
|
|
||||||
assert called(Pleroma.Web.Federator.publish(:_))
|
assert called(Pleroma.Web.Federator.publish(:_))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user