From da60acced519eb8a7f4c4c2fd8b0cfda7470f3b5 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 22 May 2025 14:45:24 +0200 Subject: [PATCH] Add boost of remote quote post with fallback link to sample dev data (#34771) --- lib/tasks/dev.rake | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index 61ee605d95..c9c43e024f 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -351,5 +351,21 @@ namespace :dev do display_name: 'Mastodon test/showcase account', note: 'Test account to showcase many Mastodon features. Most of its posts are public, but some are private!' ) + + remote_quote = Status.create_with( + text: <<~HTML, +

This is a self-quote of a remote formatted post

+

RE: https://example.org/foo/bar/baz

+ HTML + account: remote_account, + uri: 'https://example.org/foo/bar/quote', + url: 'https://example.org/foo/bar/quote' + ).find_or_create_by!(id: 10_000_023) + Quote.create_with( + status: remote_quote, + quoted_status: remote_formatted_post, + state: :accepted + ).find_or_create_by!(id: 10_000_010) + Status.create_with(account: showcase_account, reblog: remote_quote).find_or_create_by!(id: 10_000_024) end end