Upload pictures fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-07-04 17:41:06 +02:00
parent 2749989a28
commit d609ccfb51
3 changed files with 9 additions and 3 deletions

View File

@@ -22,7 +22,8 @@ defmodule MobilizonWeb.API.Events do
category: category
} = args
) do
with %Actor{url: url} = actor <- Actors.get_local_actor_with_everything(organizer_actor_id),
with %Actor{url: url} = actor <-
Actors.get_local_actor_with_everything(organizer_actor_id),
title <- String.trim(title),
mentions <- Formatter.parse_mentions(description),
visibility <- Map.get(args, :visibility, "public"),