From bf8cb8f908c1d3939a56a3fe75781612c5168555 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 23 May 2024 03:01:52 -0400 Subject: imworkingon: Fix gitlab profile URLs --- cmd/generate/forge_gitlab.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/generate/forge_gitlab.go b/cmd/generate/forge_gitlab.go index 41814ec..56f1401 100644 --- a/cmd/generate/forge_gitlab.go +++ b/cmd/generate/forge_gitlab.go @@ -138,7 +138,7 @@ func (GitLab) FetchLastUpdated(urls []string) (time.Time, User, error) { UpdatedAt time.Time `json:"updated_at"` Author struct { Username string `json:"username"` - WebURL string `json:"web_url"` + Path string `json:"path"` } `json:"author"` } `json:"notes"` } @@ -148,7 +148,7 @@ func (GitLab) FetchLastUpdated(urls []string) (time.Time, User, error) { for _, note := range notes.Notes { if withinOneSecond(note.UpdatedAt, retUpdatedAt) { retUser.Name = note.Author.Username - retUser.URL = note.Author.WebURL + retUser.URL = "https://" + authority + note.Author.Path break } } -- cgit v1.2.3-54-g00ecf