def METHOD_NAME(self, commentable_id):
    self.send_json_response({
        "collection": [
            thread
            for thread in self.server.config.get('threads', {}).values()
            if thread.get('commentable_id') == commentable_id
        ],
        "page": 1,
        "num_pages": 1,
    })