Mastodon API: Fake support for loading filters

This commit is contained in:
Martin Kühl 2018-09-05 20:14:16 +02:00
parent 619f67768a
commit c1d07da4e1
2 changed files with 6 additions and 0 deletions

View File

@ -1188,4 +1188,8 @@ def suggestions(%{assigns: %{user: user}} = conn, _) do
json(conn, []) json(conn, [])
end end
end end
def filters(conn, _) do
json(conn, [])
end
end end

View File

@ -162,6 +162,8 @@ def user_fetcher(username_or_email) do
delete("/filters/:id", MastodonAPIController, :delete_filter) delete("/filters/:id", MastodonAPIController, :delete_filter)
get("/suggestions", MastodonAPIController, :suggestions) get("/suggestions", MastodonAPIController, :suggestions)
get("/filters", MastodonAPIController, :filters)
end end
scope "/api/web", Pleroma.Web.MastodonAPI do scope "/api/web", Pleroma.Web.MastodonAPI do