Don't set statusnetConversationIds on replies anymore.
This commit is contained in:
parent
009fcd2acf
commit
09f7ed4214
@ -58,11 +58,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
|||||||
"actor" => user.ap_id,
|
"actor" => user.ap_id,
|
||||||
"inReplyTo" => inReplyTo.data["object"]["id"],
|
"inReplyTo" => inReplyTo.data["object"]["id"],
|
||||||
"inReplyToStatusId" => inReplyTo.id,
|
"inReplyToStatusId" => inReplyTo.id,
|
||||||
"statusnetConversationId" => inReplyTo.data["statusnetConversationId"]
|
|
||||||
}
|
|
||||||
additional = %{
|
|
||||||
"statusnetConversationId" => inReplyTo.data["statusnetConversationId"]
|
|
||||||
}
|
}
|
||||||
|
additional = %{}
|
||||||
|
|
||||||
[to, context, object, additional]
|
[to, context, object, additional]
|
||||||
else
|
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, ["context"]) == get_in(activity.data, ["context"])
|
||||||
assert get_in(reply.data, ["object", "context"]) == get_in(activity.data, ["object", "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", "inReplyTo"]) == get_in(activity.data, ["object", "id"])
|
||||||
assert get_in(reply.data, ["object", "inReplyToStatusId"]) == activity.id
|
assert get_in(reply.data, ["object", "inReplyToStatusId"]) == activity.id
|
||||||
assert Enum.member?(get_in(reply.data, ["to"]), "some_cool_id")
|
assert Enum.member?(get_in(reply.data, ["to"]), "some_cool_id")
|
||||||
|
Loading…
Reference in New Issue
Block a user