Truncate logged fields

This commit is contained in:
RumovZ 2022-04-27 18:42:34 +02:00
parent 382d7417a8
commit b0d97454a8

View file

@ -70,9 +70,11 @@ impl Note {
.into_fields()
.into_iter()
.map(|field| {
strip_html_preserving_media_filenames(&field)
let mut reduced = strip_html_preserving_media_filenames(&field)
.get_owned()
.unwrap_or(field)
.unwrap_or(field);
reduced.truncate(80);
reduced
})
.collect(),
}