Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
249b31ff
Commit
249b31ff
authored
May 17, 2019
by
lain
Browse files
Fix specs.
parent
67af50ec
Pipeline
#11970
passed with stages
in 6 minutes and 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
249b31ff
...
@@ -1144,7 +1144,6 @@ def delete_user_activities(%User{ap_id: ap_id} = user) do
...
@@ -1144,7 +1144,6 @@ def delete_user_activities(%User{ap_id: ap_id} = user) do
stream
=
stream
=
ap_id
ap_id
|>
Activity
.
query_by_actor
()
|>
Activity
.
query_by_actor
()
|>
Activity
.
with_preloaded_object
()
|>
Repo
.
stream
()
|>
Repo
.
stream
()
Repo
.
transaction
(
fn
->
Enum
.
each
(
stream
,
&
delete_activity
(
&1
))
end
,
timeout:
:infinity
)
Repo
.
transaction
(
fn
->
Enum
.
each
(
stream
,
&
delete_activity
(
&1
))
end
,
timeout:
:infinity
)
...
...
test/web/ostatus/ostatus_test.exs
View file @
249b31ff
...
@@ -407,7 +407,7 @@ test "find_make_or_update_user takes an author element and returns an updated us
...
@@ -407,7 +407,7 @@ test "find_make_or_update_user takes an author element and returns an updated us
{
:ok
,
user
}
=
OStatus
.
find_or_make_user
(
uri
)
{
:ok
,
user
}
=
OStatus
.
find_or_make_user
(
uri
)
old_name
=
user
.
name
old_name
=
user
.
name
old_bio
=
user
.
bio
old_bio
=
user
.
bio
change
=
Ecto
.
Changeset
.
change
(
user
,
%{
avatar:
nil
,
bio:
nil
,
old_
name:
nil
})
change
=
Ecto
.
Changeset
.
change
(
user
,
%{
avatar:
nil
,
bio:
nil
,
name:
nil
})
{
:ok
,
user
}
=
Repo
.
update
(
change
)
{
:ok
,
user
}
=
Repo
.
update
(
change
)
refute
user
.
avatar
refute
user
.
avatar
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment