forked from mirrors/catstodon
Merge pull request #2716 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes up to cd0c547936
This commit is contained in:
commit
65db9dec2e
3 changed files with 29 additions and 8 deletions
|
@ -4609,7 +4609,7 @@ a.status-card {
|
|||
color: $primary-text-color;
|
||||
}
|
||||
|
||||
.icon {
|
||||
.icon-sliders {
|
||||
transform: rotate(60deg);
|
||||
}
|
||||
}
|
||||
|
@ -4659,7 +4659,7 @@ a.status-card {
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
.no-reduce-motion .column-header__button .icon {
|
||||
.no-reduce-motion .column-header__button .icon-sliders {
|
||||
transition: transform 150ms ease-in-out;
|
||||
}
|
||||
|
||||
|
|
|
@ -4372,7 +4372,7 @@ a.status-card {
|
|||
color: $primary-text-color;
|
||||
}
|
||||
|
||||
.icon {
|
||||
.icon-sliders {
|
||||
transform: rotate(60deg);
|
||||
}
|
||||
}
|
||||
|
@ -4383,7 +4383,7 @@ a.status-card {
|
|||
}
|
||||
}
|
||||
|
||||
.no-reduce-motion .column-header__button .icon {
|
||||
.no-reduce-motion .column-header__button .icon-sliders {
|
||||
transition: transform 150ms ease-in-out;
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,9 @@ RSpec.describe Admin::AccountsController do
|
|||
|
||||
describe 'GET #show' do
|
||||
let(:current_user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
||||
let(:account) { Fabricate(:account) }
|
||||
|
||||
context 'with a remote account' do
|
||||
let(:account) { Fabricate(:account, domain: 'example.com') }
|
||||
|
||||
it 'returns http success' do
|
||||
get :show, params: { id: account.id }
|
||||
|
@ -61,6 +63,25 @@ RSpec.describe Admin::AccountsController do
|
|||
end
|
||||
end
|
||||
|
||||
context 'with a local account' do
|
||||
let(:account) { Fabricate(:account, domain: nil) }
|
||||
|
||||
it 'returns http success' do
|
||||
get :show, params: { id: account.id }
|
||||
expect(response).to have_http_status(200)
|
||||
end
|
||||
end
|
||||
|
||||
context 'with a local deleted account' do
|
||||
let(:account) { Fabricate(:account, domain: nil, user: nil) }
|
||||
|
||||
it 'returns http success' do
|
||||
get :show, params: { id: account.id }
|
||||
expect(response).to have_http_status(200)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'POST #memorialize' do
|
||||
subject { post :memorialize, params: { id: account.id } }
|
||||
|
||||
|
|
Loading…
Reference in a new issue