]> cat aescling's git repositories - mastodon.git/commitdiff
Fix directory controller in glitch-soc
authorThibaut Girka <thib@sitedethib.com>
Sun, 9 Dec 2018 13:19:58 +0000 (14:19 +0100)
committerThibaut Girka <thib@sitedethib.com>
Sun, 9 Dec 2018 15:08:10 +0000 (16:08 +0100)
app/controllers/directories_controller.rb

index 265fd5fab28c1d634729751cafbc6074d9f314b9..9d65361a6158651095fa857040eb61a42c201cda 100644 (file)
@@ -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