diff options
Diffstat (limited to 'cgi/post.py')
-rw-r--r-- | cgi/post.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cgi/post.py b/cgi/post.py index 264f207..b80b17d 100644 --- a/cgi/post.py +++ b/cgi/post.py @@ -1117,6 +1117,8 @@ def regenerateNews(): def regenerateTrash(): posts = FetchAll("SELECT posts.id AS id, timestamp_formatted, posts.message AS message, boards.name AS board FROM `posts` INNER JOIN `boards` ON boardid = boards.id WHERE IS_DELETED = 2 ORDER BY `timestamp` DESC") + for i in range(len(posts)): + posts[i]["message"] = formatting.remove_html(posts[i]["message"]) template_values = {'posts': posts} page_rendered = renderTemplate('trash.html', template_values) |