From fdaaf6c42bff0f74281585f932a941b41b5ed662 Mon Sep 17 00:00:00 2001 From: awencat <2364355319@qq.com> Date: Sun, 12 Jul 2026 13:29:51 +0800 Subject: [PATCH 1/4] allow for git fix #4 --- .idea/.gitignore | 10 ++++++++++ .idea/dataSources.xml | 12 ++++++++++++ .idea/go.imports.xml | 10 ++++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/necore.iml | 10 ++++++++++ .idea/vcs.xml | 6 ++++++ main.go | 2 +- service/article.go | 1 + 9 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/dataSources.xml create mode 100644 .idea/go.imports.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/necore.iml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..7d05e99 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# 依赖于环境的 Maven 主目录路径 +/mavenHomeManager.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..d1d90ab --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,12 @@ + + + + + sqlite.xerial + true + org.sqlite.JDBC + jdbc:sqlite:$PROJECT_DIR$/data/user.sqlite3 + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/.idea/go.imports.xml b/.idea/go.imports.xml new file mode 100644 index 0000000..644cdf0 --- /dev/null +++ b/.idea/go.imports.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..f03c948 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..35aaf5f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/necore.iml b/.idea/necore.iml new file mode 100644 index 0000000..25ed3f6 --- /dev/null +++ b/.idea/necore.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ 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] { From a2c107a1d9c58519030dac849cc74146302513ab Mon Sep 17 00:00:00 2001 From: awencat <2364355319@qq.com> Date: Mon, 13 Jul 2026 23:16:49 +0800 Subject: [PATCH 2/4] enhancement by awencat 1 #9 --- .idea/dataSources.xml | 7 +++++++ .idea/db-forest-config.xml | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .idea/db-forest-config.xml diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index d1d90ab..efe8d23 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -8,5 +8,12 @@ jdbc:sqlite:$PROJECT_DIR$/data/user.sqlite3 $ProjectFileDir$ + + sqlite.xerial + true + org.sqlite.JDBC + jdbc:sqlite:$PROJECT_DIR$/data/bot_connection.sqlite3 + $ProjectFileDir$ + \ No newline at end of file diff --git a/.idea/db-forest-config.xml b/.idea/db-forest-config.xml new file mode 100644 index 0000000..a0005f1 --- /dev/null +++ b/.idea/db-forest-config.xml @@ -0,0 +1,10 @@ + + + + . + ---------------------------------------- + 1:0:5d47aad1-5a7d-4f96-b572-b985303f5818 + 2:0:d11afa88-1e1f-4198-84e8-7048e2d43847 + . + + \ No newline at end of file From 5f8ae9be65722e0facd6425d5d9edb5edd49e8a6 Mon Sep 17 00:00:00 2001 From: awencat <2364355319@qq.com> Date: Fri, 17 Jul 2026 21:21:50 +0800 Subject: [PATCH 3/4] fix: add .idea to gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 1026f5fdd625d35f85036d36b40338479abc148c Mon Sep 17 00:00:00 2001 From: awencat <2364355319@qq.com> Date: Fri, 17 Jul 2026 21:22:04 +0800 Subject: [PATCH 4/4] fix: add .idea to gitignore --- .idea/.gitignore | 10 ---------- .idea/dataSources.xml | 19 ------------------- .idea/db-forest-config.xml | 10 ---------- .idea/go.imports.xml | 10 ---------- .idea/misc.xml | 6 ------ .idea/modules.xml | 8 -------- .idea/necore.iml | 10 ---------- .idea/vcs.xml | 6 ------ 8 files changed, 79 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/dataSources.xml delete mode 100644 .idea/db-forest-config.xml delete mode 100644 .idea/go.imports.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/necore.iml delete mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 7d05e99..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# 默认忽略的文件 -/shelf/ -/workspace.xml -# 基于编辑器的 HTTP 客户端请求 -/httpRequests/ -# 依赖于环境的 Maven 主目录路径 -/mavenHomeManager.xml -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml deleted file mode 100644 index efe8d23..0000000 --- a/.idea/dataSources.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - sqlite.xerial - true - org.sqlite.JDBC - jdbc:sqlite:$PROJECT_DIR$/data/user.sqlite3 - $ProjectFileDir$ - - - sqlite.xerial - true - org.sqlite.JDBC - jdbc:sqlite:$PROJECT_DIR$/data/bot_connection.sqlite3 - $ProjectFileDir$ - - - \ No newline at end of file diff --git a/.idea/db-forest-config.xml b/.idea/db-forest-config.xml deleted file mode 100644 index a0005f1..0000000 --- a/.idea/db-forest-config.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - . - ---------------------------------------- - 1:0:5d47aad1-5a7d-4f96-b572-b985303f5818 - 2:0:d11afa88-1e1f-4198-84e8-7048e2d43847 - . - - \ No newline at end of file diff --git a/.idea/go.imports.xml b/.idea/go.imports.xml deleted file mode 100644 index 644cdf0..0000000 --- a/.idea/go.imports.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index f03c948..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 35aaf5f..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/necore.iml b/.idea/necore.iml deleted file mode 100644 index 25ed3f6..0000000 --- a/.idea/necore.iml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file