Browse Source

Fix error when accessing /filters/:id/statuses on glitch-soc (#1837)

I failed to account for glitch-soc's theming system when merging
from upstream.
closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
0fece174f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions
  1. +5
    -0
      app/controllers/filters/statuses_controller.rb
  2. +0
    -3
      app/views/filters/statuses/index.html.haml

+ 5
- 0
app/controllers/filters/statuses_controller.rb View File

@ -6,6 +6,7 @@ class Filters::StatusesController < ApplicationController
before_action :authenticate_user!
before_action :set_filter
before_action :set_status_filters
before_action :set_pack
before_action :set_body_classes
PER_PAGE = 20
@ -25,6 +26,10 @@ class Filters::StatusesController < ApplicationController
private
def set_pack
use_pack 'admin'
end
def set_filter
@filter = current_account.custom_filters.find(params[:filter_id])
end

+ 0
- 3
app/views/filters/statuses/index.html.haml View File

@ -1,6 +1,3 @@
- content_for :header_tags do
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
- content_for :page_title do
= t('filters.statuses.index.title')
\-

Loading…
Cancel
Save