Permalink
Browse files

Fix bug where date_modified empty if no created timestamp

  • Loading branch information...
dewey authored and kisielk committed Aug 19, 2018
1 parent ce4bf00 commit 762f7414cb4b615000daa195dfaf09b5aa503590
Showing with 1 addition and 1 deletion.
  1. +1 −1 json.go
View
@@ -173,7 +173,7 @@ func newJSONItem(i *Item) *JSONItem {
item.PublishedDate = &i.Created
}
if !i.Updated.IsZero() {
item.ModifiedDate = &i.Created
item.ModifiedDate = &i.Updated
}
if i.Enclosure != nil && strings.HasPrefix(i.Enclosure.Type, "image/") {
item.Image = i.Enclosure.Url

0 comments on commit 762f741

Please sign in to comment.