Accept acct starting with @ in account migration (#11907)

master
Takeshi Umeda 5 years ago committed by Eugen Rochko
parent f497d14b19
commit b18aea91e3
  1. 5
      app/models/account_migration.rb

@ -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

Loading…
Cancel
Save