Commit 1299bccc authored by Vivian Lim's avatar Vivian Lim

return unquoted empty array from /api/qvitter/mutes.json

parent 63160039
......@@ -269,7 +269,7 @@ defmodule Pleroma.Web.Router do
get("/friendships/no_retweets/ids", TwitterAPI.Controller, :empty_array)
get("/mutes/users/ids", TwitterAPI.Controller, :empty_array)
get("/qvitter/mutes", TwitterAPI.Controller, :empty_array)
get("/qvitter/mutes", TwitterAPI.Controller, :raw_empty_array)
get("/externalprofile/show", TwitterAPI.Controller, :external_profile)
end
......
......@@ -404,6 +404,10 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
json(conn, Jason.encode!([]))
end
def raw_empty_array(conn, _params) do
json(conn, [])
end
def update_profile(%{assigns: %{user: user}} = conn, params) do
params =
if bio = params["description"] do
......
......@@ -506,7 +506,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|> get("/api/qvitter/mutes.json")
current_user = Repo.get(User, current_user.id)
assert "[]" = json_response(conn, 200)
assert [] = json_response(conn, 200)
end
end
......
Markdown is supported
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