LinkinStars
869b040e92
fix(auth): enhance admin user cache management and add status checks for email verification and suspension
2026-02-06 20:31:54 +08:00
LinkinStars
92994b4997
fix: add IsAdminModerator field to request structs and implement visibility checks for timeline objects
2026-02-06 15:32:45 +08:00
kumfo
fca80abbaf
fix: correct variable name in JSON unmarshal for site general information
2026-02-03 11:07:48 +08:00
LinkinStars
a6bfd402b6
fix: update AI provider configuration ID in default settings
Build Latest Docker Image For Release / build (push) Has been cancelled
Lint / Lint (ubuntu-latest) (push) Has been cancelled
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
2026-01-29 17:02:43 +08:00
LinkinStars
5ec9d8b623
fix: add AI provider configuration to initialization data
2026-01-29 17:02:43 +08:00
LinkinStars
90022ce039
fix: integrate API key authentication into existing services and routes
2026-01-29 16:50:25 +08:00
LinkinStars
b522a168e3
feat: add GetConfigByKeyFromDB method to retrieve config directly
2026-01-29 11:15:38 +08:00
LinkinStars
4fd96675f3
fix: improve Brotli compression handling and validate user input in vote status
2026-01-28 12:11:28 +08:00
LinkinStars
a5edc4fc01
feat: add advanced site settings and related API endpoints
2026-01-28 11:15:40 +08:00
LinkinStars
2a99d234ea
Merge remote-tracking branch 'origin/feat/1.8.0/new-cp-fe' into test
...
# Conflicts:
# docs/docs.go
# docs/swagger.json
# docs/swagger.yaml
# internal/base/constant/site_type.go
# internal/controller/ai_controller.go
# internal/controller/siteinfo_controller.go
# internal/migrations/migrations.go
# internal/schema/siteinfo_schema.go
# internal/service/mock/siteinfo_repo_mock.go
2026-01-28 11:13:44 +08:00
LinkinStars
8b61cad014
fix(lint): resolve the lint issue
2026-01-27 17:49:29 +08:00
LinkinStars
9ea13af860
feat(revision): enhance revision management with object status handling
2026-01-27 17:38:47 +08:00
LinkinStars
f403eadb2c
feat: add AI conversation management endpoints and update related schemas
2026-01-23 17:28:19 +08:00
LinkinStars
94c030829d
fix: correct loop iteration in AI conversation rounds
2026-01-23 17:25:46 +08:00
LinkinStars
ce5aadf30d
feat: add AI configuration support with related controllers and services
2026-01-23 17:25:42 +08:00
LinkinStars
9fbf9e4ff4
fix: correct loop iteration in AI conversation rounds
2026-01-23 17:22:13 +08:00
LinkinStars
c1549d2909
feat: add AI configuration support with related controllers and services
2026-01-23 17:09:05 +08:00
kumfo
73cfbace70
feat(menu): deprecate default_avatar and gravatar_base_url in SiteInterfaceReq schema
2026-01-22 12:25:37 +08:00
kumfo
18b76f3e23
feat(siteinfo): add site_security to response structure and update related schemas
2026-01-22 12:25:37 +08:00
kumfo
6369056914
feat(siteinfo): fix GetSiteTag method to correctly assign response from siteInfoCommonService
2026-01-22 12:25:37 +08:00
kumfo
128c44f5a3
feat(menu): update schema to remove deprecated min_tags and add MinimumTags to SiteQuestionsReq
2026-01-22 12:25:37 +08:00
kumfo
3264fdd1d9
feat(siteinfo): refactor site legal and security settings to use new policies and security endpoints
2026-01-22 12:25:37 +08:00
kumfo
c2a0bee7dc
feat(siteinfo): add users settings endpoint and update interface settings structure
2026-01-22 12:25:37 +08:00
kumfo
f05f1eb80d
feat(menu): update admin menu settings to include questions, tags, and advanced options
2026-01-22 12:25:32 +08:00
LinkinStars
6b834c745a
Merge remote-tracking branch 'origin/dev' into test
2026-01-14 11:31:17 +08:00
LinkinStars
5be6ec9e71
docs(lic): add MIT license file and clean up init function in install_main.go
2026-01-14 11:30:50 +08:00
maishivamhoo123
3d5465334c
fix: added the init fuction in install_main.go
2026-01-14 11:26:00 +08:00
ferhat elmas
5ff6106d37
fix: address comments and add a test
...
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2026-01-14 11:22:53 +08:00
ferhat elmas
26d868b123
refactor(queue): improve queues
...
* fix race condition for registering handler
* add close method
* use generics to reduce duplication
* rename packages to drop underscore for go convention
* rename interface to drop stutter with package name
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2026-01-14 11:22:53 +08:00
LinkinStars
d5c07f18ad
Merge remote-tracking branch 'origin/dev' into test
2025-12-29 14:45:52 +08:00
Yusuke Tanaka
a1f0b0963b
fix: update migration version from v1.7.1 to v1.7.2
2025-12-29 10:28:27 +08:00
Yusuke Tanaka
57f31ec7eb
fix: expand avatar column length from 1024 to 2048
...
The avatar column was too short to store long URLs from external OAuth
providers. When users log in via connector-google plugin, the Google
profile picture URL can exceed 1024 characters, causing a database error:
Error 1406 (22001): Data too long for column 'avatar' at row 1
This change expands the avatar column from VARCHAR(1024) to VARCHAR(2048).
Note: While URLs can technically exceed 2048 characters per specification,
2048 is the practical limit supported by most browsers and services.
URLs longer than 2048 characters are extremely rare in real-world usage.
2025-12-29 10:28:27 +08:00
Douglas Cortez
c8908b7b34
fix(review): notifications from the specific external system will take precedence
2025-12-29 10:27:00 +08:00
Douglas Cortez
42f8947e7c
fix(notification): use SSO provider for external_id lookup in notifications
2025-12-29 10:27:00 +08:00
liqiang46
61d9bf34d3
修复最佳评论越权问题
...
在AcceptAnswer方法中添加了安全检查,确保要设置为最佳答案的回答确实属于该问题。
这可以防止攻击者将其他问题的回答设置为当前问题的最佳答案。
安全问题:越权设置最佳评论
修复方法:验证acceptedAnswerInfo.QuestionID == req.QuestionID
2025-12-29 10:24:01 +08:00
LinkinStars
462931a309
Merge remote-tracking branch 'origin/feat/1.7.2/layout' into test
2025-12-22 15:30:07 +08:00
shuai
b5ae2d0351
fix: admin/themes add layout config
2025-12-19 14:09:38 +08:00
LinkinStars
d3a29e7ad9
feat(theme): add layout options for site theme configuration
2025-12-19 12:23:55 +08:00
LinkinStars
e35b955159
fix(lang): enhance language retrieval from gin context
2025-12-15 12:34:42 +08:00
LinkinStars
fbb877ab11
fix(translator): enhance error reporting for invalid translator YAML files
2025-12-11 14:23:17 +08:00
liruohrh
d468e2ba8d
feat: add env for glob load template files by gin debug render
2025-12-11 10:49:32 +08:00
liruohrh
740ac61bb2
fix: get right lang
2025-12-08 20:06:18 +08:00
Krypt0n123
6660cdf6e2
fix: add missing revision data for default content ( fixes #1436 )
2025-12-08 20:04:53 +08:00
ferhat elmas
670aa32325
refactor(lint): add new linters and fix their issues
...
* gocritic
* misspell
* modernize (aside, bumping go would be nice)
* testifylint
* unconvert
* unparam
* whitespace
related to #1432
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-12-05 10:45:55 +08:00
LinkinStars
5e705a124b
refactor(lint): improve error handling and code consistency across multiple files
2025-12-01 12:27:25 +08:00
LinkinStars
9540ef6005
refactor(goimports): add goimports to golangci-lint configuration #1432
2025-12-01 11:32:12 +08:00
ferhat elmas
f723d120d9
feat: add golangci-lint into lint target
...
* replace empty interface with any
* run fmt via golangci-lint
related to #1432
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-12-01 11:14:38 +08:00
LinkinStars
fc2a1d8afe
fix(answer): update QuestionID handling in answer update process
2025-11-28 17:01:12 +08:00
ferhat elmas
0777291e80
fix(ui): null pointer access if get branding fails
...
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-11-26 15:51:01 +08:00
LinkinStars
09b6b34b05
fix(comment): decode CommentID using DeShortID for consistency
2025-11-20 17:50:57 +08:00