Accept acct starting with @ in account migration (#11907)
parent
45fe523a18
commit
9267e4310d
|
@ -46,6 +46,11 @@ class AccountMigration < ApplicationRecord
|
||||||
created_at + COOLDOWN_PERIOD
|
created_at + COOLDOWN_PERIOD
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def acct=(val)
|
||||||
|
val = val.to_s.strip
|
||||||
|
super(val.start_with?('@') ? val[1..-1] : val)
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def set_target_account
|
def set_target_account
|
||||||
|
|
Loading…
Reference in New Issue