From f4e2ad7c4df3eaf76637f057a9999da25f9e4941 Mon Sep 17 00:00:00 2001 From: ArtOfCode- <hello@artofcode.co.uk> Date: Fri, 31 Jul 2020 16:22:40 +0100 Subject: [PATCH] Non-global mods shouldn't create global links --- app/controllers/pinned_links_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/pinned_links_controller.rb b/app/controllers/pinned_links_controller.rb index 8077df360..5561bcdcc 100644 --- a/app/controllers/pinned_links_controller.rb +++ b/app/controllers/pinned_links_controller.rb @@ -67,6 +67,7 @@ class PinnedLinksController < ApplicationController params.require(:pinned_link).permit(:label, :link, :post, :active, :shown_before, :shown_after, :community_id) else params.require(:pinned_link).permit(:label, :link, :post, :active, :shown_before, :shown_after) + .merge(community_id: RequestContext.community_id) end end end -- GitLab