2
0

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

View File

@@ -419,6 +419,23 @@ namespace :dev do
activity_uri: 'https://foo/cross-account-quote', activity_uri: 'https://foo/cross-account-quote',
state: :accepted state: :accepted
).find_or_create_by!(id: 10_000_012) ).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 end
end end