Skip to content

Commit

Permalink
Merge pull request #543 from indirect/less-posts
Browse files Browse the repository at this point in the history
drop the items per feed from 100 to 25
  • Loading branch information
indirect authored Oct 3, 2024
2 parents 1d7f27e + 1579217 commit 3792caa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/feeds/show.atom.builder
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cache ["v1", @feed, "atom"] do
atom.updated @feed.updated_at
atom.icon @feed.favicon_url if @feed.favicon_url

@feed.posts.limit(100).each do |post|
@feed.posts.limit(25).each do |post|
atom.entry(post) do |entry|
entry.author do |author|
author.name post.from_name
Expand Down
2 changes: 1 addition & 1 deletion app/views/feeds/show.json.jb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Rails.cache.fetch ["v1", @feed, "json"] do
home_page_url: feed_posts_url(@feed),
icon: @feed.favicon_url,
favicon: @feed.favicon_url,
items: @feed.posts.limit(100).map do |post|
items: @feed.posts.limit(25).map do |post|
{
id: post.token,
url: post_url(post),
Expand Down

0 comments on commit 3792caa

Please sign in to comment.