Apply suggestion to lib/pleroma/web/controller_helper.ex
[akkoma] / lib / pleroma / web / common_api / utils.ex
index 1c0d90a2bdfe442c5f192e063a2200b3ec03a7fd..6ec489f9ad646c0eb8342df933416f122aec464a 100644 (file)
@@ -470,6 +470,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
         |> Enum.map(& &1.ap_id)
 
       recipients ++ subscriber_ids
+    else
+      _e -> recipients
     end
   end
 
@@ -481,6 +483,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
       |> User.get_followers()
       |> Enum.map(& &1.ap_id)
       |> Enum.concat(recipients)
+    else
+      _e -> recipients
     end
   end