diff options
author | rtz12 <koenig@fagott.pw> | 2016-11-13 05:07:06 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2016-11-13 05:07:06 (UTC) |
commit | 397868371db217bbd2376a7166c2cfafea565b3f (patch) | |
tree | ef2d8358379d48785c93a898b68a41e9f35c5b1d /user.go | |
parent | c5adb9e0568d4915a8554189d8afa164ead67ac4 (diff) |
Profillink anfügen
Diffstat (limited to 'user.go')
-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 | } |