Validate duplicate links when editing posts