path fixing

This commit is contained in:
Dominic Ferrando
2025-04-24 22:45:23 -04:00
parent 9cdee244f8
commit 53dc923119
3 changed files with 32 additions and 11 deletions
+4 -2
View File
@@ -22,8 +22,10 @@ import (
const FILE_MEM_LIMIT int64 = 10 << 20
const MAX_REQUEST_BYTES int64 = FILE_MEM_LIMIT + (1 << 20)
const POST_MEDIA_FULL_PATH = "web/static/media/posts/full"
const POST_MEDIA_THUMB_PATH = "web/static/media/posts/thumb"
var (
POST_MEDIA_FULL_PATH = "web/static/media/posts/full"
POST_MEDIA_THUMB_PATH = "web/static/media/posts/thumb"
)
const MAX_THREAD_COUNT = 50
+5
View File
@@ -12,6 +12,11 @@ import (
const DevMode = false
var (
STATIC_PATH = "web/static"
DATABASE_PATH = "internal/database/comfychan.db"
)
func FormatBytes(bytes int64) string {
const (
KB = 1 << 10 // 1024