Skip to content

Commit 780ecda

Browse files
noellabohiyuki2578
authored andcommitted
Accept acct starting with @ in account migration (mastodon#11907)
1 parent 7c9d42c commit 780ecda

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/models/account_migration.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ def cooldown_at
4646
created_at + COOLDOWN_PERIOD
4747
end
4848

49+
def acct=(val)
50+
val = val.to_s.strip
51+
super(val.start_with?('@') ? val[1..-1] : val)
52+
end
53+
4954
private
5055

5156
def set_target_account

0 commit comments

Comments
 (0)