This is an automated email from the ASF dual-hosted git repository.
LinkinStars pushed a change to branch apache
in repository https://gitbox.apache.org/repos/asf/answer.git
from 3a5e6c27 Merge branch 'release/2.0.1' into apache
add 5be5c84a chore: update version to 2.0.1
add 84204a71 chore: update GitHub Actions to use latest versions of setup
actions
add 2a442d33 chore: update Docker actions to latest versions for improved
stability
add 48b4622a chore: update Docker actions to specific versions for
consistency
add f9941827 fix: missing uuid license
add 2746bf5b fix: update copyright year to 2026
add 7c210a48 feat: add reasoning content to AI conversation records and
update related components (#1530)
add 68085ab7 fix: update license entries
add e884bb61 fix: avoid topic fallback for non-Latin titles via pragmatic
ASCII transliteration (#1526)
add cece87f9 feat: add recovery middleware to handle panic gracefully
add 682811f7 fix: scope JSON 500 to API routes, skip rewriting
already-flushed responses
add 43a91313 fix: accept answer fails when short links enabled (#1541)
add d93e31e9 feat(site): allow disabling email verification
add 3b6f981b fix(site): require explicit email verification setting
add e1d58ab6 feat(notification): add interval for new question emails
add d10e6aad fix(notification): move new question email throttling to
worker
add b70dda99 fix(notification): make new question email queue configurable
add c17e0c94 fix(notification): remove buffer size parameter from new
question email worker for test
add 9df58539 fix(tests): update goroutine handling in new question email
worker tests
add 09eaa5b7 feat: add reasoning content to AI conversation records and
update related components (#1530)
add 4b8de189 fix: update license entries
add a6d867e4 fix: avoid topic fallback for non-Latin titles via pragmatic
ASCII transliteration (#1526)
add 10be9681 feat: add recovery middleware to handle panic gracefully
add 9234d802 fix: scope JSON 500 to API routes, skip rewriting
already-flushed responses
add 4aa52a6b fix: accept answer fails when short links enabled (#1541)
add 71233265 feat(site): allow disabling email verification
add 3a5a15fe fix(site): require explicit email verification setting
add 06a0f742 fix external login account binding
add 54b1b35d Align revision audit permission checks
add b575fe89 Harden avatar cleanup ownership checks
add f92a0fe1 Harden Accept-Language parsing
add a00cb2d3 fix: update goroutine handling and context imports for
consistency
add dda51232 feat(notification): add interval for new question emails
add cb973942 fix(notification): move new question email throttling to
worker
add e06311a5 fix(notification): make new question email queue configurable
add f5e25dcb fix(notification): remove buffer size parameter from new
question email worker for test
add 88c288fd fix(tests): update goroutine handling in new question email
worker tests
add 58dbe2c0 fix(build): streamline Docker image build process in CI
configuration
add c52e2eeb fix(build): update Go version in Dockerfile to 1.25-alpine
add 0705ea6b fix(tests): add mock methods for cache OAuth state in new
question notification tests
add dc844317 fix(build): update Docker build process to use buildx and
streamline image tagging
add c589b59d fix: enhance answer visibility checks for user permissions
add 9d9f5d06 fix: enhance user admin service to manage API keys and filter
answer visibility
add 2758e233 fix: update version to 2.0.2 in Makefile and README
add 897fc8c4 fix: add missing license entry for mozillazg-go-unidecode
(#1552)
add 3b9f1370 fix: edit question fails when short links enabled (#1554)
add ecef4f11 Merge remote-tracking branch 'origin/main' into dev
add 98329f3b fix: advanced site settings setup from migration 30
add 4488ccc6 fix: tag search never matches on slug name
add da622a49 test(converter): pin renderLinkIsUrl behavior
add 1ccb4b7a fix: add ASF header to tag search test
add 413bbd0c i18n: complete Russian (ru_RU) translation
add 2c0ced32 fix: use TagStatusDeleted instead of QuestionStatusDeleted in
tag permission
add b80ad0a8 fix: avoid sensitive auth logging
add 32b451ce fix: normalize imported content
add 21e0714a fix: align question operation permissions
add e8ded23a fix: strengthen request safeguards
add 2e2c3019 fix: enforce question access controls
add 63a67542 fix: constrain MCP content access
add a203e7f6 chore: satisfy static checks
add 65f00608 Merge remote-tracking branch 'origin/fix/2.0.3/user' into test
add 61ff3ea1 fix: hide hidden questions from public answer profiles
add a52cc0ae fix(security): enforce personal comment visibility
add 41a9d887 fix(security): restrict similar question visibility
add 372f0776 fix(security): revoke stale visit tokens
add 76739fcf fix(security): enforce mutation visibility checks
add cb5d3bd5 Merge remote-tracking branch 'origin/fix/2.0.3/user' into test
add 7a2e2475 fix(ui): allow uppercase letters in username on profile
settings (#1572)
add 548889e2 New and fixed translations
add d70b5cd4 Merge remote-tracking branch 'origin/dev' into test
add 7a7caac9 fix: normalize allowed email domains
add 3985d20c fix(security): preserve User Center session identity
add 22867b41 fix(security): enforce reaction content visibility
add 49c9bad8 Merge remote-tracking branch 'origin/fix/2.0.3/user' into test
add dd4c6f3b feat(plugin): add IsVectorSearchEnabled function to check
plugin status
add 947a48b6 fix(ai): stop advertising semantic_search when no vector
search plugin is enabled (#1597)
add 9c15df87 fix: comment url swaps title and answer id
add f4db9ec5 charts: support using an existing PVC via
persistence.existingClaim
add 7f226dcd fix: lowercase the email before hashing the Gravatar URL
add d787464a test: guard frontend behaviour a successful build does not
demonstrate
add 791b5f74 fix: parse built asset tags without depending on the emitted
format
add 88c5ef66 fix: render every entry stylesheet, not only the first
add c7b37a15 style: iterate the rel attribute tokens without building a
slice
add 69fc3c96 test: assert every declared stylesheet is parsed, not just one
add ace02c49 chore: align asset-check comments with the DOM-tolerant parser
add 736dde0e build: replace Create React App with Vite (#1616)
add c1669e17 Merge remote-tracking branch 'origin/dev' into test
add 6744295f chore: update version to 2.0.3 and adjust prerequisites in
README
new a81ec6bf Merge remote-tracking branch 'origin/main' into apache
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/build-binary-for-release.yml | 2 +-
.../workflows/build-image-for-latest-release.yml | 41 +-
.github/workflows/build-image-for-manual.yml | 42 +-
.github/workflows/build-image-for-release.yml | 44 +-
.github/workflows/build-image-for-test.yml | 41 +-
.gitignore | 6 +-
Dockerfile | 2 +-
Makefile | 2 +-
NOTICE | 2 +-
README.md | 4 +-
charts/templates/deployment.yaml | 2 +-
charts/templates/pvc.yaml | 2 +-
charts/values.yaml | 2 +
cmd/wire_gen.go | 4 +-
docs/docs.go | 12 +
docs/release/LICENSE | 66 +-
docs/release/NOTICE | 2 +-
...nyin.txt => LICENSE-mozillazg-go-unidecode.txt} | 0
...long-next-share.txt => LICENSE-uuidjs-uuid.txt} | 2 +-
docs/swagger.json | 12 +
docs/swagger.yaml | 8 +
go.mod | 15 +-
go.sum | 34 +-
i18n/de_DE.yaml | 316 +-
i18n/en_US.yaml | 10 +-
i18n/i18n.yaml | 2 +-
i18n/ru_RU.yaml | 797 +-
i18n/zh_CN.yaml | 3 +-
internal/base/constant/cache_key.go | 3 +
internal/base/middleware/accept_language.go | 6 +
internal/base/middleware/header.go | 4 +
.../middleware/{short_id.go => header_test.go} | 35 +-
.../base/middleware/{mcp_auth.go => recovery.go} | 47 +-
internal/base/middleware/recovery_test.go | 120 +
internal/base/middleware/visit_img_auth.go | 1 +
internal/base/middleware/visit_img_auth_test.go | 155 +
internal/base/queue/queue.go | 6 +-
internal/base/queue/queue_test.go | 6 +-
internal/base/server/http.go | 6 +-
internal/controller/ai_controller.go | 129 +-
internal/controller/ai_tools_test.go | 90 +
internal/controller/answer_controller.go | 3 +-
internal/controller/comment_controller.go | 9 +-
internal/controller/connector_controller.go | 66 +-
internal/controller/mcp_controller.go | 43 +-
internal/controller/mcp_controller_test.go | 50 +
internal/controller/meta_controller.go | 2 +
internal/controller/question_controller.go | 78 +-
internal/controller/question_controller_test.go | 49 +
internal/controller/report_controller.go | 3 +-
internal/controller/template_controller.go | 75 +-
internal/controller/template_controller_test.go | 78 +
internal/controller/template_render/tags.go | 3 +-
internal/controller/template_render/userinfo.go | 3 +-
internal/controller/user_controller.go | 1 +
internal/controller/vote_controller.go | 6 +-
internal/entity/ai_conversation_record.go | 1 +
internal/entity/answer_entity.go | 1 +
internal/migrations/init.go | 7 +-
internal/migrations/migrations.go | 3 +
internal/migrations/v30.go | 9 +-
internal/migrations/{v32.go => v33.go} | 12 +-
internal/migrations/v34.go | 87 +
internal/migrations/v34_test.go | 172 +
internal/migrations/v35.go | 72 +
internal/migrations/v35_test.go | 101 +
internal/repo/answer/answer_repo.go | 24 +-
internal/repo/api_key/api_key_repo.go | 8 +
internal/repo/auth/auth.go | 16 +
internal/repo/question/question_repo.go | 14 +-
.../repo_test/personal_answer_visibility_test.go | 89 +
.../repo/repo_test/question_link_security_test.go | 85 +
internal/repo/tag/tag_rel_repo.go | 1 +
internal/repo/tag_common/tag_common_repo.go | 22 +-
.../tag_common/tagsearch_test.go} | 22 +-
.../user_external_login_repo.go | 26 +
internal/router/static_router.go | 20 +-
.../lang.go => router/static_router_test.go} | 35 +-
internal/schema/ai_conversation_schema.go | 1 +
internal/schema/answer_schema.go | 23 +-
internal/schema/comment_schema.go | 7 +-
internal/schema/email_template.go | 7 +-
...r_activity_schema.go => email_template_test.go} | 42 +-
internal/schema/meta_schema.go | 14 +-
internal/schema/question_schema.go | 14 +-
internal/schema/report_schema.go | 7 +-
internal/schema/siteinfo_schema.go | 21 +-
internal/schema/siteinfo_schema_test.go | 72 +
internal/schema/user_external_login_schema.go | 12 +
internal/schema/user_schema.go | 13 +-
internal/schema/vote_schema.go | 11 +-
.../ai_conversation/ai_conversation_service.go | 9 +
internal/service/apikey/apikey_service.go | 5 +
internal/service/auth/auth.go | 10 +-
internal/service/auth/auth_test.go | 99 +
internal/service/auth/user_center_status_test.go | 111 +
internal/service/comment/comment_service.go | 47 +-
.../comment/comment_service_visibility_test.go | 95 +
internal/service/content/answer_service.go | 22 +-
internal/service/content/answer_service_test.go | 81 +
internal/service/content/question_service.go | 49 +-
.../content/question_service_visibility_test.go | 140 +
internal/service/content/revision_service.go | 48 +-
internal/service/content/user_service.go | 98 +-
internal/service/content/user_service_test.go | 198 +
internal/service/content/vote_service.go | 6 +
internal/service/embedding/embedding_service.go | 6 +
internal/service/export/email_service.go | 2 +-
internal/service/importer/importer_service.go | 29 +-
.../importer/importer_service_test.go} | 31 +-
internal/service/meta/meta_service.go | 22 +
.../service/meta/meta_service_visibility_test.go | 103 +
.../service/notification/external_notification.go | 5 +
.../notification/new_question_email_worker.go | 334 +
.../notification/new_question_email_worker_test.go | 687 +
.../notification/new_question_notification.go | 44 +-
.../new_question_notification_interval.go | 57 +
.../notification/new_question_notification_test.go | 815 ++
internal/service/permission/tag_permission.go | 2 +-
internal/service/question_common/question.go | 2 +-
internal/service/report/report_service.go | 5 +-
internal/service/siteinfo/siteinfo_service.go | 13 +-
internal/service/siteinfo/siteinfo_service_test.go | 97 +
.../service/siteinfo_common/siteinfo_service.go | 2 +-
.../siteinfo_common/siteinfo_service_test.go | 44 +
internal/service/uploader/upload.go | 13 +-
internal/service/user_admin/user_backyard.go | 27 +-
.../user_center_login_service.go | 28 +-
.../user_center_login_service_test.go | 149 +
.../user_external_login_service.go | 120 +-
pkg/checker/email.go | 3 +-
pkg/checker/email_test.go | 45 +
pkg/checker/file_type.go | 2 +
pkg/checker/{url.go => file_type_test.go} | 25 +-
pkg/converter/markdown_test.go | 78 +
pkg/display/url.go | 2 +-
pkg/display/url_test.go | 115 +
pkg/gravatar/gravatar.go | 2 +-
pkg/gravatar/gravatar_test.go | 15 +
pkg/htmltext/htmltext.go | 49 +
pkg/htmltext/htmltext_test.go | 105 +
plugin/vector_search.go | 10 +
ui/.env.development | 1 -
ui/.env.production | 4 +-
ui/.eslintignore | 1 -
ui/.eslintrc.js | 1 -
ui/.gitignore | 6 +-
ui/config-overrides.js | 154 -
ui/{public => }/index.html | 3 +-
ui/package.json | 27 +-
ui/pnpm-lock.yaml | 13897 ++++---------------
ui/scripts/env.js | 4 +-
ui/src/App.test.tsx | 30 -
ui/src/App.tsx | 2 +-
ui/src/common/interface.ts | 2 +
ui/src/components/BubbleAi/index.tsx | 38 +
ui/src/components/Editor/index.scss | 2 +-
.../InitialLoadingPlaceholder/index.scss | 2 +-
.../components/InitialLoadingPlaceholder/index.tsx | 2 +-
ui/src/components/PageTags/index.tsx | 2 +-
ui/src/index.scss | 8 +-
.../AiAssistant/components/DetailModal/index.tsx | 1 +
.../Dashboard/components/HealthStatus/index.tsx | 4 +-
ui/src/pages/Admin/Login/index.tsx | 15 +
ui/src/pages/AiAssistant/index.tsx | 15 +-
ui/src/pages/Search/components/AiCard/index.tsx | 15 +-
.../UserCenter/AuthFailed/components/WeCom.tsx | 15 +-
.../Users/Register/components/SignUpForm/index.tsx | 13 +-
ui/src/pages/Users/Register/index.tsx | 20 +-
ui/src/pages/Users/Settings/Profile/index.tsx | 2 +-
ui/src/react-app-env.d.ts | 16 +-
ui/src/router/alias.ts | 2 +-
ui/src/router/index.tsx | 51 +-
ui/src/services/common.ts | 5 +-
ui/src/stores/loginSetting.ts | 1 +
ui/src/utils/common.ts | 3 +-
ui/src/utils/localize.ts | 4 +-
ui/src/utils/pluginKit/utils.ts | 12 +-
ui/src/utils/request.ts | 3 +-
ui/template/header.html | 6 +-
ui/tsconfig.json | 1 -
ui/vite.config.mts | 130 +
182 files changed, 9549 insertions(+), 12700 deletions(-)
copy docs/release/licenses/{LICENSE-mozillazg-go-pinyin.txt =>
LICENSE-mozillazg-go-unidecode.txt} (100%)
copy docs/release/licenses/{LIcENSE-Bunlong-next-share.txt =>
LICENSE-uuidjs-uuid.txt} (94%)
copy internal/base/middleware/{short_id.go => header_test.go} (56%)
copy internal/base/middleware/{mcp_auth.go => recovery.go} (55%)
create mode 100644 internal/base/middleware/recovery_test.go
create mode 100644 internal/base/middleware/visit_img_auth_test.go
create mode 100644 internal/controller/ai_tools_test.go
create mode 100644 internal/controller/mcp_controller_test.go
create mode 100644 internal/controller/question_controller_test.go
create mode 100644 internal/controller/template_controller_test.go
copy internal/migrations/{v32.go => v33.go} (63%)
create mode 100644 internal/migrations/v34.go
create mode 100644 internal/migrations/v34_test.go
create mode 100644 internal/migrations/v35.go
create mode 100644 internal/migrations/v35_test.go
create mode 100644 internal/repo/repo_test/personal_answer_visibility_test.go
create mode 100644 internal/repo/repo_test/question_link_security_test.go
copy internal/{base/middleware/header.go => repo/tag_common/tagsearch_test.go}
(56%)
copy internal/{base/handler/lang.go => router/static_router_test.go} (56%)
copy internal/schema/{answer_activity_schema.go => email_template_test.go}
(50%)
create mode 100644 internal/schema/siteinfo_schema_test.go
create mode 100644 internal/service/auth/auth_test.go
create mode 100644 internal/service/auth/user_center_status_test.go
create mode 100644 internal/service/comment/comment_service_visibility_test.go
create mode 100644 internal/service/content/answer_service_test.go
create mode 100644 internal/service/content/question_service_visibility_test.go
create mode 100644 internal/service/content/user_service_test.go
copy internal/{base/middleware/user_center_plugin_auth.go =>
service/importer/importer_service_test.go} (61%)
create mode 100644 internal/service/meta/meta_service_visibility_test.go
create mode 100644 internal/service/notification/new_question_email_worker.go
create mode 100644
internal/service/notification/new_question_email_worker_test.go
create mode 100644
internal/service/notification/new_question_notification_interval.go
create mode 100644
internal/service/notification/new_question_notification_test.go
create mode 100644 internal/service/siteinfo/siteinfo_service_test.go
create mode 100644
internal/service/user_external_login/user_center_login_service_test.go
create mode 100644 pkg/checker/email_test.go
copy pkg/checker/{url.go => file_type_test.go} (69%)
create mode 100644 pkg/converter/markdown_test.go
create mode 100644 pkg/display/url_test.go
delete mode 100644 ui/config-overrides.js
rename ui/{public => }/index.html (97%)
delete mode 100644 ui/src/App.test.tsx
create mode 100644 ui/vite.config.mts