diff --git a/.gitignore b/.gitignore index a6b26e4..0e132ae 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ necore # dotenv .env .env.* -!.env.example \ No newline at end of file +!.env.example +.idea/ \ No newline at end of file diff --git a/main.go b/main.go index 82bb15c..59bf4ca 100644 --- a/main.go +++ b/main.go @@ -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) diff --git a/service/article.go b/service/article.go index 7a869d0..e7f4645 100644 --- a/service/article.go +++ b/service/article.go @@ -31,6 +31,7 @@ func generateStoredFilename(original string) (string, error) { ".webp": true, ".pdf": true, ".txt": true, + ".gif": true, //对gif的支持 } if !allowedExtensions[extension] {