Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-05-08 21:00:49 +02:00
138 changed files with 4394 additions and 1134 deletions

View File

@@ -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!