mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-18 15:48:22 +00:00
Fix: Ensure "With Media" is highlighted from Admin Accounts page (#30812)
This commit is contained in:
parent
052c90b8de
commit
30ae5952d2
|
@ -8,7 +8,7 @@
|
||||||
%strong= t('admin.statuses.media.title')
|
%strong= t('admin.statuses.media.title')
|
||||||
%ul
|
%ul
|
||||||
%li= filter_link_to t('generic.all'), media: nil, id: nil
|
%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
|
.back-link
|
||||||
- if params[:report_id]
|
- if params[:report_id]
|
||||||
= link_to admin_report_path(params[:report_id].to_i) do
|
= link_to admin_report_path(params[:report_id].to_i) do
|
||||||
|
|
|
@ -33,7 +33,7 @@ describe Admin::StatusesController do
|
||||||
|
|
||||||
context 'when filtering by media' do
|
context 'when filtering by media' do
|
||||||
before do
|
before do
|
||||||
get :index, params: { account_id: account.id, media: '1' }
|
get :index, params: { account_id: account.id, media: true }
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns http success' do
|
it 'returns http success' do
|
||||||
|
|
Loading…
Reference in a new issue