From fd188cc5d9110a1ab965d9741a6416be38bb902c Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Tue, 6 Dec 2022 11:52:14 +0800 Subject: [PATCH] #3169 add alias --- models/repo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/repo.go b/models/repo.go index 625203c74..a0b828402 100755 --- a/models/repo.go +++ b/models/repo.go @@ -249,6 +249,7 @@ type Repository4Card struct { OwnerName string LowerName string Name string + Alias string NumWatches int NumStars int NumForks int @@ -291,6 +292,7 @@ func (repo *Repository) ToCardFormat() *Repository4Card { UpdatedUnix: repo.UpdatedUnix, PrimaryLanguage: repo.PrimaryLanguage, RelAvatarLink: r, + Alias: repo.Alias, } return result }