mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Add missing_attribution boolean to preview cards (#38043)
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user