Worried museum staff in Leeds discovered their jobs could be axed via a Facebook post, a councillor has said.