Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
abunchtell
/
mastodon
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Toiminta
Selaa lähdekoodia
Accept acct starting with @ in account migration (
#11907
)
master^2
Takeshi Umeda
4 vuotta sitten
committed by
Eugen Rochko
vanhempi
f497d14b19
commit
b18aea91e3
1 muutettua tiedostoa
jossa
5 lisäystä
ja
0 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
app/models/account_migration.rb
+ 5
- 0
app/models/account_migration.rb
Näytä tiedosto
@@ -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
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna