From 0e7c239bfe900f840d5cdda755932fb085587121 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 29 Nov 2019 11:43:53 -0500 Subject: [PATCH] install canary map on topic creation action --- lib/philomena_web/controllers/topic_controller.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/philomena_web/controllers/topic_controller.ex b/lib/philomena_web/controllers/topic_controller.ex index ec99ef50..6d837341 100644 --- a/lib/philomena_web/controllers/topic_controller.ex +++ b/lib/philomena_web/controllers/topic_controller.ex @@ -10,6 +10,8 @@ defmodule PhilomenaWeb.TopicController do plug PhilomenaWeb.FilterBannedUsersPlug when action in [:new, :create] plug PhilomenaWeb.UserAttributionPlug when action in [:new, :create] plug PhilomenaWeb.AdvertPlug when action in [:show] + + plug PhilomenaWeb.CanaryMapPlug, new: :show, create: :show plug :load_and_authorize_resource, model: Forum, id_name: "forum_id", id_field: "short_name", persisted: true def show(conn, %{"id" => slug} = params) do