From bbe35dcaef1426badf54afc22835f381957e17da Mon Sep 17 00:00:00 2001 From: wajeeha-khalid Date: Mon, 30 Nov 2015 11:50:36 +0500 Subject: [PATCH] MA-1742; return read status for GET thread details --- lms/djangoapps/discussion_api/api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/discussion_api/api.py b/lms/djangoapps/discussion_api/api.py index 46213b5312..639f066a0d 100644 --- a/lms/djangoapps/discussion_api/api.py +++ b/lms/djangoapps/discussion_api/api.py @@ -696,7 +696,11 @@ def get_thread(request, thread_id): thread_id: The id for the thread to retrieve """ - cc_thread, context = _get_thread_and_context(request, thread_id) + cc_thread, context = _get_thread_and_context( + request, + thread_id, + retrieve_kwargs={"user_id": unicode(request.user.id)} + ) serializer = ThreadSerializer(cc_thread, context=context) return serializer.data