TwitterAPI: Use correct endpoint for tag timeline.
This commit is contained in:
parent
6877d7aaad
commit
6d5bd4dcc0
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ defmodule Pleroma.Web.Router do
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/search", TwitterAPI.Controller, :search
|
get "/search", TwitterAPI.Controller, :search
|
||||||
get "/statusnet/tags/:tag", TwitterAPI.Controller, :public_and_external_timeline
|
get "/statusnet/tags/timeline/:tag", TwitterAPI.Controller, :public_and_external_timeline
|
||||||
get "/externalprofile/show", TwitterAPI.Controller, :external_profile
|
get "/externalprofile/show", TwitterAPI.Controller, :external_profile
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -500,7 +500,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|
||||||
{:ok, _} = CommonAPI.post(user_two, %{"status" => "This isn't"})
|
{:ok, _} = CommonAPI.post(user_two, %{"status" => "This isn't"})
|
||||||
|
|
||||||
conn = conn
|
conn = conn
|
||||||
|> get("/api/statusnet/tags/2hu.json")
|
|> get("/api/statusnet/tags/timeline/2hu.json")
|
||||||
|
|
||||||
assert [status] = json_response(conn, 200)
|
assert [status] = json_response(conn, 200)
|
||||||
assert status["id"] == activity.id
|
assert status["id"] == activity.id
|
||||||
|
|
Loading…
Reference in a new issue