This censorship is in a capital of a western power. We can condemn Hamas AND condemn failing democratic society by not upholding basic freedoms that built it.
However, state capabilities and surveillance capabilities are not sufficient in the west for the second part of that. So the devil's compromise is to restrict the former (because people who would be motivated to issue death threats or commit violent actions are frequently encouraged by the former actions of free speech).