Skip to content

Commit

Permalink
add created/updated time on feed level to allegris feed
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix committed Nov 6, 2024
1 parent 1c12c8d commit a95a424
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions go/api/web/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ func NewAllegrisUpdateFeedEndpoint(dh *data.Handler, contentType string, writer
Content: content,
Description: content,
})

if feed.Created.IsZero() || feed.Created.After(created) {
feed.Created = created
}

if feed.Updated.IsZero() || feed.Updated.Before(updated) {
feed.Updated = updated
}
}
}

Expand Down

0 comments on commit a95a424

Please sign in to comment.