fixed tree again lol

This commit is contained in:
legitnull 2023-04-12 16:45:55 -06:00
parent 025e339d7a
commit 1a79b7beac
2 changed files with 4 additions and 3 deletions

View File

@ -71,6 +71,7 @@ change `main` to your specific repo's branch and you should be good to go!
- [ ] sort by date etc
- [ ] reply to replies
- [ ] set security controls per page
- [ ] auto refresh on post
- [ ] dynamically generated links for all avaiable pages
- [ ] sitemap
- [ ] anti robot shit here

View File

@ -17,7 +17,7 @@ import (
const repoURL = "https://git.tcp.direct/S4D/tcp-wiki.git"
const repoBRANCH = "main"
const localPath = "../data"
const localPath = "data"
var commentsDB *bitcask.Bitcask
@ -27,7 +27,7 @@ func main() {
log.Fatalf("Failed to clone repository: %v", err)
}
commentsDB, err = bitcask.Open("../comments.db")
commentsDB, err = bitcask.Open("comments.db")
if err != nil {
log.Fatalf("Failed to open comments database: %v", err)
}
@ -66,7 +66,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
//...
if r.URL.Path == "../assets/favicon.ico" {
if r.URL.Path == "assets/favicon.ico" {
return
}