diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-25 03:34:37 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-25 03:34:37 +0100 |
commit | 3e9d794ea50986db5647b4e05a408bf0208bbfa1 (patch) | |
tree | 29648fffca15684b18241aa5df2533526371f22a /app/services/unfavourite_service.rb | |
parent | 9d4cad6307b3d92a2b0a6c43da0aa859e846c44d (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/unfavourite_service.rb')
-rw-r--r-- | app/services/unfavourite_service.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/services/unfavourite_service.rb b/app/services/unfavourite_service.rb index 1d3e6f06d..5f0ba4254 100644 --- a/app/services/unfavourite_service.rb +++ b/app/services/unfavourite_service.rb @@ -13,10 +13,13 @@ class UnfavouriteService < BaseService private def build_xml(favourite) + description = "#{favourite.account.acct} no longer favourites a status by #{favourite.status.account.acct}" + Nokogiri::XML::Builder.new do |xml| entry(xml, true) do unique_id xml, Time.now.utc, favourite.id, 'Favourite' - title xml, "#{favourite.account.acct} no longer favourites a status by #{favourite.status.account.acct}" + title xml, description + content xml, description author(xml) do include_author xml, favourite.account |