From 397868371db217bbd2376a7166c2cfafea565b3f Mon Sep 17 00:00:00 2001 From: rtz12 Date: Sun, 13 Nov 2016 06:07:06 +0100 Subject: =?UTF-8?q?Profillink=20anf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/user.go b/user.go index e43e1ee..b7a9137 100644 --- a/user.go +++ b/user.go @@ -2,6 +2,7 @@ package charakterin import ( "database/sql" + "fmt" "time" "fagott.pw/goanilist" @@ -53,6 +54,7 @@ func (u *User) ExternalServices() []ExternalService { s.UserName = err.Error() } else { s.UserName = user.DisplayName + s.ProfileLink = fmt.Sprintf("https://anilist.co/user/%s", s.UserName) } } ss = append(ss, s) @@ -68,4 +70,5 @@ type ExternalService struct { AuthorizeURL string CoupleURL string UserName string + ProfileLink string } -- cgit v0.10.1