A man who threatened to burn down mosques in a video posted on TikTok during the period of rioting and disorder in the summer was jailed for 20 months.