const ogImage = "https://uksnackattack.co.uk/media/posts/202204/278409585_530947248382855_6686377564673919654_n_18284682829079387.jpg"; // Replace this dynamically with your media URL
const isVideo = ogImage.endsWith(".mp4"); //...
const ogImage = "https://uksnackattack.co.uk/media/posts/202111/251339695_620101385788053_4543306881382611969_n_17990244535398684.jpg"; // Replace this dynamically with your media URL
const isVideo = ogImage.endsWith(".mp4"); //...