Skip to content

Commit f90c442

Browse files
fix: unpin thread api calling returning 500 error (#36567)
1 parent 6972a6a commit f90c442

File tree

1 file changed

+1
-1
lines changed
  • openedx/core/djangoapps/django_comment_common/comment_client

1 file changed

+1
-1
lines changed

openedx/core/djangoapps/django_comment_common/comment_client/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def pin(self, user, thread_id, course_id=None):
266266
)
267267
self._update_from_response(response)
268268

269-
def un_pin(self, user, thread_id, course_id):
269+
def un_pin(self, user, thread_id, course_id=None):
270270
course_key = utils.get_course_key(self.attributes.get("course_id") or course_id)
271271
if is_forum_v2_enabled(course_key):
272272
response = forum_api.unpin_thread(

0 commit comments

Comments
 (0)