fix: remove dead ResolveGoogleNewsURL reference from link_preview_service
This commit is contained in:
parent
6860916792
commit
9879064824
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue