Add example of quote post with a preview card to development sample data (#35616)

This commit is contained in:
Claire 2025-07-31 15:39:26 +02:00 committed by GitHub
parent b81670776f
commit 19db4cb7c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -419,6 +419,23 @@ namespace :dev do
activity_uri: 'https://foo/cross-account-quote',
state: :accepted
).find_or_create_by!(id: 10_000_012)
quoted = Status.create_with(
text: 'This should have a preview card: https://joinmastodon.org',
account: showcase_account,
visibility: :public
).find_or_create_by!(id: 10_000_028)
LinkCrawlWorker.perform_async(10_000_028)
quoting = Status.create_with(
text: 'This should quote a post with a preview card',
account: showcase_account,
visibility: :public
).find_or_create_by!(id: 10_000_029)
Quote.create_with(
status: quoting,
quoted_status: quoted,
state: :accepted
).find_or_create_by!(id: 10_000_013)
end
end
end