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:
parent
5e67fdc4d1
commit
f559fde9be
12 changed files with 22 additions and 42 deletions
|
@ -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 = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue