You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2024/09/05 02:43:49 UTC
(incubator-answer) branch main updated: fix(badge): resolve id when set badge object id
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/main by this push:
new 465f4bff fix(badge): resolve id when set badge object id
465f4bff is described below
commit 465f4bff60944d652a7656cc410629beb18f79d2
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Thu Sep 5 10:40:48 2024 +0800
fix(badge): resolve id when set badge object id
---
internal/schema/event_schema.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/internal/schema/event_schema.go b/internal/schema/event_schema.go
index 701d5d88..abacaed3 100644
--- a/internal/schema/event_schema.go
+++ b/internal/schema/event_schema.go
@@ -79,7 +79,9 @@ func (e *EventMsg) CID(comment, userID string) *EventMsg {
// TID get trigger object id
func (e *EventMsg) TID(triggerObjectID string) *EventMsg {
- e.TriggerObjectID = triggerObjectID
+ if len(triggerObjectID) > 0 {
+ e.TriggerObjectID = uid.DeShortID(triggerObjectID)
+ }
return e
}