Commit c6b72431217ca3d7ed638f6fb93c4039964144aa

Thomas de Grivel 2023-12-07T15:21:54

fix avatar not found

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit_web/controllers/user_controller.ex b/lib/kmxgit_web/controllers/user_controller.ex
index 7d81f90..141fe01 100644
--- a/lib/kmxgit_web/controllers/user_controller.ex
+++ b/lib/kmxgit_web/controllers/user_controller.ex
@@ -30,6 +30,8 @@ defmodule KmxgitWeb.UserController do
       conn
       |> put_resp_content_type("image/png")
       |> send_file(200, path)
+    else
+      not_found(conn)
     end
   end
   def avatar(conn, _) do