@@ -20,12 +20,12 @@ import (
2020 repo_model "code.gitea.io/gitea/models/repo"
2121 "code.gitea.io/gitea/models/unit"
2222 user_model "code.gitea.io/gitea/models/user"
23- "code.gitea.io/gitea/modules/base"
2423 "code.gitea.io/gitea/modules/git"
2524 "code.gitea.io/gitea/modules/log"
2625 "code.gitea.io/gitea/modules/setting"
2726 "code.gitea.io/gitea/modules/structs"
2827 "code.gitea.io/gitea/modules/timeutil"
28+ "code.gitea.io/gitea/modules/util"
2929
3030 "xorm.io/builder"
3131 "xorm.io/xorm/schemas"
@@ -226,7 +226,7 @@ func (a *Action) GetActUserName(ctx context.Context) string {
226226// ShortActUserName gets the action's user name trimmed to max 20
227227// chars.
228228func (a * Action ) ShortActUserName (ctx context.Context ) string {
229- return base . EllipsisString (a .GetActUserName (ctx ), 20 )
229+ return util . EllipsisDisplayString (a .GetActUserName (ctx ), 20 )
230230}
231231
232232// GetActDisplayName gets the action's display name based on DEFAULT_SHOW_FULL_NAME, or falls back to the username if it is blank.
@@ -260,7 +260,7 @@ func (a *Action) GetRepoUserName(ctx context.Context) string {
260260// ShortRepoUserName returns the name of the action repository owner
261261// trimmed to max 20 chars.
262262func (a * Action ) ShortRepoUserName (ctx context.Context ) string {
263- return base . EllipsisString (a .GetRepoUserName (ctx ), 20 )
263+ return util . EllipsisDisplayString (a .GetRepoUserName (ctx ), 20 )
264264}
265265
266266// GetRepoName returns the name of the action repository.
@@ -275,7 +275,7 @@ func (a *Action) GetRepoName(ctx context.Context) string {
275275// ShortRepoName returns the name of the action repository
276276// trimmed to max 33 chars.
277277func (a * Action ) ShortRepoName (ctx context.Context ) string {
278- return base . EllipsisString (a .GetRepoName (ctx ), 33 )
278+ return util . EllipsisDisplayString (a .GetRepoName (ctx ), 33 )
279279}
280280
281281// GetRepoPath returns the virtual path to the action repository.
0 commit comments