Skip to content

Commit

Permalink
minor fix for user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Izumiko committed Feb 16, 2024
1 parent 43962a8 commit b6d038f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type ResolutionInfo struct {

type UserProfile struct {
Body string `json:"body"`
Header string `json:"header"`
Header FileInfo `json:"header"`
User UserInfo `json:"user"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func main() {
return
}
urls := strings.Split(string(data), "\n")
for i, v := range urls {
urls[i] = strings.TrimRight(v, "\r")
}
processUrlList(urls)
}
SaveVidList(vidList)
Expand Down

0 comments on commit b6d038f

Please sign in to comment.