Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
abunchtell
/
mastodon
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Atividade
Ver código fonte
Accept acct starting with @ in account migration (
#11907
)
master^2
Takeshi Umeda
4 anos atrás
committed by
Eugen Rochko
pai
f497d14b19
commit
b18aea91e3
1 arquivos alterados
com
5 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+5
-0
app/models/account_migration.rb
+ 5
- 0
app/models/account_migration.rb
Ver arquivo
@@ -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
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar