about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-12-09 14:19:58 +0100
committerThibaut Girka <thib@sitedethib.com>2018-12-09 16:08:10 +0100
commit4f59d1efd786c08cc63e0c14dceada80c37ab8da (patch)
tree46e3982da219f7a5ac34c3aecaf32f0990578d1d /app/controllers
parent480f9385114e8fcdd7c53aed0e6a1aa38acac6a0 (diff)
Fix directory controller in glitch-soc
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/directories_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/directories_controller.rb b/app/controllers/directories_controller.rb
index 265fd5fab..9d65361a6 100644
--- a/app/controllers/directories_controller.rb
+++ b/app/controllers/directories_controller.rb
@@ -7,6 +7,7 @@ class DirectoriesController < ApplicationController
   before_action :set_tag, only: :show
   before_action :set_tags
   before_action :set_accounts
+  before_action :set_pack
 
   def index
     render :index
@@ -18,6 +19,10 @@ class DirectoriesController < ApplicationController
 
   private
 
+  def set_pack
+    use_pack 'share'
+  end
+
   def set_tag
     @tag = Tag.discoverable.find_by!(name: params[:id].downcase)
   end