From 19db4cb7c133c375a888833f5d702d39411b49c3 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 31 Jul 2025 15:39:26 +0200 Subject: [PATCH] Add example of quote post with a preview card to development sample data (#35616) --- lib/tasks/dev.rake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index 921ffba5912..2aad68d53d8 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -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