Fake 2.4.0 API
This commit is contained in:
parent
c45133377a
commit
359093d73b
|
@ -812,6 +812,7 @@ def index(%{assigns: %{user: user}} = conn, _params) do
|
||||||
boost_modal: false,
|
boost_modal: false,
|
||||||
delete_modal: true,
|
delete_modal: true,
|
||||||
auto_play_gif: false,
|
auto_play_gif: false,
|
||||||
|
display_sensitive_media: false,
|
||||||
reduce_motion: false
|
reduce_motion: false
|
||||||
},
|
},
|
||||||
compose: %{
|
compose: %{
|
||||||
|
|
|
@ -30,6 +30,8 @@ def render("account.json", %{user: user}) do
|
||||||
avatar_static: image,
|
avatar_static: image,
|
||||||
header: header,
|
header: header,
|
||||||
header_static: header,
|
header_static: header,
|
||||||
|
emojis: [],
|
||||||
|
fields: [],
|
||||||
source: %{
|
source: %{
|
||||||
note: "",
|
note: "",
|
||||||
privacy: "public",
|
privacy: "public",
|
||||||
|
|
|
@ -170,6 +170,8 @@ def user_fetcher(username) do
|
||||||
get("/accounts/:id/following", MastodonAPIController, :following)
|
get("/accounts/:id/following", MastodonAPIController, :following)
|
||||||
get("/accounts/:id", MastodonAPIController, :user)
|
get("/accounts/:id", MastodonAPIController, :user)
|
||||||
|
|
||||||
|
get("/trends", MastodonAPIController, :empty_array)
|
||||||
|
|
||||||
get("/search", MastodonAPIController, :search)
|
get("/search", MastodonAPIController, :search)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,8 @@ test "Represent a user account" do
|
||||||
avatar_static: "http://localhost:4001/images/avi.png",
|
avatar_static: "http://localhost:4001/images/avi.png",
|
||||||
header: "http://localhost:4001/images/banner.png",
|
header: "http://localhost:4001/images/banner.png",
|
||||||
header_static: "http://localhost:4001/images/banner.png",
|
header_static: "http://localhost:4001/images/banner.png",
|
||||||
|
emojis: [],
|
||||||
|
fields: [],
|
||||||
source: %{
|
source: %{
|
||||||
note: "",
|
note: "",
|
||||||
privacy: "public",
|
privacy: "public",
|
||||||
|
|
Loading…
Reference in New Issue