This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Accept acct starting with @ in account migration (
#11907
)
pull/4/head
Takeshi Umeda
4 years ago
committed by
Eugen Rochko
parent
f497d14b19
commit
b18aea91e3
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
app/models/account_migration.rb
+ 5
- 0
app/models/account_migration.rb
View File
@ -46,6 +46,11 @@ class AccountMigration < ApplicationRecord
created_at
+
COOLDOWN_PERIOD
end
def
acct
=
(
val
)
val
=
val
.
to_s
.
strip
super
(
val
.
start_with?
(
'@'
)
?
val
[
1
..
-
1
]
:
val
)
end
private
def
set_target_account
Write
Preview
Loading…
Cancel
Save