diff --git a/app/views/users/feed.atom.builder b/app/views/users/feed.atom.builder new file mode 100644 index 0000000..457b02f --- /dev/null +++ b/app/views/users/feed.atom.builder @@ -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 \ No newline at end of file