diff --git a/events.py b/events.py
index bdb5e09..7725f14 100644
--- a/events.py
+++ b/events.py
@@ -66,7 +66,7 @@ def new_post(data):
post = data["post"]
post = bleach.clean(post.strip())
post = post.replace("\n", "
")
- message = tools.handle_img(message)
+ post = tools.handle_img(post)
data["post"] = [post]
db.insert_quest_post(room, post, int(time.time()))
@@ -87,7 +87,7 @@ def update_post(data):
post = data["post"]
post = post.strip().replace("
", "
")
- message = tools.handle_img(message)
+ post = tools.handle_img(post)
data["post"] = post
post_id = data["post_id"]
diff --git a/templates/quest.html b/templates/quest.html
index 22924bc..dfb44ce 100644
--- a/templates/quest.html
+++ b/templates/quest.html
@@ -75,6 +75,24 @@
document.getElementById('savePost-' + post_id).style.display = 'none';
}
+
{% endif %}
{% endblock %}
{% block header %}
@@ -86,29 +104,48 @@