Remove reply-to for shares, mastodon gets confused.

This commit is contained in:
Roger Braun 2017-05-03 20:06:00 +02:00
parent 53d05af5b6
commit 1077c5c58d
2 changed files with 0 additions and 2 deletions

View file

@ -114,7 +114,6 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
{:"ostatus:conversation", [], h.(activity.data["context"])}, {:"ostatus:conversation", [], h.(activity.data["context"])},
{:link, [href: h.(activity.data["context"]), rel: 'ostatus:conversation'], []}, {:link, [href: h.(activity.data["context"]), rel: 'ostatus:conversation'], []},
{:link, [rel: 'self', type: ['application/atom+xml'], href: h.(activity.data["id"])], []}, {:link, [rel: 'self', type: ['application/atom+xml'], href: h.(activity.data["id"])], []},
{:"thr:in-reply-to", [ref: to_charlist(activity.data["object"])], []},
{:"activity:object", retweeted_xml} {:"activity:object", retweeted_xml}
] ++ mentions ++ author ] ++ mentions ++ author
end end

View file

@ -106,7 +106,6 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do
<ostatus:conversation>#{announce.data["context"]}</ostatus:conversation> <ostatus:conversation>#{announce.data["context"]}</ostatus:conversation>
<link href="#{announce.data["context"]}" rel="ostatus:conversation" /> <link href="#{announce.data["context"]}" rel="ostatus:conversation" />
<link rel="self" type="application/atom+xml" href="#{announce.data["id"]}"/> <link rel="self" type="application/atom+xml" href="#{announce.data["id"]}"/>
<thr:in-reply-to ref="#{note.data["object"]["id"]}" />
<activity:object> <activity:object>
#{note_xml} #{note_xml}
</activity:object> </activity:object>