We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc9b31a commit 00a96abCopy full SHA for 00a96ab
src/forum.nim
@@ -358,7 +358,11 @@ proc selectHistory(postId: int): seq[PostInfo] =
358
for row in getAllRows(db, historyQuery, $postId):
359
result.add(PostInfo(
360
creation: row[0].parseInt(),
361
- content: row[1].rstToHtml()
+ content:
362
+ try:
363
+ row[1].rstToHtml()
364
+ except EParseError:
365
+ span(class="text-error", "Couldn't render historic post in #$1." % $postId)
366
))
367
368
proc selectLikes(postId: int): seq[User] =
0 commit comments