From 578b0eae7d411a7b717adaf2ec280c4b1c33c265 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 6 Jun 2024 12:51:39 +0200 Subject: [PATCH] Fix /api/v1/timelines/link specs for glitch-soc default settings --- spec/requests/api/v1/timelines/link_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/requests/api/v1/timelines/link_spec.rb b/spec/requests/api/v1/timelines/link_spec.rb index a219c9bcdd..e964ee3da3 100644 --- a/spec/requests/api/v1/timelines/link_spec.rb +++ b/spec/requests/api/v1/timelines/link_spec.rb @@ -96,6 +96,10 @@ describe 'Link' do end context 'when the instance allows public preview' do + before do + Setting.timeline_preview = true + end + context 'with an authorized user' do it_behaves_like 'a successful request to the link timeline' end