Updated mari secondary publish and thumbnail hooks