feat: make server options a struct (#615)
This commit is contained in:
1 parent
73b8d2ee7e
commit
0e7abaa7fb
13 files changed
+159
-90
No files matched your search
+1
-1
@@ -56,7 +56,7 @@ var sharePostHandler = withPermShare(func(w http.ResponseWriter, r *http.Request
|
||||
var err error
|
||||
s, err = d.store.Share.GetPermanent(r.URL.Path, d.user.ID)
|
||||
if err == nil {
|
||||
w.Write([]byte(d.settings.BaseURL + "/share/" + s.Hash))
|
||||
w.Write([]byte(d.server.BaseURL + "/share/" + s.Hash))
|
||||
return 0, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user