summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-05-23 03:01:52 -0400
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-05-23 03:01:52 -0400
commitbf8cb8f908c1d3939a56a3fe75781612c5168555 (patch)
tree5cd722006fac47a2d1a1a882c282b453a65a1c32
parent73270a9f8f474bdc17291ac1dcaca06f6159796f (diff)
imworkingon: Fix gitlab profile URLs
-rw-r--r--cmd/generate/forge_gitlab.go4
1 files 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
}
}