Add remote user fetching to search.

This commit is contained in:
Roger Braun 2017-09-16 11:26:20 +02:00
commit c36229c4aa
2 changed files with 14 additions and 1 deletions

View file

@ -332,4 +332,13 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
[status] = results["statuses"]
assert status["id"] == activity.id
end
test "search fetches remote accounts", %{conn: conn} do
conn = conn
|> get("/api/v1/search", %{"q" => "shp@social.heldscal.la", "resolve" => "true"})
assert results = json_response(conn, 200)
[account] = results["accounts"]
assert account["acct"] == "shp@social.heldscal.la"
end
end