diff options
-rw-r--r-- | service/pixelated/user_agent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/user_agent.py b/service/pixelated/user_agent.py index d6920dc6..c20a29d8 100644 --- a/service/pixelated/user_agent.py +++ b/service/pixelated/user_agent.py @@ -157,14 +157,14 @@ def mail_tags(mail_id): @app.route('/mail/<mail_id>/read', methods=['POST']) def mark_mail_as_read(mail_id): - mail_service.mark_as_read(mail_id) + mail = mail_service.mark_as_read(mail_id) search_engine.index_mail(mail) return "" @app.route('/mail/<mail_id>/unread', methods=['POST']) def mark_mail_as_unread(mail_id): - mail_service.mark_as_unread(mail_id) + mail = mail_service.mark_as_unread(mail_id) search_engine.index_mail(mail) return "" |