Mastodon API: Fake support for loading filters
authorMartin Kühl <martin.kuehl@gmail.com>
Wed, 5 Sep 2018 18:14:16 +0000 (20:14 +0200)
committerMartin Kühl <martin.kuehl@gmail.com>
Fri, 7 Sep 2018 14:12:44 +0000 (16:12 +0200)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
lib/pleroma/web/router.ex

index 49a8655f0abb1ea1834c16d97e30cb1666b6a17f..f2fcc76ad6d53c2d2bd545dfdcaeb21e7dcc18bb 100644 (file)
@@ -1188,4 +1188,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
       json(conn, [])
     end
   end
+
+  def filters(conn, _) do
+    json(conn, [])
+  end
 end
index 63493ae1cb41b3fadbfdf60f6ba7d4987d6dfbc8..9dcf44795fb0030cbe7dcfe9b95679a01294cacb 100644 (file)
@@ -162,6 +162,8 @@ defmodule Pleroma.Web.Router do
     delete("/filters/:id", MastodonAPIController, :delete_filter)
 
     get("/suggestions", MastodonAPIController, :suggestions)
+
+    get("/filters", MastodonAPIController, :filters)
   end
 
   scope "/api/web", Pleroma.Web.MastodonAPI do