MA-1742; return read status for GET thread details

This commit is contained in:
wajeeha-khalid
2015-11-30 11:50:36 +05:00
parent a066856824
commit bbe35dcaef

View File

@@ -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