mastodon api: use info["default_scope"] if available for post scope
[akkoma] / lib / pleroma / web / router.ex
index 929a70f91041f5dbfb4e27451a11cb7c3ff6eb15..34652cdde97994d83e93fd4023ad8a806829b7ac 100644 (file)
@@ -175,6 +175,11 @@ defmodule Pleroma.Web.Router do
     get("/search", MastodonAPIController, :search)
   end
 
+  scope "/api/v2", Pleroma.Web.MastodonAPI do
+    pipe_through(:api)
+    get("/search", MastodonAPIController, :search2)
+  end
+
   scope "/api", Pleroma.Web do
     pipe_through(:config)
 
@@ -271,6 +276,7 @@ defmodule Pleroma.Web.Router do
     get("/friendships/no_retweets/ids", TwitterAPI.Controller, :empty_array)
 
     get("/mutes/users/ids", TwitterAPI.Controller, :empty_array)
+    get("/qvitter/mutes", TwitterAPI.Controller, :raw_empty_array)
 
     get("/externalprofile/show", TwitterAPI.Controller, :external_profile)
   end