i have no clue how the heck this worked before but okay

This commit is contained in:
Luna D 2022-03-25 18:28:59 +01:00
parent 317a568521
commit 75464e4088
No known key found for this signature in database
GPG key ID: 4B1C63448394F688

View file

@ -79,7 +79,7 @@ defmodule PhilomenaWeb.Topic.PostController do
user = conn.assigns.current_user
case Posts.update_post(post, user, post_params) do
{:ok, post} ->
{:ok, %{post: post}} ->
if not post.approved do
Posts.report_non_approved(post)
end