Commit 115c2ced by wajeeha-khalid Committed by GitHub

Merge pull request #12798 from edx/jia/MA-2531

MA-2531: fix unread_comment_count for 'read' patch
parents 5b4869cf d4b5b076
......@@ -782,7 +782,9 @@ def _handle_read_field(api_content, form_value, user, cc_content):
"""
if form_value and not cc_content['read']:
user.read(cc_content)
api_content["unread_comment_count"] -= 1
# When a thread is marked as read, all of its responses and comments
# are also marked as read.
api_content["unread_comment_count"] = 0
def create_thread(request, thread_data):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment