replace media in entities with extended_entities