summaryrefslogtreecommitdiff
path: root/fetch/gopher.go
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-03-18 11:36:57 -0600
committernytpu <alex@nytpu.com>2021-03-18 11:36:57 -0600
commit6cf5ca01cf4123b66c75471ce61f93213badf820 (patch)
tree7f83175d543d47bebc29abc14d5dcfed54921e67 /fetch/gopher.go
parent00de991f6bc39c0f46d5124bddedd4e309829817 (diff)
Changed url.URL to string so the json is less bloated
Diffstat (limited to 'fetch/gopher.go')
-rw-r--r--fetch/gopher.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch/gopher.go b/fetch/gopher.go
index 5db1208..79b5a5b 100644
--- a/fetch/gopher.go
+++ b/fetch/gopher.go
@@ -55,7 +55,7 @@ func gopherPage(data *core.FullData, remote *url.URL, title string) error {
var page core.Page
page.Title = title
- page.Link = remote
+ page.Link = remote.String()
h := sha256.New()
if _, err := io.Copy(h, reader); err != nil {
return err