consolidate "not comment link?" checks into getCommentLinks

fixes #1324