Add (back) option to set redirect notice on account without moving followers (#11994)
Fix #11913
This commit is contained in:
parent
b0cda7a504
commit
163ed91af3
9 changed files with 144 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue