Commit 7a47afed authored by lain's avatar lain
Browse files

Update object correctly after setting context.

parent c83f279a
......@@ -204,6 +204,11 @@ defp add_conversation_id(activity) do
|> put_in(["object", "statusnetConversationId"],
|> put_in(["statusnetConversationId"],
object = Object.get_by_ap_id(["object"]["id"])
changeset = Ecto.Changeset.change(object, data: data["object"])
changeset = Ecto.Changeset.change(activity, data: data)
......@@ -48,6 +48,8 @@ test "create a status" do
assert get_in(, ["statusnetConversationId"]) ==
assert is_list(["object"]["attachment"])
assert["object"] == Object.get_by_ap_id(["object"]["id"]).data
test "create a status that is a reply" do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment