mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 10:59:17 +00:00
Don't set statusnetConversationIds on replies anymore.
This commit is contained in:
parent
009fcd2acf
commit
09f7ed4214
|
@ -58,11 +58,8 @@ def create_status(user = %User{}, data = %{"status" => status}) 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 @@ test "create a status that is a reply" 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 a new issue