This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix setting up fields of a previously suspended account (
#10222
)
Fix
#10177
for real
master
ThibG
5 years ago
committed by
Eugen Rochko
parent
d36fcb54c4
commit
3f4a6d44fe
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/models/account.rb
+ 1
- 0
app/models/account.rb
View File
@ -266,6 +266,7 @@ class Account < ApplicationRecord
return
if
fields
.
size
>
=
DEFAULT_FIELDS_SIZE
tmp
=
self
[
:fields
]
||
[
]
tmp
=
[
]
if
tmp
.
is_a?
(
Hash
)
(
DEFAULT_FIELDS_SIZE
-
tmp
.
size
)
.
times
do
tmp
<<
{
name
:
''
,
value
:
''
}
Write
Preview
Loading…
Cancel
Save