about summary refs log tree commit diff
path: root/app/services/unfollow_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/unfollow_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/unfollow_service.rb')
-rw-r--r--app/services/unfollow_service.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/services/unfollow_service.rb b/app/services/unfollow_service.rb
index 07f9b93dd..3440da364 100644
--- a/app/services/unfollow_service.rb
+++ b/app/services/unfollow_service.rb
@@ -13,10 +13,13 @@ class UnfollowService < BaseService
   private
 
   def build_xml(follow)
+    description = "#{follow.account.acct} is no longer following #{follow.target_account.acct}"
+
     Nokogiri::XML::Builder.new do |xml|
       entry(xml, true) do
         unique_id xml, Time.now.utc, follow.id, 'Follow'
-        title xml, "#{follow.account.acct} is no longer following #{follow.target_account.acct}"
+        title xml, description
+        content xml, description
 
         author(xml) do
           include_author xml, follow.account