1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 17:44:59 +09:00

GO-677 Exclude interfaces and struct defs

This commit is contained in:
kirillston 2022-12-21 11:57:20 +01:00
parent 5e67fdc4d1
commit f559fde9be
No known key found for this signature in database
GPG key ID: 88218A7F1109754B
12 changed files with 22 additions and 42 deletions

View file

@ -86,7 +86,7 @@ func (l *linkPreview) convertOGToInfo(fetchUrl string, og *opengraph.OpenGraph)
}
if len(og.Image) != 0 {
url, err := uri.URIManager.ValidateAndNormalizeURI(og.Image[0].URL)
url, err := uri.ValidateAndNormalizeURI(og.Image[0].URL)
if err == nil {
i.ImageUrl = url
}
@ -126,7 +126,7 @@ func (l *linkPreview) makeNonHtml(fetchUrl string, resp *http.Response) (i model
} else {
i.Type = model.LinkPreview_Unknown
}
pUrl, e := uri.URIManager.ValidateAndParseURI(fetchUrl)
pUrl, e := uri.ValidateAndParseURI(fetchUrl)
if e == nil {
pUrl.Path = "favicon.ico"
pUrl.RawQuery = ""