mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
install canary map on topic creation action
This commit is contained in:
parent
ce450b77d9
commit
0e7c239bfe
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue