about summary refs log tree commit diff stats
path: root/svc/post.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-19 19:39:08 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-19 19:39:08 -0400
commit37142b5d78d2eace9fef79d20793b0d42965dae5 (patch)
tree3c0c93fc5daba9916cf00d9dfce1007927694f8f /svc/post.go
parent75e9f55daa3946ae3b51cbcf3204d5131e420a84 (diff)
downloadgetwtxt-37142b5d78d2eace9fef79d20793b0d42965dae5.tar.gz
updated internal functionality for registry v0.4.0 v0.4.4
Diffstat (limited to 'svc/post.go')
-rw-r--r--svc/post.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/svc/post.go b/svc/post.go
index 9baafbe..5908673 100644
--- a/svc/post.go
+++ b/svc/post.go
@@ -28,7 +28,7 @@ func apiPostUser(w http.ResponseWriter, r *http.Request) {
 
 	uip := getIPFromCtx(r.Context())
 
-	out, remoteRegistry, err := registry.GetTwtxt(urls, twtxtCache.Client)
+	out, remoteRegistry, err := registry.GetTwtxt(urls, twtxtCache.HTTPClient)
 	if err != nil {
 		errHTTP(w, r, fmt.Errorf("error fetching twtxt Data: %v", err.Error()), http.StatusBadRequest)
 		return
@@ -52,7 +52,7 @@ func apiPostUser(w http.ResponseWriter, r *http.Request) {
 		statuses, err := registry.ParseUserTwtxt(out, nick, urls)
 		errLog("Error Parsing User Data: ", err)
 
-		if err := twtxtCache.AddUser(nick, urls, "", uip, statuses); err != nil {
+		if err := twtxtCache.AddUser(nick, urls, uip, statuses); err != nil {
 			errHTTP(w, r, fmt.Errorf("error adding user to cache: %v", err.Error()), http.StatusBadRequest)
 			break
 		}