LinkinStars
6fc25c69f4
fix(auth): add API key scope checks to enhance authorization security
2026-03-03 12:17:20 +08:00
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
90022ce039
fix: integrate API key authentication into existing services and routes
2026-01-29 16:50:25 +08:00
LinkinStars
ce5aadf30d
feat: add AI configuration support with related controllers and services
2026-01-23 17:25:42 +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
liruohrh
740ac61bb2
fix: get right lang
2025-12-08 20:06:18 +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
9540ef6005
refactor(goimports): add goimports to golangci-lint configuration #1432
2025-12-01 11:32:12 +08:00
DanielAuerX
def0559a55
Fix file record and delete files (branding and avatar) ( #1335 )
...
- [x] create file_record table
- [x] avatar and branding files are added to file_record
- [x] branding files are being deleted
- [x] avatar files are being deleted
- [x] reload latest avatar (frontend) after backend state is being
updated
problems addressed in the pr:
- clean up job fails, because it cannot access file_record table
- avatar and branding files are not added to the file_record table
- avatar and branding files are never deleted
- after an avatar is being updated/deleted, the old file is still being
requested due to browser caching. This is causing error logs ("no such
file or directory") in the backend.
cf. conversation in [pr
1326](https://github.com/apache/answer/pull/1326 )
---------
Co-authored-by: broccoli <lekker.broccoli@gmail.com >
Co-authored-by: LinkinStars <linkinstar@foxmail.com >
2025-05-23 15:07:14 +08:00
LinkinStars
a5d826c6d4
feat(file): add ENV for skip the file access verification
2025-01-13 16:38:19 +08:00
LinkinStars
47c666200e
Merge remote-tracking branch 'origin/main' into dev
...
# Conflicts:
# internal/base/middleware/accept_language.go
# internal/schema/answer_schema.go
# internal/schema/comment_schema.go
# internal/service/user_admin/user_backyard.go
2025-01-07 12:48:13 +08:00
LinkinStars
0618947350
refactor(name): rename incubator-answer
2025-01-07 10:39:23 +08:00
Luffy
0df7bec0c8
fix: parse user Accept-Language
2024-12-25 16:03:38 +08:00
LinkinStars
937de43978
Release/1.2.5 ( #759 )
...
Signed-off-by: Adam Vollrath <adam.d.vollrath@gmail.com >
Co-authored-by: shuai <lishuailing@sifou.com >
Co-authored-by: kelvinkuo <kelvinkuo224@gmail.com >
Co-authored-by: hgaol <dhangao@hotmail.com >
Co-authored-by: sy-records <52o@qq52o.cn >
Co-authored-by: Adam Vollrath <adam.d.vollrath@gmail.com >
Co-authored-by: kumfo <kumfo@sifou.com >
Co-authored-by: Yang Wong <yang wang>
Co-authored-by: hbsciw <hbsciw@gmail.com >
2024-01-29 17:19:41 +08:00
LinkinStars
a458f3409c
rename all old answerdev/answer link to apache/incubator-answer ( #603 )
...
Co-authored-by: shuai <lishuailing@sifou.com >
2023-11-01 14:48:35 +08:00
tison
3d2187d849
chore: add license headers
...
Signed-off-by: tison <wander4096@gmail.com >
2023-10-26 11:11:23 +08:00
LinkinStars
f1ac3c4820
fix(limit): remove limit record when error occur
2023-10-17 10:30:51 +08:00
LinkinStars
5ca5120cf7
feat(limit): add duplicate request limit
2023-10-16 18:46:25 +08:00
LinkinStars
a0d57a1890
feat(visit): can visit branding image without token
2023-10-10 17:49:29 +08:00
LinkinStars
c2b4a49dc0
feat(visit): only login user can access upload file in private mode.
2023-10-10 16:23:10 +08:00
LinkinStars
ad6e282416
feat(upload): support upload gif image
2023-09-20 11:37:42 +08:00
LinkinStars
e75142a555
fix(answer): fix incorrect notification's triggerUserID when cancel accepted answer
2023-08-29 11:39:51 +08:00
aichy
a8c13e5bb4
update captcha
2023-07-19 18:42:12 +08:00
aichy126
ee72b7e0b1
update CheckPrivateMode
2023-07-13 15:27:26 +08:00
aichy126
581bfc1cbe
update CheckPrivateMode
2023-07-13 11:56:50 +08:00
LinkinStars
42c08fe566
refactor(uploader): refactor AvatarThumbFile service
2023-06-13 17:38:22 +08:00
LinkinStars
1c2151d710
refactor(shortid): remove short id variable
2023-06-02 16:53:49 +08:00
LinkinStars
7662e9a552
refactor(upload): extract uploader service interface
2023-05-31 16:25:47 +08:00
aichy126
779bd86e1d
add static cache-control
2023-04-25 10:57:34 +08:00
LinkinStars
b5ef7912d1
feat(usercenter): add user login API agent
2023-04-19 16:32:43 +08:00
LinkinStars
e280358b7c
Merge remote-tracking branch 'github/feat/1.1.2/ui' into feat/1.1.2/user-center
...
# Conflicts:
# Makefile
# cmd/answer/main.go
# go.mod
# go.sum
# i18n/en_US.yaml
# internal/base/reason/reason.go
# internal/service/uploader/upload.go
2023-04-14 18:17:28 +08:00
LinkinStars
2a121c573b
feat(router): add middleware for user router
2023-04-03 11:17:38 +08:00
LinkinStars
4ee1614e95
feat(admin): return forbidden when normal user enter admin page.
2023-03-23 12:15:12 +08:00
LinkinStars
4759e8778f
feat(tag): Add revision when add tag
2023-03-03 16:59:34 +08:00
aichy126
860b1a3bd8
update img header
2023-02-07 17:55:31 +08:00
LinkinStar
6b9fa98e48
feat(question): If user edit question, update last edit user id
2022-12-30 18:07:23 +08:00
aichy
bcfeef1490
update name modification
2022-12-21 16:55:16 +08:00
LinkinStar
6e1f4841f1
style(simple): Properly handle unhandled errors
2022-12-16 16:35:55 +08:00
LinkinStar
7331353b51
style(io): replace deprecated io function
2022-12-16 14:31:38 +08:00
LinkinStar
c946b08b23
feat(theme): site info add theme options
2022-12-13 17:44:24 +08:00
LinkinStar
c42b3e1c3a
feat(login): add must login middle
2022-12-07 18:15:46 +08:00
LinkinStar
afa66cb9f6
refactor: extract is admin flag from context
2022-11-24 15:24:04 +08:00
LinkinStar
6e5d89d593
Merge branch 'github-main'
...
# Conflicts:
# go.mod
# internal/entity/answer_entity.go
# internal/schema/question_schema.go
# internal/service/user_service.go
2022-11-01 15:37:22 +08:00
Tai Groot
59e2e1f304
Running gofumpt against repo ( #49 )
...
* starting on gofumpt
* continuing on gofumpt
* continuing on gofumpt
* finish gofumpt review
* added changes requested by LinkinStars' review
Co-authored-by: LinkinStars <linkinstar@foxmail.com >
2022-11-01 15:25:44 +08:00
aichy126
1563c6b583
update avatar img size
2022-10-28 11:15:46 +08:00
aichy126
8b399dbe66
update img upload
2022-10-28 10:29:26 +08:00
aichy126
a4c7517280
add avatar Thumbnail image
...
add avatar Thumbnail image
2022-10-27 22:01:53 +08:00
aichy126
3f48de2fe9
add avatar middleware
2022-10-27 18:09:27 +08:00
LinkinStar
adc760e874
refactor: rename go mod package to answerdev
2022-10-24 16:51:05 +08:00
aichy
6da181a7bf
remove spew
2022-09-30 14:43:15 +08:00