Commit 4a21c1b3 authored by hakabahitoyo's avatar hakabahitoyo

mock /api/v1/suggestions

parent f944f815
......@@ -1071,8 +1071,12 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|> json("Something went wrong")
end
def suggestions(conn, _) do
def suggestions(%{assigns: %{user: user}} = conn, _) do
res = %{
host: (String.replace Web.base_url(), "https://", ""),
user: user.nickname
}
conn
|> json("SUGGESTIONS!")
|> json(res)
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