Fix keep_history and approve problem

When approving a moderation, it would automatically create a new one moderation without updating the object under moderation. The logic for creating a new moderation when keeping the history has been changed so that only a new one is created if the object under moderation has changed