From 75464e4088ea97069be054be85712c7366bface0 Mon Sep 17 00:00:00 2001 From: Luna D Date: Fri, 25 Mar 2022 18:28:59 +0100 Subject: [PATCH] i have no clue how the heck this worked before but okay --- lib/philomena_web/controllers/topic/post_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/topic/post_controller.ex b/lib/philomena_web/controllers/topic/post_controller.ex index 342ceddd..9570c014 100644 --- a/lib/philomena_web/controllers/topic/post_controller.ex +++ b/lib/philomena_web/controllers/topic/post_controller.ex @@ -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