Ver a proveniência

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

master^2
Takeshi Umeda há 4 anos
committed by Eugen Rochko
ascendente
cometimento
b18aea91e3
1 ficheiros alterados com 5 adições e 0 eliminações
  1. +5
    -0
      app/models/account_migration.rb

+ 5
- 0
app/models/account_migration.rb Ver ficheiro

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


Carregando…
Cancelar
Guardar