diff options
author | 6543 <6543@obermui.de> | 2022-05-13 19:27:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 19:27:58 +0200 |
commit | b135313c478a241ce994d19e685f2a39d066fb92 (patch) | |
tree | edb831054b034ba01f35afbe40ec5b1ced351a4e /modules/convert/issue_comment.go | |
parent | 61f939359d0b5b478962d7afdc053af23836461f (diff) | |
download | gitea-b135313c478a241ce994d19e685f2a39d066fb92.tar.gz gitea-b135313c478a241ce994d19e685f2a39d066fb92.zip |
[Refactor] convert team(s) to apiTeam(s) (#13745)
* Refactor: teams to api convert
* make org load optional
* more info in tests
Diffstat (limited to 'modules/convert/issue_comment.go')
-rw-r--r-- | modules/convert/issue_comment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/convert/issue_comment.go b/modules/convert/issue_comment.go index caba2b506e..6d72849bca 100644 --- a/modules/convert/issue_comment.go +++ b/modules/convert/issue_comment.go @@ -152,7 +152,7 @@ func ToTimelineComment(c *models.Comment, doer *user_model.User) *api.TimelineCo comment.Assignee = ToUser(c.Assignee, nil) } if c.AssigneeTeam != nil { - comment.AssigneeTeam = ToTeam(c.AssigneeTeam) + comment.AssigneeTeam, _ = ToTeam(c.AssigneeTeam) } if c.ResolveDoer != nil { |