mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04:00
- Cap @member.posts in app/views/members/show.rss.haml with .limit(50) - Cap @post.comments in app/views/posts/show.rss.haml with .limit(50) and eager load authors - Remove eager loading of all comments+authors on Post in PostsController#show - Add view specs to verify RSS feed limits Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
15 lines
508 B
Plaintext
15 lines
508 B
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
%rss{ version: 2.0 }
|
|
%channel
|
|
%title #{@member.login_name}'s recent posts (#{ENV['GROWSTUFF_SITE_NAME']})
|
|
%link= member_url(@member)
|
|
- @member.posts.limit(50).each do |post|
|
|
%item
|
|
%title #{post.subject} by #{post.author.login_name}
|
|
%pubdate= post.created_at.to_fs(:rfc822)
|
|
%link= post_url(post)
|
|
%guid= post_url(post)
|
|
%description
|
|
:escaped_markdown
|
|
#{ strip_tags markdownify(post.body) }
|