mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-30 22:23:43 +01:00
Fix directory controller in glitch-soc
This commit is contained in:
parent
480f938511
commit
4f59d1efd7
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@ class DirectoriesController < ApplicationController
|
||||||
before_action :set_tag, only: :show
|
before_action :set_tag, only: :show
|
||||||
before_action :set_tags
|
before_action :set_tags
|
||||||
before_action :set_accounts
|
before_action :set_accounts
|
||||||
|
before_action :set_pack
|
||||||
|
|
||||||
def index
|
def index
|
||||||
render :index
|
render :index
|
||||||
|
@ -18,6 +19,10 @@ class DirectoriesController < ApplicationController
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def set_pack
|
||||||
|
use_pack 'share'
|
||||||
|
end
|
||||||
|
|
||||||
def set_tag
|
def set_tag
|
||||||
@tag = Tag.discoverable.find_by!(name: params[:id].downcase)
|
@tag = Tag.discoverable.find_by!(name: params[:id].downcase)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue