The Liberal government plans to create a new digital safety regulator to compel social-media platforms to take action against online harms and remove damaging content including child sex-abuse material and intimate images shared without consent under penalty of millions of dollars in fines.