Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ necore
# dotenv
.env
.env.*
!.env.example
!.env.example
.idea/
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func main() {
// This will print a hash of "test". U can insert it into sqlite3 manually for an admin account (the group section should be `["admin"]`).
// dao.DebugTestPassword()
//dao.DebugTestPassword()

if err := config.Init(); err != nil {
log.Fatalf("initialize configuration: %v", err)
Expand Down
1 change: 1 addition & 0 deletions service/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func generateStoredFilename(original string) (string, error) {
".webp": true,
".pdf": true,
".txt": true,
".gif": true, //对gif的支持
}

if !allowedExtensions[extension] {
Expand Down