This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user