mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 05:55:19 +01:00
Fix account warnings not being recorded in audit log (#18338)
* Fix account warnings not being recorded in audit log Fixes #18334 * Only record warnings if they are not associated to another action
This commit is contained in:
parent
9250578e6b
commit
a53003c6f1
@ -92,6 +92,10 @@ class Admin::AccountAction
|
|||||||
text: text_for_warning,
|
text: text_for_warning,
|
||||||
status_ids: status_ids
|
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
|
end
|
||||||
|
|
||||||
def process_reports!
|
def process_reports!
|
||||||
|
Loading…
Reference in New Issue
Block a user