1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 05:30:38 +02:00

Handle post rendering errors to avoid bricking (#3061)

Whether it's due to corrupted content, missing tags, caching issues, or other assorted reasons, post content can't be rendered. Currently, this results in an exception that crashes the entire forum and is hard to debug. Instead, we should log the error and show an indicator message that rendering has failed.

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
Alexander Skvortsov
2021-10-14 14:30:18 -04:00
committed by GitHub
parent 82d67919bb
commit 60f0ef0bd5
6 changed files with 116 additions and 1 deletions

View File

@@ -185,6 +185,10 @@
}
}
.Post--renderFailed {
background-color: @control-danger-bg;
}
.Post--hidden {
.Post-header, .Post-header a, .PostUser h3, .PostUser h3 a {
color: @muted-more-color;