Merge commit '009275e66b55729f754da7b4c814b37b67dc76dc' into glitch-soc/merge-upstream

Conflicts:
- `app/models/form/admin_settings.rb`:
  Upstream added a method right next to glitch-soc-only methods.
  Added upstream's method.
- `app/views/settings/preferences/appearance/show.html.haml`:
  Upstream changed a line right next to a glitch-soc addition.
  Changed the code as upstream did.
This commit is contained in:
Claire committed 2025-12-17 18:27:14 +01:00
commit 84feffd6e6
168 files changed
+2012 -1303

No files matched your search

+7 -3
View File
@@ -85,6 +85,10 @@ RSpec.describe 'API V1 Annual Reports' do
end
context 'when the feature is not enabled' do
before do
Setting.wrapstodon = false
end
it 'returns http success and ineligible status' do
get '/api/v1/annual_reports/2025/state', headers: headers
@@ -99,7 +103,7 @@ RSpec.describe 'API V1 Annual Reports' do
end
end
context 'when the feature is enabled and time is within window', feature: :wrapstodon do
context 'when the feature is enabled and time is within window' do
before do
travel_to Time.utc(2025, 12, 20)
@@ -121,7 +125,7 @@ RSpec.describe 'API V1 Annual Reports' do
end
end
context 'when the feature is enabled but we are out of the time window', feature: :wrapstodon do
context 'when the feature is enabled but we are out of the time window' do
before do
travel_to Time.utc(2025, 6, 20)
@@ -168,7 +172,7 @@ RSpec.describe 'API V1 Annual Reports' do
context 'with correct scope' do
let(:scopes) { 'write:accounts' }
context 'when the feature is enabled and time is within window', feature: :wrapstodon do
context 'when the feature is enabled and time is within window' do
before do
travel_to Time.utc(2025, 12, 20)
@@ -46,7 +46,7 @@ RSpec.describe 'Interaction policies' do
context 'when changing the interaction policy' do
it 'changes the interaction policy, returns the updated status, and schedules distribution jobs' do
expect { subject }
.to change { status.reload.quote_approval_policy }.to(Status::QUOTE_APPROVAL_POLICY_FLAGS[:followers] << 16)
.to change { status.reload.quote_approval_policy }.to(InteractionPolicy::POLICY_FLAGS[:followers] << 16)
expect(response).to have_http_status(200)
expect(response.content_type)
+4 -4
View File
@@ -264,7 +264,7 @@ RSpec.describe '/api/v1/statuses' do
end
context 'with a quote to a non-mentioned user in a Private Mention' do
let!(:quoted_status) { Fabricate(:status, quote_approval_policy: Status::QUOTE_APPROVAL_POLICY_FLAGS[:public] << 16) }
let!(:quoted_status) { Fabricate(:status, quote_approval_policy: InteractionPolicy::POLICY_FLAGS[:public] << 16) }
let(:params) do
{
status: 'Hello, this is a quote',
@@ -283,7 +283,7 @@ RSpec.describe '/api/v1/statuses' do
end
context 'with a quote to a mentioned user in a Private Mention' do
let!(:quoted_status) { Fabricate(:status, quote_approval_policy: Status::QUOTE_APPROVAL_POLICY_FLAGS[:public] << 16) }
let!(:quoted_status) { Fabricate(:status, quote_approval_policy: InteractionPolicy::POLICY_FLAGS[:public] << 16) }
let(:params) do
{
status: "Hello @#{quoted_status.account.acct}, this is a quote",
@@ -305,7 +305,7 @@ RSpec.describe '/api/v1/statuses' do
end
context 'with a quote of a reblog' do
let(:quoted_status) { Fabricate(:status, quote_approval_policy: Status::QUOTE_APPROVAL_POLICY_FLAGS[:public] << 16) }
let(:quoted_status) { Fabricate(:status, quote_approval_policy: InteractionPolicy::POLICY_FLAGS[:public] << 16) }
let(:reblog) { Fabricate(:status, reblog: quoted_status) }
let(:params) do
{
@@ -501,7 +501,7 @@ RSpec.describe '/api/v1/statuses' do
it 'updates the status', :aggregate_failures do
expect { subject }
.to change { status.reload.quote_approval_policy }.to(Status::QUOTE_APPROVAL_POLICY_FLAGS[:public] << 16)
.to change { status.reload.quote_approval_policy }.to(InteractionPolicy::POLICY_FLAGS[:public] << 16)
expect(response).to have_http_status(200)
expect(response.content_type)
+1 -1
View File
@@ -42,7 +42,7 @@ RSpec.describe 'Instances' do
end
end
context 'when wrapstodon is enabled', feature: :wrapstodon do
context 'when wrapstodon is enabled' do
before do
travel_to Time.utc(2025, 12, 20)
end