diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-08 21:00:49 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-05-08 21:00:49 +0200 |
commit | 22080786df76ec49387984cf7233c51b97f1812d (patch) | |
tree | b50a1dfa1faa2fb874bf88674522d5ce7d5a7d54 /app/models | |
parent | d7eae4229c3a0b5dd783888953004cfd9777cffd (diff) | |
parent | f17e73da09e6c63665aee4e9731df7808094960e (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/admin/account_action.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/admin/account_action.rb b/app/models/admin/account_action.rb index 850ea6d82..237975880 100644 --- a/app/models/admin/account_action.rb +++ b/app/models/admin/account_action.rb @@ -92,6 +92,10 @@ class Admin::AccountAction text: text_for_warning, status_ids: status_ids ) + + # A log entry is only interesting if the warning contains + # custom text from someone. Otherwise it's just noise. + log_action(:create, @warning) if @warning.text.present? && type == 'none' end def process_reports! |