mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
format
This commit is contained in:
parent
d1783cdeb8
commit
8fca87859c
2 changed files with 8 additions and 2 deletions
|
@ -58,7 +58,11 @@ defmodule Philomena.Images.TagValidator do
|
|||
|
||||
cond do
|
||||
MapSet.size(intersection) > 0 ->
|
||||
Enum.reduce(intersection, changeset, &add_error(&2, :tag_input, "contains forbidden tag `#{&1}'"))
|
||||
Enum.reduce(
|
||||
intersection,
|
||||
changeset,
|
||||
&add_error(&2, :tag_input, "contains forbidden tag `#{&1}'")
|
||||
)
|
||||
|
||||
true ->
|
||||
changeset
|
||||
|
|
|
@ -27,7 +27,9 @@ defmodule PhilomenaWeb.Topic.PollController do
|
|||
{:ok, _poll} ->
|
||||
conn
|
||||
|> put_flash(:info, "Poll successfully updated.")
|
||||
|> redirect(to: Routes.forum_topic_path(conn, :show, conn.assigns.forum, conn.assigns.topic))
|
||||
|> redirect(
|
||||
to: Routes.forum_topic_path(conn, :show, conn.assigns.forum, conn.assigns.topic)
|
||||
)
|
||||
|
||||
{:error, changeset} ->
|
||||
render(conn, "edit.html", changeset: changeset)
|
||||
|
|
Loading…
Reference in a new issue