Skip to content

Commit

Permalink
Merge pull request #38 from bmf-san/revert-37-fix/rename-publish-to-p…
Browse files Browse the repository at this point in the history
…ublic

Revert "Rename publish to public"
  • Loading branch information
bmf-san authored Apr 17, 2024
2 parents 9731ea8 + 7a9a4a1 commit 4f2ec73
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions app/controller/feed_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ func (fc *FeedController) Index() http.Handler {
Href: u,
},
ID: u,
UpdatedAt: p.UpdatedAt,
CreatedAt: p.CreatedAt,
Updated: p.UpdatedAt,
Published: p.CreatedAt,
Author: model.FeedAuthor{
Name: p.Admin.Name,
},
Expand All @@ -86,7 +86,7 @@ func (fc *FeedController) Index() http.Handler {
Link: model.FeedLink{
Href: url,
},
UpdatedAt: posts[len(posts)-1].UpdatedAt,
Updated: posts[len(posts)-1].UpdatedAt,
Author: model.FeedAuthor{
Name: "bmf_san",
},
Expand Down
20 changes: 10 additions & 10 deletions app/model/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ import (

// A Feed represents the singular of feed.
type Feed struct {
XMLName xml.Name `xml:"http://www.w3.org/2005/Atom feed"`
Title string `xml:"title"`
Subtitle string `xml:"subtitle"`
Link FeedLink `xml:"link"`
UpdatedAt time.Time `xml:"updatedat"`
Author FeedAuthor `xml:"author"`
ID string `xml:"id"`
Entries []FeedEntry `xml:"entry"`
XMLName xml.Name `xml:"http://www.w3.org/2005/Atom feed"`
Title string `xml:"title"`
Subtitle string `xml:"subtitle"`
Link FeedLink `xml:"link"`
Updated time.Time `xml:"updated"`
Author FeedAuthor `xml:"author"`
ID string `xml:"id"`
Entries []FeedEntry `xml:"entry"`
}

// An FeedEntry represents the singular of entry.
type FeedEntry struct {
Title string `xml:"title"`
Link FeedLink `xml:"link"`
ID string `xml:"id"`
UpdatedAt time.Time `xml:"updatedat"`
CreatedAt time.Time `xml:"createdat"`
Updated time.Time `xml:"updated"`
Published time.Time `xml:"published"`
Author FeedAuthor `xml:"author"`
Content FeedContent `xml:"content"`
}
Expand Down

0 comments on commit 4f2ec73

Please sign in to comment.