Instagram users in Russia were warned that they will be blocked starting at midnight — after the platform changed its hate-speech policy to allow Ukrainians to share messages such as “Death to the Russian invaders.”

A Russian communications regulator told users in an e-mail to move their photos and videos from Instagram before they are no longer able to access them, while suggesting they switch to the country’s own “competitive internet platforms.