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:
committed by
GitHub
parent
82d67919bb
commit
60f0ef0bd5
@@ -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;
|
||||
|
Reference in New Issue
Block a user