Przeglądaj źródła

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

master^2
Takeshi Umeda 4 lat temu
committed by Eugen Rochko
rodzic
commit
b18aea91e3
1 zmienionych plików z 5 dodań i 0 usunięć
  1. +5
    -0
      app/models/account_migration.rb

+ 5
- 0
app/models/account_migration.rb Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz