Commit Diff


commit - b6986e8e8f3ca2b9529e35cafe2340a4391376e8
commit + 96b56ad384e99eb42c0c18ba1321d3c9a0d74c1c
blob - d52ec478bf7c67e3600af7ad3fec03dd03c53cff
blob + 249ed4e6f9646bc0a37d147162aa3379ae2360e8
--- webfinger.go
+++ webfinger.go
@@ -47,25 +47,3 @@ func fingerAll(alist []*mail.Address) ([]Actor, error)
 	}
 	return actors, nil
 }
-
-func UserWebFingerFile(username string) (string, error) {
-	u, err := user.Lookup(username)
-	if err != nil {
-		return "", err
-	}
-	if u.HomeDir == "" {
-		return "", fmt.Errorf("no home directory")
-	}
-
-	paths := []string{
-		path.Join(u.HomeDir, "lib/webfinger"),                 // Plan 9
-		path.Join(u.HomeDir, ".config/webfinger"),             // Unix-like
-		path.Join(u.HomeDir, "Application Support/webfinger"), // macOS
-	}
-	for i := range paths {
-		if _, err := os.Stat(paths[i]); err == nil {
-			return paths[i], nil
-		}
-	}
-	return "", fmt.Errorf("no webfinger file")
-}