diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-29 05:03:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-29 05:03:19 +0200 |
commit | 163ed91af381d86bb6c52546c983effa4c9a18c3 (patch) | |
tree | 7de16b4e51f122c292819b323deb2cca99b7d337 /app/models/account_migration.rb | |
parent | b0cda7a504655f6ced33802af67cabb6f3e46e19 (diff) |
Add (back) option to set redirect notice on account without moving followers (#11994)
Fix #11913
Diffstat (limited to 'app/models/account_migration.rb')
-rw-r--r-- | app/models/account_migration.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/account_migration.rb b/app/models/account_migration.rb index e2c2cb085..681b5b2cd 100644 --- a/app/models/account_migration.rb +++ b/app/models/account_migration.rb @@ -47,8 +47,7 @@ class AccountMigration < ApplicationRecord end def acct=(val) - val = val.to_s.strip - super(val.start_with?('@') ? val[1..-1] : val) + super(val.to_s.strip.gsub(/\A@/, '')) end private |