Skip to content

Commit f8c4fc9

Browse files
committed
Fix test
1 parent abda1c6 commit f8c4fc9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

models/org.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ func (org *Organization) OrganisationLink() string {
116116
return org.AsUser().OrganisationLink()
117117
}
118118

119+
// ShortName ellipses username to length
120+
func (org *Organization) ShortName(length int) string {
121+
return org.AsUser().ShortName(length)
122+
}
123+
124+
// HomeLink returns the user or organization home page link.
125+
func (org *Organization) HomeLink() string {
126+
return org.AsUser().HomeLink()
127+
}
128+
119129
// FindOrgMembersOpts represensts find org members conditions
120130
type FindOrgMembersOpts struct {
121131
db.ListOptions

0 commit comments

Comments
 (0)