1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-28 23:08:25 +09:00

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

This commit is contained in:
Takeshi Umeda 2019-09-21 16:11:38 +09:00 committed by Eugen Rochko
parent f497d14b19
commit b18aea91e3

View File

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