Make sure only proper pictures are uploaded

Closes #384

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-10-09 19:29:12 +02:00
parent 646f298e0b
commit dad9623482
27 changed files with 1190 additions and 738 deletions

View File

@@ -697,7 +697,7 @@ defmodule Mobilizon.Web.Resolvers.EventTest do
|> post("/api", AbsintheHelpers.mutation_skeleton(mutation))
assert hd(json_response(res, 200)["errors"])["message"] ==
"You can't attribute this new event to this profile."
"You can't attribute this event to this profile."
end
test "update_event/3 should check the user is the organizer", %{