summaryrefslogtreecommitdiff
path: root/cmd/generate
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/generate')
-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
}
}