fix: remove dead ResolveGoogleNewsURL reference from link_preview_service

This commit is contained in:
Patrick Britton 2026-02-09 08:06:47 -06:00
parent 6860916792
commit 9879064824

View file

@ -98,14 +98,6 @@ func (s *LinkPreviewService) FetchPreview(ctx context.Context, rawURL string, tr
return nil, fmt.Errorf("empty URL")
}
// Resolve Google News URLs to the actual source article
if strings.Contains(rawURL, "news.google.com") {
resolved := ResolveGoogleNewsURL(rawURL)
if resolved != rawURL {
rawURL = resolved
}
}
parsed, err := url.Parse(rawURL)
if err != nil {
return nil, fmt.Errorf("invalid URL: %w", err)