only edit post if link is set