Add: #374 拡張ドメインブロックのインポート・エクスポートについてkmyblue独自の項目のサポート (#520)

* Fix: #374 拡張ドメインブロックのインポート・エクスポートについてkmyblue独自の項目が反映されない問題

* Fix test
This commit is contained in:
KMY(雪あすか) 2024-02-05 09:52:37 +09:00 committed by GitHub
parent 64a149b338
commit 4e1e675939
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 70 additions and 10 deletions

View file

@ -34,7 +34,9 @@ class Admin::Import
field&.strip
when '#severity'
field&.strip&.to_sym
when '#reject_media', '#reject_favourite', '#reject_reply', '#reject_reports', '#obfuscate'
when '#reject_media', '#reject_reports', '#obfuscate', '#reject_favourite', '#reject_reply', '#reject_send_sensitive',
'#reject_hashtag', '#reject_straight_follow', '#reject_new_follow', '#hidden', '#detect_invalid_subscription',
'#reject_reply_exclude_followers', '#reject_friend', '#block_trends'
ActiveModel::Type::Boolean.new.cast(field)
else
field