diff --git a/webinterface.py b/webinterface.py
index 1590aab5b..7ca718794 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -5134,7 +5134,7 @@ def individualPostAsHtml(allowDownloads: bool,
contentStr = ''
if postJsonObject['object'].get('summary'):
contentStr += \
- '' + postJsonObject['object']['summary'] + '\n '
+ '' + str(postJsonObject['object']['summary']) + '\n '
if isModerationPost:
containerClass = 'container report'
# get the content warning text