+22
-2
appview/repo/repo.go
+22
-2
appview/repo/repo.go
···blobURL := fmt.Sprintf("%s://%s/%s/%s/raw/%s/%s", protocol, f.Knot, f.OwnerDid(), f.Repo.Name, ref, filePath)
···blobURL := fmt.Sprintf("%s://%s/%s/%s/raw/%s/%s", protocol, f.Knot, f.OwnerDid(), f.Repo.Name, ref, filePath)
+12
-7
knotserver/routes.go
+12
-7
knotserver/routes.go
···writeError(w, "only image, video, and text files can be accessed directly", http.StatusForbidden)
···writeError(w, "only image, video, and text files can be accessed directly", http.StatusForbidden)