Commit ae50b165 authored by lain's avatar lain
Browse files

Add inReplyToStatus to TwAPI.

parent e56dba15
......@@ -14,7 +14,8 @@ def to_map(%Activity{} = activity, %{user: user} = opts) do
"text" => content,
"is_local" => true,
"is_post_verb" => true,
"created_at" => published
"created_at" => published,
"in_reply_to_status_id" => activity.data["object"]["inReplyToStatusId"]
}
end
end
......@@ -23,7 +23,8 @@ test "an activity" do
"object" => %{
"published" => date,
"type" => "Note",
"content" => content
"content" => content,
"inReplyToStatusId" => 213123
},
"published" => date
}
......@@ -38,7 +39,8 @@ test "an activity" do
"statusnet_html" => content,
"text" => content,
"is_post_verb" => true,
"created_at" => date
"created_at" => date,
"in_reply_to_status_id" => 213123
}
assert ActivityRepresenter.to_map(activity, %{user: user, for: follower}) == expected_status
......
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