mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-11 19:47:09 +00:00
Don't set statusnetConversationIds on replies anymore.
This commit is contained in:
parent
009fcd2acf
commit
09f7ed4214
2 changed files with 1 additions and 6 deletions
|
@ -58,11 +58,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
|||
"actor" => user.ap_id,
|
||||
"inReplyTo" => inReplyTo.data["object"]["id"],
|
||||
"inReplyToStatusId" => inReplyTo.id,
|
||||
"statusnetConversationId" => inReplyTo.data["statusnetConversationId"]
|
||||
}
|
||||
additional = %{
|
||||
"statusnetConversationId" => inReplyTo.data["statusnetConversationId"]
|
||||
}
|
||||
additional = %{}
|
||||
|
||||
[to, context, object, additional]
|
||||
else
|
||||
|
|
|
@ -67,8 +67,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
|
|||
|
||||
assert get_in(reply.data, ["context"]) == get_in(activity.data, ["context"])
|
||||
assert get_in(reply.data, ["object", "context"]) == get_in(activity.data, ["object", "context"])
|
||||
assert get_in(reply.data, ["statusnetConversationId"]) == get_in(activity.data, ["statusnetConversationId"])
|
||||
assert get_in(reply.data, ["object", "statusnetConversationId"]) == get_in(activity.data, ["object", "statusnetConversationId"])
|
||||
assert get_in(reply.data, ["object", "inReplyTo"]) == get_in(activity.data, ["object", "id"])
|
||||
assert get_in(reply.data, ["object", "inReplyToStatusId"]) == activity.id
|
||||
assert Enum.member?(get_in(reply.data, ["to"]), "some_cool_id")
|
||||
|
|
Loading…
Reference in a new issue