refactor post links