diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-08 21:45:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 21:45:59 +0200 |
commit | e8b8ac8908c6623f0fd7ffccc7de3882a773b72f (patch) | |
tree | 14c554ab68d0f1ab29f2862afb2f306da2127323 /app/models | |
parent | d7eae4229c3a0b5dd783888953004cfd9777cffd (diff) | |
parent | dc1685c1e65cd6a2c176fe4a50a92fbc468f3b75 (diff) |
Merge pull request #1766 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
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! |