aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-11-13 05:07:06 (UTC)
committerrtz12 <koenig@fagott.pw>2016-11-13 05:07:06 (UTC)
commit397868371db217bbd2376a7166c2cfafea565b3f (patch)
treeef2d8358379d48785c93a898b68a41e9f35c5b1d
parentc5adb9e0568d4915a8554189d8afa164ead67ac4 (diff)
Profillink anfügen
-rw-r--r--user.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/user.go b/user.go
index e43e1ee..b7a9137 100644
--- a/user.go
+++ b/user.go
@@ -2,6 +2,7 @@ package charakterin
2 2
3import ( 3import (
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}