Skip to content
Snippets Groups Projects
Commit b18aea91 authored by Takeshi Umeda's avatar Takeshi Umeda Committed by Eugen Rochko
Browse files

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

parent f497d14b
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment