From bd6b5c03db0cdfefac3fc309691de943120c9af6 Mon Sep 17 00:00:00 2001
From: ArtOfCode- <hello@artofcode.co.uk>
Date: Wed, 16 Dec 2020 12:27:29 +0000
Subject: [PATCH] Make post feature tool local only

---
 app/controllers/posts_controller.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb
index 94dabc79f..d4e9f3f0b 100644
--- a/app/controllers/posts_controller.rb
+++ b/app/controllers/posts_controller.rb
@@ -406,7 +406,8 @@ class PostsController < ApplicationController
       label: @post.parent.nil? ? @post.title : @post.parent.title,
       link: helpers.generic_show_link(@post),
       post: @post,
-      active: true
+      active: true,
+      community: RequestContext.community
     }
     @link = PinnedLink.create data
 
-- 
GitLab