This website works better with JavaScript.
首頁
探索
說明
登入
abunchtell
/
mastodon
關註
1
收藏
0
複製
0
程式碼
問題管理
0
Activity
瀏覽代碼
Accept acct starting with @ in account migration (
#11907
)
master^2
Takeshi Umeda
4 年之前
committed by
Eugen Rochko
父節點
f497d14b19
當前提交
b18aea91e3
共有
1 個文件被更改
,包括
5 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
app/models/account_migration.rb
+ 5
- 0
app/models/account_migration.rb
查看文件
@@ -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
Write
Preview
Loading…
取消
儲存