fix limit total number of preview links

Old method, if follows exceeded limit, then extension would throw an
error as filtered doesn’t exist in the else clause