def METHOD_NAME(channel):
    channel_nodes = ContentNode.objects.filter(tree_id=channel.main_tree.tree_id)
    for node in channel_nodes:
        node.published = True
        node.changed = False
        node.save()
    sync_contentnode_and_channel_tsvectors(channel_id=channel.id)