1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix: Ensure "With Media" is highlighted from Admin Accounts page (#30812)

This commit is contained in:
Emelia Smith 2024-06-25 09:46:53 +02:00 committed by GitHub
parent 052c90b8de
commit 30ae5952d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
%strong= t('admin.statuses.media.title')
%ul
%li= filter_link_to t('generic.all'), media: nil, id: nil
%li= filter_link_to t('admin.statuses.with_media'), media: '1'
%li= filter_link_to t('admin.statuses.with_media'), media: true
.back-link
- if params[:report_id]
= link_to admin_report_path(params[:report_id].to_i) do

View file

@ -33,7 +33,7 @@ describe Admin::StatusesController do
context 'when filtering by media' do
before do
get :index, params: { account_id: account.id, media: '1' }
get :index, params: { account_id: account.id, media: true }
end
it 'returns http success' do