maishivamhoo123
1fbb802e8f
feat: load optional .env file and add .env.example
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
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
Gregorius Bima Kharisma Wicaksana
c2a62804b0
fix: add feedback after successfully adding a user in admin panel ( #1462 )
...
## Summary
- Show success toast notification after user is added
- Refresh user list and navigate to 'normal' filter on page 1 to display
the newly added user
## Problem
When adding a user in Admin -> Users, the page had no feedback after
submission (as reported in #1457 ).
**Root cause:** The code only refreshed the user list if the current
filter was "all" or "staff", but the default filter is "normal".
Additionally, there was no success toast notification.
## Solution
1. Added toast notification to confirm successful user creation
2. After adding user, navigate to "normal" filter page 1 and refresh the
list so the new user is visible
## Test plan
1. Go to Admin -> Users
2. Click "Add User"
3. Submit user information
4. ✅ Success toast should appear
5. ✅ Page should navigate to "normal" filter
6. ✅ Newly added user should be visible in the list
Fixes #1457
---------
Co-authored-by: LinkinStars <linkinstar@foxmail.com >
2025-12-16 14:43:21 +08:00
LinkinStars
59408774fb
fix(lang): correct translations in Polish and Turkish language files
2025-12-15 15:10:10 +08:00
LinkinStars
e35b955159
fix(lang): enhance language retrieval from gin context
2025-12-15 12:34:42 +08:00
LinkinStars
3ddec99837
Merge remote-tracking branch 'origin/main' into dev
...
# Conflicts:
# i18n/pl_PL.yaml
# i18n/tr_TR.yaml
2025-12-11 15:12:43 +08:00
LinkinStars
fbb877ab11
fix(translator): enhance error reporting for invalid translator YAML files
2025-12-11 14:23:17 +08:00
LinkinStars
216786a6de
New translations ( #1456 )
...
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
Co-authored-by: Sunny <1147886+sunshineg@users.noreply.github.com >
v1.7.1-RC1
2025-12-11 14:14:06 +08:00
LinkinStars
dd836497e3
style(sideNav): update ASF header
2025-12-11 11:47:53 +08:00
LinkinStars
8412ccdc12
docs(Makefile): upgrade version to 1.7.1
2025-12-11 11:47:53 +08:00
liruohrh
8f5c164e38
feat: add env for glob load template files by gin debug render
2025-12-11 11:47:53 +08:00
Burak Tekin
c82f0a4fdd
chore: turkish translation improved ( #1454 )
...
turkish translations improved
Co-authored-by: dashuai <lishuailing@sifou.com >
2025-12-11 11:47:53 +08:00
joaoback
f5600865e0
Update pt_BR.yaml
...
Translations of items that had not yet been translated. Adjustments to translations already made.
2025-12-11 11:47:53 +08:00
kinjelom
82a1127c64
Polish translation
2025-12-11 11:47:53 +08:00
liruohrh
0065e355aa
fix: get right lang
2025-12-11 11:47:53 +08:00
Krypt0n123
bf2127dbd0
fix: add missing revision data for default content ( fixes #1436 )
2025-12-11 11:47:53 +08:00
shuai
5fa638a3e1
fix: The page tag selector exceeds the page height, causing the page to scroll.
2025-12-11 11:47:53 +08:00
ferhat elmas
e1255373cb
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-11 11:47:53 +08:00
LinkinStars
4950009248
refactor(lint): improve error handling and code consistency across multiple files
2025-12-11 11:47:53 +08:00
LinkinStars
62e765f70a
refactor(goimports): add goimports to golangci-lint configuration #1432
2025-12-11 11:47:53 +08:00
ferhat elmas
74654f2703
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-11 11:47:53 +08:00
shuai
92de2ef16f
fix: When the input box's type is set to number, the result is forcibly converted to the number type. #1425
2025-12-11 11:47:53 +08:00
shuai
bb60dca5eb
fix: footer layout adjustment
2025-12-11 11:47:53 +08:00
shuai
480474d7be
fix: footer layout adjustment
2025-12-11 11:47:53 +08:00
LinkinStars
d15d55abe3
fix(answer): update QuestionID handling in answer update process
2025-12-11 11:47:53 +08:00
ferhat elmas
2b64983464
chore(deps): bump mockgen to 0.6.0 for go1.25 support
...
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-12-11 11:47:53 +08:00
ferhat elmas
c0a9f3155a
fix(ui): null pointer access if get branding fails
...
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-12-11 11:47:53 +08:00
ferhat elmas
f86e98167f
fix: multi byte run boundary for cut long title
...
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-12-11 11:47:53 +08:00
ferhat elmas
9b64d7d64d
refactor(internal): compile regex once while clearing text
...
Regex and Replacer can be reused.
No need to recreate for each invocation.
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-12-11 11:47:53 +08:00
LinkinStars
4609e200ae
fix(comment): decode CommentID using DeShortID for consistency
2025-12-11 11:47:53 +08:00
LinkinStars
8b739c5a59
fix(service): set default language to "en_US" if invalid language is provided
2025-12-11 11:47:53 +08:00
Dinesht04
27cd77358c
fix(ui): refactor number input props (min,max)
2025-12-11 11:47:53 +08:00
Dinesht04
1418745b00
feat(ui): add types, logic and defaults for min, max value of input component of form
2025-12-11 11:47:53 +08:00
Dinesht04
9bb87bf8d6
feat(ui): add min values for inputs and context-based keyboards for inputs
2025-12-11 11:47:53 +08:00
shuai
59df184bab
fix: Optimization of request parameters
2025-12-11 11:47:53 +08:00
shuai
7a1c96d2cb
fix: fix the issue where the comment_id parameter is forcibly converted to a string, causing a 500 error in the PostgreSQL database interface. #1426
2025-12-11 11:47:53 +08:00
liruohrh
d468e2ba8d
feat: add env for glob load template files by gin debug render
2025-12-11 10:49:32 +08:00
Burak Tekin
57ba299543
chore: turkish translation improved ( #1454 )
...
turkish translations improved
Co-authored-by: dashuai <lishuailing@sifou.com >
2025-12-11 09:42:21 +08:00
joaoback
48b1de8314
Update pt_BR.yaml
...
Translations of items that had not yet been translated. Adjustments to translations already made.
2025-12-10 11:58:27 +08:00
kinjelom
8e395d421e
Polish translation
2025-12-10 11:52:42 +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