Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
ae9e5ac6
Commit
ae9e5ac6
authored
6 years ago
by
ThibG
Committed by
Eugen Rochko
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix suspended account's fields being set as empty dict instead of list (#10178)
Fixes #10177
parent
7034bb65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/models/account.rb
+1
-0
app/models/account.rb
app/services/suspend_account_service.rb
+1
-1
app/services/suspend_account_service.rb
with
2 additions
and
1 deletion
+2
-1
app/models/account.rb
+
1
-
0
View file @
ae9e5ac6
...
...
@@ -240,6 +240,7 @@ class Account < ApplicationRecord
def
fields_attributes
=
(
attributes
)
fields
=
[]
old_fields
=
self
[
:fields
]
||
[]
old_fields
=
[]
if
old_fields
.
is_a?
(
Hash
)
if
attributes
.
is_a?
(
Hash
)
attributes
.
each_value
do
|
attr
|
...
...
This diff is collapsed.
Click to expand it.
app/services/suspend_account_service.rb
+
1
-
1
View file @
ae9e5ac6
...
...
@@ -84,7 +84,7 @@ class SuspendAccountService < BaseService
@account
.
locked
=
false
@account
.
display_name
=
''
@account
.
note
=
''
@account
.
fields
=
{}
@account
.
fields
=
[]
@account
.
statuses_count
=
0
@account
.
followers_count
=
0
@account
.
following_count
=
0
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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