Add missing_attribution boolean to preview cards (#38043)

This commit is contained in:
Claire
2026-03-04 12:18:37 +01:00
committed by GitHub
parent 5472ab251a
commit 8a0261c51c
12 changed files with 134 additions and 3 deletions

View File

@@ -19,6 +19,18 @@ RSpec.describe StatusCacheHydrator do
end
end
context 'when handling a new status with a preview card with unverified account attribution' do
let(:preview_card) { Fabricate(:preview_card, unverified_author_account: account) }
before do
PreviewCardsStatus.create(status: status, preview_card: preview_card)
end
it 'renders the same attributes as a full render' do
expect(subject).to eql(compare_to_hash)
end
end
context 'when handling a new status with own poll' do
let(:poll) { Fabricate(:poll, account: account) }
let(:status) { Fabricate(:status, poll: poll, account: account) }