🐛 Trying to fix scraping
This commit is contained in:
parent
6cfa6e8285
commit
eba8977107
@ -19,7 +19,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// We have to set the User-Agent to this so the sites will respond with opengraph data
|
// We have to set the User-Agent to this so the sites will respond with opengraph data
|
||||||
const ScrapLinkDefaultUA = "FacebookExternalHit/1.1"
|
const ScrapLinkDefaultUA = "facebookexternalhit/1.1"
|
||||||
|
|
||||||
func GetLinkMetaFromCache(target string) (models.LinkMeta, error) {
|
func GetLinkMetaFromCache(target string) (models.LinkMeta, error) {
|
||||||
hash := md5.Sum([]byte(target))
|
hash := md5.Sum([]byte(target))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user