summaryrefslogtreecommitdiff
path: root/bucky/app/bucky.js
diff options
context:
space:
mode:
Diffstat (limited to 'bucky/app/bucky.js')
-rw-r--r--bucky/app/bucky.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js
index a16fe37..3fbdddc 100644
--- a/bucky/app/bucky.js
+++ b/bucky/app/bucky.js
@@ -828,7 +828,10 @@ var bucky = (module.exports = {
markMessageUnread: function (req, res, next) {
if (res.message.get("unread")) {
res.message.set("unread", 0);
- res.message.save().then(() => next());
+ res.message.save().then(() => {
+ res.message.set("body", res.message.get("body").toString());
+ next();
+ });
} else {
next();
}