diff options
-rw-r--r-- | user.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2,6 +2,7 @@ package charakterin | |||
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "database/sql" | 4 | "database/sql" |
5 | "fmt" | ||
5 | "time" | 6 | "time" |
6 | 7 | ||
7 | "fagott.pw/goanilist" | 8 | "fagott.pw/goanilist" |
@@ -53,6 +54,7 @@ func (u *User) ExternalServices() []ExternalService { | |||
53 | s.UserName = err.Error() | 54 | s.UserName = err.Error() |
54 | } else { | 55 | } else { |
55 | s.UserName = user.DisplayName | 56 | s.UserName = user.DisplayName |
57 | s.ProfileLink = fmt.Sprintf("https://anilist.co/user/%s", s.UserName) | ||
56 | } | 58 | } |
57 | } | 59 | } |
58 | ss = append(ss, s) | 60 | ss = append(ss, s) |
@@ -68,4 +70,5 @@ type ExternalService struct { | |||
68 | AuthorizeURL string | 70 | AuthorizeURL string |
69 | CoupleURL string | 71 | CoupleURL string |
70 | UserName string | 72 | UserName string |
73 | ProfileLink string | ||
71 | } | 74 | } |