mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
i have no clue how the heck this worked before but okay
This commit is contained in:
parent
317a568521
commit
75464e4088
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ defmodule PhilomenaWeb.Topic.PostController do
|
||||||
user = conn.assigns.current_user
|
user = conn.assigns.current_user
|
||||||
|
|
||||||
case Posts.update_post(post, user, post_params) do
|
case Posts.update_post(post, user, post_params) do
|
||||||
{:ok, post} ->
|
{:ok, %{post: post}} ->
|
||||||
if not post.approved do
|
if not post.approved do
|
||||||
Posts.report_non_approved(post)
|
Posts.report_non_approved(post)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue