Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

json: Handle empty HasPaywall data from News #110

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion news.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ type News struct {
Related string `json:"related"`
Image string `json:"image"`
Language string `json:"lang"`
HasPaywall bool `json:"hasPaywall"`
HasPaywall bool `json:"hasPaywall,omitempty"`
}