Feature/1072 muting notifications
[akkoma] / lib / pleroma / web / twitter_api / twitter_api_controller.ex
index 45ef7be3d277bdc14f7468012ad3ad5f28794e92..0313560a8d9493b5ce02efa88270a752b01c4ac6 100644 (file)
@@ -192,6 +192,13 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
   end
 
   def notifications(%{assigns: %{user: user}} = conn, params) do
+    params =
+      if Map.has_key?(params, "with_muted") do
+        Map.put(params, :with_muted, params["with_muted"] in [true, "True", "true", "1"])
+      else
+        params
+      end
+
     notifications = Notification.for_user(user, params)
 
     conn