mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 13:59:55 +01:00
Add inReplyToStatus to TwAPI.
This commit is contained in:
parent
e56dba1563
commit
ae50b165cc
2 changed files with 6 additions and 3 deletions
|
@ -14,7 +14,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
|
||||||
"text" => content,
|
"text" => content,
|
||||||
"is_local" => true,
|
"is_local" => true,
|
||||||
"is_post_verb" => true,
|
"is_post_verb" => true,
|
||||||
"created_at" => published
|
"created_at" => published,
|
||||||
|
"in_reply_to_status_id" => activity.data["object"]["inReplyToStatusId"]
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,7 +23,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
|
||||||
"object" => %{
|
"object" => %{
|
||||||
"published" => date,
|
"published" => date,
|
||||||
"type" => "Note",
|
"type" => "Note",
|
||||||
"content" => content
|
"content" => content,
|
||||||
|
"inReplyToStatusId" => 213123
|
||||||
},
|
},
|
||||||
"published" => date
|
"published" => date
|
||||||
}
|
}
|
||||||
|
@ -38,7 +39,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
|
||||||
"statusnet_html" => content,
|
"statusnet_html" => content,
|
||||||
"text" => content,
|
"text" => content,
|
||||||
"is_post_verb" => true,
|
"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
|
assert ActivityRepresenter.to_map(activity, %{user: user, for: follower}) == expected_status
|
||||||
|
|
Loading…
Reference in a new issue