Add IDs to salmon slaps even if they are transient. Add title, too, mostly
in case of debugging incoming salmons. Add <thr:in-reply-to /> to favourite salmons because it seems to be required by GS.
This commit is contained in:
parent
df63461ff0
commit
8e08ae5bb9
8 changed files with 15 additions and 0 deletions
|
@ -15,6 +15,7 @@ class UnfavouriteService < BaseService
|
|||
def build_xml(favourite)
|
||||
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}"
|
||||
|
||||
author(xml) do
|
||||
|
@ -23,6 +24,7 @@ class UnfavouriteService < BaseService
|
|||
|
||||
object_type xml, :activity
|
||||
verb xml, :unfavorite
|
||||
in_reply_to xml, TagManager.instance.uri_for(favourite.status), TagManager.instance.url_for(favourite.status)
|
||||
|
||||
target(xml) do
|
||||
include_target xml, favourite.status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue