From da0b3055147d043eb243553e10f0dec590c5aa3a Mon Sep 17 00:00:00 2001 From: Faldrian Date: Sat, 8 Mar 2014 22:11:27 +0100 Subject: [PATCH] atom-feed content changed to html, use better post-title extractor Valid atom feed. Also these features are partially included: - http://activitystrea.ms/specs/atom/1.0/#activity.verb - http://portablecontacts.net/draft-spec.html#anchor16 --- app/views/users/public.atom.builder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/users/public.atom.builder b/app/views/users/public.atom.builder index c540c9186..2f09148fa 100644 --- a/app/views/users/public.atom.builder +++ b/app/views/users/public.atom.builder @@ -32,8 +32,8 @@ atom_feed({'xmlns:thr' => 'http://purl.org/syndication/thread/1.0', feed.entry post, :url => "#{@user.url}p/#{post.id}", :id => "#{@user.url}p/#{post.id}" do |entry| - entry.title truncate(post.formatted_message(:plain_text => true), :length => 50) - entry.content auto_link(post.formatted_message(:plain_text => true)), :type => 'html' + entry.title post_page_title(post) + entry.content markdownify(post), :type => 'html' entry.tag! 'activity:verb', 'http://activitystrea.ms/schema/1.0/post' entry.tag! 'activity:object-type', 'http://activitystrea.ms/schema/1.0/note' end