fix(admin): keep account photos out of the media library
Test / test (push) Successful in 8m35s

This commit is contained in:
2026-09-29 23:47:27 +02:00
parent ba6416623f
commit 81d22b24a7
8 changed files with 233 additions and 15 deletions
+7
View File
@@ -36,6 +36,13 @@ var safeSlugRe = regexp.MustCompile(`[^a-zA-Z0-9._-]`)
// MediaDirName is the uploads directory inside the content directory.
const MediaDirName = "media"
// AvatarDirName is the directory inside the media directory that carries
// the account profile photos. The media library lists only the files of
// the media directory itself, so an avatar there never appears as a tile;
// the URL keeps the /media/ prefix, so the public route, the delete path
// and the backups treat it like any other image.
const AvatarDirName = "avatars"
// Store manages posts on disk in a flat or language-subdivided
// directory.
type Store struct {