Add app/views/users/feed.atom.builder
This commit is contained in:
parent
6749568468
commit
be022e5bb8
1 changed files with 22 additions and 0 deletions
22
app/views/users/feed.atom.builder
Normal file
22
app/views/users/feed.atom.builder
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# ideally, this file should build an rss feed for each user's works but it is very much a wip lmfao
|
||||||
|
|
||||||
|
atom_feed do |feed|
|
||||||
|
@works.each do |work|
|
||||||
|
next if work.unrevealed?
|
||||||
|
|
||||||
|
feed.entry(work) do |entry|
|
||||||
|
|
||||||
|
entry.title work.title
|
||||||
|
entry.summary feed_summary(work), :type => 'html'
|
||||||
|
#entry.id work_url(work)
|
||||||
|
#
|
||||||
|
# entry.summary(type: 'html') { |s| s.cdata = feed_summary(work) }
|
||||||
|
|
||||||
|
#
|
||||||
|
entry.author do |author|
|
||||||
|
author.name text_byline(work, visibility: 'public')
|
||||||
|
author.uri user_url(@user)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Reference in a new issue