about summary refs log tree commit diff
path: root/app/services/favourite_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-25 03:34:37 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-25 03:34:37 +0100
commit3e9d794ea50986db5647b4e05a408bf0208bbfa1 (patch)
tree29648fffca15684b18241aa5df2533526371f22a /app/services/favourite_service.rb
parent9d4cad6307b3d92a2b0a6c43da0aa859e846c44d (diff)
Add tuning documentation, add <content> tags back to most salmons,
make status pagination headers generation more lax about next page
existing
Diffstat (limited to 'app/services/favourite_service.rb')
-rw-r--r--app/services/favourite_service.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb
index 824729ed6..818898302 100644
--- a/app/services/favourite_service.rb
+++ b/app/services/favourite_service.rb
@@ -22,10 +22,13 @@ class FavouriteService < BaseService
   private
 
   def build_xml(favourite)
+    description = "#{favourite.account.acct} favourited a status by #{favourite.status.account.acct}"
+
     Nokogiri::XML::Builder.new do |xml|
       entry(xml, true) do
         unique_id xml, favourite.created_at, favourite.id, 'Favourite'
-        title xml, "#{favourite.account.acct} favourited a status by #{favourite.status.account.acct}"
+        title xml, description
+        content xml, description
 
         author(xml) do
           include_author xml, favourite.account