Updated hook to work with Misago 0.4 new API